]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
fc54be10 | 3 | # Generated by GNU Autoconf 2.60. |
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 | ||
fc54be10 | 13 | # Be Bourne compatible |
ad6254c5 AK |
14 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
15 | emulate sh | |
16 | NULLCMD=: | |
17 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
18 | # is contrary to our usage. Disable this feature. | |
19 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
20 | setopt NO_GLOB_SUBST |
21 | else | |
fc54be10 | 22 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
7a197a62 | 23 | fi |
fc54be10 AK |
24 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
25 | DUALCASE=1; export DUALCASE # for MKS sh | |
7a197a62 AK |
26 | |
27 | ||
28 | # PATH needs CR | |
29 | # Avoid depending upon Character Ranges. | |
30 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
31 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
32 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
33 | as_cr_digits='0123456789' | |
34 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
35 | ||
36 | # The user is always right. | |
37 | if test "${PATH_SEPARATOR+set}" != set; then | |
38 | echo "#! /bin/sh" >conf$$.sh | |
39 | echo "exit 0" >>conf$$.sh | |
40 | chmod +x conf$$.sh | |
41 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
42 | PATH_SEPARATOR=';' | |
43 | else | |
44 | PATH_SEPARATOR=: | |
45 | fi | |
46 | rm -f conf$$.sh | |
ad6254c5 AK |
47 | fi |
48 | ||
49 | # Support unset when possible. | |
8a2fc586 | 50 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
51 | as_unset=unset |
52 | else | |
53 | as_unset=false | |
54 | fi | |
55 | ||
56 | ||
7a197a62 AK |
57 | # IFS |
58 | # We need space, tab and new line, in precisely that order. Quoting is | |
59 | # there to prevent editors from complaining about space-tab. | |
60 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
61 | # splitting by setting IFS to empty value.) | |
1995c9ff AK |
62 | as_nl=' |
63 | ' | |
7a197a62 AK |
64 | IFS=" "" $as_nl" |
65 | ||
66 | # Find who we are. Look in the path if we contain no directory separator. | |
67 | case $0 in | |
68 | *[\\/]* ) as_myself=$0 ;; | |
69 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
70 | for as_dir in $PATH | |
71 | do | |
72 | IFS=$as_save_IFS | |
73 | test -z "$as_dir" && as_dir=. | |
74 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
75 | done | |
76 | IFS=$as_save_IFS | |
77 | ||
78 | ;; | |
79 | esac | |
80 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
81 | # in which case we are not to be found in the path. | |
82 | if test "x$as_myself" = x; then | |
83 | as_myself=$0 | |
84 | fi | |
85 | if test ! -f "$as_myself"; then | |
1995c9ff | 86 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
87 | { (exit 1); exit 1; } |
88 | fi | |
89 | ||
ad6254c5 | 90 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
91 | for as_var in ENV MAIL MAILPATH |
92 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
93 | done | |
ad6254c5 AK |
94 | PS1='$ ' |
95 | PS2='> ' | |
96 | PS4='+ ' | |
97 | ||
98 | # NLS nuisances. | |
99 | for as_var in \ | |
100 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
101 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
102 | LC_TELEPHONE LC_TIME | |
103 | do | |
8a2fc586 | 104 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
ad6254c5 AK |
105 | eval $as_var=C; export $as_var |
106 | else | |
7a197a62 | 107 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
ad6254c5 AK |
108 | fi |
109 | done | |
110 | ||
111 | # Required to use basename. | |
7a197a62 AK |
112 | if expr a : '\(a\)' >/dev/null 2>&1 && |
113 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
114 | as_expr=expr |
115 | else | |
116 | as_expr=false | |
117 | fi | |
118 | ||
7a197a62 | 119 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
120 | as_basename=basename |
121 | else | |
122 | as_basename=false | |
123 | fi | |
124 | ||
125 | ||
126 | # Name of the executable. | |
7a197a62 | 127 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
128 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
129 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 130 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1995c9ff | 131 | echo X/"$0" | |
7a197a62 AK |
132 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
133 | s//\1/ | |
134 | q | |
135 | } | |
136 | /^X\/\(\/\/\)$/{ | |
137 | s//\1/ | |
138 | q | |
139 | } | |
140 | /^X\/\(\/\).*/{ | |
141 | s//\1/ | |
142 | q | |
143 | } | |
144 | s/.*/./; q'` | |
ad6254c5 | 145 | |
7a197a62 AK |
146 | # CDPATH. |
147 | $as_unset CDPATH | |
ad6254c5 | 148 | |
ad6254c5 | 149 | |
7a197a62 AK |
150 | if test "x$CONFIG_SHELL" = x; then |
151 | if (eval ":") 2>/dev/null; then | |
152 | as_have_required=yes | |
153 | else | |
154 | as_have_required=no | |
ad6254c5 AK |
155 | fi |
156 | ||
7a197a62 AK |
157 | if test $as_have_required = yes && (eval ": |
158 | (as_func_return () { | |
159 | (exit \$1) | |
160 | } | |
161 | as_func_success () { | |
162 | as_func_return 0 | |
163 | } | |
164 | as_func_failure () { | |
165 | as_func_return 1 | |
166 | } | |
167 | as_func_ret_success () { | |
168 | return 0 | |
169 | } | |
170 | as_func_ret_failure () { | |
171 | return 1 | |
172 | } | |
ad6254c5 | 173 | |
7a197a62 AK |
174 | exitcode=0 |
175 | if as_func_success; then | |
176 | : | |
177 | else | |
178 | exitcode=1 | |
179 | echo as_func_success failed. | |
180 | fi | |
ad6254c5 | 181 | |
7a197a62 AK |
182 | if as_func_failure; then |
183 | exitcode=1 | |
184 | echo as_func_failure succeeded. | |
185 | fi | |
186 | ||
187 | if as_func_ret_success; then | |
188 | : | |
189 | else | |
190 | exitcode=1 | |
191 | echo as_func_ret_success failed. | |
192 | fi | |
193 | ||
194 | if as_func_ret_failure; then | |
195 | exitcode=1 | |
196 | echo as_func_ret_failure succeeded. | |
197 | fi | |
198 | ||
199 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
200 | : | |
201 | else | |
202 | exitcode=1 | |
203 | echo positional parameters were not saved. | |
204 | fi | |
205 | ||
206 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
207 | ||
208 | ( | |
209 | as_lineno_1=\$LINENO | |
210 | as_lineno_2=\$LINENO | |
211 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
212 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
213 | ") 2> /dev/null; then | |
214 | : | |
215 | else | |
216 | as_candidate_shells= | |
ad6254c5 | 217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
fc54be10 | 218 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
ad6254c5 AK |
219 | do |
220 | IFS=$as_save_IFS | |
221 | test -z "$as_dir" && as_dir=. | |
7a197a62 | 222 | case $as_dir in |
ad6254c5 | 223 | /*) |
7a197a62 AK |
224 | for as_base in sh bash ksh sh5; do |
225 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
226 | done;; | |
227 | esac | |
228 | done | |
229 | IFS=$as_save_IFS | |
230 | ||
231 | ||
232 | for as_shell in $as_candidate_shells $SHELL; do | |
233 | # Try only shells that exist, to save several forks. | |
234 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
235 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
fc54be10 | 236 | # Be Bourne compatible |
7a197a62 AK |
237 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
238 | emulate sh | |
239 | NULLCMD=: | |
240 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
241 | # is contrary to our usage. Disable this feature. | |
242 | alias -g '${1+"$@"}'='"$@"' | |
243 | setopt NO_GLOB_SUBST | |
244 | else | |
fc54be10 | 245 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
7a197a62 | 246 | fi |
fc54be10 AK |
247 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
248 | DUALCASE=1; export DUALCASE # for MKS sh | |
7a197a62 AK |
249 | |
250 | : | |
251 | _ASEOF | |
252 | }; then | |
253 | CONFIG_SHELL=$as_shell | |
254 | as_have_required=yes | |
255 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
fc54be10 | 256 | # Be Bourne compatible |
7a197a62 AK |
257 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
258 | emulate sh | |
259 | NULLCMD=: | |
260 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
261 | # is contrary to our usage. Disable this feature. | |
262 | alias -g '${1+"$@"}'='"$@"' | |
263 | setopt NO_GLOB_SUBST | |
264 | else | |
fc54be10 | 265 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
7a197a62 | 266 | fi |
fc54be10 AK |
267 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
268 | DUALCASE=1; export DUALCASE # for MKS sh | |
7a197a62 AK |
269 | |
270 | : | |
271 | (as_func_return () { | |
272 | (exit $1) | |
273 | } | |
274 | as_func_success () { | |
275 | as_func_return 0 | |
276 | } | |
277 | as_func_failure () { | |
278 | as_func_return 1 | |
279 | } | |
280 | as_func_ret_success () { | |
281 | return 0 | |
282 | } | |
283 | as_func_ret_failure () { | |
284 | return 1 | |
285 | } | |
286 | ||
287 | exitcode=0 | |
288 | if as_func_success; then | |
289 | : | |
290 | else | |
291 | exitcode=1 | |
292 | echo as_func_success failed. | |
293 | fi | |
294 | ||
295 | if as_func_failure; then | |
296 | exitcode=1 | |
297 | echo as_func_failure succeeded. | |
298 | fi | |
299 | ||
300 | if as_func_ret_success; then | |
301 | : | |
302 | else | |
303 | exitcode=1 | |
304 | echo as_func_ret_success failed. | |
305 | fi | |
306 | ||
307 | if as_func_ret_failure; then | |
308 | exitcode=1 | |
309 | echo as_func_ret_failure succeeded. | |
310 | fi | |
311 | ||
312 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
313 | : | |
314 | else | |
315 | exitcode=1 | |
316 | echo positional parameters were not saved. | |
317 | fi | |
318 | ||
319 | test $exitcode = 0) || { (exit 1); exit 1; } | |
320 | ||
321 | ( | |
ad6254c5 AK |
322 | as_lineno_1=$LINENO |
323 | as_lineno_2=$LINENO | |
ad6254c5 | 324 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 AK |
325 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
326 | ||
327 | _ASEOF | |
328 | }; then | |
329 | break | |
330 | fi | |
331 | ||
332 | fi | |
333 | ||
334 | done | |
335 | ||
336 | if test "x$CONFIG_SHELL" != x; then | |
337 | for as_var in BASH_ENV ENV | |
338 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
339 | done | |
340 | export CONFIG_SHELL | |
341 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
342 | fi | |
343 | ||
344 | ||
345 | if test $as_have_required = no; then | |
346 | echo This script requires a shell more modern than all the | |
347 | echo shells that I found on your system. Please install a | |
348 | echo modern shell, or manually run the script under such a | |
349 | echo shell if you do have one. | |
350 | { (exit 1); exit 1; } | |
351 | fi | |
352 | ||
353 | ||
354 | fi | |
355 | ||
356 | fi | |
357 | ||
358 | ||
359 | ||
360 | (eval "as_func_return () { | |
361 | (exit \$1) | |
362 | } | |
363 | as_func_success () { | |
364 | as_func_return 0 | |
365 | } | |
366 | as_func_failure () { | |
367 | as_func_return 1 | |
368 | } | |
369 | as_func_ret_success () { | |
370 | return 0 | |
371 | } | |
372 | as_func_ret_failure () { | |
373 | return 1 | |
374 | } | |
375 | ||
376 | exitcode=0 | |
377 | if as_func_success; then | |
378 | : | |
379 | else | |
380 | exitcode=1 | |
381 | echo as_func_success failed. | |
382 | fi | |
383 | ||
384 | if as_func_failure; then | |
385 | exitcode=1 | |
386 | echo as_func_failure succeeded. | |
387 | fi | |
388 | ||
389 | if as_func_ret_success; then | |
390 | : | |
391 | else | |
392 | exitcode=1 | |
393 | echo as_func_ret_success failed. | |
394 | fi | |
395 | ||
396 | if as_func_ret_failure; then | |
397 | exitcode=1 | |
398 | echo as_func_ret_failure succeeded. | |
399 | fi | |
400 | ||
401 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
402 | : | |
403 | else | |
404 | exitcode=1 | |
405 | echo positional parameters were not saved. | |
406 | fi | |
407 | ||
408 | test \$exitcode = 0") || { | |
409 | echo No shell found that supports shell functions. | |
410 | echo Please tell autoconf@gnu.org about your system, | |
411 | echo including any error possibly output before this | |
412 | echo message | |
413 | } | |
414 | ||
415 | ||
416 | ||
417 | as_lineno_1=$LINENO | |
418 | as_lineno_2=$LINENO | |
419 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
420 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
ad6254c5 AK |
421 | |
422 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
423 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
424 | # line-number line after each line using $LINENO; the second 'sed' |
425 | # does the real work. The second script uses 'N' to pair each | |
426 | # line-number line with the line containing $LINENO, and appends | |
427 | # trailing '-' during substitution so that $LINENO is not a special | |
428 | # case at line end. | |
ad6254c5 | 429 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
430 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
431 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
432 | sed -n ' | |
433 | p | |
434 | /[$]LINENO/= | |
435 | ' <$as_myself | | |
ad6254c5 | 436 | sed ' |
7a197a62 AK |
437 | s/[$]LINENO.*/&-/ |
438 | t lineno | |
439 | b | |
440 | :lineno | |
ad6254c5 | 441 | N |
7a197a62 AK |
442 | :loop |
443 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 444 | t loop |
7a197a62 | 445 | s/-\n.*// |
ad6254c5 | 446 | ' >$as_me.lineno && |
7a197a62 | 447 | chmod +x "$as_me.lineno" || |
1995c9ff | 448 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
449 | { (exit 1); exit 1; }; } |
450 | ||
451 | # Don't try to exec as it changes $[0], causing all sort of problems | |
452 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
453 | # original and so on. Autoconf is especially sensitive to this). |
454 | . "./$as_me.lineno" | |
ad6254c5 AK |
455 | # Exit status is that of the last command. |
456 | exit | |
457 | } | |
795ca3e5 | 458 | |
ad6254c5 | 459 | |
7a197a62 AK |
460 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
461 | as_dirname=dirname | |
462 | else | |
463 | as_dirname=false | |
464 | fi | |
465 | ||
466 | ECHO_C= ECHO_N= ECHO_T= | |
467 | case `echo -n x` in | |
468 | -n*) | |
469 | case `echo 'x\c'` in | |
470 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
471 | *) ECHO_C='\c';; | |
472 | esac;; | |
473 | *) | |
474 | ECHO_N='-n';; | |
ad6254c5 | 475 | esac |
1995c9ff | 476 | |
7a197a62 AK |
477 | if expr a : '\(a\)' >/dev/null 2>&1 && |
478 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
479 | as_expr=expr |
480 | else | |
481 | as_expr=false | |
482 | fi | |
483 | ||
484 | rm -f conf$$ conf$$.exe conf$$.file | |
7a197a62 AK |
485 | if test -d conf$$.dir; then |
486 | rm -f conf$$.dir/conf$$.file | |
487 | else | |
488 | rm -f conf$$.dir | |
489 | mkdir conf$$.dir | |
490 | fi | |
ad6254c5 AK |
491 | echo >conf$$.file |
492 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7a197a62 AK |
493 | as_ln_s='ln -s' |
494 | # ... but there are two gotchas: | |
495 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
496 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
497 | # In both cases, we have to default to `cp -p'. | |
498 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
ad6254c5 | 499 | as_ln_s='cp -p' |
ad6254c5 AK |
500 | elif ln conf$$.file conf$$ 2>/dev/null; then |
501 | as_ln_s=ln | |
502 | else | |
503 | as_ln_s='cp -p' | |
504 | fi | |
7a197a62 AK |
505 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
506 | rmdir conf$$.dir 2>/dev/null | |
ad6254c5 AK |
507 | |
508 | if mkdir -p . 2>/dev/null; then | |
509 | as_mkdir_p=: | |
510 | else | |
8a2fc586 | 511 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
512 | as_mkdir_p=false |
513 | fi | |
514 | ||
fc54be10 AK |
515 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
516 | # systems may use methods other than mode bits to determine executability. | |
517 | cat >conf$$.file <<_ASEOF | |
518 | #! /bin/sh | |
519 | exit 0 | |
520 | _ASEOF | |
521 | chmod +x conf$$.file | |
522 | if test -x conf$$.file >/dev/null 2>&1; then | |
523 | as_executable_p="test -x" | |
7a197a62 | 524 | else |
fc54be10 | 525 | as_executable_p=: |
7a197a62 | 526 | fi |
fc54be10 | 527 | rm -f conf$$.file |
ad6254c5 AK |
528 | |
529 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 530 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
531 | |
532 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 533 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
534 | |
535 | ||
ad6254c5 | 536 | |
7a197a62 | 537 | exec 7<&0 </dev/null 6>&1 |
ad6254c5 AK |
538 | |
539 | # Name of the host. | |
540 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
541 | # so uname gets run too. | |
542 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
543 | ||
ad6254c5 AK |
544 | # |
545 | # Initializations. | |
546 | # | |
795ca3e5 | 547 | ac_default_prefix=/usr/local |
7a197a62 | 548 | ac_clean_files= |
ad6254c5 | 549 | ac_config_libobj_dir=. |
7a197a62 | 550 | LIBOBJS= |
ad6254c5 AK |
551 | cross_compiling=no |
552 | subdirs= | |
553 | MFLAGS= | |
554 | MAKEFLAGS= | |
555 | SHELL=${CONFIG_SHELL-/bin/sh} | |
556 | ||
ad6254c5 AK |
557 | # Identity of this package. |
558 | PACKAGE_NAME= | |
559 | PACKAGE_TARNAME= | |
560 | PACKAGE_VERSION= | |
561 | PACKAGE_STRING= | |
562 | PACKAGE_BUGREPORT= | |
563 | ||
564 | ac_unique_file="lib/device/dev-cache.h" | |
565 | # Factoring default headers for most tests. | |
566 | ac_includes_default="\ | |
567 | #include <stdio.h> | |
fc54be10 | 568 | #if HAVE_SYS_TYPES_H |
ad6254c5 AK |
569 | # include <sys/types.h> |
570 | #endif | |
fc54be10 | 571 | #if HAVE_SYS_STAT_H |
ad6254c5 AK |
572 | # include <sys/stat.h> |
573 | #endif | |
fc54be10 | 574 | #if STDC_HEADERS |
ad6254c5 AK |
575 | # include <stdlib.h> |
576 | # include <stddef.h> | |
577 | #else | |
fc54be10 | 578 | # if HAVE_STDLIB_H |
ad6254c5 AK |
579 | # include <stdlib.h> |
580 | # endif | |
581 | #endif | |
fc54be10 AK |
582 | #if HAVE_STRING_H |
583 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
ad6254c5 AK |
584 | # include <memory.h> |
585 | # endif | |
586 | # include <string.h> | |
587 | #endif | |
fc54be10 | 588 | #if HAVE_STRINGS_H |
ad6254c5 AK |
589 | # include <strings.h> |
590 | #endif | |
fc54be10 | 591 | #if HAVE_INTTYPES_H |
ad6254c5 | 592 | # include <inttypes.h> |
ad6254c5 | 593 | #endif |
fc54be10 | 594 | #if HAVE_STDINT_H |
7a197a62 AK |
595 | # include <stdint.h> |
596 | #endif | |
fc54be10 | 597 | #if HAVE_UNISTD_H |
ad6254c5 AK |
598 | # include <unistd.h> |
599 | #endif" | |
600 | ||
795ca3e5 | 601 | ac_default_prefix=/usr |
7a197a62 AK |
602 | ac_subst_vars='SHELL |
603 | PATH_SEPARATOR | |
604 | PACKAGE_NAME | |
605 | PACKAGE_TARNAME | |
606 | PACKAGE_VERSION | |
607 | PACKAGE_STRING | |
608 | PACKAGE_BUGREPORT | |
609 | exec_prefix | |
610 | prefix | |
611 | program_transform_name | |
612 | bindir | |
613 | sbindir | |
614 | libexecdir | |
615 | datarootdir | |
616 | datadir | |
617 | sysconfdir | |
618 | sharedstatedir | |
619 | localstatedir | |
620 | includedir | |
621 | oldincludedir | |
622 | docdir | |
623 | infodir | |
624 | htmldir | |
625 | dvidir | |
626 | pdfdir | |
627 | psdir | |
628 | libdir | |
629 | localedir | |
630 | mandir | |
631 | DEFS | |
632 | ECHO_C | |
633 | ECHO_N | |
634 | ECHO_T | |
635 | LIBS | |
636 | build_alias | |
637 | host_alias | |
638 | target_alias | |
639 | build | |
640 | build_cpu | |
641 | build_vendor | |
642 | build_os | |
643 | host | |
644 | host_cpu | |
645 | host_vendor | |
646 | host_os | |
647 | target | |
648 | target_cpu | |
649 | target_vendor | |
650 | target_os | |
651 | AWK | |
652 | CC | |
653 | CFLAGS | |
654 | LDFLAGS | |
655 | CPPFLAGS | |
656 | ac_ct_CC | |
657 | EXEEXT | |
658 | OBJEXT | |
659 | INSTALL_PROGRAM | |
660 | INSTALL_SCRIPT | |
661 | INSTALL_DATA | |
662 | LN_S | |
663 | SET_MAKE | |
664 | RANLIB | |
665 | CFLOW_CMD | |
666 | CSCOPE_CMD | |
667 | CPP | |
668 | GREP | |
669 | EGREP | |
670 | ALLOCA | |
671 | LIBOBJS | |
672 | POW_LIB | |
673 | MSGFMT | |
674 | MODPROBE_CMD | |
675 | JOBS | |
676 | STATIC_LINK | |
677 | LVM1 | |
678 | POOL | |
679 | SNAPSHOTS | |
680 | MIRRORS | |
681 | OWNER | |
682 | GROUP | |
683 | COPTIMISE_FLAG | |
684 | CLDFLAGS | |
685 | CLDWHOLEARCHIVE | |
686 | CLDNOWHOLEARCHIVE | |
687 | LDDEPS | |
688 | LIB_SUFFIX | |
689 | LVM_VERSION | |
690 | LVM1_FALLBACK | |
691 | DEBUG | |
692 | DEVMAPPER | |
693 | HAVE_LIBDL | |
694 | HAVE_SELINUX | |
695 | HAVE_REALTIME | |
696 | CMDLIB | |
697 | LOCALEDIR | |
698 | CONFDIR | |
699 | STATICDIR | |
700 | DMDIR | |
701 | INTL_PACKAGE | |
702 | INTL | |
703 | CLVMD | |
704 | CLUSTER | |
705 | FSADM | |
706 | DMEVENTD | |
66e941e8 | 707 | LIB_PTHREAD |
7a197a62 | 708 | LTLIBOBJS' |
ad6254c5 | 709 | ac_subst_files='' |
7a197a62 AK |
710 | ac_precious_vars='build_alias |
711 | host_alias | |
712 | target_alias | |
713 | CC | |
714 | CFLAGS | |
715 | LDFLAGS | |
7a197a62 AK |
716 | CPPFLAGS |
717 | CPP' | |
718 | ||
795ca3e5 AK |
719 | |
720 | # Initialize some variables set by options. | |
ad6254c5 AK |
721 | ac_init_help= |
722 | ac_init_version=false | |
795ca3e5 AK |
723 | # The variables have the same names as the options, with |
724 | # dashes changed to underlines. | |
ad6254c5 | 725 | cache_file=/dev/null |
795ca3e5 | 726 | exec_prefix=NONE |
795ca3e5 | 727 | no_create= |
795ca3e5 AK |
728 | no_recursion= |
729 | prefix=NONE | |
730 | program_prefix=NONE | |
731 | program_suffix=NONE | |
732 | program_transform_name=s,x,x, | |
733 | silent= | |
734 | site= | |
735 | srcdir= | |
795ca3e5 AK |
736 | verbose= |
737 | x_includes=NONE | |
738 | x_libraries=NONE | |
ad6254c5 AK |
739 | |
740 | # Installation directory options. | |
741 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
742 | # and all the variables that are supposed to be based on exec_prefix | |
743 | # by default will actually change. | |
744 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 745 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
746 | bindir='${exec_prefix}/bin' |
747 | sbindir='${exec_prefix}/sbin' | |
748 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
749 | datarootdir='${prefix}/share' |
750 | datadir='${datarootdir}' | |
795ca3e5 AK |
751 | sysconfdir='${prefix}/etc' |
752 | sharedstatedir='${prefix}/com' | |
753 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
754 | includedir='${prefix}/include' |
755 | oldincludedir='/usr/include' | |
7a197a62 AK |
756 | docdir='${datarootdir}/doc/${PACKAGE}' |
757 | infodir='${datarootdir}/info' | |
758 | htmldir='${docdir}' | |
759 | dvidir='${docdir}' | |
760 | pdfdir='${docdir}' | |
761 | psdir='${docdir}' | |
762 | libdir='${exec_prefix}/lib' | |
763 | localedir='${datarootdir}/locale' | |
764 | mandir='${datarootdir}/man' | |
795ca3e5 | 765 | |
795ca3e5 | 766 | ac_prev= |
7a197a62 | 767 | ac_dashdash= |
795ca3e5 AK |
768 | for ac_option |
769 | do | |
795ca3e5 AK |
770 | # If the previous option needs an argument, assign it. |
771 | if test -n "$ac_prev"; then | |
7a197a62 | 772 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
773 | ac_prev= |
774 | continue | |
775 | fi | |
776 | ||
7a197a62 AK |
777 | case $ac_option in |
778 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
779 | *) ac_optarg=yes ;; | |
780 | esac | |
795ca3e5 AK |
781 | |
782 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
783 | ||
7a197a62 AK |
784 | case $ac_dashdash$ac_option in |
785 | --) | |
786 | ac_dashdash=yes ;; | |
795ca3e5 AK |
787 | |
788 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
789 | ac_prev=bindir ;; | |
790 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 791 | bindir=$ac_optarg ;; |
795ca3e5 AK |
792 | |
793 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 794 | ac_prev=build_alias ;; |
795ca3e5 | 795 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 796 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
797 | |
798 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
799 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
800 | ac_prev=cache_file ;; | |
801 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
802 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
803 | cache_file=$ac_optarg ;; |
804 | ||
805 | --config-cache | -C) | |
806 | cache_file=config.cache ;; | |
795ca3e5 | 807 | |
7a197a62 | 808 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 809 | ac_prev=datadir ;; |
7a197a62 | 810 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 811 | datadir=$ac_optarg ;; |
795ca3e5 | 812 | |
7a197a62 AK |
813 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
814 | | --dataroo | --dataro | --datar) | |
815 | ac_prev=datarootdir ;; | |
816 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
817 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
818 | datarootdir=$ac_optarg ;; | |
819 | ||
795ca3e5 | 820 | -disable-* | --disable-*) |
1995c9ff | 821 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 822 | # Reject names that are not valid shell variable names. |
fc54be10 | 823 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1995c9ff | 824 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
ad6254c5 | 825 | { (exit 1); exit 1; }; } |
fc54be10 | 826 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
1995c9ff | 827 | eval enable_$ac_feature=no ;; |
7a197a62 AK |
828 | |
829 | -docdir | --docdir | --docdi | --doc | --do) | |
830 | ac_prev=docdir ;; | |
831 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
832 | docdir=$ac_optarg ;; | |
833 | ||
834 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
835 | ac_prev=dvidir ;; | |
836 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
837 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
838 | |
839 | -enable-* | --enable-*) | |
1995c9ff | 840 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 841 | # Reject names that are not valid shell variable names. |
fc54be10 | 842 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1995c9ff | 843 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
ad6254c5 | 844 | { (exit 1); exit 1; }; } |
fc54be10 | 845 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
1995c9ff | 846 | eval enable_$ac_feature=\$ac_optarg ;; |
795ca3e5 AK |
847 | |
848 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
849 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
850 | | --exec | --exe | --ex) | |
851 | ac_prev=exec_prefix ;; | |
852 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
853 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
854 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 855 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
856 | |
857 | -gas | --gas | --ga | --g) | |
858 | # Obsolete; use --with-gas. | |
859 | with_gas=yes ;; | |
860 | ||
ad6254c5 AK |
861 | -help | --help | --hel | --he | -h) |
862 | ac_init_help=long ;; | |
863 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
864 | ac_init_help=recursive ;; | |
865 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
866 | ac_init_help=short ;; | |
795ca3e5 AK |
867 | |
868 | -host | --host | --hos | --ho) | |
ad6254c5 | 869 | ac_prev=host_alias ;; |
795ca3e5 | 870 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 871 | host_alias=$ac_optarg ;; |
795ca3e5 | 872 | |
7a197a62 AK |
873 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
874 | ac_prev=htmldir ;; | |
875 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
876 | | --ht=*) | |
877 | htmldir=$ac_optarg ;; | |
878 | ||
795ca3e5 AK |
879 | -includedir | --includedir | --includedi | --included | --include \ |
880 | | --includ | --inclu | --incl | --inc) | |
881 | ac_prev=includedir ;; | |
882 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
883 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 884 | includedir=$ac_optarg ;; |
795ca3e5 AK |
885 | |
886 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
887 | ac_prev=infodir ;; | |
888 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 889 | infodir=$ac_optarg ;; |
795ca3e5 AK |
890 | |
891 | -libdir | --libdir | --libdi | --libd) | |
892 | ac_prev=libdir ;; | |
893 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 894 | libdir=$ac_optarg ;; |
795ca3e5 AK |
895 | |
896 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
897 | | --libexe | --libex | --libe) | |
898 | ac_prev=libexecdir ;; | |
899 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
900 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 901 | libexecdir=$ac_optarg ;; |
795ca3e5 | 902 | |
7a197a62 AK |
903 | -localedir | --localedir | --localedi | --localed | --locale) |
904 | ac_prev=localedir ;; | |
905 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
906 | localedir=$ac_optarg ;; | |
907 | ||
795ca3e5 | 908 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 909 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
910 | ac_prev=localstatedir ;; |
911 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 912 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 913 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
914 | |
915 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
916 | ac_prev=mandir ;; | |
917 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 918 | mandir=$ac_optarg ;; |
795ca3e5 AK |
919 | |
920 | -nfp | --nfp | --nf) | |
921 | # Obsolete; use --without-fp. | |
922 | with_fp=no ;; | |
923 | ||
924 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 925 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
926 | no_create=yes ;; |
927 | ||
928 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
929 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
930 | no_recursion=yes ;; | |
931 | ||
932 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
933 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
934 | | --oldin | --oldi | --old | --ol | --o) | |
935 | ac_prev=oldincludedir ;; | |
936 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
937 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
938 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 939 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
940 | |
941 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
942 | ac_prev=prefix ;; | |
943 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 944 | prefix=$ac_optarg ;; |
795ca3e5 AK |
945 | |
946 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
947 | | --program-pre | --program-pr | --program-p) | |
948 | ac_prev=program_prefix ;; | |
949 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
950 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 951 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
952 | |
953 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
954 | | --program-suf | --program-su | --program-s) | |
955 | ac_prev=program_suffix ;; | |
956 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
957 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 958 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
959 | |
960 | -program-transform-name | --program-transform-name \ | |
961 | | --program-transform-nam | --program-transform-na \ | |
962 | | --program-transform-n | --program-transform- \ | |
963 | | --program-transform | --program-transfor \ | |
964 | | --program-transfo | --program-transf \ | |
965 | | --program-trans | --program-tran \ | |
966 | | --progr-tra | --program-tr | --program-t) | |
967 | ac_prev=program_transform_name ;; | |
968 | -program-transform-name=* | --program-transform-name=* \ | |
969 | | --program-transform-nam=* | --program-transform-na=* \ | |
970 | | --program-transform-n=* | --program-transform-=* \ | |
971 | | --program-transform=* | --program-transfor=* \ | |
972 | | --program-transfo=* | --program-transf=* \ | |
973 | | --program-trans=* | --program-tran=* \ | |
974 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 975 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 976 | |
7a197a62 AK |
977 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
978 | ac_prev=pdfdir ;; | |
979 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
980 | pdfdir=$ac_optarg ;; | |
981 | ||
982 | -psdir | --psdir | --psdi | --psd | --ps) | |
983 | ac_prev=psdir ;; | |
984 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
985 | psdir=$ac_optarg ;; | |
986 | ||
795ca3e5 AK |
987 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
988 | | -silent | --silent | --silen | --sile | --sil) | |
989 | silent=yes ;; | |
990 | ||
991 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
992 | ac_prev=sbindir ;; | |
993 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
994 | | --sbi=* | --sb=*) | |
ad6254c5 | 995 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
996 | |
997 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
998 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
999 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1000 | | --sha | --sh) | |
1001 | ac_prev=sharedstatedir ;; | |
1002 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1003 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1004 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1005 | | --sha=* | --sh=*) | |
ad6254c5 | 1006 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1007 | |
1008 | -site | --site | --sit) | |
1009 | ac_prev=site ;; | |
1010 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1011 | site=$ac_optarg ;; |
795ca3e5 AK |
1012 | |
1013 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1014 | ac_prev=srcdir ;; | |
1015 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1016 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1017 | |
1018 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1019 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1020 | ac_prev=sysconfdir ;; | |
1021 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1022 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1023 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1024 | |
1025 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1026 | ac_prev=target_alias ;; |
795ca3e5 | 1027 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1028 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1029 | |
1030 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1031 | verbose=yes ;; | |
1032 | ||
ad6254c5 AK |
1033 | -version | --version | --versio | --versi | --vers | -V) |
1034 | ac_init_version=: ;; | |
795ca3e5 AK |
1035 | |
1036 | -with-* | --with-*) | |
1995c9ff | 1037 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1038 | # Reject names that are not valid shell variable names. |
fc54be10 | 1039 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1995c9ff | 1040 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
ad6254c5 | 1041 | { (exit 1); exit 1; }; } |
fc54be10 | 1042 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
1995c9ff | 1043 | eval with_$ac_package=\$ac_optarg ;; |
795ca3e5 AK |
1044 | |
1045 | -without-* | --without-*) | |
1995c9ff | 1046 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1047 | # Reject names that are not valid shell variable names. |
fc54be10 | 1048 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1995c9ff | 1049 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
ad6254c5 | 1050 | { (exit 1); exit 1; }; } |
fc54be10 | 1051 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
1995c9ff | 1052 | eval with_$ac_package=no ;; |
795ca3e5 AK |
1053 | |
1054 | --x) | |
1055 | # Obsolete; use --with-x. | |
1056 | with_x=yes ;; | |
1057 | ||
1058 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1059 | | --x-incl | --x-inc | --x-in | --x-i) | |
1060 | ac_prev=x_includes ;; | |
1061 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1062 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1063 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1064 | |
1065 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1066 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1067 | ac_prev=x_libraries ;; | |
1068 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1069 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1070 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1071 | |
1995c9ff | 1072 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1073 | Try \`$0 --help' for more information." >&2 |
1074 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1075 | ;; |
1076 | ||
ad6254c5 AK |
1077 | *=*) |
1078 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1079 | # Reject names that are not valid shell variable names. | |
1080 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1995c9ff | 1081 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1082 | { (exit 1); exit 1; }; } |
7a197a62 | 1083 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1084 | export $ac_envvar ;; |
1085 | ||
795ca3e5 | 1086 | *) |
ad6254c5 | 1087 | # FIXME: should be removed in autoconf 3.0. |
1995c9ff | 1088 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1089 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1995c9ff | 1090 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1091 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1092 | ;; |
1093 | ||
1094 | esac | |
1095 | done | |
1096 | ||
1097 | if test -n "$ac_prev"; then | |
ad6254c5 | 1098 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1995c9ff | 1099 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1100 | { (exit 1); exit 1; }; } |
795ca3e5 | 1101 | fi |
795ca3e5 | 1102 | |
7a197a62 AK |
1103 | # Be sure to have absolute directory names. |
1104 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1105 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1106 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1107 | libdir localedir mandir | |
795ca3e5 | 1108 | do |
7a197a62 | 1109 | eval ac_val=\$$ac_var |
ad6254c5 | 1110 | case $ac_val in |
7a197a62 AK |
1111 | [\\/$]* | ?:[\\/]* ) continue;; |
1112 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1113 | esac |
1995c9ff | 1114 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1115 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1116 | done |
1117 | ||
ad6254c5 AK |
1118 | # There might be people who depend on the old broken behavior: `$host' |
1119 | # used to hold the argument of --host etc. | |
1120 | # FIXME: To remove some day. | |
1121 | build=$build_alias | |
1122 | host=$host_alias | |
1123 | target=$target_alias | |
1124 | ||
1125 | # FIXME: To remove some day. | |
1126 | if test "x$host_alias" != x; then | |
1127 | if test "x$build_alias" = x; then | |
1128 | cross_compiling=maybe | |
1995c9ff | 1129 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1130 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1131 | elif test "x$build_alias" != "x$host_alias"; then | |
1132 | cross_compiling=yes | |
1133 | fi | |
1134 | fi | |
8106cdd5 | 1135 | |
ad6254c5 AK |
1136 | ac_tool_prefix= |
1137 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1138 | ||
1139 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1140 | |
795ca3e5 | 1141 | |
7a197a62 AK |
1142 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1143 | ac_ls_di=`ls -di .` && | |
1144 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1995c9ff | 1145 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
7a197a62 AK |
1146 | { (exit 1); exit 1; }; } |
1147 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1995c9ff | 1148 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1149 | { (exit 1); exit 1; }; } |
1150 | ||
1151 | ||
795ca3e5 AK |
1152 | # Find the source files, if location was not specified. |
1153 | if test -z "$srcdir"; then | |
1154 | ac_srcdir_defaulted=yes | |
7a197a62 AK |
1155 | # Try the directory containing this script, then the parent directory. |
1156 | ac_confdir=`$as_dirname -- "$0" || | |
ad6254c5 | 1157 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
1158 | X"$0" : 'X\(//\)[^/]' \| \ |
1159 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 1160 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1995c9ff | 1161 | echo X"$0" | |
7a197a62 AK |
1162 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1163 | s//\1/ | |
1164 | q | |
1165 | } | |
1166 | /^X\(\/\/\)[^/].*/{ | |
1167 | s//\1/ | |
1168 | q | |
1169 | } | |
1170 | /^X\(\/\/\)$/{ | |
1171 | s//\1/ | |
1172 | q | |
1173 | } | |
1174 | /^X\(\/\).*/{ | |
1175 | s//\1/ | |
1176 | q | |
1177 | } | |
1178 | s/.*/./; q'` | |
795ca3e5 | 1179 | srcdir=$ac_confdir |
7a197a62 | 1180 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1181 | srcdir=.. |
1182 | fi | |
1183 | else | |
1184 | ac_srcdir_defaulted=no | |
1185 | fi | |
7a197a62 AK |
1186 | if test ! -r "$srcdir/$ac_unique_file"; then |
1187 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1995c9ff | 1188 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1189 | { (exit 1); exit 1; }; } |
795ca3e5 | 1190 | fi |
7a197a62 AK |
1191 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1192 | ac_abs_confdir=`( | |
1995c9ff | 1193 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1194 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1195 | pwd)` |
1196 | # When building in place, set srcdir=. | |
1197 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1198 | srcdir=. | |
1199 | fi | |
1200 | # Remove unnecessary trailing slashes from srcdir. | |
1201 | # Double slashes in file names in object file debugging info | |
1202 | # mess up M-x gdb in Emacs. | |
1203 | case $srcdir in | |
1204 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1205 | esac | |
1206 | for ac_var in $ac_precious_vars; do | |
1207 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1208 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1209 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1210 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1211 | done | |
ad6254c5 AK |
1212 | |
1213 | # | |
1214 | # Report the --help message. | |
1215 | # | |
1216 | if test "$ac_init_help" = "long"; then | |
1217 | # Omit some internal or obsolete options to make the list less imposing. | |
1218 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1219 | cat <<_ACEOF | |
1220 | \`configure' configures this package to adapt to many kinds of systems. | |
1221 | ||
1222 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1223 | ||
1224 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1225 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1226 | ||
1227 | Defaults for the options are specified in brackets. | |
1228 | ||
1229 | Configuration: | |
1230 | -h, --help display this help and exit | |
1231 | --help=short display options specific to this package | |
1232 | --help=recursive display the short help of all the included packages | |
1233 | -V, --version display version information and exit | |
1234 | -q, --quiet, --silent do not print \`checking...' messages | |
1235 | --cache-file=FILE cache test results in FILE [disabled] | |
1236 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1237 | -n, --no-create do not create output files | |
1238 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1239 | ||
ad6254c5 AK |
1240 | Installation directories: |
1241 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8a2fc586 | 1242 | [$ac_default_prefix] |
ad6254c5 | 1243 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8a2fc586 | 1244 | [PREFIX] |
ad6254c5 AK |
1245 | |
1246 | By default, \`make install' will install all the files in | |
1247 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1248 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1249 | for instance \`--prefix=\$HOME'. | |
1250 | ||
1251 | For better control, use the options below. | |
1252 | ||
1253 | Fine tuning of the installation directories: | |
1254 | --bindir=DIR user executables [EPREFIX/bin] | |
1255 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1256 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
ad6254c5 AK |
1257 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1258 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1259 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1260 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1261 | --includedir=DIR C header files [PREFIX/include] | |
1262 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
7a197a62 AK |
1263 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1264 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1265 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1266 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1267 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1268 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1269 | --htmldir=DIR html documentation [DOCDIR] | |
1270 | --dvidir=DIR dvi documentation [DOCDIR] | |
1271 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1272 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1273 | _ACEOF |
1274 | ||
1275 | cat <<\_ACEOF | |
1276 | ||
1277 | System types: | |
1278 | --build=BUILD configure for building on BUILD [guessed] | |
1279 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1280 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1281 | _ACEOF | |
1282 | fi | |
1283 | ||
1284 | if test -n "$ac_init_help"; then | |
1285 | ||
1286 | cat <<\_ACEOF | |
1287 | ||
1288 | Optional Features: | |
1289 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1290 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1291 | --enable-jobs=NUM Number of jobs to run simultaneously | |
1292 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if | |
1293 | device-mapper is missing from the kernel | |
1294 | --enable-static_link Use this to link the tools to their libraries | |
1295 | statically. Default is dynamic linking | |
1296 | --enable-readline Enable readline support | |
1297 | --disable-selinux Disable selinux support | |
3d978351 | 1298 | --disable-realtime Disable realtime clock support |
ad6254c5 AK |
1299 | --enable-debug Enable debugging |
1300 | --disable-devmapper Disable device-mapper interaction | |
1301 | --disable-o_direct Disable O_DIRECT | |
1302 | --enable-cmdlib Build shared command library | |
1303 | --enable-fsadm Enable fsadm | |
15d91f5a | 1304 | --enable-dmeventd Enable the device-mapper event daemon |
ad6254c5 AK |
1305 | --enable-nls Enable Native Language Support |
1306 | ||
1307 | Optional Packages: | |
1308 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1309 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1310 | --with-user=USER Set the owner of installed files | |
1311 | --with-group=GROUP Set the group owner of installed files | |
1312 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none | |
1313 | TYPE=internal | |
1314 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
1315 | TYPE=internal | |
1316 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
1317 | TYPE=internal | |
1318 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
1319 | TYPE=internal | |
1320 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
1321 | TYPE=internal | |
5c7fc7c4 | 1322 | --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all |
a266258f | 1323 | TYPE=none |
ad6254c5 AK |
1324 | --with-optimisation=OPT C optimisation flag OPT=-O2 |
1325 | --with-localedir=DIR Translation files in DIR PREFIX/share/locale | |
1326 | --with-confdir=DIR Configuration files in DIR /etc | |
1327 | --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin | |
33f732c5 | 1328 | --with-dmdir=DIR Build against device-mapper source tree in DIR |
ad6254c5 AK |
1329 | |
1330 | Some influential environment variables: | |
1331 | CC C compiler command | |
1332 | CFLAGS C compiler flags | |
1333 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1334 | nonstandard directory <lib dir> | |
7a197a62 AK |
1335 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1336 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 AK |
1337 | CPP C preprocessor |
1338 | ||
1339 | Use these variables to override the choices made by `configure' or to help | |
1340 | it to find libraries and programs with nonstandard names/locations. | |
1341 | ||
1342 | _ACEOF | |
7a197a62 | 1343 | ac_status=$? |
ad6254c5 AK |
1344 | fi |
1345 | ||
1346 | if test "$ac_init_help" = "recursive"; then | |
1347 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1348 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
7a197a62 | 1349 | test -d "$ac_dir" || continue |
ad6254c5 AK |
1350 | ac_builddir=. |
1351 | ||
7a197a62 AK |
1352 | case "$ac_dir" in |
1353 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1354 | *) | |
1995c9ff | 1355 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7a197a62 | 1356 | # A ".." for each directory in $ac_dir_suffix. |
1995c9ff | 1357 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
7a197a62 AK |
1358 | case $ac_top_builddir_sub in |
1359 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1360 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1361 | esac ;; | |
1362 | esac | |
1363 | ac_abs_top_builddir=$ac_pwd | |
1364 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1365 | # for backward compatibility: | |
1366 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1367 | |
1368 | case $srcdir in | |
7a197a62 | 1369 | .) # We are building in place. |
ad6254c5 | 1370 | ac_srcdir=. |
7a197a62 AK |
1371 | ac_top_srcdir=$ac_top_builddir_sub |
1372 | ac_abs_top_srcdir=$ac_pwd ;; | |
1373 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1374 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1375 | ac_top_srcdir=$srcdir |
1376 | ac_abs_top_srcdir=$srcdir ;; | |
1377 | *) # Relative name. | |
1378 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1379 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1380 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1381 | esac |
7a197a62 AK |
1382 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1383 | ||
1384 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1385 | # Check for guested configure. | |
1386 | if test -f "$ac_srcdir/configure.gnu"; then | |
1387 | echo && | |
1388 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1389 | elif test -f "$ac_srcdir/configure"; then | |
1390 | echo && | |
1391 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1392 | else |
1995c9ff | 1393 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1394 | fi || ac_status=$? |
1395 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1396 | done |
1397 | fi | |
1398 | ||
7a197a62 | 1399 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1400 | if $ac_init_version; then |
1401 | cat <<\_ACEOF | |
7a197a62 | 1402 | configure |
fc54be10 | 1403 | generated by GNU Autoconf 2.60 |
ad6254c5 | 1404 | |
7a197a62 AK |
1405 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1406 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
ad6254c5 AK |
1407 | This configure script is free software; the Free Software Foundation |
1408 | gives unlimited permission to copy, distribute and modify it. | |
1409 | _ACEOF | |
7a197a62 | 1410 | exit |
ad6254c5 | 1411 | fi |
7a197a62 | 1412 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1413 | This file contains any messages produced by compilers while |
1414 | running configure, to aid debugging if configure makes a mistake. | |
1415 | ||
1416 | It was created by $as_me, which was | |
fc54be10 | 1417 | generated by GNU Autoconf 2.60. Invocation command line was |
ad6254c5 AK |
1418 | |
1419 | $ $0 $@ | |
1420 | ||
1421 | _ACEOF | |
7a197a62 | 1422 | exec 5>>config.log |
ad6254c5 AK |
1423 | { |
1424 | cat <<_ASUNAME | |
1425 | ## --------- ## | |
1426 | ## Platform. ## | |
1427 | ## --------- ## | |
1428 | ||
1429 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1430 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1431 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1432 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1433 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1434 | ||
1435 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1436 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1437 | ||
1438 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1439 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1440 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1441 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1442 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1443 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1444 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1445 | ||
1446 | _ASUNAME | |
1447 | ||
1448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1449 | for as_dir in $PATH | |
1450 | do | |
1451 | IFS=$as_save_IFS | |
1452 | test -z "$as_dir" && as_dir=. | |
1995c9ff | 1453 | echo "PATH: $as_dir" |
ad6254c5 | 1454 | done |
7a197a62 | 1455 | IFS=$as_save_IFS |
ad6254c5 AK |
1456 | |
1457 | } >&5 | |
1458 | ||
1459 | cat >&5 <<_ACEOF | |
1460 | ||
1461 | ||
1462 | ## ----------- ## | |
1463 | ## Core tests. ## | |
1464 | ## ----------- ## | |
1465 | ||
1466 | _ACEOF | |
1467 | ||
1468 | ||
1469 | # Keep a trace of the command line. | |
1470 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1471 | # Strip out --silent because we don't want to record it for future runs. | |
1472 | # Also quote any args containing shell meta-characters. | |
1473 | # Make two passes to allow for proper duplicate-argument suppression. | |
1474 | ac_configure_args= | |
1475 | ac_configure_args0= | |
1476 | ac_configure_args1= | |
ad6254c5 AK |
1477 | ac_must_keep_next=false |
1478 | for ac_pass in 1 2 | |
1479 | do | |
1480 | for ac_arg | |
1481 | do | |
1482 | case $ac_arg in | |
1483 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1484 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1485 | | -silent | --silent | --silen | --sile | --sil) | |
1486 | continue ;; | |
7a197a62 | 1487 | *\'*) |
1995c9ff | 1488 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1489 | esac |
1490 | case $ac_pass in | |
1491 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1492 | 2) | |
1493 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1494 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1495 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1496 | else |
8a2fc586 AK |
1497 | case $ac_arg in |
1498 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1499 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1500 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1501 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1502 | case "$ac_configure_args0 " in | |
1503 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1504 | esac | |
1505 | ;; | |
1506 | -* ) ac_must_keep_next=true ;; | |
1507 | esac | |
ad6254c5 | 1508 | fi |
7a197a62 | 1509 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1510 | ;; |
1511 | esac | |
1512 | done | |
1513 | done | |
1514 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1515 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1516 | ||
1517 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1518 | # config.log. We remove comments because anyway the quotes in there | |
1519 | # would cause problems or look ugly. | |
7a197a62 AK |
1520 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1521 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1522 | trap 'exit_status=$? |
1523 | # Save into config.log some information that might help in debugging. | |
1524 | { | |
1525 | echo | |
1526 | ||
1527 | cat <<\_ASBOX | |
1528 | ## ---------------- ## | |
1529 | ## Cache variables. ## | |
1530 | ## ---------------- ## | |
1531 | _ASBOX | |
1532 | echo | |
1533 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1534 | ( |
1535 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1536 | eval ac_val=\$$ac_var | |
1537 | case $ac_val in #( | |
1538 | *${as_nl}*) | |
1539 | case $ac_var in #( | |
1995c9ff AK |
1540 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1541 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
7a197a62 AK |
1542 | esac |
1543 | case $ac_var in #( | |
1544 | _ | IFS | as_nl) ;; #( | |
1545 | *) $as_unset $ac_var ;; | |
1546 | esac ;; | |
1547 | esac | |
1548 | done | |
ad6254c5 | 1549 | (set) 2>&1 | |
7a197a62 AK |
1550 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1551 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1552 | sed -n \ |
7a197a62 AK |
1553 | "s/'\''/'\''\\\\'\'''\''/g; |
1554 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1555 | ;; #( | |
ad6254c5 | 1556 | *) |
7a197a62 | 1557 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1558 | ;; |
7a197a62 AK |
1559 | esac | |
1560 | sort | |
1561 | ) | |
ad6254c5 AK |
1562 | echo |
1563 | ||
1564 | cat <<\_ASBOX | |
1565 | ## ----------------- ## | |
1566 | ## Output variables. ## | |
1567 | ## ----------------- ## | |
1568 | _ASBOX | |
1569 | echo | |
1570 | for ac_var in $ac_subst_vars | |
1571 | do | |
7a197a62 AK |
1572 | eval ac_val=\$$ac_var |
1573 | case $ac_val in | |
1995c9ff | 1574 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1575 | esac |
1995c9ff | 1576 | echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1577 | done | sort |
1578 | echo | |
1579 | ||
1580 | if test -n "$ac_subst_files"; then | |
1581 | cat <<\_ASBOX | |
7a197a62 AK |
1582 | ## ------------------- ## |
1583 | ## File substitutions. ## | |
1584 | ## ------------------- ## | |
ad6254c5 AK |
1585 | _ASBOX |
1586 | echo | |
1587 | for ac_var in $ac_subst_files | |
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 | fi | |
1597 | ||
1598 | if test -s confdefs.h; then | |
1599 | cat <<\_ASBOX | |
1600 | ## ----------- ## | |
1601 | ## confdefs.h. ## | |
1602 | ## ----------- ## | |
1603 | _ASBOX | |
1604 | echo | |
7a197a62 | 1605 | cat confdefs.h |
ad6254c5 AK |
1606 | echo |
1607 | fi | |
1608 | test "$ac_signal" != 0 && | |
1995c9ff AK |
1609 | echo "$as_me: caught signal $ac_signal" |
1610 | echo "$as_me: exit $exit_status" | |
ad6254c5 | 1611 | } >&5 |
7a197a62 AK |
1612 | rm -f core *.core core.conftest.* && |
1613 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1614 | exit $exit_status |
7a197a62 | 1615 | ' 0 |
ad6254c5 AK |
1616 | for ac_signal in 1 2 13 15; do |
1617 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1618 | done | |
1619 | ac_signal=0 | |
1620 | ||
1621 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1622 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1623 | |
1624 | # Predefined preprocessor variables. | |
1625 | ||
1626 | cat >>confdefs.h <<_ACEOF | |
1627 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1628 | _ACEOF | |
1629 | ||
1630 | ||
1631 | cat >>confdefs.h <<_ACEOF | |
1632 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1633 | _ACEOF | |
1634 | ||
1635 | ||
1636 | cat >>confdefs.h <<_ACEOF | |
1637 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1638 | _ACEOF | |
8106cdd5 | 1639 | |
ad6254c5 AK |
1640 | |
1641 | cat >>confdefs.h <<_ACEOF | |
1642 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1643 | _ACEOF | |
1644 | ||
1645 | ||
1646 | cat >>confdefs.h <<_ACEOF | |
1647 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1648 | _ACEOF | |
1649 | ||
1650 | ||
1651 | # Let the site file select an alternate cache file if it wants to. | |
795ca3e5 | 1652 | # Prefer explicitly selected file to automatically selected ones. |
7a197a62 AK |
1653 | if test -n "$CONFIG_SITE"; then |
1654 | set x "$CONFIG_SITE" | |
1655 | elif test "x$prefix" != xNONE; then | |
1656 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1657 | else | |
1658 | set x "$ac_default_prefix/share/config.site" \ | |
1659 | "$ac_default_prefix/etc/config.site" | |
795ca3e5 | 1660 | fi |
7a197a62 AK |
1661 | shift |
1662 | for ac_site_file | |
1663 | do | |
795ca3e5 | 1664 | if test -r "$ac_site_file"; then |
1995c9ff AK |
1665 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1666 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1667 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1668 | . "$ac_site_file" |
1669 | fi | |
1670 | done | |
1671 | ||
1672 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1673 | # Some versions of bash will fail to source /dev/null (special |
1674 | # files actually), so we avoid doing that. | |
1675 | if test -f "$cache_file"; then | |
1995c9ff AK |
1676 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1677 | echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 1678 | case $cache_file in |
7a197a62 AK |
1679 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1680 | *) . "./$cache_file";; | |
ad6254c5 AK |
1681 | esac |
1682 | fi | |
795ca3e5 | 1683 | else |
1995c9ff AK |
1684 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1685 | echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
1686 | >$cache_file |
1687 | fi | |
1688 | ||
1689 | # Check that the precious variables saved in the cache have kept the same | |
1690 | # value. | |
1691 | ac_cache_corrupted=false | |
7a197a62 | 1692 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
1693 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1694 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
1695 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1696 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
1697 | case $ac_old_set,$ac_new_set in |
1698 | set,) | |
1995c9ff AK |
1699 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1700 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
1701 | ac_cache_corrupted=: ;; |
1702 | ,set) | |
1995c9ff AK |
1703 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1704 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
1705 | ac_cache_corrupted=: ;; |
1706 | ,);; | |
1707 | *) | |
1708 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1995c9ff AK |
1709 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1710 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1711 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1712 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1713 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1714 | echo "$as_me: current value: $ac_new_val" >&2;} | |
8a2fc586 | 1715 | ac_cache_corrupted=: |
ad6254c5 AK |
1716 | fi;; |
1717 | esac | |
1718 | # Pass precious variables to config.status. | |
1719 | if test "$ac_new_set" = set; then | |
1720 | case $ac_new_val in | |
1995c9ff | 1721 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1722 | *) ac_arg=$ac_var=$ac_new_val ;; |
1723 | esac | |
1724 | case " $ac_configure_args " in | |
1725 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1726 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1727 | esac | |
1728 | fi | |
1729 | done | |
1730 | if $ac_cache_corrupted; then | |
1995c9ff AK |
1731 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1732 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1733 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1734 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 1735 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1736 | fi |
1737 | ||
ad6254c5 AK |
1738 | |
1739 | ||
1740 | ||
1741 | ||
1742 | ||
1743 | ||
1744 | ||
1745 | ||
1746 | ||
1747 | ||
1748 | ||
1749 | ||
1750 | ||
1751 | ||
1752 | ||
1753 | ||
7a197a62 AK |
1754 | ac_ext=c |
1755 | ac_cpp='$CPP $CPPFLAGS' | |
1756 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1757 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1758 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 1759 | |
795ca3e5 AK |
1760 | |
1761 | ||
1762 | ||
72b2cb61 | 1763 | ################################################################################ |
7a197a62 | 1764 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
1765 | |
1766 | ||
80992638 | 1767 | ################################################################################ |
795ca3e5 | 1768 | ac_aux_dir= |
7a197a62 AK |
1769 | for ac_dir in autoconf "$srcdir"/autoconf; do |
1770 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
1771 | ac_aux_dir=$ac_dir |
1772 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1773 | break | |
7a197a62 | 1774 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
1775 | ac_aux_dir=$ac_dir |
1776 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1777 | break | |
7a197a62 | 1778 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
1779 | ac_aux_dir=$ac_dir |
1780 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1781 | break | |
795ca3e5 AK |
1782 | fi |
1783 | done | |
1784 | if test -z "$ac_aux_dir"; then | |
1995c9ff AK |
1785 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
1786 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 1787 | { (exit 1); exit 1; }; } |
795ca3e5 | 1788 | fi |
7a197a62 AK |
1789 | |
1790 | # These three variables are undocumented and unsupported, | |
1791 | # and are intended to be withdrawn in a future Autoconf release. | |
1792 | # They can cause serious problems if a builder's source tree is in a directory | |
1793 | # whose full name contains unusual characters. | |
1794 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1795 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1796 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1797 | ||
8ce0cbda AK |
1798 | |
1799 | ||
ad6254c5 | 1800 | ################################################################################ |
8ce0cbda | 1801 | # Make sure we can run config.sub. |
7a197a62 | 1802 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
1995c9ff AK |
1803 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
1804 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
1805 | { (exit 1); exit 1; }; } |
1806 | ||
1995c9ff AK |
1807 | { echo "$as_me:$LINENO: checking build system type" >&5 |
1808 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
ad6254c5 | 1809 | if test "${ac_cv_build+set}" = set; then |
1995c9ff | 1810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 1811 | else |
7a197a62 AK |
1812 | ac_build_alias=$build_alias |
1813 | test "x$ac_build_alias" = x && | |
1814 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
1815 | test "x$ac_build_alias" = x && | |
1995c9ff AK |
1816 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1817 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 1818 | { (exit 1); exit 1; }; } |
7a197a62 | 1819 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
1995c9ff AK |
1820 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
1821 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
1822 | { (exit 1); exit 1; }; } |
1823 | ||
1824 | fi | |
1995c9ff AK |
1825 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1826 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
7a197a62 AK |
1827 | case $ac_cv_build in |
1828 | *-*-*) ;; | |
1995c9ff AK |
1829 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
1830 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
1831 | { (exit 1); exit 1; }; };; |
1832 | esac | |
ad6254c5 | 1833 | build=$ac_cv_build |
7a197a62 AK |
1834 | ac_save_IFS=$IFS; IFS='-' |
1835 | set x $ac_cv_build | |
1836 | shift | |
1837 | build_cpu=$1 | |
1838 | build_vendor=$2 | |
1839 | shift; shift | |
1840 | # Remember, the first character of IFS is used to create $*, | |
1841 | # except with old shells: | |
1842 | build_os=$* | |
1843 | IFS=$ac_save_IFS | |
1844 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
1845 | |
1846 | ||
1995c9ff AK |
1847 | { echo "$as_me:$LINENO: checking host system type" >&5 |
1848 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
ad6254c5 | 1849 | if test "${ac_cv_host+set}" = set; then |
1995c9ff | 1850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 1851 | else |
7a197a62 AK |
1852 | if test "x$host_alias" = x; then |
1853 | ac_cv_host=$ac_cv_build | |
1854 | else | |
1855 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
1995c9ff AK |
1856 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
1857 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 1858 | { (exit 1); exit 1; }; } |
7a197a62 | 1859 | fi |
ad6254c5 AK |
1860 | |
1861 | fi | |
1995c9ff AK |
1862 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1863 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
7a197a62 AK |
1864 | case $ac_cv_host in |
1865 | *-*-*) ;; | |
1995c9ff AK |
1866 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
1867 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
1868 | { (exit 1); exit 1; }; };; |
1869 | esac | |
ad6254c5 | 1870 | host=$ac_cv_host |
7a197a62 AK |
1871 | ac_save_IFS=$IFS; IFS='-' |
1872 | set x $ac_cv_host | |
1873 | shift | |
1874 | host_cpu=$1 | |
1875 | host_vendor=$2 | |
1876 | shift; shift | |
1877 | # Remember, the first character of IFS is used to create $*, | |
1878 | # except with old shells: | |
1879 | host_os=$* | |
1880 | IFS=$ac_save_IFS | |
1881 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
1882 | |
1883 | ||
1995c9ff AK |
1884 | { echo "$as_me:$LINENO: checking target system type" >&5 |
1885 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } | |
ad6254c5 | 1886 | if test "${ac_cv_target+set}" = set; then |
1995c9ff | 1887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 1888 | else |
7a197a62 AK |
1889 | if test "x$target_alias" = x; then |
1890 | ac_cv_target=$ac_cv_host | |
1891 | else | |
1892 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
1995c9ff AK |
1893 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
1894 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 1895 | { (exit 1); exit 1; }; } |
7a197a62 | 1896 | fi |
8ce0cbda | 1897 | |
ad6254c5 | 1898 | fi |
1995c9ff AK |
1899 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
1900 | echo "${ECHO_T}$ac_cv_target" >&6; } | |
7a197a62 AK |
1901 | case $ac_cv_target in |
1902 | *-*-*) ;; | |
1995c9ff AK |
1903 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
1904 | echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
1905 | { (exit 1); exit 1; }; };; |
1906 | esac | |
ad6254c5 | 1907 | target=$ac_cv_target |
7a197a62 AK |
1908 | ac_save_IFS=$IFS; IFS='-' |
1909 | set x $ac_cv_target | |
1910 | shift | |
1911 | target_cpu=$1 | |
1912 | target_vendor=$2 | |
1913 | shift; shift | |
1914 | # Remember, the first character of IFS is used to create $*, | |
1915 | # except with old shells: | |
1916 | target_os=$* | |
1917 | IFS=$ac_save_IFS | |
1918 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 1919 | |
8ce0cbda | 1920 | |
ad6254c5 AK |
1921 | # The aliases save the names the user supplied, while $host etc. |
1922 | # will get canonicalized. | |
1923 | test -n "$target_alias" && | |
8ce0cbda AK |
1924 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1925 | NONENONEs,x,x, && | |
1926 | program_prefix=${target_alias}- | |
1927 | ||
8ce0cbda AK |
1928 | case "$host_os" in |
1929 | linux*) | |
1930 | CFLAGS="$CFLAGS" | |
1931 | COPTIMISE_FLAG="-O2" | |
1932 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
1933 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
1934 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
1935 | LDDEPS="$LDDEPS .export.sym" | |
1936 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
e4c11ad1 | 1937 | LIB_SUFFIX="so" |
8ce0cbda AK |
1938 | DEVMAPPER=yes |
1939 | ODIRECT=yes | |
1940 | SELINUX=yes | |
8b1a3214 | 1941 | REALTIME=yes |
8ce0cbda AK |
1942 | CLUSTER=internal |
1943 | FSADM=no ;; | |
1944 | darwin*) | |
1945 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
1946 | COPTIMISE_FLAG="-O2" | |
1947 | CLDFLAGS="$CLDFLAGS" | |
1948 | CLDWHOLEARCHIVE="-all_load" | |
1949 | CLDNOWHOLEARCHIVE= | |
1950 | LDDEPS="$LDDEPS" | |
1951 | LDFLAGS="$LDFLAGS" | |
e4c11ad1 | 1952 | LIB_SUFFIX="dylib" |
a653923f | 1953 | DEVMAPPER=yes |
8ce0cbda AK |
1954 | ODIRECT=no |
1955 | SELINUX=no | |
8b1a3214 | 1956 | REALTIME=no |
8ce0cbda AK |
1957 | CLUSTER=none |
1958 | FSADM=no ;; | |
1959 | esac | |
1960 | ||
80992638 | 1961 | ################################################################################ |
ad6254c5 | 1962 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 1963 | do |
ad6254c5 | 1964 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 1965 | set dummy $ac_prog; ac_word=$2 |
1995c9ff AK |
1966 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1967 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 1968 | if test "${ac_cv_prog_AWK+set}" = set; then |
1995c9ff | 1969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
1970 | else |
1971 | if test -n "$AWK"; then | |
1972 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1973 | else | |
ad6254c5 AK |
1974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1975 | for as_dir in $PATH | |
1976 | do | |
1977 | IFS=$as_save_IFS | |
1978 | test -z "$as_dir" && as_dir=. | |
1979 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc54be10 | 1980 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 1981 | ac_cv_prog_AWK="$ac_prog" |
1995c9ff | 1982 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
1983 | break 2 |
1984 | fi | |
1985 | done | |
1986 | done | |
7a197a62 | 1987 | IFS=$as_save_IFS |
ad6254c5 | 1988 | |
795ca3e5 AK |
1989 | fi |
1990 | fi | |
ad6254c5 | 1991 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 1992 | if test -n "$AWK"; then |
1995c9ff AK |
1993 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
1994 | echo "${ECHO_T}$AWK" >&6; } | |
795ca3e5 | 1995 | else |
1995c9ff AK |
1996 | { echo "$as_me:$LINENO: result: no" >&5 |
1997 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
1998 | fi |
1999 | ||
7a197a62 | 2000 | |
ad6254c5 AK |
2001 | test -n "$AWK" && break |
2002 | done | |
2003 | ||
2004 | ac_ext=c | |
2005 | ac_cpp='$CPP $CPPFLAGS' | |
2006 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2007 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2008 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2009 | if test -n "$ac_tool_prefix"; then | |
2010 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2011 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1995c9ff AK |
2012 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2013 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2014 | if test "${ac_cv_prog_CC+set}" = set; then |
1995c9ff | 2015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2016 | else |
2017 | if test -n "$CC"; then | |
2018 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2019 | else | |
2020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2021 | for as_dir in $PATH | |
2022 | do | |
2023 | IFS=$as_save_IFS | |
2024 | test -z "$as_dir" && as_dir=. | |
2025 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc54be10 | 2026 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2027 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1995c9ff | 2028 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2029 | break 2 |
2030 | fi | |
2031 | done | |
8106cdd5 | 2032 | done |
7a197a62 | 2033 | IFS=$as_save_IFS |
8106cdd5 | 2034 | |
ad6254c5 AK |
2035 | fi |
2036 | fi | |
2037 | CC=$ac_cv_prog_CC | |
2038 | if test -n "$CC"; then | |
1995c9ff AK |
2039 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2040 | echo "${ECHO_T}$CC" >&6; } | |
ad6254c5 | 2041 | else |
1995c9ff AK |
2042 | { echo "$as_me:$LINENO: result: no" >&5 |
2043 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2044 | fi |
2045 | ||
7a197a62 | 2046 | |
ad6254c5 AK |
2047 | fi |
2048 | if test -z "$ac_cv_prog_CC"; then | |
2049 | ac_ct_CC=$CC | |
2050 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2051 | set dummy gcc; ac_word=$2 |
1995c9ff AK |
2052 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2053 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2054 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1995c9ff | 2055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2056 | else |
2057 | if test -n "$ac_ct_CC"; then | |
2058 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2059 | else | |
2060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2061 | for as_dir in $PATH | |
2062 | do | |
2063 | IFS=$as_save_IFS | |
2064 | test -z "$as_dir" && as_dir=. | |
2065 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc54be10 | 2066 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2067 | ac_cv_prog_ac_ct_CC="gcc" |
1995c9ff | 2068 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2069 | break 2 |
2070 | fi | |
2071 | done | |
2072 | done | |
7a197a62 | 2073 | IFS=$as_save_IFS |
ad6254c5 AK |
2074 | |
2075 | fi | |
2076 | fi | |
2077 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2078 | if test -n "$ac_ct_CC"; then | |
1995c9ff AK |
2079 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2080 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
ad6254c5 | 2081 | else |
1995c9ff AK |
2082 | { echo "$as_me:$LINENO: result: no" >&5 |
2083 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2084 | fi |
2085 | ||
7a197a62 AK |
2086 | if test "x$ac_ct_CC" = x; then |
2087 | CC="" | |
2088 | else | |
2089 | case $cross_compiling:$ac_tool_warned in | |
2090 | yes:) | |
1995c9ff | 2091 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2092 | whose name does not start with the host triplet. If you think this |
2093 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
1995c9ff | 2094 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2095 | whose name does not start with the host triplet. If you think this |
2096 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2097 | ac_tool_warned=yes ;; | |
2098 | esac | |
2099 | CC=$ac_ct_CC | |
2100 | fi | |
ad6254c5 AK |
2101 | else |
2102 | CC="$ac_cv_prog_CC" | |
2103 | fi | |
2104 | ||
2105 | if test -z "$CC"; then | |
7a197a62 AK |
2106 | if test -n "$ac_tool_prefix"; then |
2107 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2108 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1995c9ff AK |
2109 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2110 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2111 | if test "${ac_cv_prog_CC+set}" = set; then |
1995c9ff | 2112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 AK |
2113 | else |
2114 | if test -n "$CC"; then | |
2115 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2116 | else | |
ad6254c5 AK |
2117 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2118 | for as_dir in $PATH | |
2119 | do | |
2120 | IFS=$as_save_IFS | |
2121 | test -z "$as_dir" && as_dir=. | |
2122 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc54be10 | 2123 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2124 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1995c9ff | 2125 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2126 | break 2 |
2127 | fi | |
2128 | done | |
2129 | done | |
7a197a62 | 2130 | IFS=$as_save_IFS |
ad6254c5 | 2131 | |
8106cdd5 AK |
2132 | fi |
2133 | fi | |
ad6254c5 | 2134 | CC=$ac_cv_prog_CC |
8106cdd5 | 2135 | if test -n "$CC"; then |
1995c9ff AK |
2136 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2137 | echo "${ECHO_T}$CC" >&6; } | |
ad6254c5 | 2138 | else |
1995c9ff AK |
2139 | { echo "$as_me:$LINENO: result: no" >&5 |
2140 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2141 | fi |
2142 | ||
8106cdd5 | 2143 | |
7a197a62 | 2144 | fi |
ad6254c5 | 2145 | fi |
795ca3e5 AK |
2146 | if test -z "$CC"; then |
2147 | # Extract the first word of "cc", so it can be a program name with args. | |
2148 | set dummy cc; ac_word=$2 | |
1995c9ff AK |
2149 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2150 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2151 | if test "${ac_cv_prog_CC+set}" = set; then |
1995c9ff | 2152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
2153 | else |
2154 | if test -n "$CC"; then | |
2155 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2156 | else | |
795ca3e5 | 2157 | ac_prog_rejected=no |
ad6254c5 AK |
2158 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2159 | for as_dir in $PATH | |
2160 | do | |
2161 | IFS=$as_save_IFS | |
2162 | test -z "$as_dir" && as_dir=. | |
2163 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc54be10 | 2164 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2165 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2166 | ac_prog_rejected=yes | |
2167 | continue | |
2168 | fi | |
2169 | ac_cv_prog_CC="cc" | |
1995c9ff | 2170 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2171 | break 2 |
2172 | fi | |
2173 | done | |
2174 | done | |
7a197a62 | 2175 | IFS=$as_save_IFS |
ad6254c5 | 2176 | |
795ca3e5 AK |
2177 | if test $ac_prog_rejected = yes; then |
2178 | # We found a bogon in the path, so make sure we never use it. | |
2179 | set dummy $ac_cv_prog_CC | |
2180 | shift | |
ad6254c5 | 2181 | if test $# != 0; then |
795ca3e5 AK |
2182 | # We chose a different compiler from the bogus one. |
2183 | # However, it has the same basename, so the bogon will be chosen | |
2184 | # first if we set CC to just the basename; use the full file name. | |
2185 | shift | |
ad6254c5 | 2186 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2187 | fi |
2188 | fi | |
2189 | fi | |
2190 | fi | |
ad6254c5 | 2191 | CC=$ac_cv_prog_CC |
795ca3e5 | 2192 | if test -n "$CC"; then |
1995c9ff AK |
2193 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2194 | echo "${ECHO_T}$CC" >&6; } | |
795ca3e5 | 2195 | else |
1995c9ff AK |
2196 | { echo "$as_me:$LINENO: result: no" >&5 |
2197 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2198 | fi |
2199 | ||
7a197a62 | 2200 | |
ad6254c5 AK |
2201 | fi |
2202 | if test -z "$CC"; then | |
2203 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2204 | for ac_prog in cl.exe |
ad6254c5 AK |
2205 | do |
2206 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2207 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1995c9ff AK |
2208 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2209 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2210 | if test "${ac_cv_prog_CC+set}" = set; then |
1995c9ff | 2211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
2212 | else |
2213 | if test -n "$CC"; then | |
2214 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2215 | else | |
ad6254c5 AK |
2216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2217 | for as_dir in $PATH | |
2218 | do | |
2219 | IFS=$as_save_IFS | |
2220 | test -z "$as_dir" && as_dir=. | |
2221 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc54be10 | 2222 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2223 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1995c9ff | 2224 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2225 | break 2 |
2226 | fi | |
2227 | done | |
2228 | done | |
7a197a62 | 2229 | IFS=$as_save_IFS |
ad6254c5 | 2230 | |
795ca3e5 AK |
2231 | fi |
2232 | fi | |
ad6254c5 | 2233 | CC=$ac_cv_prog_CC |
795ca3e5 | 2234 | if test -n "$CC"; then |
1995c9ff AK |
2235 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2236 | echo "${ECHO_T}$CC" >&6; } | |
795ca3e5 | 2237 | else |
1995c9ff AK |
2238 | { echo "$as_me:$LINENO: result: no" >&5 |
2239 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 | 2240 | fi |
ad6254c5 | 2241 | |
7a197a62 | 2242 | |
ad6254c5 AK |
2243 | test -n "$CC" && break |
2244 | done | |
2245 | fi | |
2246 | if test -z "$CC"; then | |
2247 | ac_ct_CC=$CC | |
7a197a62 | 2248 | for ac_prog in cl.exe |
ad6254c5 AK |
2249 | do |
2250 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2251 | set dummy $ac_prog; ac_word=$2 | |
1995c9ff AK |
2252 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2253 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2254 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1995c9ff | 2255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2256 | else |
2257 | if test -n "$ac_ct_CC"; then | |
2258 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2259 | else | |
2260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2261 | for as_dir in $PATH | |
2262 | do | |
2263 | IFS=$as_save_IFS | |
2264 | test -z "$as_dir" && as_dir=. | |
2265 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc54be10 | 2266 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2267 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1995c9ff | 2268 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2269 | break 2 |
795ca3e5 | 2270 | fi |
ad6254c5 AK |
2271 | done |
2272 | done | |
7a197a62 | 2273 | IFS=$as_save_IFS |
ad6254c5 AK |
2274 | |
2275 | fi | |
2276 | fi | |
2277 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2278 | if test -n "$ac_ct_CC"; then | |
1995c9ff AK |
2279 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2280 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
ad6254c5 | 2281 | else |
1995c9ff AK |
2282 | { echo "$as_me:$LINENO: result: no" >&5 |
2283 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2284 | fi |
2285 | ||
7a197a62 | 2286 | |
ad6254c5 AK |
2287 | test -n "$ac_ct_CC" && break |
2288 | done | |
795ca3e5 | 2289 | |
7a197a62 AK |
2290 | if test "x$ac_ct_CC" = x; then |
2291 | CC="" | |
2292 | else | |
2293 | case $cross_compiling:$ac_tool_warned in | |
2294 | yes:) | |
1995c9ff | 2295 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2296 | whose name does not start with the host triplet. If you think this |
2297 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
1995c9ff | 2298 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2299 | whose name does not start with the host triplet. If you think this |
2300 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2301 | ac_tool_warned=yes ;; | |
2302 | esac | |
2303 | CC=$ac_ct_CC | |
2304 | fi | |
ad6254c5 AK |
2305 | fi |
2306 | ||
2307 | fi | |
2308 | ||
2309 | ||
1995c9ff | 2310 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2311 | See \`config.log' for more details." >&5 |
1995c9ff | 2312 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 AK |
2313 | See \`config.log' for more details." >&2;} |
2314 | { (exit 1); exit 1; }; } | |
2315 | ||
2316 | # Provide some information about the compiler. | |
1995c9ff AK |
2317 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2318 | ac_compiler=`set X $ac_compile; echo $2` | |
7a197a62 AK |
2319 | { (ac_try="$ac_compiler --version >&5" |
2320 | case "(($ac_try" in | |
2321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2322 | *) ac_try_echo=$ac_try;; | |
2323 | esac | |
1995c9ff | 2324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2325 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2326 | ac_status=$? |
1995c9ff | 2327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2328 | (exit $ac_status); } |
7a197a62 AK |
2329 | { (ac_try="$ac_compiler -v >&5" |
2330 | case "(($ac_try" in | |
2331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2332 | *) ac_try_echo=$ac_try;; | |
2333 | esac | |
1995c9ff | 2334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2335 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2336 | ac_status=$? |
1995c9ff | 2337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2338 | (exit $ac_status); } |
7a197a62 AK |
2339 | { (ac_try="$ac_compiler -V >&5" |
2340 | case "(($ac_try" in | |
2341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2342 | *) ac_try_echo=$ac_try;; | |
2343 | esac | |
1995c9ff | 2344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2345 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2346 | ac_status=$? |
1995c9ff | 2347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2348 | (exit $ac_status); } |
2349 | ||
2350 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2351 | /* confdefs.h. */ |
2352 | _ACEOF | |
2353 | cat confdefs.h >>conftest.$ac_ext | |
2354 | cat >>conftest.$ac_ext <<_ACEOF | |
2355 | /* end confdefs.h. */ | |
2356 | ||
2357 | int | |
2358 | main () | |
2359 | { | |
2360 | ||
2361 | ; | |
2362 | return 0; | |
2363 | } | |
2364 | _ACEOF | |
2365 | ac_clean_files_save=$ac_clean_files | |
2366 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2367 | # Try to create an executable without -o first, disregard a.out. | |
2368 | # It will help us diagnose broken compilers, and finding out an intuition | |
2369 | # of exeext. | |
1995c9ff AK |
2370 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2371 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
2372 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
7a197a62 AK |
2373 | # |
2374 | # List of possible output files, starting from the most likely. | |
2375 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2376 | # only as a last resort. b.out is created by i960 compilers. | |
2377 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2378 | # | |
2379 | # The IRIX 6 linker writes into existing files which may not be | |
2380 | # executable, retaining their permissions. Remove them first so a | |
2381 | # subsequent execution test works. | |
2382 | ac_rmfiles= | |
2383 | for ac_file in $ac_files | |
2384 | do | |
2385 | case $ac_file in | |
2386 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2387 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2388 | esac | |
2389 | done | |
2390 | rm -f $ac_rmfiles | |
2391 | ||
2392 | if { (ac_try="$ac_link_default" | |
2393 | case "(($ac_try" in | |
2394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2395 | *) ac_try_echo=$ac_try;; | |
2396 | esac | |
1995c9ff | 2397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2398 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2399 | ac_status=$? |
1995c9ff | 2400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2401 | (exit $ac_status); }; then |
7a197a62 AK |
2402 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2403 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2404 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2405 | # so that the user can short-circuit this test for compilers unknown to | |
2406 | # Autoconf. | |
fc54be10 | 2407 | for ac_file in $ac_files |
ad6254c5 AK |
2408 | do |
2409 | test -f "$ac_file" || continue | |
2410 | case $ac_file in | |
7a197a62 | 2411 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
8a2fc586 | 2412 | ;; |
ad6254c5 | 2413 | [ab].out ) |
8a2fc586 AK |
2414 | # We found the default executable, but exeext='' is most |
2415 | # certainly right. | |
2416 | break;; | |
ad6254c5 | 2417 | *.* ) |
7a197a62 AK |
2418 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2419 | then :; else | |
2420 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2421 | fi | |
2422 | # We set ac_cv_exeext here because the later test for it is not | |
2423 | # safe: cross compilers may not add the suffix if given an `-o' | |
2424 | # argument, so we may need to know it at that point already. | |
2425 | # Even if this section looks crufty: it has the advantage of | |
2426 | # actually working. | |
8a2fc586 | 2427 | break;; |
ad6254c5 | 2428 | * ) |
8a2fc586 | 2429 | break;; |
ad6254c5 AK |
2430 | esac |
2431 | done | |
7a197a62 AK |
2432 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2433 | ||
ad6254c5 | 2434 | else |
1995c9ff | 2435 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2436 | sed 's/^/| /' conftest.$ac_ext >&5 |
2437 | ||
1995c9ff | 2438 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
ad6254c5 | 2439 | See \`config.log' for more details." >&5 |
1995c9ff | 2440 | echo "$as_me: error: C compiler cannot create executables |
ad6254c5 AK |
2441 | See \`config.log' for more details." >&2;} |
2442 | { (exit 77); exit 77; }; } | |
2443 | fi | |
2444 | ||
2445 | ac_exeext=$ac_cv_exeext | |
fc54be10 AK |
2446 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
2447 | echo "${ECHO_T}$ac_file" >&6; } | |
ad6254c5 | 2448 | |
7a197a62 | 2449 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2450 | # the compiler is broken, or we cross compile. |
1995c9ff AK |
2451 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2452 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
ad6254c5 AK |
2453 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2454 | # If not cross compiling, check that we can run a simple program. | |
2455 | if test "$cross_compiling" != yes; then | |
2456 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2457 | { (case "(($ac_try" in |
2458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2459 | *) ac_try_echo=$ac_try;; | |
2460 | esac | |
1995c9ff | 2461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2462 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2463 | ac_status=$? |
1995c9ff | 2464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2465 | (exit $ac_status); }; }; then |
2466 | cross_compiling=no | |
795ca3e5 | 2467 | else |
ad6254c5 AK |
2468 | if test "$cross_compiling" = maybe; then |
2469 | cross_compiling=yes | |
2470 | else | |
1995c9ff | 2471 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
ad6254c5 AK |
2472 | If you meant to cross compile, use \`--host'. |
2473 | See \`config.log' for more details." >&5 | |
1995c9ff | 2474 | echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2475 | If you meant to cross compile, use \`--host'. |
2476 | See \`config.log' for more details." >&2;} | |
2477 | { (exit 1); exit 1; }; } | |
2478 | fi | |
795ca3e5 | 2479 | fi |
80992638 | 2480 | fi |
1995c9ff AK |
2481 | { echo "$as_me:$LINENO: result: yes" >&5 |
2482 | echo "${ECHO_T}yes" >&6; } | |
ad6254c5 AK |
2483 | |
2484 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2485 | ac_clean_files=$ac_clean_files_save | |
7a197a62 | 2486 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2487 | # the compiler is broken, or we cross compile. |
1995c9ff AK |
2488 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2489 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2490 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2491 | echo "${ECHO_T}$cross_compiling" >&6; } | |
7a197a62 | 2492 | |
1995c9ff AK |
2493 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2494 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
7a197a62 AK |
2495 | if { (ac_try="$ac_link" |
2496 | case "(($ac_try" in | |
2497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2498 | *) ac_try_echo=$ac_try;; | |
2499 | esac | |
1995c9ff | 2500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2501 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2502 | ac_status=$? |
1995c9ff | 2503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2504 | (exit $ac_status); }; then |
2505 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2506 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2507 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2508 | # `rm'. | |
2509 | for ac_file in conftest.exe conftest conftest.*; do | |
2510 | test -f "$ac_file" || continue | |
2511 | case $ac_file in | |
7a197a62 | 2512 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
ad6254c5 | 2513 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2514 | break;; |
ad6254c5 AK |
2515 | * ) break;; |
2516 | esac | |
2517 | done | |
80992638 | 2518 | else |
1995c9ff | 2519 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2520 | See \`config.log' for more details." >&5 |
1995c9ff | 2521 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 AK |
2522 | See \`config.log' for more details." >&2;} |
2523 | { (exit 1); exit 1; }; } | |
2524 | fi | |
2525 | ||
2526 | rm -f conftest$ac_cv_exeext | |
1995c9ff AK |
2527 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2528 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2529 | |
2530 | rm -f conftest.$ac_ext | |
2531 | EXEEXT=$ac_cv_exeext | |
2532 | ac_exeext=$EXEEXT | |
1995c9ff AK |
2533 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2534 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
ad6254c5 | 2535 | if test "${ac_cv_objext+set}" = set; then |
1995c9ff | 2536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 2537 | else |
ad6254c5 | 2538 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2539 | /* confdefs.h. */ |
2540 | _ACEOF | |
2541 | cat confdefs.h >>conftest.$ac_ext | |
2542 | cat >>conftest.$ac_ext <<_ACEOF | |
2543 | /* end confdefs.h. */ | |
2544 | ||
2545 | int | |
2546 | main () | |
2547 | { | |
2548 | ||
2549 | ; | |
2550 | return 0; | |
2551 | } | |
2552 | _ACEOF | |
2553 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2554 | if { (ac_try="$ac_compile" |
2555 | case "(($ac_try" in | |
2556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2557 | *) ac_try_echo=$ac_try;; | |
2558 | esac | |
1995c9ff | 2559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2560 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2561 | ac_status=$? |
1995c9ff | 2562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2563 | (exit $ac_status); }; then |
7a197a62 AK |
2564 | for ac_file in conftest.o conftest.obj conftest.*; do |
2565 | test -f "$ac_file" || continue; | |
ad6254c5 | 2566 | case $ac_file in |
7a197a62 | 2567 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
ad6254c5 AK |
2568 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2569 | break;; | |
2570 | esac | |
2571 | done | |
2572 | else | |
1995c9ff | 2573 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2574 | sed 's/^/| /' conftest.$ac_ext >&5 |
2575 | ||
1995c9ff | 2576 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2577 | See \`config.log' for more details." >&5 |
1995c9ff | 2578 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 AK |
2579 | See \`config.log' for more details." >&2;} |
2580 | { (exit 1); exit 1; }; } | |
2581 | fi | |
2582 | ||
2583 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2584 | fi | |
1995c9ff AK |
2585 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2586 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2587 | OBJEXT=$ac_cv_objext |
2588 | ac_objext=$OBJEXT | |
1995c9ff AK |
2589 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2590 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
ad6254c5 | 2591 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
1995c9ff | 2592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2593 | else |
2594 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2595 | /* confdefs.h. */ |
2596 | _ACEOF | |
2597 | cat confdefs.h >>conftest.$ac_ext | |
2598 | cat >>conftest.$ac_ext <<_ACEOF | |
2599 | /* end confdefs.h. */ | |
2600 | ||
2601 | int | |
2602 | main () | |
2603 | { | |
2604 | #ifndef __GNUC__ | |
2605 | choke me | |
2606 | #endif | |
80992638 | 2607 | |
ad6254c5 AK |
2608 | ; |
2609 | return 0; | |
2610 | } | |
2611 | _ACEOF | |
2612 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2613 | if { (ac_try="$ac_compile" |
2614 | case "(($ac_try" in | |
2615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2616 | *) ac_try_echo=$ac_try;; | |
2617 | esac | |
1995c9ff | 2618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2619 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2620 | ac_status=$? |
8a2fc586 AK |
2621 | grep -v '^ *+' conftest.er1 >conftest.err |
2622 | rm -f conftest.er1 | |
2623 | cat conftest.err >&5 | |
1995c9ff | 2624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
2625 | (exit $ac_status); } && |
2626 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2627 | { (case "(($ac_try" in | |
2628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2629 | *) ac_try_echo=$ac_try;; | |
2630 | esac | |
2631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2632 | (eval "$ac_try") 2>&5 | |
2633 | ac_status=$? | |
2634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2635 | (exit $ac_status); }; } && | |
2636 | { ac_try='test -s conftest.$ac_objext' | |
2637 | { (case "(($ac_try" in | |
2638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2639 | *) ac_try_echo=$ac_try;; | |
2640 | esac | |
2641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2642 | (eval "$ac_try") 2>&5 | |
2643 | ac_status=$? | |
2644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2645 | (exit $ac_status); }; }; then | |
ad6254c5 | 2646 | ac_compiler_gnu=yes |
80992638 | 2647 | else |
1995c9ff | 2648 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2649 | sed 's/^/| /' conftest.$ac_ext >&5 |
2650 | ||
7a197a62 | 2651 | ac_compiler_gnu=no |
8106cdd5 | 2652 | fi |
7a197a62 AK |
2653 | |
2654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2655 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 2656 | |
ad6254c5 | 2657 | fi |
1995c9ff AK |
2658 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2659 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
2660 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
ad6254c5 AK |
2661 | ac_test_CFLAGS=${CFLAGS+set} |
2662 | ac_save_CFLAGS=$CFLAGS | |
1995c9ff AK |
2663 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2664 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
ad6254c5 | 2665 | if test "${ac_cv_prog_cc_g+set}" = set; then |
1995c9ff | 2666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 2667 | else |
7a197a62 AK |
2668 | ac_save_c_werror_flag=$ac_c_werror_flag |
2669 | ac_c_werror_flag=yes | |
2670 | ac_cv_prog_cc_g=no | |
2671 | CFLAGS="-g" | |
2672 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2673 | /* confdefs.h. */ |
2674 | _ACEOF | |
2675 | cat confdefs.h >>conftest.$ac_ext | |
2676 | cat >>conftest.$ac_ext <<_ACEOF | |
2677 | /* end confdefs.h. */ | |
2678 | ||
2679 | int | |
2680 | main () | |
2681 | { | |
2682 | ||
2683 | ; | |
2684 | return 0; | |
2685 | } | |
2686 | _ACEOF | |
2687 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2688 | if { (ac_try="$ac_compile" |
2689 | case "(($ac_try" in | |
2690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2691 | *) ac_try_echo=$ac_try;; | |
2692 | esac | |
1995c9ff | 2693 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2694 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2695 | ac_status=$? |
8a2fc586 AK |
2696 | grep -v '^ *+' conftest.er1 >conftest.err |
2697 | rm -f conftest.er1 | |
2698 | cat conftest.err >&5 | |
1995c9ff | 2699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
2700 | (exit $ac_status); } && |
2701 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2702 | { (case "(($ac_try" in | |
2703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2704 | *) ac_try_echo=$ac_try;; | |
2705 | esac | |
2706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2707 | (eval "$ac_try") 2>&5 | |
2708 | ac_status=$? | |
2709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2710 | (exit $ac_status); }; } && | |
2711 | { ac_try='test -s conftest.$ac_objext' | |
2712 | { (case "(($ac_try" in | |
2713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2714 | *) ac_try_echo=$ac_try;; | |
2715 | esac | |
2716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2717 | (eval "$ac_try") 2>&5 | |
2718 | ac_status=$? | |
2719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2720 | (exit $ac_status); }; }; then | |
7a197a62 AK |
2721 | ac_cv_prog_cc_g=yes |
2722 | else | |
1995c9ff | 2723 | echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2724 | sed 's/^/| /' conftest.$ac_ext >&5 |
2725 | ||
2726 | CFLAGS="" | |
2727 | cat >conftest.$ac_ext <<_ACEOF | |
2728 | /* confdefs.h. */ | |
2729 | _ACEOF | |
2730 | cat confdefs.h >>conftest.$ac_ext | |
2731 | cat >>conftest.$ac_ext <<_ACEOF | |
2732 | /* end confdefs.h. */ | |
2733 | ||
2734 | int | |
2735 | main () | |
2736 | { | |
2737 | ||
2738 | ; | |
2739 | return 0; | |
2740 | } | |
2741 | _ACEOF | |
2742 | rm -f conftest.$ac_objext | |
2743 | if { (ac_try="$ac_compile" | |
2744 | case "(($ac_try" in | |
2745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2746 | *) ac_try_echo=$ac_try;; | |
2747 | esac | |
1995c9ff | 2748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2749 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 2750 | ac_status=$? |
7a197a62 AK |
2751 | grep -v '^ *+' conftest.er1 >conftest.err |
2752 | rm -f conftest.er1 | |
2753 | cat conftest.err >&5 | |
1995c9ff | 2754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
2755 | (exit $ac_status); } && |
2756 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2757 | { (case "(($ac_try" in | |
2758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2759 | *) ac_try_echo=$ac_try;; | |
2760 | esac | |
2761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2762 | (eval "$ac_try") 2>&5 | |
2763 | ac_status=$? | |
2764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2765 | (exit $ac_status); }; } && | |
2766 | { ac_try='test -s conftest.$ac_objext' | |
2767 | { (case "(($ac_try" in | |
2768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2769 | *) ac_try_echo=$ac_try;; | |
2770 | esac | |
2771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2772 | (eval "$ac_try") 2>&5 | |
2773 | ac_status=$? | |
2774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2775 | (exit $ac_status); }; }; then | |
7a197a62 AK |
2776 | : |
2777 | else | |
1995c9ff | 2778 | echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2779 | sed 's/^/| /' conftest.$ac_ext >&5 |
2780 | ||
2781 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2782 | CFLAGS="-g" | |
2783 | cat >conftest.$ac_ext <<_ACEOF | |
2784 | /* confdefs.h. */ | |
2785 | _ACEOF | |
2786 | cat confdefs.h >>conftest.$ac_ext | |
2787 | cat >>conftest.$ac_ext <<_ACEOF | |
2788 | /* end confdefs.h. */ | |
2789 | ||
2790 | int | |
2791 | main () | |
2792 | { | |
2793 | ||
2794 | ; | |
2795 | return 0; | |
2796 | } | |
2797 | _ACEOF | |
2798 | rm -f conftest.$ac_objext | |
2799 | if { (ac_try="$ac_compile" | |
2800 | case "(($ac_try" in | |
2801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2802 | *) ac_try_echo=$ac_try;; | |
2803 | esac | |
1995c9ff | 2804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2805 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2806 | ac_status=$? |
7a197a62 AK |
2807 | grep -v '^ *+' conftest.er1 >conftest.err |
2808 | rm -f conftest.er1 | |
2809 | cat conftest.err >&5 | |
1995c9ff | 2810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
2811 | (exit $ac_status); } && |
2812 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2813 | { (case "(($ac_try" in | |
2814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2815 | *) ac_try_echo=$ac_try;; | |
2816 | esac | |
2817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2818 | (eval "$ac_try") 2>&5 | |
2819 | ac_status=$? | |
2820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2821 | (exit $ac_status); }; } && | |
2822 | { ac_try='test -s conftest.$ac_objext' | |
2823 | { (case "(($ac_try" in | |
2824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2825 | *) ac_try_echo=$ac_try;; | |
2826 | esac | |
2827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2828 | (eval "$ac_try") 2>&5 | |
2829 | ac_status=$? | |
2830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2831 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
2832 | ac_cv_prog_cc_g=yes |
2833 | else | |
1995c9ff | 2834 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 2835 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 2836 | |
7a197a62 AK |
2837 | |
2838 | fi | |
2839 | ||
2840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2841 | fi | |
2842 | ||
2843 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 2844 | fi |
7a197a62 AK |
2845 | |
2846 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2847 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 2848 | fi |
1995c9ff AK |
2849 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2850 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 2851 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 2852 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
2853 | elif test $ac_cv_prog_cc_g = yes; then |
2854 | if test "$GCC" = yes; then | |
2855 | CFLAGS="-g -O2" | |
2856 | else | |
2857 | CFLAGS="-g" | |
2858 | fi | |
2859 | else | |
2860 | if test "$GCC" = yes; then | |
2861 | CFLAGS="-O2" | |
2862 | else | |
2863 | CFLAGS= | |
2864 | fi | |
2865 | fi | |
1995c9ff AK |
2866 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2867 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
7a197a62 | 2868 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
1995c9ff | 2869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 2870 | else |
7a197a62 | 2871 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
2872 | ac_save_CC=$CC |
2873 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2874 | /* confdefs.h. */ |
2875 | _ACEOF | |
2876 | cat confdefs.h >>conftest.$ac_ext | |
2877 | cat >>conftest.$ac_ext <<_ACEOF | |
2878 | /* end confdefs.h. */ | |
2879 | #include <stdarg.h> | |
2880 | #include <stdio.h> | |
2881 | #include <sys/types.h> | |
2882 | #include <sys/stat.h> | |
2883 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2884 | struct buf { int x; }; | |
2885 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2886 | static char *e (p, i) | |
2887 | char **p; | |
2888 | int i; | |
2889 | { | |
2890 | return p[i]; | |
2891 | } | |
2892 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2893 | { | |
2894 | char *s; | |
2895 | va_list v; | |
2896 | va_start (v,p); | |
2897 | s = g (p, va_arg (v,int)); | |
2898 | va_end (v); | |
2899 | return s; | |
2900 | } | |
8a2fc586 AK |
2901 | |
2902 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2903 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2904 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 2905 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
2906 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2907 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 2908 | that's true only with -std. */ |
8a2fc586 AK |
2909 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2910 | ||
7a197a62 AK |
2911 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2912 | inside strings and character constants. */ | |
2913 | #define FOO(x) 'x' | |
2914 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2915 | ||
ad6254c5 AK |
2916 | int test (int i, double x); |
2917 | struct s1 {int (*f) (int a);}; | |
2918 | struct s2 {int (*f) (double a);}; | |
2919 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2920 | int argc; | |
2921 | char **argv; | |
2922 | int | |
2923 | main () | |
2924 | { | |
2925 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2926 | ; | |
2927 | return 0; | |
2928 | } | |
2929 | _ACEOF | |
7a197a62 AK |
2930 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2931 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
2932 | do |
2933 | CC="$ac_save_CC $ac_arg" | |
2934 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2935 | if { (ac_try="$ac_compile" |
2936 | case "(($ac_try" in | |
2937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2938 | *) ac_try_echo=$ac_try;; | |
2939 | esac | |
1995c9ff | 2940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2941 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2942 | ac_status=$? |
8a2fc586 AK |
2943 | grep -v '^ *+' conftest.er1 >conftest.err |
2944 | rm -f conftest.er1 | |
2945 | cat conftest.err >&5 | |
1995c9ff | 2946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
2947 | (exit $ac_status); } && |
2948 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2949 | { (case "(($ac_try" in | |
2950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2951 | *) ac_try_echo=$ac_try;; | |
2952 | esac | |
2953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2954 | (eval "$ac_try") 2>&5 | |
2955 | ac_status=$? | |
2956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2957 | (exit $ac_status); }; } && | |
2958 | { ac_try='test -s conftest.$ac_objext' | |
2959 | { (case "(($ac_try" in | |
2960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2961 | *) ac_try_echo=$ac_try;; | |
2962 | esac | |
2963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2964 | (eval "$ac_try") 2>&5 | |
2965 | ac_status=$? | |
2966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2967 | (exit $ac_status); }; }; then | |
7a197a62 | 2968 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 2969 | else |
1995c9ff | 2970 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2971 | sed 's/^/| /' conftest.$ac_ext >&5 |
2972 | ||
7a197a62 | 2973 | |
ad6254c5 | 2974 | fi |
7a197a62 AK |
2975 | |
2976 | rm -f core conftest.err conftest.$ac_objext | |
2977 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 2978 | done |
7a197a62 | 2979 | rm -f conftest.$ac_ext |
ad6254c5 AK |
2980 | CC=$ac_save_CC |
2981 | ||
2982 | fi | |
7a197a62 AK |
2983 | # AC_CACHE_VAL |
2984 | case "x$ac_cv_prog_cc_c89" in | |
2985 | x) | |
1995c9ff AK |
2986 | { echo "$as_me:$LINENO: result: none needed" >&5 |
2987 | echo "${ECHO_T}none needed" >&6; } ;; | |
7a197a62 | 2988 | xno) |
1995c9ff AK |
2989 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
2990 | echo "${ECHO_T}unsupported" >&6; } ;; | |
ad6254c5 | 2991 | *) |
7a197a62 | 2992 | CC="$CC $ac_cv_prog_cc_c89" |
1995c9ff AK |
2993 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
2994 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
2995 | esac |
2996 | ||
ad6254c5 | 2997 | |
ad6254c5 AK |
2998 | ac_ext=c |
2999 | ac_cpp='$CPP $CPPFLAGS' | |
3000 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3001 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3002 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 AK |
3003 | |
3004 | # Find a good install program. We prefer a C program (faster), | |
3005 | # so one script is as good as another. But avoid the broken or | |
3006 | # incompatible versions: | |
3007 | # SysV /etc/install, /usr/sbin/install | |
3008 | # SunOS /usr/etc/install | |
3009 | # IRIX /sbin/install | |
3010 | # AIX /bin/install | |
ad6254c5 | 3011 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
795ca3e5 AK |
3012 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3013 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3014 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8a2fc586 | 3015 | # OS/2's system install, which has a completely different semantic |
795ca3e5 | 3016 | # ./install, which can be erroneously created by make from ./install.sh. |
1995c9ff AK |
3017 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3018 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
795ca3e5 | 3019 | if test -z "$INSTALL"; then |
ad6254c5 | 3020 | if test "${ac_cv_path_install+set}" = set; then |
1995c9ff | 3021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
3022 | else |
3023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3024 | for as_dir in $PATH | |
3025 | do | |
3026 | IFS=$as_save_IFS | |
3027 | test -z "$as_dir" && as_dir=. | |
3028 | # Account for people who put trailing slashes in PATH elements. | |
3029 | case $as_dir/ in | |
3030 | ./ | .// | /cC/* | \ | |
3031 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
8a2fc586 | 3032 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
ad6254c5 AK |
3033 | /usr/ucb/* ) ;; |
3034 | *) | |
3035 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3036 | # Don't use installbsd from OSF since it installs stuff as root | |
3037 | # by default. | |
3038 | for ac_prog in ginstall scoinst install; do | |
3039 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc54be10 | 3040 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
8a2fc586 AK |
3041 | if test $ac_prog = install && |
3042 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3043 | # AIX install. It has an incompatible calling convention. | |
3044 | : | |
3045 | elif test $ac_prog = install && | |
3046 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3047 | # program-specific install script used by HP pwplus--don't use. | |
3048 | : | |
3049 | else | |
3050 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3051 | break 3 | |
3052 | fi | |
3053 | fi | |
795ca3e5 | 3054 | done |
ad6254c5 AK |
3055 | done |
3056 | ;; | |
3057 | esac | |
3058 | done | |
7a197a62 | 3059 | IFS=$as_save_IFS |
ad6254c5 | 3060 | |
795ca3e5 AK |
3061 | |
3062 | fi | |
3063 | if test "${ac_cv_path_install+set}" = set; then | |
ad6254c5 | 3064 | INSTALL=$ac_cv_path_install |
795ca3e5 | 3065 | else |
7a197a62 AK |
3066 | # As a last resort, use the slow shell script. Don't cache a |
3067 | # value for INSTALL within a source directory, because that will | |
795ca3e5 | 3068 | # break other packages using the cache if that directory is |
7a197a62 | 3069 | # removed, or if the value is a relative name. |
ad6254c5 | 3070 | INSTALL=$ac_install_sh |
795ca3e5 AK |
3071 | fi |
3072 | fi | |
1995c9ff AK |
3073 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3074 | echo "${ECHO_T}$INSTALL" >&6; } | |
795ca3e5 AK |
3075 | |
3076 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3077 | # It thinks the first close brace ends the variable substitution. | |
3078 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3079 | ||
ad6254c5 | 3080 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
795ca3e5 AK |
3081 | |
3082 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3083 | ||
1995c9ff AK |
3084 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3085 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
ad6254c5 AK |
3086 | LN_S=$as_ln_s |
3087 | if test "$LN_S" = "ln -s"; then | |
1995c9ff AK |
3088 | { echo "$as_me:$LINENO: result: yes" >&5 |
3089 | echo "${ECHO_T}yes" >&6; } | |
80992638 | 3090 | else |
1995c9ff AK |
3091 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3092 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
795ca3e5 AK |
3093 | fi |
3094 | ||
1995c9ff AK |
3095 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3096 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
3097 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
7a197a62 | 3098 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 3099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 3100 | else |
ad6254c5 | 3101 | cat >conftest.make <<\_ACEOF |
7a197a62 | 3102 | SHELL = /bin/sh |
795ca3e5 | 3103 | all: |
7a197a62 | 3104 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
ad6254c5 | 3105 | _ACEOF |
795ca3e5 | 3106 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
7a197a62 AK |
3107 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3108 | *@@@%%%=?*=@@@%%%*) | |
3109 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3110 | *) | |
3111 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3112 | esac | |
ad6254c5 | 3113 | rm -f conftest.make |
795ca3e5 | 3114 | fi |
7a197a62 | 3115 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
1995c9ff AK |
3116 | { echo "$as_me:$LINENO: result: yes" >&5 |
3117 | echo "${ECHO_T}yes" >&6; } | |
795ca3e5 AK |
3118 | SET_MAKE= |
3119 | else | |
1995c9ff AK |
3120 | { echo "$as_me:$LINENO: result: no" >&5 |
3121 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
3122 | SET_MAKE="MAKE=${MAKE-make}" |
3123 | fi | |
3124 | ||
ad6254c5 AK |
3125 | if test -n "$ac_tool_prefix"; then |
3126 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3127 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
1995c9ff AK |
3128 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3129 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 3130 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
1995c9ff | 3131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
3132 | else |
3133 | if test -n "$RANLIB"; then | |
3134 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3135 | else | |
ad6254c5 AK |
3136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3137 | for as_dir in $PATH | |
3138 | do | |
3139 | IFS=$as_save_IFS | |
3140 | test -z "$as_dir" && as_dir=. | |
3141 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc54be10 | 3142 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 3143 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
1995c9ff | 3144 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
3145 | break 2 |
3146 | fi | |
3147 | done | |
3148 | done | |
7a197a62 | 3149 | IFS=$as_save_IFS |
ad6254c5 | 3150 | |
795ca3e5 AK |
3151 | fi |
3152 | fi | |
ad6254c5 | 3153 | RANLIB=$ac_cv_prog_RANLIB |
795ca3e5 | 3154 | if test -n "$RANLIB"; then |
1995c9ff AK |
3155 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3156 | echo "${ECHO_T}$RANLIB" >&6; } | |
8106cdd5 | 3157 | else |
1995c9ff AK |
3158 | { echo "$as_me:$LINENO: result: no" >&5 |
3159 | echo "${ECHO_T}no" >&6; } | |
8106cdd5 AK |
3160 | fi |
3161 | ||
7a197a62 | 3162 | |
795ca3e5 | 3163 | fi |
ad6254c5 AK |
3164 | if test -z "$ac_cv_prog_RANLIB"; then |
3165 | ac_ct_RANLIB=$RANLIB | |
3166 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3167 | set dummy ranlib; ac_word=$2 | |
1995c9ff AK |
3168 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3169 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 3170 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
1995c9ff | 3171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
80992638 | 3172 | else |
ad6254c5 AK |
3173 | if test -n "$ac_ct_RANLIB"; then |
3174 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3175 | else | |
3176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3177 | for as_dir in $PATH | |
3178 | do | |
3179 | IFS=$as_save_IFS | |
3180 | test -z "$as_dir" && as_dir=. | |
3181 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc54be10 | 3182 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 3183 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
1995c9ff | 3184 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
3185 | break 2 |
3186 | fi | |
3187 | done | |
795ca3e5 | 3188 | done |
7a197a62 | 3189 | IFS=$as_save_IFS |
8106cdd5 | 3190 | |
795ca3e5 | 3191 | fi |
80992638 | 3192 | fi |
ad6254c5 AK |
3193 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3194 | if test -n "$ac_ct_RANLIB"; then | |
1995c9ff AK |
3195 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3196 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
80992638 | 3197 | else |
1995c9ff AK |
3198 | { echo "$as_me:$LINENO: result: no" >&5 |
3199 | echo "${ECHO_T}no" >&6; } | |
8106cdd5 | 3200 | fi |
8106cdd5 | 3201 | |
7a197a62 AK |
3202 | if test "x$ac_ct_RANLIB" = x; then |
3203 | RANLIB=":" | |
3204 | else | |
3205 | case $cross_compiling:$ac_tool_warned in | |
3206 | yes:) | |
1995c9ff | 3207 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
3208 | whose name does not start with the host triplet. If you think this |
3209 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
1995c9ff | 3210 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
3211 | whose name does not start with the host triplet. If you think this |
3212 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3213 | ac_tool_warned=yes ;; | |
3214 | esac | |
3215 | RANLIB=$ac_ct_RANLIB | |
3216 | fi | |
80992638 | 3217 | else |
ad6254c5 | 3218 | RANLIB="$ac_cv_prog_RANLIB" |
80992638 | 3219 | fi |
795ca3e5 | 3220 | |
8a2fc586 AK |
3221 | # Extract the first word of "cflow", so it can be a program name with args. |
3222 | set dummy cflow; ac_word=$2 | |
1995c9ff AK |
3223 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3224 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
8a2fc586 | 3225 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
1995c9ff | 3226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8a2fc586 AK |
3227 | else |
3228 | case $CFLOW_CMD in | |
3229 | [\\/]* | ?:[\\/]*) | |
3230 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
3231 | ;; | |
3232 | *) | |
3233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3234 | for as_dir in $PATH | |
3235 | do | |
3236 | IFS=$as_save_IFS | |
3237 | test -z "$as_dir" && as_dir=. | |
3238 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc54be10 | 3239 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
8a2fc586 | 3240 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" |
1995c9ff | 3241 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8a2fc586 AK |
3242 | break 2 |
3243 | fi | |
3244 | done | |
3245 | done | |
7a197a62 | 3246 | IFS=$as_save_IFS |
8a2fc586 AK |
3247 | |
3248 | ;; | |
3249 | esac | |
3250 | fi | |
3251 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
8a2fc586 | 3252 | if test -n "$CFLOW_CMD"; then |
1995c9ff AK |
3253 | { echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
3254 | echo "${ECHO_T}$CFLOW_CMD" >&6; } | |
8a2fc586 | 3255 | else |
1995c9ff AK |
3256 | { echo "$as_me:$LINENO: result: no" >&5 |
3257 | echo "${ECHO_T}no" >&6; } | |
8a2fc586 AK |
3258 | fi |
3259 | ||
7a197a62 | 3260 | |
8a2fc586 AK |
3261 | # Extract the first word of "cscope", so it can be a program name with args. |
3262 | set dummy cscope; ac_word=$2 | |
1995c9ff AK |
3263 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3264 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
8a2fc586 | 3265 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
1995c9ff | 3266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8a2fc586 AK |
3267 | else |
3268 | case $CSCOPE_CMD in | |
3269 | [\\/]* | ?:[\\/]*) | |
3270 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
3271 | ;; | |
3272 | *) | |
3273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3274 | for as_dir in $PATH | |
3275 | do | |
3276 | IFS=$as_save_IFS | |
3277 | test -z "$as_dir" && as_dir=. | |
3278 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc54be10 | 3279 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
8a2fc586 | 3280 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" |
1995c9ff | 3281 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8a2fc586 AK |
3282 | break 2 |
3283 | fi | |
3284 | done | |
3285 | done | |
7a197a62 | 3286 | IFS=$as_save_IFS |
8a2fc586 AK |
3287 | |
3288 | ;; | |
3289 | esac | |
3290 | fi | |
3291 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD | |
8a2fc586 | 3292 | if test -n "$CSCOPE_CMD"; then |
1995c9ff AK |
3293 | { echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
3294 | echo "${ECHO_T}$CSCOPE_CMD" >&6; } | |
8a2fc586 | 3295 | else |
1995c9ff AK |
3296 | { echo "$as_me:$LINENO: result: no" >&5 |
3297 | echo "${ECHO_T}no" >&6; } | |
8a2fc586 AK |
3298 | fi |
3299 | ||
795ca3e5 | 3300 | |
7a197a62 | 3301 | |
ad6254c5 AK |
3302 | ################################################################################ |
3303 | ||
3304 | ||
3305 | ||
3306 | ||
3307 | ||
3308 | ||
3309 | ac_header_dirent=no | |
3310 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
1995c9ff AK |
3311 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
3312 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
3313 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } | |
7a197a62 | 3314 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 3315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 | 3316 | else |
ad6254c5 | 3317 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3318 | /* confdefs.h. */ |
3319 | _ACEOF | |
3320 | cat confdefs.h >>conftest.$ac_ext | |
3321 | cat >>conftest.$ac_ext <<_ACEOF | |
3322 | /* end confdefs.h. */ | |
3323 | #include <sys/types.h> | |
3324 | #include <$ac_hdr> | |
3325 | ||
3326 | int | |
3327 | main () | |
3328 | { | |
3329 | if ((DIR *) 0) | |
3330 | return 0; | |
3331 | ; | |
3332 | return 0; | |
3333 | } | |
3334 | _ACEOF | |
3335 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3336 | if { (ac_try="$ac_compile" |
3337 | case "(($ac_try" in | |
3338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3339 | *) ac_try_echo=$ac_try;; | |
3340 | esac | |
1995c9ff | 3341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 3342 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3343 | ac_status=$? |
8a2fc586 AK |
3344 | grep -v '^ *+' conftest.er1 >conftest.err |
3345 | rm -f conftest.er1 | |
3346 | cat conftest.err >&5 | |
1995c9ff | 3347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
3348 | (exit $ac_status); } && |
3349 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
3350 | { (case "(($ac_try" in | |
3351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3352 | *) ac_try_echo=$ac_try;; | |
3353 | esac | |
3354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3355 | (eval "$ac_try") 2>&5 | |
3356 | ac_status=$? | |
3357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3358 | (exit $ac_status); }; } && | |
3359 | { ac_try='test -s conftest.$ac_objext' | |
3360 | { (case "(($ac_try" in | |
3361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3362 | *) ac_try_echo=$ac_try;; | |
3363 | esac | |
3364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3365 | (eval "$ac_try") 2>&5 | |
3366 | ac_status=$? | |
3367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3368 | (exit $ac_status); }; }; then | |
ad6254c5 | 3369 | eval "$as_ac_Header=yes" |
8106cdd5 | 3370 | else |
1995c9ff | 3371 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3372 | sed 's/^/| /' conftest.$ac_ext >&5 |
3373 | ||
7a197a62 | 3374 | eval "$as_ac_Header=no" |
795ca3e5 | 3375 | fi |
7a197a62 AK |
3376 | |
3377 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 3378 | fi |
1995c9ff AK |
3379 | ac_res=`eval echo '${'$as_ac_Header'}'` |
3380 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3381 | echo "${ECHO_T}$ac_res" >&6; } | |
3382 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
ad6254c5 | 3383 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 3384 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
ad6254c5 AK |
3385 | _ACEOF |
3386 | ||
3387 | ac_header_dirent=$ac_hdr; break | |
795ca3e5 | 3388 | fi |
8106cdd5 | 3389 | |
ad6254c5 AK |
3390 | done |
3391 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
3392 | if test $ac_header_dirent = dirent.h; then | |
1995c9ff AK |
3393 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3394 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | |
ad6254c5 | 3395 | if test "${ac_cv_search_opendir+set}" = set; then |
1995c9ff | 3396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 3397 | else |
ad6254c5 | 3398 | ac_func_search_save_LIBS=$LIBS |
ad6254c5 | 3399 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3400 | /* confdefs.h. */ |
3401 | _ACEOF | |
3402 | cat confdefs.h >>conftest.$ac_ext | |
3403 | cat >>conftest.$ac_ext <<_ACEOF | |
3404 | /* end confdefs.h. */ | |
3405 | ||
7a197a62 AK |
3406 | /* Override any GCC internal prototype to avoid an error. |
3407 | Use char because int might match the return type of a GCC | |
3408 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
3409 | #ifdef __cplusplus |
3410 | extern "C" | |
3411 | #endif | |
ad6254c5 AK |
3412 | char opendir (); |
3413 | int | |
3414 | main () | |
3415 | { | |
7a197a62 | 3416 | return opendir (); |
ad6254c5 AK |
3417 | ; |
3418 | return 0; | |
3419 | } | |
3420 | _ACEOF | |
7a197a62 AK |
3421 | for ac_lib in '' dir; do |
3422 | if test -z "$ac_lib"; then | |
3423 | ac_res="none required" | |
3424 | else | |
3425 | ac_res=-l$ac_lib | |
3426 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3427 | fi | |
3428 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3429 | if { (ac_try="$ac_link" | |
3430 | case "(($ac_try" in | |
3431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3432 | *) ac_try_echo=$ac_try;; | |
3433 | esac | |
1995c9ff | 3434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 3435 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 3436 | ac_status=$? |
8a2fc586 AK |
3437 | grep -v '^ *+' conftest.er1 >conftest.err |
3438 | rm -f conftest.er1 | |
3439 | cat conftest.err >&5 | |
1995c9ff | 3440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
3441 | (exit $ac_status); } && |
3442 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
3443 | { (case "(($ac_try" in | |
3444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3445 | *) ac_try_echo=$ac_try;; | |
3446 | esac | |
3447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3448 | (eval "$ac_try") 2>&5 | |
3449 | ac_status=$? | |
3450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3451 | (exit $ac_status); }; } && | |
3452 | { ac_try='test -s conftest$ac_exeext' | |
3453 | { (case "(($ac_try" in | |
3454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3455 | *) ac_try_echo=$ac_try;; | |
3456 | esac | |
3457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3458 | (eval "$ac_try") 2>&5 | |
3459 | ac_status=$? | |
3460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3461 | (exit $ac_status); }; }; then | |
7a197a62 | 3462 | ac_cv_search_opendir=$ac_res |
795ca3e5 | 3463 | else |
1995c9ff | 3464 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3465 | sed 's/^/| /' conftest.$ac_ext >&5 |
3466 | ||
795ca3e5 | 3467 | |
7a197a62 | 3468 | fi |
795ca3e5 | 3469 | |
fc54be10 | 3470 | rm -f core conftest.err conftest.$ac_objext \ |
7a197a62 AK |
3471 | conftest$ac_exeext |
3472 | if test "${ac_cv_search_opendir+set}" = set; then | |
3473 | break | |
795ca3e5 | 3474 | fi |
7a197a62 AK |
3475 | done |
3476 | if test "${ac_cv_search_opendir+set}" = set; then | |
3477 | : | |
3478 | else | |
3479 | ac_cv_search_opendir=no | |
795ca3e5 | 3480 | fi |
7a197a62 | 3481 | rm conftest.$ac_ext |
ad6254c5 AK |
3482 | LIBS=$ac_func_search_save_LIBS |
3483 | fi | |
1995c9ff AK |
3484 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3485 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | |
7a197a62 AK |
3486 | ac_res=$ac_cv_search_opendir |
3487 | if test "$ac_res" != no; then | |
3488 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
795ca3e5 AK |
3489 | |
3490 | fi | |
3491 | ||
795ca3e5 | 3492 | else |
1995c9ff AK |
3493 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3494 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | |
ad6254c5 | 3495 | if test "${ac_cv_search_opendir+set}" = set; then |
1995c9ff | 3496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
3497 | else |
3498 | ac_func_search_save_LIBS=$LIBS | |
ad6254c5 | 3499 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3500 | /* confdefs.h. */ |
3501 | _ACEOF | |
3502 | cat confdefs.h >>conftest.$ac_ext | |
3503 | cat >>conftest.$ac_ext <<_ACEOF | |
3504 | /* end confdefs.h. */ | |
80992638 | 3505 | |
7a197a62 AK |
3506 | /* Override any GCC internal prototype to avoid an error. |
3507 | Use char because int might match the return type of a GCC | |
3508 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
3509 | #ifdef __cplusplus |
3510 | extern "C" | |
3511 | #endif | |
ad6254c5 AK |
3512 | char opendir (); |
3513 | int | |
3514 | main () | |
3515 | { | |
7a197a62 | 3516 | return opendir (); |
ad6254c5 AK |
3517 | ; |
3518 | return 0; | |
3519 | } | |
3520 | _ACEOF | |
7a197a62 AK |
3521 | for ac_lib in '' x; do |
3522 | if test -z "$ac_lib"; then | |
3523 | ac_res="none required" | |
3524 | else | |
3525 | ac_res=-l$ac_lib | |
3526 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3527 | fi | |
3528 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3529 | if { (ac_try="$ac_link" | |
3530 | case "(($ac_try" in | |
3531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3532 | *) ac_try_echo=$ac_try;; | |
3533 | esac | |
1995c9ff | 3534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 3535 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 3536 | ac_status=$? |
8a2fc586 AK |
3537 | grep -v '^ *+' conftest.er1 >conftest.err |
3538 | rm -f conftest.er1 | |
3539 | cat conftest.err >&5 | |
1995c9ff | 3540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
3541 | (exit $ac_status); } && |
3542 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
3543 | { (case "(($ac_try" in | |
3544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3545 | *) ac_try_echo=$ac_try;; | |
3546 | esac | |
3547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3548 | (eval "$ac_try") 2>&5 | |
3549 | ac_status=$? | |
3550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3551 | (exit $ac_status); }; } && | |
3552 | { ac_try='test -s conftest$ac_exeext' | |
3553 | { (case "(($ac_try" in | |
3554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3555 | *) ac_try_echo=$ac_try;; | |
3556 | esac | |
3557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3558 | (eval "$ac_try") 2>&5 | |
3559 | ac_status=$? | |
3560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3561 | (exit $ac_status); }; }; then | |
7a197a62 | 3562 | ac_cv_search_opendir=$ac_res |
795ca3e5 | 3563 | else |
1995c9ff | 3564 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3565 | sed 's/^/| /' conftest.$ac_ext >&5 |
3566 | ||
ad6254c5 | 3567 | |
7a197a62 | 3568 | fi |
80992638 | 3569 | |
fc54be10 | 3570 | rm -f core conftest.err conftest.$ac_objext \ |
7a197a62 AK |
3571 | conftest$ac_exeext |
3572 | if test "${ac_cv_search_opendir+set}" = set; then | |
3573 | break | |
795ca3e5 | 3574 | fi |
7a197a62 AK |
3575 | done |
3576 | if test "${ac_cv_search_opendir+set}" = set; then | |
3577 | : | |
3578 | else | |
3579 | ac_cv_search_opendir=no | |
ad6254c5 | 3580 | fi |
7a197a62 | 3581 | rm conftest.$ac_ext |
ad6254c5 | 3582 | LIBS=$ac_func_search_save_LIBS |
795ca3e5 | 3583 | fi |
1995c9ff AK |
3584 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3585 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | |
7a197a62 AK |
3586 | ac_res=$ac_cv_search_opendir |
3587 | if test "$ac_res" != no; then | |
3588 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
8106cdd5 | 3589 | |
ad6254c5 | 3590 | fi |
8106cdd5 | 3591 | |
795ca3e5 | 3592 | fi |
8106cdd5 | 3593 | |
ad6254c5 AK |
3594 | ac_ext=c |
3595 | ac_cpp='$CPP $CPPFLAGS' | |
3596 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3597 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3598 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1995c9ff AK |
3599 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3600 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
ad6254c5 AK |
3601 | # On Suns, sometimes $CPP names a directory. |
3602 | if test -n "$CPP" && test -d "$CPP"; then | |
3603 | CPP= | |
3604 | fi | |
3605 | if test -z "$CPP"; then | |
3606 | if test "${ac_cv_prog_CPP+set}" = set; then | |
1995c9ff | 3607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
3608 | else |
3609 | # Double quotes because CPP needs to be expanded | |
3610 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3611 | do | |
3612 | ac_preproc_ok=false | |
3613 | for ac_c_preproc_warn_flag in '' yes | |
8106cdd5 | 3614 | do |
ad6254c5 AK |
3615 | # Use a header file that comes with gcc, so configuring glibc |
3616 | # with a fresh cross-compiler works. | |
3617 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3618 | # <limits.h> exists even on freestanding compilers. | |
3619 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3620 | # not just through cpp. "Syntax error" is here to catch this case. | |
3621 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3622 | /* confdefs.h. */ |
3623 | _ACEOF | |
3624 | cat confdefs.h >>conftest.$ac_ext | |
3625 | cat >>conftest.$ac_ext <<_ACEOF | |
3626 | /* end confdefs.h. */ | |
3627 | #ifdef __STDC__ | |
3628 | # include <limits.h> | |
3629 | #else | |
3630 | # include <assert.h> | |
3631 | #endif | |
8a2fc586 | 3632 | Syntax error |
ad6254c5 | 3633 | _ACEOF |
7a197a62 AK |
3634 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3635 | case "(($ac_try" in | |
3636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3637 | *) ac_try_echo=$ac_try;; | |
3638 | esac | |
1995c9ff | 3639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 3640 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
3641 | ac_status=$? |
3642 | grep -v '^ *+' conftest.er1 >conftest.err | |
3643 | rm -f conftest.er1 | |
3644 | cat conftest.err >&5 | |
1995c9ff | 3645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
3646 | (exit $ac_status); } >/dev/null; then |
3647 | if test -s conftest.err; then | |
3648 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3649 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3650 | else | |
3651 | ac_cpp_err= | |
3652 | fi | |
3653 | else | |
3654 | ac_cpp_err=yes | |
3655 | fi | |
3656 | if test -z "$ac_cpp_err"; then | |
ad6254c5 AK |
3657 | : |
3658 | else | |
1995c9ff | 3659 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3660 | sed 's/^/| /' conftest.$ac_ext >&5 |
3661 | ||
3662 | # Broken: fails on valid input. | |
3663 | continue | |
3664 | fi | |
7a197a62 | 3665 | |
ad6254c5 AK |
3666 | rm -f conftest.err conftest.$ac_ext |
3667 | ||
7a197a62 | 3668 | # OK, works on sane cases. Now check whether nonexistent headers |
ad6254c5 AK |
3669 | # can be detected and how. |
3670 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3671 | /* confdefs.h. */ |
3672 | _ACEOF | |
3673 | cat confdefs.h >>conftest.$ac_ext | |
3674 | cat >>conftest.$ac_ext <<_ACEOF | |
3675 | /* end confdefs.h. */ | |
3676 | #include <ac_nonexistent.h> | |
3677 | _ACEOF | |
7a197a62 AK |
3678 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3679 | case "(($ac_try" in | |
3680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3681 | *) ac_try_echo=$ac_try;; | |
3682 | esac | |
1995c9ff | 3683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 3684 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
3685 | ac_status=$? |
3686 | grep -v '^ *+' conftest.er1 >conftest.err | |
3687 | rm -f conftest.er1 | |
3688 | cat conftest.err >&5 | |
1995c9ff | 3689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
3690 | (exit $ac_status); } >/dev/null; then |
3691 | if test -s conftest.err; then | |
3692 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3693 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3694 | else | |
3695 | ac_cpp_err= | |
3696 | fi | |
3697 | else | |
3698 | ac_cpp_err=yes | |
3699 | fi | |
3700 | if test -z "$ac_cpp_err"; then | |
ad6254c5 AK |
3701 | # Broken: success on invalid input. |
3702 | continue | |
80992638 | 3703 | else |
1995c9ff | 3704 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3705 | sed 's/^/| /' conftest.$ac_ext >&5 |
3706 | ||
3707 | # Passes both tests. | |
3708 | ac_preproc_ok=: | |
3709 | break | |
795ca3e5 | 3710 | fi |
7a197a62 | 3711 | |
ad6254c5 AK |
3712 | rm -f conftest.err conftest.$ac_ext |
3713 | ||
795ca3e5 | 3714 | done |
ad6254c5 AK |
3715 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3716 | rm -f conftest.err conftest.$ac_ext | |
3717 | if $ac_preproc_ok; then | |
3718 | break | |
3719 | fi | |
795ca3e5 | 3720 | |
ad6254c5 AK |
3721 | done |
3722 | ac_cv_prog_CPP=$CPP | |
795ca3e5 | 3723 | |
ad6254c5 AK |
3724 | fi |
3725 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3726 | else |
ad6254c5 | 3727 | ac_cv_prog_CPP=$CPP |
795ca3e5 | 3728 | fi |
1995c9ff AK |
3729 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
3730 | echo "${ECHO_T}$CPP" >&6; } | |
ad6254c5 AK |
3731 | ac_preproc_ok=false |
3732 | for ac_c_preproc_warn_flag in '' yes | |
3733 | do | |
3734 | # Use a header file that comes with gcc, so configuring glibc | |
3735 | # with a fresh cross-compiler works. | |
3736 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3737 | # <limits.h> exists even on freestanding compilers. | |
3738 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3739 | # not just through cpp. "Syntax error" is here to catch this case. | |
3740 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3741 | /* confdefs.h. */ |
3742 | _ACEOF | |
3743 | cat confdefs.h >>conftest.$ac_ext | |
3744 | cat >>conftest.$ac_ext <<_ACEOF | |
3745 | /* end confdefs.h. */ | |
3746 | #ifdef __STDC__ | |
3747 | # include <limits.h> | |
3748 | #else | |
3749 | # include <assert.h> | |
3750 | #endif | |
8a2fc586 | 3751 | Syntax error |
ad6254c5 | 3752 | _ACEOF |
7a197a62 AK |
3753 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3754 | case "(($ac_try" in | |
3755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3756 | *) ac_try_echo=$ac_try;; | |
3757 | esac | |
1995c9ff | 3758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 3759 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
3760 | ac_status=$? |
3761 | grep -v '^ *+' conftest.er1 >conftest.err | |
3762 | rm -f conftest.er1 | |
3763 | cat conftest.err >&5 | |
1995c9ff | 3764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
3765 | (exit $ac_status); } >/dev/null; then |
3766 | if test -s conftest.err; then | |
3767 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3768 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3769 | else | |
3770 | ac_cpp_err= | |
3771 | fi | |
3772 | else | |
3773 | ac_cpp_err=yes | |
3774 | fi | |
3775 | if test -z "$ac_cpp_err"; then | |
ad6254c5 AK |
3776 | : |
3777 | else | |
1995c9ff | 3778 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3779 | sed 's/^/| /' conftest.$ac_ext >&5 |
3780 | ||
3781 | # Broken: fails on valid input. | |
3782 | continue | |
3783 | fi | |
7a197a62 | 3784 | |
ad6254c5 AK |
3785 | rm -f conftest.err conftest.$ac_ext |
3786 | ||
7a197a62 | 3787 | # OK, works on sane cases. Now check whether nonexistent headers |
ad6254c5 AK |
3788 | # can be detected and how. |
3789 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3790 | /* confdefs.h. */ |
3791 | _ACEOF | |
3792 | cat confdefs.h >>conftest.$ac_ext | |
3793 | cat >>conftest.$ac_ext <<_ACEOF | |
3794 | /* end confdefs.h. */ | |
3795 | #include <ac_nonexistent.h> | |
3796 | _ACEOF | |
7a197a62 AK |
3797 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3798 | case "(($ac_try" in | |
3799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3800 | *) ac_try_echo=$ac_try;; | |
3801 | esac | |
1995c9ff | 3802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 3803 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
3804 | ac_status=$? |
3805 | grep -v '^ *+' conftest.er1 >conftest.err | |
3806 | rm -f conftest.er1 | |
3807 | cat conftest.err >&5 | |
1995c9ff | 3808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
3809 | (exit $ac_status); } >/dev/null; then |
3810 | if test -s conftest.err; then | |
3811 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3812 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3813 | else | |
3814 | ac_cpp_err= | |
3815 | fi | |
3816 | else | |
3817 | ac_cpp_err=yes | |
3818 | fi | |
3819 | if test -z "$ac_cpp_err"; then | |
ad6254c5 AK |
3820 | # Broken: success on invalid input. |
3821 | continue | |
3822 | else | |
1995c9ff | 3823 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3824 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 3825 | |
ad6254c5 AK |
3826 | # Passes both tests. |
3827 | ac_preproc_ok=: | |
3828 | break | |
795ca3e5 | 3829 | fi |
7a197a62 | 3830 | |
ad6254c5 | 3831 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3832 | |
ad6254c5 AK |
3833 | done |
3834 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3835 | rm -f conftest.err conftest.$ac_ext | |
3836 | if $ac_preproc_ok; then | |
3837 | : | |
795ca3e5 | 3838 | else |
1995c9ff | 3839 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
ad6254c5 | 3840 | See \`config.log' for more details." >&5 |
1995c9ff | 3841 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
ad6254c5 AK |
3842 | See \`config.log' for more details." >&2;} |
3843 | { (exit 1); exit 1; }; } | |
795ca3e5 | 3844 | fi |
795ca3e5 | 3845 | |
ad6254c5 AK |
3846 | ac_ext=c |
3847 | ac_cpp='$CPP $CPPFLAGS' | |
3848 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3849 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3850 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3851 | ||
3852 | ||
1995c9ff AK |
3853 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3854 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
7a197a62 | 3855 | if test "${ac_cv_path_GREP+set}" = set; then |
1995c9ff | 3856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7a197a62 AK |
3857 | else |
3858 | # Extract the first word of "grep ggrep" to use in msg output | |
3859 | if test -z "$GREP"; then | |
3860 | set dummy grep ggrep; ac_prog_name=$2 | |
3861 | if test "${ac_cv_path_GREP+set}" = set; then | |
1995c9ff | 3862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3863 | else |
7a197a62 AK |
3864 | ac_path_GREP_found=false |
3865 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3867 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3868 | do | |
3869 | IFS=$as_save_IFS | |
3870 | test -z "$as_dir" && as_dir=. | |
3871 | for ac_prog in grep ggrep; do | |
3872 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3873 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
fc54be10 | 3874 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
7a197a62 AK |
3875 | # Check for GNU ac_path_GREP and select it if it is found. |
3876 | # Check for GNU $ac_path_GREP | |
3877 | case `"$ac_path_GREP" --version 2>&1` in | |
3878 | *GNU*) | |
3879 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3880 | *) | |
3881 | ac_count=0 | |
1995c9ff | 3882 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
7a197a62 AK |
3883 | while : |
3884 | do | |
3885 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3886 | mv "conftest.tmp" "conftest.in" | |
3887 | cp "conftest.in" "conftest.nl" | |
1995c9ff | 3888 | echo 'GREP' >> "conftest.nl" |
7a197a62 AK |
3889 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3890 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3891 | ac_count=`expr $ac_count + 1` | |
3892 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3893 | # Best one so far, save it but keep looking for a better one | |
3894 | ac_cv_path_GREP="$ac_path_GREP" | |
3895 | ac_path_GREP_max=$ac_count | |
ad6254c5 | 3896 | fi |
7a197a62 AK |
3897 | # 10*(2^10) chars as input seems more than enough |
3898 | test $ac_count -gt 10 && break | |
3899 | done | |
3900 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3901 | esac | |
80992638 | 3902 | |
795ca3e5 | 3903 | |
7a197a62 AK |
3904 | $ac_path_GREP_found && break 3 |
3905 | done | |
3906 | done | |
ad6254c5 | 3907 | |
7a197a62 AK |
3908 | done |
3909 | IFS=$as_save_IFS | |
ad6254c5 | 3910 | |
ad6254c5 | 3911 | |
795ca3e5 | 3912 | fi |
ad6254c5 | 3913 | |
7a197a62 AK |
3914 | GREP="$ac_cv_path_GREP" |
3915 | if test -z "$GREP"; then | |
1995c9ff AK |
3916 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3917 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
7a197a62 AK |
3918 | { (exit 1); exit 1; }; } |
3919 | fi | |
3920 | ||
3921 | else | |
3922 | ac_cv_path_GREP=$GREP | |
3923 | fi | |
3924 | ||
3925 | ||
3926 | fi | |
1995c9ff AK |
3927 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3928 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
7a197a62 AK |
3929 | GREP="$ac_cv_path_GREP" |
3930 | ||
3931 | ||
1995c9ff AK |
3932 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
3933 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
7a197a62 | 3934 | if test "${ac_cv_path_EGREP+set}" = set; then |
1995c9ff | 3935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7a197a62 AK |
3936 | else |
3937 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3938 | then ac_cv_path_EGREP="$GREP -E" | |
3939 | else | |
3940 | # Extract the first word of "egrep" to use in msg output | |
3941 | if test -z "$EGREP"; then | |
3942 | set dummy egrep; ac_prog_name=$2 | |
3943 | if test "${ac_cv_path_EGREP+set}" = set; then | |
1995c9ff | 3944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7a197a62 AK |
3945 | else |
3946 | ac_path_EGREP_found=false | |
3947 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3949 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3950 | do | |
3951 | IFS=$as_save_IFS | |
3952 | test -z "$as_dir" && as_dir=. | |
3953 | for ac_prog in egrep; do | |
3954 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3955 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
fc54be10 | 3956 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
7a197a62 AK |
3957 | # Check for GNU ac_path_EGREP and select it if it is found. |
3958 | # Check for GNU $ac_path_EGREP | |
3959 | case `"$ac_path_EGREP" --version 2>&1` in | |
3960 | *GNU*) | |
3961 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3962 | *) | |
3963 | ac_count=0 | |
1995c9ff | 3964 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
7a197a62 AK |
3965 | while : |
3966 | do | |
3967 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3968 | mv "conftest.tmp" "conftest.in" | |
3969 | cp "conftest.in" "conftest.nl" | |
1995c9ff | 3970 | echo 'EGREP' >> "conftest.nl" |
7a197a62 AK |
3971 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3972 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3973 | ac_count=`expr $ac_count + 1` | |
3974 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3975 | # Best one so far, save it but keep looking for a better one | |
3976 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3977 | ac_path_EGREP_max=$ac_count | |
3978 | fi | |
3979 | # 10*(2^10) chars as input seems more than enough | |
3980 | test $ac_count -gt 10 && break | |
3981 | done | |
3982 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3983 | esac | |
3984 | ||
3985 | ||
3986 | $ac_path_EGREP_found && break 3 | |
3987 | done | |
3988 | done | |
3989 | ||
3990 | done | |
3991 | IFS=$as_save_IFS | |
3992 | ||
3993 | ||
3994 | fi | |
3995 | ||
3996 | EGREP="$ac_cv_path_EGREP" | |
3997 | if test -z "$EGREP"; then | |
1995c9ff AK |
3998 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3999 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
7a197a62 AK |
4000 | { (exit 1); exit 1; }; } |
4001 | fi | |
4002 | ||
4003 | else | |
4004 | ac_cv_path_EGREP=$EGREP | |
4005 | fi | |
4006 | ||
4007 | ||
4008 | fi | |
4009 | fi | |
1995c9ff AK |
4010 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
4011 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
7a197a62 AK |
4012 | EGREP="$ac_cv_path_EGREP" |
4013 | ||
4014 | ||
1995c9ff AK |
4015 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4016 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
7a197a62 | 4017 | if test "${ac_cv_header_stdc+set}" = set; then |
1995c9ff | 4018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7a197a62 AK |
4019 | else |
4020 | cat >conftest.$ac_ext <<_ACEOF | |
4021 | /* confdefs.h. */ | |
4022 | _ACEOF | |
4023 | cat confdefs.h >>conftest.$ac_ext | |
4024 | cat >>conftest.$ac_ext <<_ACEOF | |
4025 | /* end confdefs.h. */ | |
4026 | #include <stdlib.h> | |
4027 | #include <stdarg.h> | |
4028 | #include <string.h> | |
4029 | #include <float.h> | |
4030 | ||
4031 | int | |
4032 | main () | |
4033 | { | |
4034 | ||
4035 | ; | |
4036 | return 0; | |
4037 | } | |
4038 | _ACEOF | |
4039 | rm -f conftest.$ac_objext | |
4040 | if { (ac_try="$ac_compile" | |
4041 | case "(($ac_try" in | |
4042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4043 | *) ac_try_echo=$ac_try;; | |
4044 | esac | |
1995c9ff | 4045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 AK |
4046 | (eval "$ac_compile") 2>conftest.er1 |
4047 | ac_status=$? | |
4048 | grep -v '^ *+' conftest.er1 >conftest.err | |
4049 | rm -f conftest.er1 | |
4050 | cat conftest.err >&5 | |
1995c9ff | 4051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
4052 | (exit $ac_status); } && |
4053 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4054 | { (case "(($ac_try" in | |
4055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4056 | *) ac_try_echo=$ac_try;; | |
4057 | esac | |
4058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4059 | (eval "$ac_try") 2>&5 | |
4060 | ac_status=$? | |
4061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4062 | (exit $ac_status); }; } && | |
4063 | { ac_try='test -s conftest.$ac_objext' | |
4064 | { (case "(($ac_try" in | |
4065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4066 | *) ac_try_echo=$ac_try;; | |
4067 | esac | |
4068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4069 | (eval "$ac_try") 2>&5 | |
4070 | ac_status=$? | |
4071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4072 | (exit $ac_status); }; }; then | |
7a197a62 AK |
4073 | ac_cv_header_stdc=yes |
4074 | else | |
1995c9ff | 4075 | echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4076 | sed 's/^/| /' conftest.$ac_ext >&5 |
4077 | ||
4078 | ac_cv_header_stdc=no | |
4079 | fi | |
4080 | ||
4081 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4082 | ||
4083 | if test $ac_cv_header_stdc = yes; then | |
4084 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4085 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4086 | /* confdefs.h. */ |
4087 | _ACEOF | |
4088 | cat confdefs.h >>conftest.$ac_ext | |
4089 | cat >>conftest.$ac_ext <<_ACEOF | |
4090 | /* end confdefs.h. */ | |
4091 | #include <string.h> | |
8106cdd5 | 4092 | |
ad6254c5 AK |
4093 | _ACEOF |
4094 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4095 | $EGREP "memchr" >/dev/null 2>&1; then | |
4096 | : | |
4097 | else | |
4098 | ac_cv_header_stdc=no | |
80992638 | 4099 | fi |
ad6254c5 | 4100 | rm -f conftest* |
795ca3e5 AK |
4101 | |
4102 | fi | |
4103 | ||
ad6254c5 AK |
4104 | if test $ac_cv_header_stdc = yes; then |
4105 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4106 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4107 | /* confdefs.h. */ |
4108 | _ACEOF | |
4109 | cat confdefs.h >>conftest.$ac_ext | |
4110 | cat >>conftest.$ac_ext <<_ACEOF | |
4111 | /* end confdefs.h. */ | |
80992638 | 4112 | #include <stdlib.h> |
ad6254c5 AK |
4113 | |
4114 | _ACEOF | |
80992638 | 4115 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4116 | $EGREP "free" >/dev/null 2>&1; then |
4117 | : | |
795ca3e5 | 4118 | else |
ad6254c5 | 4119 | ac_cv_header_stdc=no |
795ca3e5 | 4120 | fi |
80992638 | 4121 | rm -f conftest* |
8106cdd5 | 4122 | |
795ca3e5 AK |
4123 | fi |
4124 | ||
ad6254c5 AK |
4125 | if test $ac_cv_header_stdc = yes; then |
4126 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4127 | if test "$cross_compiling" = yes; then | |
4128 | : | |
795ca3e5 | 4129 | else |
ad6254c5 | 4130 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4131 | /* confdefs.h. */ |
4132 | _ACEOF | |
4133 | cat confdefs.h >>conftest.$ac_ext | |
4134 | cat >>conftest.$ac_ext <<_ACEOF | |
4135 | /* end confdefs.h. */ | |
4136 | #include <ctype.h> | |
7a197a62 | 4137 | #include <stdlib.h> |
ad6254c5 AK |
4138 | #if ((' ' & 0x0FF) == 0x020) |
4139 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4140 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4141 | #else | |
4142 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4143 | (('a' <= (c) && (c) <= 'i') \ |
4144 | || ('j' <= (c) && (c) <= 'r') \ | |
4145 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4146 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4147 | #endif |
ad6254c5 AK |
4148 | |
4149 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4150 | int | |
4151 | main () | |
4152 | { | |
4153 | int i; | |
4154 | for (i = 0; i < 256; i++) | |
4155 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4156 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4157 | return 2; |
4158 | return 0; | |
ad6254c5 AK |
4159 | } |
4160 | _ACEOF | |
4161 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4162 | if { (ac_try="$ac_link" |
4163 | case "(($ac_try" in | |
4164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4165 | *) ac_try_echo=$ac_try;; | |
4166 | esac | |
1995c9ff | 4167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4168 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4169 | ac_status=$? |
1995c9ff | 4170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4171 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4172 | { (case "(($ac_try" in |
4173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4174 | *) ac_try_echo=$ac_try;; | |
4175 | esac | |
1995c9ff | 4176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4177 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4178 | ac_status=$? |
1995c9ff | 4179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4180 | (exit $ac_status); }; }; then |
4181 | : | |
795ca3e5 | 4182 | else |
1995c9ff AK |
4183 | echo "$as_me: program exited with status $ac_status" >&5 |
4184 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4185 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4186 | |
ad6254c5 AK |
4187 | ( exit $ac_status ) |
4188 | ac_cv_header_stdc=no | |
80992638 | 4189 | fi |
7a197a62 | 4190 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4191 | fi |
7a197a62 AK |
4192 | |
4193 | ||
ad6254c5 AK |
4194 | fi |
4195 | fi | |
1995c9ff AK |
4196 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4197 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4198 | if test $ac_cv_header_stdc = yes; then |
4199 | ||
4200 | cat >>confdefs.h <<\_ACEOF | |
4201 | #define STDC_HEADERS 1 | |
4202 | _ACEOF | |
795ca3e5 AK |
4203 | |
4204 | fi | |
4205 | ||
1995c9ff AK |
4206 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4207 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } | |
ad6254c5 | 4208 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
1995c9ff | 4209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 | 4210 | else |
ad6254c5 | 4211 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4212 | /* confdefs.h. */ |
4213 | _ACEOF | |
4214 | cat confdefs.h >>conftest.$ac_ext | |
4215 | cat >>conftest.$ac_ext <<_ACEOF | |
4216 | /* end confdefs.h. */ | |
80992638 | 4217 | #include <sys/types.h> |
ad6254c5 AK |
4218 | #include <sys/wait.h> |
4219 | #ifndef WEXITSTATUS | |
7a197a62 | 4220 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
ad6254c5 AK |
4221 | #endif |
4222 | #ifndef WIFEXITED | |
4223 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4224 | #endif | |
4225 | ||
4226 | int | |
4227 | main () | |
4228 | { | |
4229 | int s; | |
4230 | wait (&s); | |
4231 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4232 | ; | |
4233 | return 0; | |
4234 | } | |
4235 | _ACEOF | |
4236 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4237 | if { (ac_try="$ac_compile" |
4238 | case "(($ac_try" in | |
4239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4240 | *) ac_try_echo=$ac_try;; | |
4241 | esac | |
1995c9ff | 4242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4243 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4244 | ac_status=$? |
8a2fc586 AK |
4245 | grep -v '^ *+' conftest.er1 >conftest.err |
4246 | rm -f conftest.er1 | |
4247 | cat conftest.err >&5 | |
1995c9ff | 4248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
4249 | (exit $ac_status); } && |
4250 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4251 | { (case "(($ac_try" in | |
4252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4253 | *) ac_try_echo=$ac_try;; | |
4254 | esac | |
4255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4256 | (eval "$ac_try") 2>&5 | |
4257 | ac_status=$? | |
4258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4259 | (exit $ac_status); }; } && | |
4260 | { ac_try='test -s conftest.$ac_objext' | |
4261 | { (case "(($ac_try" in | |
4262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4263 | *) ac_try_echo=$ac_try;; | |
4264 | esac | |
4265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4266 | (eval "$ac_try") 2>&5 | |
4267 | ac_status=$? | |
4268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4269 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
4270 | ac_cv_header_sys_wait_h=yes |
4271 | else | |
1995c9ff | 4272 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4273 | sed 's/^/| /' conftest.$ac_ext >&5 |
4274 | ||
7a197a62 | 4275 | ac_cv_header_sys_wait_h=no |
8106cdd5 | 4276 | fi |
7a197a62 AK |
4277 | |
4278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4279 | fi |
1995c9ff AK |
4280 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
4281 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } | |
ad6254c5 | 4282 | if test $ac_cv_header_sys_wait_h = yes; then |
8106cdd5 | 4283 | |
ad6254c5 AK |
4284 | cat >>confdefs.h <<\_ACEOF |
4285 | #define HAVE_SYS_WAIT_H 1 | |
4286 | _ACEOF | |
795ca3e5 AK |
4287 | |
4288 | fi | |
4289 | ||
1995c9ff AK |
4290 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
4291 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } | |
ad6254c5 | 4292 | if test "${ac_cv_header_time+set}" = set; then |
1995c9ff | 4293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 4294 | else |
ad6254c5 | 4295 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4296 | /* confdefs.h. */ |
4297 | _ACEOF | |
4298 | cat confdefs.h >>conftest.$ac_ext | |
4299 | cat >>conftest.$ac_ext <<_ACEOF | |
4300 | /* end confdefs.h. */ | |
795ca3e5 AK |
4301 | #include <sys/types.h> |
4302 | #include <sys/time.h> | |
4303 | #include <time.h> | |
ad6254c5 AK |
4304 | |
4305 | int | |
4306 | main () | |
4307 | { | |
4308 | if ((struct tm *) 0) | |
4309 | return 0; | |
4310 | ; | |
4311 | return 0; | |
4312 | } | |
4313 | _ACEOF | |
4314 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4315 | if { (ac_try="$ac_compile" |
4316 | case "(($ac_try" in | |
4317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4318 | *) ac_try_echo=$ac_try;; | |
4319 | esac | |
1995c9ff | 4320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4321 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4322 | ac_status=$? |
8a2fc586 AK |
4323 | grep -v '^ *+' conftest.er1 >conftest.err |
4324 | rm -f conftest.er1 | |
4325 | cat conftest.err >&5 | |
1995c9ff | 4326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
4327 | (exit $ac_status); } && |
4328 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4329 | { (case "(($ac_try" in | |
4330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4331 | *) ac_try_echo=$ac_try;; | |
4332 | esac | |
4333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4334 | (eval "$ac_try") 2>&5 | |
4335 | ac_status=$? | |
4336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4337 | (exit $ac_status); }; } && | |
4338 | { ac_try='test -s conftest.$ac_objext' | |
4339 | { (case "(($ac_try" in | |
4340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4341 | *) ac_try_echo=$ac_try;; | |
4342 | esac | |
4343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4344 | (eval "$ac_try") 2>&5 | |
4345 | ac_status=$? | |
4346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4347 | (exit $ac_status); }; }; then | |
795ca3e5 AK |
4348 | ac_cv_header_time=yes |
4349 | else | |
1995c9ff | 4350 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4351 | sed 's/^/| /' conftest.$ac_ext >&5 |
4352 | ||
7a197a62 | 4353 | ac_cv_header_time=no |
795ca3e5 | 4354 | fi |
7a197a62 AK |
4355 | |
4356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4357 | fi |
1995c9ff AK |
4358 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
4359 | echo "${ECHO_T}$ac_cv_header_time" >&6; } | |
80992638 | 4360 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
4361 | |
4362 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 4363 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 4364 | _ACEOF |
b896caa1 | 4365 | |
8106cdd5 | 4366 | fi |
b896caa1 | 4367 | |
b896caa1 | 4368 | |
ad6254c5 | 4369 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
b896caa1 | 4370 | |
b896caa1 AK |
4371 | |
4372 | ||
795ca3e5 | 4373 | |
8106cdd5 | 4374 | |
80992638 | 4375 | |
795ca3e5 | 4376 | |
a38df97f | 4377 | |
80992638 | 4378 | |
ad6254c5 | 4379 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
8a2fc586 | 4380 | inttypes.h stdint.h unistd.h |
ad6254c5 | 4381 | do |
1995c9ff AK |
4382 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4383 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4384 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4385 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 4386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
4387 | else |
4388 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4389 | /* confdefs.h. */ |
4390 | _ACEOF | |
4391 | cat confdefs.h >>conftest.$ac_ext | |
4392 | cat >>conftest.$ac_ext <<_ACEOF | |
4393 | /* end confdefs.h. */ | |
4394 | $ac_includes_default | |
4395 | ||
4396 | #include <$ac_header> | |
4397 | _ACEOF | |
4398 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4399 | if { (ac_try="$ac_compile" |
4400 | case "(($ac_try" in | |
4401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4402 | *) ac_try_echo=$ac_try;; | |
4403 | esac | |
1995c9ff | 4404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4405 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4406 | ac_status=$? |
8a2fc586 AK |
4407 | grep -v '^ *+' conftest.er1 >conftest.err |
4408 | rm -f conftest.er1 | |
4409 | cat conftest.err >&5 | |
1995c9ff | 4410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
4411 | (exit $ac_status); } && |
4412 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4413 | { (case "(($ac_try" in | |
4414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4415 | *) ac_try_echo=$ac_try;; | |
4416 | esac | |
4417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4418 | (eval "$ac_try") 2>&5 | |
4419 | ac_status=$? | |
4420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4421 | (exit $ac_status); }; } && | |
4422 | { ac_try='test -s conftest.$ac_objext' | |
4423 | { (case "(($ac_try" in | |
4424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4425 | *) ac_try_echo=$ac_try;; | |
4426 | esac | |
4427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4428 | (eval "$ac_try") 2>&5 | |
4429 | ac_status=$? | |
4430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4431 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
4432 | eval "$as_ac_Header=yes" |
4433 | else | |
1995c9ff | 4434 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4435 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4436 | |
7a197a62 | 4437 | eval "$as_ac_Header=no" |
ad6254c5 | 4438 | fi |
7a197a62 AK |
4439 | |
4440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a38df97f | 4441 | fi |
1995c9ff AK |
4442 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4443 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4444 | echo "${ECHO_T}$ac_res" >&6; } | |
4445 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
ad6254c5 | 4446 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 4447 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4448 | _ACEOF |
a38df97f | 4449 | |
80992638 AK |
4450 | fi |
4451 | ||
ad6254c5 AK |
4452 | done |
4453 | ||
7d1552c9 | 4454 | |
7d1552c9 | 4455 | |
80992638 | 4456 | |
5a52dca9 | 4457 | |
5a52dca9 | 4458 | |
ad6254c5 AK |
4459 | |
4460 | ||
4461 | ||
4462 | ||
4463 | ||
4464 | 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 | |
4465 | do | |
1995c9ff | 4466 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4467 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
4468 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4469 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4470 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 4471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4472 | fi |
1995c9ff AK |
4473 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4474 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4475 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4476 | else |
4477 | # Is the header compilable? | |
1995c9ff AK |
4478 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4479 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4480 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4481 | /* confdefs.h. */ |
4482 | _ACEOF | |
4483 | cat confdefs.h >>conftest.$ac_ext | |
4484 | cat >>conftest.$ac_ext <<_ACEOF | |
4485 | /* end confdefs.h. */ | |
4486 | $ac_includes_default | |
4487 | #include <$ac_header> | |
4488 | _ACEOF | |
4489 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4490 | if { (ac_try="$ac_compile" |
4491 | case "(($ac_try" in | |
4492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4493 | *) ac_try_echo=$ac_try;; | |
4494 | esac | |
1995c9ff | 4495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4496 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4497 | ac_status=$? |
8a2fc586 AK |
4498 | grep -v '^ *+' conftest.er1 >conftest.err |
4499 | rm -f conftest.er1 | |
4500 | cat conftest.err >&5 | |
1995c9ff | 4501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
4502 | (exit $ac_status); } && |
4503 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4504 | { (case "(($ac_try" in | |
4505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4506 | *) ac_try_echo=$ac_try;; | |
4507 | esac | |
4508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4509 | (eval "$ac_try") 2>&5 | |
4510 | ac_status=$? | |
4511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4512 | (exit $ac_status); }; } && | |
4513 | { ac_try='test -s conftest.$ac_objext' | |
4514 | { (case "(($ac_try" in | |
4515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4516 | *) ac_try_echo=$ac_try;; | |
4517 | esac | |
4518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4519 | (eval "$ac_try") 2>&5 | |
4520 | ac_status=$? | |
4521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4522 | (exit $ac_status); }; }; then | |
4523 | ac_header_compiler=yes | |
4524 | else | |
4525 | echo "$as_me: failed program was:" >&5 | |
4526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4527 | ||
4528 | ac_header_compiler=no | |
4529 | fi | |
4530 | ||
4531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
4532 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4533 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4534 | |
4535 | # Is the header present? | |
1995c9ff AK |
4536 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4537 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4538 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4539 | /* confdefs.h. */ |
4540 | _ACEOF | |
4541 | cat confdefs.h >>conftest.$ac_ext | |
4542 | cat >>conftest.$ac_ext <<_ACEOF | |
4543 | /* end confdefs.h. */ | |
4544 | #include <$ac_header> | |
4545 | _ACEOF | |
7a197a62 AK |
4546 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4547 | case "(($ac_try" in | |
4548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4549 | *) ac_try_echo=$ac_try;; | |
4550 | esac | |
1995c9ff | 4551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4552 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4553 | ac_status=$? |
4554 | grep -v '^ *+' conftest.er1 >conftest.err | |
4555 | rm -f conftest.er1 | |
4556 | cat conftest.err >&5 | |
1995c9ff | 4557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
4558 | (exit $ac_status); } >/dev/null; then |
4559 | if test -s conftest.err; then | |
4560 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4561 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4562 | else | |
4563 | ac_cpp_err= | |
4564 | fi | |
4565 | else | |
4566 | ac_cpp_err=yes | |
4567 | fi | |
4568 | if test -z "$ac_cpp_err"; then | |
ad6254c5 AK |
4569 | ac_header_preproc=yes |
4570 | else | |
1995c9ff | 4571 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4572 | sed 's/^/| /' conftest.$ac_ext >&5 |
4573 | ||
4574 | ac_header_preproc=no | |
4575 | fi | |
7a197a62 | 4576 | |
ad6254c5 | 4577 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
4578 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4579 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4580 | |
4581 | # So? What about this header? | |
8a2fc586 AK |
4582 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4583 | yes:no: ) | |
1995c9ff AK |
4584 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4585 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4586 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4587 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4588 | ac_header_preproc=yes |
ad6254c5 | 4589 | ;; |
8a2fc586 | 4590 | no:yes:* ) |
1995c9ff AK |
4591 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4592 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4593 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4594 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4595 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4596 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4597 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4598 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4599 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4600 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4601 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4602 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4603 | |
ad6254c5 AK |
4604 | ;; |
4605 | esac | |
1995c9ff AK |
4606 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4607 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4608 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 4609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4610 | else |
8a2fc586 | 4611 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 4612 | fi |
1995c9ff AK |
4613 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4614 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4615 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4616 | |
4617 | fi | |
1995c9ff | 4618 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4619 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 4620 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4621 | _ACEOF |
b896caa1 | 4622 | |
d8ac0fbc | 4623 | else |
1995c9ff AK |
4624 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4625 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4626 | { (exit 1); exit 1; }; } |
80992638 AK |
4627 | fi |
4628 | ||
ad6254c5 | 4629 | done |
d8ac0fbc | 4630 | |
d8ac0fbc | 4631 | |
d8ac0fbc | 4632 | |
80992638 | 4633 | |
d3c8211f | 4634 | |
d3c8211f | 4635 | |
d3c8211f | 4636 | |
80992638 | 4637 | |
4922197a | 4638 | |
4922197a | 4639 | |
ad6254c5 AK |
4640 | |
4641 | ||
4642 | ||
4643 | 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 | |
4644 | do | |
1995c9ff | 4645 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4646 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
4647 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4648 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4649 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 4650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4651 | fi |
1995c9ff AK |
4652 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4653 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4654 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4655 | else |
4656 | # Is the header compilable? | |
1995c9ff AK |
4657 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4658 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4659 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4660 | /* confdefs.h. */ |
4661 | _ACEOF | |
4662 | cat confdefs.h >>conftest.$ac_ext | |
4663 | cat >>conftest.$ac_ext <<_ACEOF | |
4664 | /* end confdefs.h. */ | |
4665 | $ac_includes_default | |
4666 | #include <$ac_header> | |
4667 | _ACEOF | |
4668 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4669 | if { (ac_try="$ac_compile" |
4670 | case "(($ac_try" in | |
4671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4672 | *) ac_try_echo=$ac_try;; | |
4673 | esac | |
1995c9ff | 4674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4675 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4676 | ac_status=$? |
8a2fc586 AK |
4677 | grep -v '^ *+' conftest.er1 >conftest.err |
4678 | rm -f conftest.er1 | |
4679 | cat conftest.err >&5 | |
1995c9ff | 4680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
4681 | (exit $ac_status); } && |
4682 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4683 | { (case "(($ac_try" in | |
4684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4685 | *) ac_try_echo=$ac_try;; | |
4686 | esac | |
4687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4688 | (eval "$ac_try") 2>&5 | |
4689 | ac_status=$? | |
4690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4691 | (exit $ac_status); }; } && | |
4692 | { ac_try='test -s conftest.$ac_objext' | |
4693 | { (case "(($ac_try" in | |
4694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4695 | *) ac_try_echo=$ac_try;; | |
4696 | esac | |
4697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4698 | (eval "$ac_try") 2>&5 | |
4699 | ac_status=$? | |
4700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4701 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
4702 | ac_header_compiler=yes |
4703 | else | |
1995c9ff | 4704 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4705 | sed 's/^/| /' conftest.$ac_ext >&5 |
4706 | ||
7a197a62 | 4707 | ac_header_compiler=no |
ad6254c5 | 4708 | fi |
7a197a62 AK |
4709 | |
4710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
4711 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4712 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4713 | |
4714 | # Is the header present? | |
1995c9ff AK |
4715 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4716 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4717 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4718 | /* confdefs.h. */ |
4719 | _ACEOF | |
4720 | cat confdefs.h >>conftest.$ac_ext | |
4721 | cat >>conftest.$ac_ext <<_ACEOF | |
4722 | /* end confdefs.h. */ | |
4723 | #include <$ac_header> | |
4724 | _ACEOF | |
7a197a62 AK |
4725 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4726 | case "(($ac_try" in | |
4727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4728 | *) ac_try_echo=$ac_try;; | |
4729 | esac | |
1995c9ff | 4730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4731 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4732 | ac_status=$? |
4733 | grep -v '^ *+' conftest.er1 >conftest.err | |
4734 | rm -f conftest.er1 | |
4735 | cat conftest.err >&5 | |
1995c9ff | 4736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
4737 | (exit $ac_status); } >/dev/null; then |
4738 | if test -s conftest.err; then | |
4739 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4740 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4741 | else | |
4742 | ac_cpp_err= | |
4743 | fi | |
4744 | else | |
4745 | ac_cpp_err=yes | |
4746 | fi | |
4747 | if test -z "$ac_cpp_err"; then | |
ad6254c5 AK |
4748 | ac_header_preproc=yes |
4749 | else | |
1995c9ff | 4750 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4751 | sed 's/^/| /' conftest.$ac_ext >&5 |
4752 | ||
4753 | ac_header_preproc=no | |
4754 | fi | |
7a197a62 | 4755 | |
ad6254c5 | 4756 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
4757 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4758 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4759 | |
4760 | # So? What about this header? | |
8a2fc586 AK |
4761 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4762 | yes:no: ) | |
1995c9ff AK |
4763 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4764 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4765 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4766 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4767 | ac_header_preproc=yes |
ad6254c5 | 4768 | ;; |
8a2fc586 | 4769 | no:yes:* ) |
1995c9ff AK |
4770 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4771 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4772 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4773 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4774 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4775 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4776 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4777 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4778 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4779 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4780 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4781 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4782 | |
ad6254c5 AK |
4783 | ;; |
4784 | esac | |
1995c9ff AK |
4785 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4786 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4787 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 4788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4789 | else |
8a2fc586 | 4790 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 4791 | fi |
1995c9ff AK |
4792 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4793 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4794 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4795 | |
4796 | fi | |
1995c9ff | 4797 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4798 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 4799 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4800 | _ACEOF |
4922197a | 4801 | |
4922197a | 4802 | else |
1995c9ff AK |
4803 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4804 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4805 | { (exit 1); exit 1; }; } |
80992638 AK |
4806 | fi |
4807 | ||
ad6254c5 | 4808 | done |
4922197a | 4809 | |
4922197a | 4810 | |
ad6254c5 AK |
4811 | case "$host_os" in |
4812 | linux*) | |
4922197a | 4813 | |
ad6254c5 AK |
4814 | |
4815 | ||
4816 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
4817 | do | |
1995c9ff | 4818 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4819 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
4820 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4821 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4822 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 4823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4824 | fi |
1995c9ff AK |
4825 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4826 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4827 | echo "${ECHO_T}$ac_res" >&6; } | |
795ca3e5 | 4828 | else |
ad6254c5 | 4829 | # Is the header compilable? |
1995c9ff AK |
4830 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4831 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4832 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4833 | /* confdefs.h. */ |
4834 | _ACEOF | |
4835 | cat confdefs.h >>conftest.$ac_ext | |
4836 | cat >>conftest.$ac_ext <<_ACEOF | |
4837 | /* end confdefs.h. */ | |
4838 | $ac_includes_default | |
4839 | #include <$ac_header> | |
4840 | _ACEOF | |
4841 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4842 | if { (ac_try="$ac_compile" |
4843 | case "(($ac_try" in | |
4844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4845 | *) ac_try_echo=$ac_try;; | |
4846 | esac | |
1995c9ff | 4847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4848 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4849 | ac_status=$? |
8a2fc586 AK |
4850 | grep -v '^ *+' conftest.er1 >conftest.err |
4851 | rm -f conftest.er1 | |
4852 | cat conftest.err >&5 | |
1995c9ff | 4853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
4854 | (exit $ac_status); } && |
4855 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4856 | { (case "(($ac_try" in | |
4857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4858 | *) ac_try_echo=$ac_try;; | |
4859 | esac | |
4860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4861 | (eval "$ac_try") 2>&5 | |
4862 | ac_status=$? | |
4863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4864 | (exit $ac_status); }; } && | |
4865 | { ac_try='test -s conftest.$ac_objext' | |
4866 | { (case "(($ac_try" in | |
4867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4868 | *) ac_try_echo=$ac_try;; | |
4869 | esac | |
4870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4871 | (eval "$ac_try") 2>&5 | |
4872 | ac_status=$? | |
4873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4874 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
4875 | ac_header_compiler=yes |
4876 | else | |
1995c9ff | 4877 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4878 | sed 's/^/| /' conftest.$ac_ext >&5 |
4879 | ||
7a197a62 | 4880 | ac_header_compiler=no |
ad6254c5 | 4881 | fi |
7a197a62 AK |
4882 | |
4883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
4884 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4885 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4886 | |
4887 | # Is the header present? | |
1995c9ff AK |
4888 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4889 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4890 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4891 | /* confdefs.h. */ |
4892 | _ACEOF | |
4893 | cat confdefs.h >>conftest.$ac_ext | |
4894 | cat >>conftest.$ac_ext <<_ACEOF | |
4895 | /* end confdefs.h. */ | |
4896 | #include <$ac_header> | |
4897 | _ACEOF | |
7a197a62 AK |
4898 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4899 | case "(($ac_try" in | |
4900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4901 | *) ac_try_echo=$ac_try;; | |
4902 | esac | |
1995c9ff | 4903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4904 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4905 | ac_status=$? |
4906 | grep -v '^ *+' conftest.er1 >conftest.err | |
4907 | rm -f conftest.er1 | |
4908 | cat conftest.err >&5 | |
1995c9ff | 4909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
4910 | (exit $ac_status); } >/dev/null; then |
4911 | if test -s conftest.err; then | |
4912 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4913 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4914 | else | |
4915 | ac_cpp_err= | |
4916 | fi | |
4917 | else | |
4918 | ac_cpp_err=yes | |
4919 | fi | |
4920 | if test -z "$ac_cpp_err"; then | |
ad6254c5 AK |
4921 | ac_header_preproc=yes |
4922 | else | |
1995c9ff | 4923 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4924 | sed 's/^/| /' conftest.$ac_ext >&5 |
4925 | ||
4926 | ac_header_preproc=no | |
4927 | fi | |
7a197a62 | 4928 | |
ad6254c5 | 4929 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
4930 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4931 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4932 | |
4933 | # So? What about this header? | |
8a2fc586 AK |
4934 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4935 | yes:no: ) | |
1995c9ff AK |
4936 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4937 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4938 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4939 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4940 | ac_header_preproc=yes |
ad6254c5 | 4941 | ;; |
8a2fc586 | 4942 | no:yes:* ) |
1995c9ff AK |
4943 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4944 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4945 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4946 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4947 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4948 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4949 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4950 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4951 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4952 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4953 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4954 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4955 | |
ad6254c5 AK |
4956 | ;; |
4957 | esac | |
1995c9ff AK |
4958 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4959 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4960 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 4961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4962 | else |
8a2fc586 | 4963 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 4964 | fi |
1995c9ff AK |
4965 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4966 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4967 | echo "${ECHO_T}$ac_res" >&6; } | |
80992638 | 4968 | |
ad6254c5 | 4969 | fi |
1995c9ff | 4970 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4971 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 4972 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4973 | _ACEOF |
795ca3e5 | 4974 | |
795ca3e5 | 4975 | else |
1995c9ff AK |
4976 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4977 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4978 | { (exit 1); exit 1; }; } |
80992638 AK |
4979 | fi |
4980 | ||
ad6254c5 AK |
4981 | done |
4982 | ;; | |
4983 | darwin*) | |
4984 | ||
795ca3e5 | 4985 | |
ad6254c5 AK |
4986 | for ac_header in machine/endian.h sys/disk.h |
4987 | do | |
1995c9ff | 4988 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4989 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
4990 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4991 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4992 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 4993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4994 | fi |
1995c9ff AK |
4995 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4996 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4997 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4998 | else |
4999 | # Is the header compilable? | |
1995c9ff AK |
5000 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5001 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 5002 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5003 | /* confdefs.h. */ |
5004 | _ACEOF | |
5005 | cat confdefs.h >>conftest.$ac_ext | |
5006 | cat >>conftest.$ac_ext <<_ACEOF | |
5007 | /* end confdefs.h. */ | |
5008 | $ac_includes_default | |
5009 | #include <$ac_header> | |
5010 | _ACEOF | |
5011 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5012 | if { (ac_try="$ac_compile" |
5013 | case "(($ac_try" in | |
5014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5015 | *) ac_try_echo=$ac_try;; | |
5016 | esac | |
1995c9ff | 5017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5018 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5019 | ac_status=$? |
8a2fc586 AK |
5020 | grep -v '^ *+' conftest.er1 >conftest.err |
5021 | rm -f conftest.er1 | |
5022 | cat conftest.err >&5 | |
1995c9ff | 5023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
5024 | (exit $ac_status); } && |
5025 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5026 | { (case "(($ac_try" in | |
5027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5028 | *) ac_try_echo=$ac_try;; | |
5029 | esac | |
5030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5031 | (eval "$ac_try") 2>&5 | |
5032 | ac_status=$? | |
5033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5034 | (exit $ac_status); }; } && | |
5035 | { ac_try='test -s conftest.$ac_objext' | |
5036 | { (case "(($ac_try" in | |
5037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5038 | *) ac_try_echo=$ac_try;; | |
5039 | esac | |
5040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5041 | (eval "$ac_try") 2>&5 | |
5042 | ac_status=$? | |
5043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5044 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
5045 | ac_header_compiler=yes |
5046 | else | |
1995c9ff | 5047 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5048 | sed 's/^/| /' conftest.$ac_ext >&5 |
5049 | ||
7a197a62 | 5050 | ac_header_compiler=no |
ad6254c5 | 5051 | fi |
7a197a62 AK |
5052 | |
5053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
5054 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5055 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5056 | |
5057 | # Is the header present? | |
1995c9ff AK |
5058 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5059 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 5060 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5061 | /* confdefs.h. */ |
5062 | _ACEOF | |
5063 | cat confdefs.h >>conftest.$ac_ext | |
5064 | cat >>conftest.$ac_ext <<_ACEOF | |
5065 | /* end confdefs.h. */ | |
5066 | #include <$ac_header> | |
5067 | _ACEOF | |
7a197a62 AK |
5068 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5069 | case "(($ac_try" in | |
5070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5071 | *) ac_try_echo=$ac_try;; | |
5072 | esac | |
1995c9ff | 5073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5074 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5075 | ac_status=$? |
5076 | grep -v '^ *+' conftest.er1 >conftest.err | |
5077 | rm -f conftest.er1 | |
5078 | cat conftest.err >&5 | |
1995c9ff | 5079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
5080 | (exit $ac_status); } >/dev/null; then |
5081 | if test -s conftest.err; then | |
5082 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5083 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5084 | else | |
5085 | ac_cpp_err= | |
5086 | fi | |
5087 | else | |
5088 | ac_cpp_err=yes | |
5089 | fi | |
5090 | if test -z "$ac_cpp_err"; then | |
ad6254c5 AK |
5091 | ac_header_preproc=yes |
5092 | else | |
1995c9ff | 5093 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5094 | sed 's/^/| /' conftest.$ac_ext >&5 |
5095 | ||
5096 | ac_header_preproc=no | |
5097 | fi | |
7a197a62 | 5098 | |
ad6254c5 | 5099 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
5100 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5101 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5102 | |
5103 | # So? What about this header? | |
8a2fc586 AK |
5104 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5105 | yes:no: ) | |
1995c9ff AK |
5106 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5107 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5108 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5109 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5110 | ac_header_preproc=yes |
ad6254c5 | 5111 | ;; |
8a2fc586 | 5112 | no:yes:* ) |
1995c9ff AK |
5113 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5114 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5115 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5116 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5117 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5118 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5119 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5120 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5121 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5122 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5123 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5124 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5125 | |
ad6254c5 AK |
5126 | ;; |
5127 | esac | |
1995c9ff AK |
5128 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5129 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 5130 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 5131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5132 | else |
8a2fc586 | 5133 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5134 | fi |
1995c9ff AK |
5135 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5136 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5137 | echo "${ECHO_T}$ac_res" >&6; } | |
b896caa1 | 5138 | |
ad6254c5 | 5139 | fi |
1995c9ff | 5140 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 5141 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 5142 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
5143 | _ACEOF |
5144 | ||
5145 | else | |
1995c9ff AK |
5146 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
5147 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5148 | { (exit 1); exit 1; }; } |
80992638 AK |
5149 | fi |
5150 | ||
ad6254c5 AK |
5151 | done |
5152 | ;; | |
5153 | esac | |
d3c8211f | 5154 | |
80992638 | 5155 | ################################################################################ |
1995c9ff AK |
5156 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5157 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
ad6254c5 | 5158 | if test "${ac_cv_c_const+set}" = set; then |
1995c9ff | 5159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d3c8211f | 5160 | else |
ad6254c5 | 5161 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5162 | /* confdefs.h. */ |
5163 | _ACEOF | |
5164 | cat confdefs.h >>conftest.$ac_ext | |
5165 | cat >>conftest.$ac_ext <<_ACEOF | |
5166 | /* end confdefs.h. */ | |
5167 | ||
5168 | int | |
5169 | main () | |
5170 | { | |
5171 | /* FIXME: Include the comments suggested by Paul. */ | |
5172 | #ifndef __cplusplus | |
5173 | /* Ultrix mips cc rejects this. */ | |
5174 | typedef int charset[2]; | |
fc54be10 | 5175 | const charset x; |
ad6254c5 | 5176 | /* SunOS 4.1.1 cc rejects this. */ |
fc54be10 AK |
5177 | char const *const *ccp; |
5178 | char **p; | |
ad6254c5 AK |
5179 | /* NEC SVR4.0.2 mips cc rejects this. */ |
5180 | struct point {int x, y;}; | |
5181 | static struct point const zero = {0,0}; | |
5182 | /* AIX XL C 1.02.0.0 rejects this. | |
5183 | It does not let you subtract one const X* pointer from another in | |
5184 | an arm of an if-expression whose if-part is not a constant | |
5185 | expression */ | |
5186 | const char *g = "string"; | |
fc54be10 | 5187 | ccp = &g + (g ? g-g : 0); |
ad6254c5 | 5188 | /* HPUX 7.0 cc rejects these. */ |
fc54be10 AK |
5189 | ++ccp; |
5190 | p = (char**) ccp; | |
5191 | ccp = (char const *const *) p; | |
ad6254c5 AK |
5192 | { /* SCO 3.2v4 cc rejects this. */ |
5193 | char *t; | |
5194 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5195 | ||
5196 | *t++ = 0; | |
7a197a62 | 5197 | if (s) return 0; |
ad6254c5 AK |
5198 | } |
5199 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5200 | int x[] = {25, 17}; | |
5201 | const int *foo = &x[0]; | |
5202 | ++foo; | |
5203 | } | |
5204 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5205 | typedef const int *iptr; | |
5206 | iptr p = 0; | |
5207 | ++p; | |
5208 | } | |
5209 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5210 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5211 | struct s { int j; const int *ap[3]; }; | |
5212 | struct s *b; b->j = 5; | |
5213 | } | |
5214 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5215 | const int foo = 10; | |
7a197a62 | 5216 | if (!foo) return 0; |
ad6254c5 | 5217 | } |
fc54be10 | 5218 | return !x[0] && !zero.x; |
ad6254c5 AK |
5219 | #endif |
5220 | ||
5221 | ; | |
5222 | return 0; | |
5223 | } | |
5224 | _ACEOF | |
5225 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5226 | if { (ac_try="$ac_compile" |
5227 | case "(($ac_try" in | |
5228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5229 | *) ac_try_echo=$ac_try;; | |
5230 | esac | |
1995c9ff | 5231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5232 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5233 | ac_status=$? |
8a2fc586 AK |
5234 | grep -v '^ *+' conftest.er1 >conftest.err |
5235 | rm -f conftest.er1 | |
5236 | cat conftest.err >&5 | |
1995c9ff | 5237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
5238 | (exit $ac_status); } && |
5239 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5240 | { (case "(($ac_try" in | |
5241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5242 | *) ac_try_echo=$ac_try;; | |
5243 | esac | |
5244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5245 | (eval "$ac_try") 2>&5 | |
5246 | ac_status=$? | |
5247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5248 | (exit $ac_status); }; } && | |
5249 | { ac_try='test -s conftest.$ac_objext' | |
5250 | { (case "(($ac_try" in | |
5251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5252 | *) ac_try_echo=$ac_try;; | |
5253 | esac | |
5254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5255 | (eval "$ac_try") 2>&5 | |
5256 | ac_status=$? | |
5257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5258 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
5259 | ac_cv_c_const=yes |
5260 | else | |
1995c9ff | 5261 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5262 | sed 's/^/| /' conftest.$ac_ext >&5 |
5263 | ||
7a197a62 | 5264 | ac_cv_c_const=no |
ad6254c5 | 5265 | fi |
7a197a62 AK |
5266 | |
5267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5268 | fi |
1995c9ff AK |
5269 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5270 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
ad6254c5 | 5271 | if test $ac_cv_c_const = no; then |
80992638 | 5272 | |
ad6254c5 AK |
5273 | cat >>confdefs.h <<\_ACEOF |
5274 | #define const | |
5275 | _ACEOF | |
80992638 | 5276 | |
d3c8211f | 5277 | fi |
d3c8211f | 5278 | |
1995c9ff AK |
5279 | { echo "$as_me:$LINENO: checking for inline" >&5 |
5280 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
ad6254c5 | 5281 | if test "${ac_cv_c_inline+set}" = set; then |
1995c9ff | 5282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8ef2b021 | 5283 | else |
ad6254c5 AK |
5284 | ac_cv_c_inline=no |
5285 | for ac_kw in inline __inline__ __inline; do | |
5286 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5287 | /* confdefs.h. */ |
5288 | _ACEOF | |
5289 | cat confdefs.h >>conftest.$ac_ext | |
5290 | cat >>conftest.$ac_ext <<_ACEOF | |
5291 | /* end confdefs.h. */ | |
5292 | #ifndef __cplusplus | |
5293 | typedef int foo_t; | |
5294 | static $ac_kw foo_t static_foo () {return 0; } | |
5295 | $ac_kw foo_t foo () {return 0; } | |
5296 | #endif | |
80992638 | 5297 | |
ad6254c5 AK |
5298 | _ACEOF |
5299 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5300 | if { (ac_try="$ac_compile" |
5301 | case "(($ac_try" in | |
5302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5303 | *) ac_try_echo=$ac_try;; | |
5304 | esac | |
1995c9ff | 5305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5306 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5307 | ac_status=$? |
8a2fc586 AK |
5308 | grep -v '^ *+' conftest.er1 >conftest.err |
5309 | rm -f conftest.er1 | |
5310 | cat conftest.err >&5 | |
1995c9ff | 5311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
5312 | (exit $ac_status); } && |
5313 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5314 | { (case "(($ac_try" in | |
5315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5316 | *) ac_try_echo=$ac_try;; | |
5317 | esac | |
5318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5319 | (eval "$ac_try") 2>&5 | |
5320 | ac_status=$? | |
5321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5322 | (exit $ac_status); }; } && | |
5323 | { ac_try='test -s conftest.$ac_objext' | |
5324 | { (case "(($ac_try" in | |
5325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5326 | *) ac_try_echo=$ac_try;; | |
5327 | esac | |
5328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5329 | (eval "$ac_try") 2>&5 | |
5330 | ac_status=$? | |
5331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5332 | (exit $ac_status); }; }; then | |
7a197a62 | 5333 | ac_cv_c_inline=$ac_kw |
ad6254c5 | 5334 | else |
1995c9ff | 5335 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5336 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 5337 | |
7a197a62 | 5338 | |
8ce0cbda | 5339 | fi |
7a197a62 AK |
5340 | |
5341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5342 | test "$ac_cv_c_inline" != no && break | |
ad6254c5 | 5343 | done |
8ce0cbda | 5344 | |
8ce0cbda | 5345 | fi |
1995c9ff AK |
5346 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5347 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
8a2fc586 AK |
5348 | |
5349 | ||
ad6254c5 AK |
5350 | case $ac_cv_c_inline in |
5351 | inline | yes) ;; | |
8a2fc586 AK |
5352 | *) |
5353 | case $ac_cv_c_inline in | |
5354 | no) ac_val=;; | |
5355 | *) ac_val=$ac_cv_c_inline;; | |
5356 | esac | |
5357 | cat >>confdefs.h <<_ACEOF | |
5358 | #ifndef __cplusplus | |
5359 | #define inline $ac_val | |
5360 | #endif | |
c1c065a3 | 5361 | _ACEOF |
8a2fc586 | 5362 | ;; |
ad6254c5 | 5363 | esac |
8ce0cbda | 5364 | |
1995c9ff AK |
5365 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
5366 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } | |
ad6254c5 | 5367 | if test "${ac_cv_type_off_t+set}" = set; then |
1995c9ff | 5368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5369 | else |
5370 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5371 | /* confdefs.h. */ |
5372 | _ACEOF | |
5373 | cat confdefs.h >>conftest.$ac_ext | |
5374 | cat >>conftest.$ac_ext <<_ACEOF | |
5375 | /* end confdefs.h. */ | |
5376 | $ac_includes_default | |
7a197a62 | 5377 | typedef off_t ac__type_new_; |
ad6254c5 AK |
5378 | int |
5379 | main () | |
5380 | { | |
7a197a62 | 5381 | if ((ac__type_new_ *) 0) |
ad6254c5 | 5382 | return 0; |
7a197a62 | 5383 | if (sizeof (ac__type_new_)) |
ad6254c5 AK |
5384 | return 0; |
5385 | ; | |
5386 | return 0; | |
5387 | } | |
5388 | _ACEOF | |
5389 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5390 | if { (ac_try="$ac_compile" |
5391 | case "(($ac_try" in | |
5392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5393 | *) ac_try_echo=$ac_try;; | |
5394 | esac | |
1995c9ff | 5395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5396 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5397 | ac_status=$? |
8a2fc586 AK |
5398 | grep -v '^ *+' conftest.er1 >conftest.err |
5399 | rm -f conftest.er1 | |
5400 | cat conftest.err >&5 | |
1995c9ff | 5401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
5402 | (exit $ac_status); } && |
5403 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5404 | { (case "(($ac_try" in | |
5405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5406 | *) ac_try_echo=$ac_try;; | |
5407 | esac | |
5408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5409 | (eval "$ac_try") 2>&5 | |
5410 | ac_status=$? | |
5411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5412 | (exit $ac_status); }; } && | |
5413 | { ac_try='test -s conftest.$ac_objext' | |
5414 | { (case "(($ac_try" in | |
5415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5416 | *) ac_try_echo=$ac_try;; | |
5417 | esac | |
5418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5419 | (eval "$ac_try") 2>&5 | |
5420 | ac_status=$? | |
5421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5422 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
5423 | ac_cv_type_off_t=yes |
5424 | else | |
1995c9ff | 5425 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5426 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ce0cbda | 5427 | |
7a197a62 | 5428 | ac_cv_type_off_t=no |
80992638 | 5429 | fi |
7a197a62 AK |
5430 | |
5431 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5432 | fi |
1995c9ff AK |
5433 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
5434 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } | |
ad6254c5 AK |
5435 | if test $ac_cv_type_off_t = yes; then |
5436 | : | |
5437 | else | |
80992638 | 5438 | |
ad6254c5 | 5439 | cat >>confdefs.h <<_ACEOF |
7a197a62 | 5440 | #define off_t long int |
ad6254c5 | 5441 | _ACEOF |
199e490e | 5442 | |
b896caa1 AK |
5443 | fi |
5444 | ||
1995c9ff AK |
5445 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
5446 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | |
ad6254c5 | 5447 | if test "${ac_cv_type_pid_t+set}" = set; then |
1995c9ff | 5448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5449 | else |
5450 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5451 | /* confdefs.h. */ |
5452 | _ACEOF | |
5453 | cat confdefs.h >>conftest.$ac_ext | |
5454 | cat >>conftest.$ac_ext <<_ACEOF | |
5455 | /* end confdefs.h. */ | |
5456 | $ac_includes_default | |
7a197a62 | 5457 | typedef pid_t ac__type_new_; |
ad6254c5 AK |
5458 | int |
5459 | main () | |
5460 | { | |
7a197a62 | 5461 | if ((ac__type_new_ *) 0) |
ad6254c5 | 5462 | return 0; |
7a197a62 | 5463 | if (sizeof (ac__type_new_)) |
ad6254c5 AK |
5464 | return 0; |
5465 | ; | |
5466 | return 0; | |
5467 | } | |
5468 | _ACEOF | |
5469 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5470 | if { (ac_try="$ac_compile" |
5471 | case "(($ac_try" in | |
5472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5473 | *) ac_try_echo=$ac_try;; | |
5474 | esac | |
1995c9ff | 5475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5476 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5477 | ac_status=$? |
8a2fc586 AK |
5478 | grep -v '^ *+' conftest.er1 >conftest.err |
5479 | rm -f conftest.er1 | |
5480 | cat conftest.err >&5 | |
1995c9ff | 5481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
5482 | (exit $ac_status); } && |
5483 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5484 | { (case "(($ac_try" in | |
5485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5486 | *) ac_try_echo=$ac_try;; | |
5487 | esac | |
5488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5489 | (eval "$ac_try") 2>&5 | |
5490 | ac_status=$? | |
5491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5492 | (exit $ac_status); }; } && | |
5493 | { ac_try='test -s conftest.$ac_objext' | |
5494 | { (case "(($ac_try" in | |
5495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5496 | *) ac_try_echo=$ac_try;; | |
5497 | esac | |
5498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5499 | (eval "$ac_try") 2>&5 | |
5500 | ac_status=$? | |
5501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5502 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
5503 | ac_cv_type_pid_t=yes |
5504 | else | |
1995c9ff | 5505 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5506 | sed 's/^/| /' conftest.$ac_ext >&5 |
5507 | ||
7a197a62 | 5508 | ac_cv_type_pid_t=no |
ad6254c5 | 5509 | fi |
7a197a62 AK |
5510 | |
5511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5512 | fi |
1995c9ff AK |
5513 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5514 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | |
ad6254c5 AK |
5515 | if test $ac_cv_type_pid_t = yes; then |
5516 | : | |
5517 | else | |
80992638 | 5518 | |
ad6254c5 AK |
5519 | cat >>confdefs.h <<_ACEOF |
5520 | #define pid_t int | |
5521 | _ACEOF | |
2dc95e1c | 5522 | |
2dc95e1c AK |
5523 | fi |
5524 | ||
1995c9ff AK |
5525 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
5526 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
ad6254c5 | 5527 | if test "${ac_cv_type_size_t+set}" = set; then |
1995c9ff | 5528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 | 5529 | else |
ad6254c5 | 5530 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5531 | /* confdefs.h. */ |
5532 | _ACEOF | |
5533 | cat confdefs.h >>conftest.$ac_ext | |
5534 | cat >>conftest.$ac_ext <<_ACEOF | |
5535 | /* end confdefs.h. */ | |
5536 | $ac_includes_default | |
7a197a62 | 5537 | typedef size_t ac__type_new_; |
ad6254c5 AK |
5538 | int |
5539 | main () | |
5540 | { | |
7a197a62 | 5541 | if ((ac__type_new_ *) 0) |
ad6254c5 | 5542 | return 0; |
7a197a62 | 5543 | if (sizeof (ac__type_new_)) |
ad6254c5 AK |
5544 | return 0; |
5545 | ; | |
5546 | return 0; | |
5547 | } | |
5548 | _ACEOF | |
5549 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5550 | if { (ac_try="$ac_compile" |
5551 | case "(($ac_try" in | |
5552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5553 | *) ac_try_echo=$ac_try;; | |
5554 | esac | |
1995c9ff | 5555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5556 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5557 | ac_status=$? |
8a2fc586 AK |
5558 | grep -v '^ *+' conftest.er1 >conftest.err |
5559 | rm -f conftest.er1 | |
5560 | cat conftest.err >&5 | |
1995c9ff | 5561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
5562 | (exit $ac_status); } && |
5563 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5564 | { (case "(($ac_try" in | |
5565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5566 | *) ac_try_echo=$ac_try;; | |
5567 | esac | |
5568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5569 | (eval "$ac_try") 2>&5 | |
5570 | ac_status=$? | |
5571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5572 | (exit $ac_status); }; } && | |
5573 | { ac_try='test -s conftest.$ac_objext' | |
5574 | { (case "(($ac_try" in | |
5575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5576 | *) ac_try_echo=$ac_try;; | |
5577 | esac | |
5578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5579 | (eval "$ac_try") 2>&5 | |
5580 | ac_status=$? | |
5581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5582 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
5583 | ac_cv_type_size_t=yes |
5584 | else | |
1995c9ff | 5585 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5586 | sed 's/^/| /' conftest.$ac_ext >&5 |
5587 | ||
7a197a62 | 5588 | ac_cv_type_size_t=no |
80992638 | 5589 | fi |
7a197a62 AK |
5590 | |
5591 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5592 | fi |
1995c9ff AK |
5593 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
5594 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
ad6254c5 AK |
5595 | if test $ac_cv_type_size_t = yes; then |
5596 | : | |
5597 | else | |
80992638 | 5598 | |
ad6254c5 | 5599 | cat >>confdefs.h <<_ACEOF |
7a197a62 | 5600 | #define size_t unsigned int |
ad6254c5 | 5601 | _ACEOF |
8106cdd5 | 5602 | |
8106cdd5 AK |
5603 | fi |
5604 | ||
1995c9ff AK |
5605 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
5606 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } | |
ad6254c5 | 5607 | if test "${ac_cv_type_mode_t+set}" = set; then |
1995c9ff | 5608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5609 | else |
5610 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5611 | /* confdefs.h. */ |
5612 | _ACEOF | |
5613 | cat confdefs.h >>conftest.$ac_ext | |
5614 | cat >>conftest.$ac_ext <<_ACEOF | |
5615 | /* end confdefs.h. */ | |
5616 | $ac_includes_default | |
7a197a62 | 5617 | typedef mode_t ac__type_new_; |
ad6254c5 AK |
5618 | int |
5619 | main () | |
5620 | { | |
7a197a62 | 5621 | if ((ac__type_new_ *) 0) |
ad6254c5 | 5622 | return 0; |
7a197a62 | 5623 | if (sizeof (ac__type_new_)) |
ad6254c5 AK |
5624 | return 0; |
5625 | ; | |
5626 | return 0; | |
5627 | } | |
5628 | _ACEOF | |
5629 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5630 | if { (ac_try="$ac_compile" |
5631 | case "(($ac_try" in | |
5632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5633 | *) ac_try_echo=$ac_try;; | |
5634 | esac | |
1995c9ff | 5635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5636 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5637 | ac_status=$? |
8a2fc586 AK |
5638 | grep -v '^ *+' conftest.er1 >conftest.err |
5639 | rm -f conftest.er1 | |
5640 | cat conftest.err >&5 | |
1995c9ff | 5641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
5642 | (exit $ac_status); } && |
5643 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5644 | { (case "(($ac_try" in | |
5645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5646 | *) ac_try_echo=$ac_try;; | |
5647 | esac | |
5648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5649 | (eval "$ac_try") 2>&5 | |
5650 | ac_status=$? | |
5651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5652 | (exit $ac_status); }; } && | |
5653 | { ac_try='test -s conftest.$ac_objext' | |
5654 | { (case "(($ac_try" in | |
5655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5656 | *) ac_try_echo=$ac_try;; | |
5657 | esac | |
5658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5659 | (eval "$ac_try") 2>&5 | |
5660 | ac_status=$? | |
5661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5662 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
5663 | ac_cv_type_mode_t=yes |
5664 | else | |
1995c9ff | 5665 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5666 | sed 's/^/| /' conftest.$ac_ext >&5 |
5667 | ||
7a197a62 | 5668 | ac_cv_type_mode_t=no |
80992638 | 5669 | fi |
7a197a62 AK |
5670 | |
5671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5672 | fi |
1995c9ff AK |
5673 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
5674 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } | |
ad6254c5 AK |
5675 | if test $ac_cv_type_mode_t = yes; then |
5676 | : | |
5677 | else | |
80992638 | 5678 | |
ad6254c5 AK |
5679 | cat >>confdefs.h <<_ACEOF |
5680 | #define mode_t int | |
5681 | _ACEOF | |
5682 | ||
5683 | fi | |
5684 | ||
1995c9ff AK |
5685 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5686 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; } | |
ad6254c5 | 5687 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
1995c9ff | 5688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5689 | else |
5690 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5691 | /* confdefs.h. */ |
5692 | _ACEOF | |
5693 | cat confdefs.h >>conftest.$ac_ext | |
5694 | cat >>conftest.$ac_ext <<_ACEOF | |
5695 | /* end confdefs.h. */ | |
5696 | $ac_includes_default | |
5697 | int | |
5698 | main () | |
5699 | { | |
5700 | static struct stat ac_aggr; | |
5701 | if (ac_aggr.st_rdev) | |
5702 | return 0; | |
5703 | ; | |
5704 | return 0; | |
5705 | } | |
5706 | _ACEOF | |
5707 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5708 | if { (ac_try="$ac_compile" |
5709 | case "(($ac_try" in | |
5710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5711 | *) ac_try_echo=$ac_try;; | |
5712 | esac | |
1995c9ff | 5713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5714 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5715 | ac_status=$? |
8a2fc586 AK |
5716 | grep -v '^ *+' conftest.er1 >conftest.err |
5717 | rm -f conftest.er1 | |
5718 | cat conftest.err >&5 | |
1995c9ff | 5719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
5720 | (exit $ac_status); } && |
5721 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5722 | { (case "(($ac_try" in | |
5723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5724 | *) ac_try_echo=$ac_try;; | |
5725 | esac | |
5726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5727 | (eval "$ac_try") 2>&5 | |
5728 | ac_status=$? | |
5729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5730 | (exit $ac_status); }; } && | |
5731 | { ac_try='test -s conftest.$ac_objext' | |
5732 | { (case "(($ac_try" in | |
5733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5734 | *) ac_try_echo=$ac_try;; | |
5735 | esac | |
5736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5737 | (eval "$ac_try") 2>&5 | |
5738 | ac_status=$? | |
5739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5740 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
5741 | ac_cv_member_struct_stat_st_rdev=yes |
5742 | else | |
1995c9ff | 5743 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5744 | sed 's/^/| /' conftest.$ac_ext >&5 |
5745 | ||
7a197a62 | 5746 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5747 | /* confdefs.h. */ |
5748 | _ACEOF | |
5749 | cat confdefs.h >>conftest.$ac_ext | |
5750 | cat >>conftest.$ac_ext <<_ACEOF | |
5751 | /* end confdefs.h. */ | |
5752 | $ac_includes_default | |
5753 | int | |
5754 | main () | |
5755 | { | |
5756 | static struct stat ac_aggr; | |
5757 | if (sizeof ac_aggr.st_rdev) | |
5758 | return 0; | |
5759 | ; | |
5760 | return 0; | |
5761 | } | |
5762 | _ACEOF | |
5763 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5764 | if { (ac_try="$ac_compile" |
5765 | case "(($ac_try" in | |
5766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5767 | *) ac_try_echo=$ac_try;; | |
5768 | esac | |
1995c9ff | 5769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5770 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5771 | ac_status=$? |
8a2fc586 AK |
5772 | grep -v '^ *+' conftest.er1 >conftest.err |
5773 | rm -f conftest.er1 | |
5774 | cat conftest.err >&5 | |
1995c9ff | 5775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
5776 | (exit $ac_status); } && |
5777 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5778 | { (case "(($ac_try" in | |
5779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5780 | *) ac_try_echo=$ac_try;; | |
5781 | esac | |
5782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5783 | (eval "$ac_try") 2>&5 | |
5784 | ac_status=$? | |
5785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5786 | (exit $ac_status); }; } && | |
5787 | { ac_try='test -s conftest.$ac_objext' | |
5788 | { (case "(($ac_try" in | |
5789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5790 | *) ac_try_echo=$ac_try;; | |
5791 | esac | |
5792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5793 | (eval "$ac_try") 2>&5 | |
5794 | ac_status=$? | |
5795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5796 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
5797 | ac_cv_member_struct_stat_st_rdev=yes |
5798 | else | |
1995c9ff | 5799 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5800 | sed 's/^/| /' conftest.$ac_ext >&5 |
5801 | ||
7a197a62 | 5802 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 5803 | fi |
7a197a62 AK |
5804 | |
5805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5806 | fi |
7a197a62 AK |
5807 | |
5808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5809 | fi |
1995c9ff AK |
5810 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
5811 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } | |
ad6254c5 AK |
5812 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
5813 | ||
5814 | cat >>confdefs.h <<_ACEOF | |
5815 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5816 | _ACEOF | |
5817 | ||
5818 | ||
ad6254c5 AK |
5819 | fi |
5820 | ||
1995c9ff AK |
5821 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
5822 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } | |
ad6254c5 | 5823 | if test "${ac_cv_struct_tm+set}" = set; then |
1995c9ff | 5824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5825 | else |
5826 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5827 | /* confdefs.h. */ |
5828 | _ACEOF | |
5829 | cat confdefs.h >>conftest.$ac_ext | |
5830 | cat >>conftest.$ac_ext <<_ACEOF | |
5831 | /* end confdefs.h. */ | |
5832 | #include <sys/types.h> | |
5833 | #include <time.h> | |
5834 | ||
5835 | int | |
5836 | main () | |
5837 | { | |
fc54be10 | 5838 | struct tm *tp; tp->tm_sec; |
ad6254c5 AK |
5839 | ; |
5840 | return 0; | |
5841 | } | |
5842 | _ACEOF | |
5843 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5844 | if { (ac_try="$ac_compile" |
5845 | case "(($ac_try" in | |
5846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5847 | *) ac_try_echo=$ac_try;; | |
5848 | esac | |
1995c9ff | 5849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5850 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5851 | ac_status=$? |
8a2fc586 AK |
5852 | grep -v '^ *+' conftest.er1 >conftest.err |
5853 | rm -f conftest.er1 | |
5854 | cat conftest.err >&5 | |
1995c9ff | 5855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
5856 | (exit $ac_status); } && |
5857 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5858 | { (case "(($ac_try" in | |
5859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5860 | *) ac_try_echo=$ac_try;; | |
5861 | esac | |
5862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5863 | (eval "$ac_try") 2>&5 | |
5864 | ac_status=$? | |
5865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5866 | (exit $ac_status); }; } && | |
5867 | { ac_try='test -s conftest.$ac_objext' | |
5868 | { (case "(($ac_try" in | |
5869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5870 | *) ac_try_echo=$ac_try;; | |
5871 | esac | |
5872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5873 | (eval "$ac_try") 2>&5 | |
5874 | ac_status=$? | |
5875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5876 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
5877 | ac_cv_struct_tm=time.h |
5878 | else | |
1995c9ff | 5879 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5880 | sed 's/^/| /' conftest.$ac_ext >&5 |
5881 | ||
7a197a62 | 5882 | ac_cv_struct_tm=sys/time.h |
ad6254c5 | 5883 | fi |
7a197a62 AK |
5884 | |
5885 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5886 | fi |
1995c9ff AK |
5887 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
5888 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } | |
ad6254c5 AK |
5889 | if test $ac_cv_struct_tm = sys/time.h; then |
5890 | ||
5891 | cat >>confdefs.h <<\_ACEOF | |
5892 | #define TM_IN_SYS_TIME 1 | |
5893 | _ACEOF | |
5894 | ||
5895 | fi | |
809fae91 | 5896 | |
795ca3e5 | 5897 | |
80992638 | 5898 | ################################################################################ |
ad6254c5 AK |
5899 | |
5900 | ||
5901 | ||
5902 | ||
5903 | ||
5904 | ||
5905 | ||
5906 | ||
5907 | ||
5908 | ||
5909 | ||
5910 | ||
5911 | ||
5912 | ||
5913 | for ac_func in gethostname getpagesize memset munmap setlocale strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul | |
5914 | do | |
1995c9ff AK |
5915 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5916 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5917 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 5918 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 5919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 5920 | else |
ad6254c5 | 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. */ | |
8a2fc586 AK |
5927 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5928 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5929 | #define $ac_func innocuous_$ac_func | |
5930 | ||
ad6254c5 AK |
5931 | /* System header to define __stub macros and hopefully few prototypes, |
5932 | which can conflict with char $ac_func (); below. | |
5933 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5934 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 5935 | |
ad6254c5 AK |
5936 | #ifdef __STDC__ |
5937 | # include <limits.h> | |
5938 | #else | |
5939 | # include <assert.h> | |
5940 | #endif | |
8a2fc586 AK |
5941 | |
5942 | #undef $ac_func | |
5943 | ||
7a197a62 AK |
5944 | /* Override any GCC internal prototype to avoid an error. |
5945 | Use char because int might match the return type of a GCC | |
5946 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
5947 | #ifdef __cplusplus |
5948 | extern "C" | |
ad6254c5 | 5949 | #endif |
ad6254c5 AK |
5950 | char $ac_func (); |
5951 | /* The GNU C library defines this for functions which it implements | |
5952 | to always fail with ENOSYS. Some functions are actually named | |
5953 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 5954 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 5955 | choke me |
ad6254c5 AK |
5956 | #endif |
5957 | ||
5958 | int | |
5959 | main () | |
5960 | { | |
7a197a62 | 5961 | return $ac_func (); |
ad6254c5 AK |
5962 | ; |
5963 | return 0; | |
5964 | } | |
5965 | _ACEOF | |
5966 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
5967 | if { (ac_try="$ac_link" |
5968 | case "(($ac_try" in | |
5969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5970 | *) ac_try_echo=$ac_try;; | |
5971 | esac | |
1995c9ff | 5972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5973 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 5974 | ac_status=$? |
8a2fc586 AK |
5975 | grep -v '^ *+' conftest.er1 >conftest.err |
5976 | rm -f conftest.er1 | |
5977 | cat conftest.err >&5 | |
1995c9ff | 5978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
5979 | (exit $ac_status); } && |
5980 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5981 | { (case "(($ac_try" in | |
5982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5983 | *) ac_try_echo=$ac_try;; | |
5984 | esac | |
5985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5986 | (eval "$ac_try") 2>&5 | |
5987 | ac_status=$? | |
5988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5989 | (exit $ac_status); }; } && | |
5990 | { ac_try='test -s conftest$ac_exeext' | |
5991 | { (case "(($ac_try" in | |
5992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5993 | *) ac_try_echo=$ac_try;; | |
5994 | esac | |
5995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5996 | (eval "$ac_try") 2>&5 | |
5997 | ac_status=$? | |
5998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5999 | (exit $ac_status); }; }; then | |
6000 | eval "$as_ac_var=yes" | |
6001 | else | |
6002 | echo "$as_me: failed program was:" >&5 | |
6003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6004 | ||
6005 | eval "$as_ac_var=no" | |
6006 | fi | |
6007 | ||
6008 | rm -f core conftest.err conftest.$ac_objext \ | |
6009 | conftest$ac_exeext conftest.$ac_ext | |
6010 | fi | |
1995c9ff AK |
6011 | ac_res=`eval echo '${'$as_ac_var'}'` |
6012 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6013 | echo "${ECHO_T}$ac_res" >&6; } | |
6014 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 6015 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 6016 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6017 | _ACEOF |
6018 | ||
6019 | else | |
1995c9ff AK |
6020 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
6021 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
6022 | { (exit 1); exit 1; }; } |
6023 | fi | |
6024 | done | |
795ca3e5 | 6025 | |
ad6254c5 AK |
6026 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
6027 | # for constant arguments. Useless! | |
1995c9ff AK |
6028 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6029 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
ad6254c5 | 6030 | if test "${ac_cv_working_alloca_h+set}" = set; then |
1995c9ff | 6031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6032 | else |
6033 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6034 | /* confdefs.h. */ |
6035 | _ACEOF | |
6036 | cat confdefs.h >>conftest.$ac_ext | |
6037 | cat >>conftest.$ac_ext <<_ACEOF | |
6038 | /* end confdefs.h. */ | |
6039 | #include <alloca.h> | |
6040 | int | |
6041 | main () | |
6042 | { | |
6043 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 6044 | if (p) return 0; |
ad6254c5 AK |
6045 | ; |
6046 | return 0; | |
6047 | } | |
6048 | _ACEOF | |
6049 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6050 | if { (ac_try="$ac_link" |
6051 | case "(($ac_try" in | |
6052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6053 | *) ac_try_echo=$ac_try;; | |
6054 | esac | |
1995c9ff | 6055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6056 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6057 | ac_status=$? |
8a2fc586 AK |
6058 | grep -v '^ *+' conftest.er1 >conftest.err |
6059 | rm -f conftest.er1 | |
6060 | cat conftest.err >&5 | |
1995c9ff | 6061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
6062 | (exit $ac_status); } && |
6063 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6064 | { (case "(($ac_try" in | |
6065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6066 | *) ac_try_echo=$ac_try;; | |
6067 | esac | |
6068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6069 | (eval "$ac_try") 2>&5 | |
6070 | ac_status=$? | |
6071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6072 | (exit $ac_status); }; } && | |
6073 | { ac_try='test -s conftest$ac_exeext' | |
6074 | { (case "(($ac_try" in | |
6075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6076 | *) ac_try_echo=$ac_try;; | |
6077 | esac | |
6078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6079 | (eval "$ac_try") 2>&5 | |
6080 | ac_status=$? | |
6081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6082 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
6083 | ac_cv_working_alloca_h=yes |
6084 | else | |
1995c9ff | 6085 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 6086 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 6087 | |
7a197a62 | 6088 | ac_cv_working_alloca_h=no |
ad6254c5 | 6089 | fi |
7a197a62 | 6090 | |
fc54be10 | 6091 | rm -f core conftest.err conftest.$ac_objext \ |
8a2fc586 | 6092 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6093 | fi |
1995c9ff AK |
6094 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
6095 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
6096 | if test $ac_cv_working_alloca_h = yes; then |
6097 | ||
6098 | cat >>confdefs.h <<\_ACEOF | |
6099 | #define HAVE_ALLOCA_H 1 | |
6100 | _ACEOF | |
6101 | ||
6102 | fi | |
6103 | ||
1995c9ff AK |
6104 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
6105 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
ad6254c5 | 6106 | if test "${ac_cv_func_alloca_works+set}" = set; then |
1995c9ff | 6107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6108 | else |
6109 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6110 | /* confdefs.h. */ |
6111 | _ACEOF | |
6112 | cat confdefs.h >>conftest.$ac_ext | |
6113 | cat >>conftest.$ac_ext <<_ACEOF | |
6114 | /* end confdefs.h. */ | |
6115 | #ifdef __GNUC__ | |
6116 | # define alloca __builtin_alloca | |
6117 | #else | |
6118 | # ifdef _MSC_VER | |
6119 | # include <malloc.h> | |
6120 | # define alloca _alloca | |
6121 | # else | |
fc54be10 | 6122 | # if HAVE_ALLOCA_H |
ad6254c5 AK |
6123 | # include <alloca.h> |
6124 | # else | |
6125 | # ifdef _AIX | |
6126 | #pragma alloca | |
6127 | # else | |
6128 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6129 | char *alloca (); | |
6130 | # endif | |
6131 | # endif | |
6132 | # endif | |
6133 | # endif | |
6134 | #endif | |
6135 | ||
6136 | int | |
6137 | main () | |
6138 | { | |
6139 | char *p = (char *) alloca (1); | |
7a197a62 | 6140 | if (p) return 0; |
ad6254c5 AK |
6141 | ; |
6142 | return 0; | |
6143 | } | |
6144 | _ACEOF | |
6145 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6146 | if { (ac_try="$ac_link" |
6147 | case "(($ac_try" in | |
6148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6149 | *) ac_try_echo=$ac_try;; | |
6150 | esac | |
1995c9ff | 6151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6152 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6153 | ac_status=$? |
8a2fc586 AK |
6154 | grep -v '^ *+' conftest.er1 >conftest.err |
6155 | rm -f conftest.er1 | |
6156 | cat conftest.err >&5 | |
1995c9ff | 6157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
6158 | (exit $ac_status); } && |
6159 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6160 | { (case "(($ac_try" in | |
6161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6162 | *) ac_try_echo=$ac_try;; | |
6163 | esac | |
6164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6165 | (eval "$ac_try") 2>&5 | |
6166 | ac_status=$? | |
6167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6168 | (exit $ac_status); }; } && | |
6169 | { ac_try='test -s conftest$ac_exeext' | |
6170 | { (case "(($ac_try" in | |
6171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6172 | *) ac_try_echo=$ac_try;; | |
6173 | esac | |
6174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6175 | (eval "$ac_try") 2>&5 | |
6176 | ac_status=$? | |
6177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6178 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
6179 | ac_cv_func_alloca_works=yes |
6180 | else | |
1995c9ff | 6181 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6182 | sed 's/^/| /' conftest.$ac_ext >&5 |
6183 | ||
7a197a62 | 6184 | ac_cv_func_alloca_works=no |
ad6254c5 | 6185 | fi |
7a197a62 | 6186 | |
fc54be10 | 6187 | rm -f core conftest.err conftest.$ac_objext \ |
8a2fc586 | 6188 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6189 | fi |
1995c9ff AK |
6190 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6191 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
6192 | |
6193 | if test $ac_cv_func_alloca_works = yes; then | |
6194 | ||
6195 | cat >>confdefs.h <<\_ACEOF | |
6196 | #define HAVE_ALLOCA 1 | |
6197 | _ACEOF | |
6198 | ||
6199 | else | |
6200 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6201 | # that cause trouble. Some versions do not even contain alloca or | |
6202 | # contain a buggy version. If you still want to use their alloca, | |
6203 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6204 | ||
7a197a62 | 6205 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
6206 | |
6207 | cat >>confdefs.h <<\_ACEOF | |
6208 | #define C_ALLOCA 1 | |
6209 | _ACEOF | |
6210 | ||
6211 | ||
1995c9ff AK |
6212 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6213 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
ad6254c5 | 6214 | if test "${ac_cv_os_cray+set}" = set; then |
1995c9ff | 6215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6216 | else |
6217 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6218 | /* confdefs.h. */ |
6219 | _ACEOF | |
6220 | cat confdefs.h >>conftest.$ac_ext | |
6221 | cat >>conftest.$ac_ext <<_ACEOF | |
6222 | /* end confdefs.h. */ | |
7a197a62 | 6223 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
6224 | webecray |
6225 | #else | |
6226 | wenotbecray | |
6227 | #endif | |
6228 | ||
6229 | _ACEOF | |
795ca3e5 | 6230 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
6231 | $EGREP "webecray" >/dev/null 2>&1; then |
6232 | ac_cv_os_cray=yes | |
6233 | else | |
6234 | ac_cv_os_cray=no | |
795ca3e5 AK |
6235 | fi |
6236 | rm -f conftest* | |
6237 | ||
795ca3e5 | 6238 | fi |
1995c9ff AK |
6239 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6240 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
6241 | if test $ac_cv_os_cray = yes; then |
6242 | for ac_func in _getb67 GETB67 getb67; do | |
1995c9ff AK |
6243 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6244 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6245 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 6246 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 6247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6248 | else |
6249 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6250 | /* confdefs.h. */ |
6251 | _ACEOF | |
6252 | cat confdefs.h >>conftest.$ac_ext | |
6253 | cat >>conftest.$ac_ext <<_ACEOF | |
6254 | /* end confdefs.h. */ | |
8a2fc586 AK |
6255 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6256 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6257 | #define $ac_func innocuous_$ac_func | |
6258 | ||
ad6254c5 AK |
6259 | /* System header to define __stub macros and hopefully few prototypes, |
6260 | which can conflict with char $ac_func (); below. | |
6261 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6262 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6263 | |
ad6254c5 AK |
6264 | #ifdef __STDC__ |
6265 | # include <limits.h> | |
6266 | #else | |
6267 | # include <assert.h> | |
6268 | #endif | |
8a2fc586 AK |
6269 | |
6270 | #undef $ac_func | |
6271 | ||
7a197a62 AK |
6272 | /* Override any GCC internal prototype to avoid an error. |
6273 | Use char because int might match the return type of a GCC | |
6274 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6275 | #ifdef __cplusplus |
6276 | extern "C" | |
ad6254c5 | 6277 | #endif |
ad6254c5 AK |
6278 | char $ac_func (); |
6279 | /* The GNU C library defines this for functions which it implements | |
6280 | to always fail with ENOSYS. Some functions are actually named | |
6281 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6282 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6283 | choke me |
ad6254c5 AK |
6284 | #endif |
6285 | ||
6286 | int | |
6287 | main () | |
6288 | { | |
7a197a62 | 6289 | return $ac_func (); |
ad6254c5 AK |
6290 | ; |
6291 | return 0; | |
6292 | } | |
6293 | _ACEOF | |
6294 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6295 | if { (ac_try="$ac_link" |
6296 | case "(($ac_try" in | |
6297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6298 | *) ac_try_echo=$ac_try;; | |
6299 | esac | |
1995c9ff | 6300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6301 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6302 | ac_status=$? |
8a2fc586 AK |
6303 | grep -v '^ *+' conftest.er1 >conftest.err |
6304 | rm -f conftest.er1 | |
6305 | cat conftest.err >&5 | |
1995c9ff | 6306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
6307 | (exit $ac_status); } && |
6308 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6309 | { (case "(($ac_try" in | |
6310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6311 | *) ac_try_echo=$ac_try;; | |
6312 | esac | |
6313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6314 | (eval "$ac_try") 2>&5 | |
6315 | ac_status=$? | |
6316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6317 | (exit $ac_status); }; } && | |
6318 | { ac_try='test -s conftest$ac_exeext' | |
6319 | { (case "(($ac_try" in | |
6320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6321 | *) ac_try_echo=$ac_try;; | |
6322 | esac | |
6323 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6324 | (eval "$ac_try") 2>&5 | |
6325 | ac_status=$? | |
6326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6327 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
6328 | eval "$as_ac_var=yes" |
6329 | else | |
1995c9ff | 6330 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6331 | sed 's/^/| /' conftest.$ac_ext >&5 |
6332 | ||
7a197a62 | 6333 | eval "$as_ac_var=no" |
ad6254c5 | 6334 | fi |
7a197a62 | 6335 | |
fc54be10 | 6336 | rm -f core conftest.err conftest.$ac_objext \ |
8a2fc586 | 6337 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6338 | fi |
1995c9ff AK |
6339 | ac_res=`eval echo '${'$as_ac_var'}'` |
6340 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6341 | echo "${ECHO_T}$ac_res" >&6; } | |
6342 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
80992638 | 6343 | |
ad6254c5 AK |
6344 | cat >>confdefs.h <<_ACEOF |
6345 | #define CRAY_STACKSEG_END $ac_func | |
6346 | _ACEOF | |
6347 | ||
6348 | break | |
6349 | fi | |
6350 | ||
6351 | done | |
6352 | fi | |
6353 | ||
1995c9ff AK |
6354 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6355 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
ad6254c5 | 6356 | if test "${ac_cv_c_stack_direction+set}" = set; then |
1995c9ff | 6357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6358 | else |
6359 | if test "$cross_compiling" = yes; then | |
6360 | ac_cv_c_stack_direction=0 | |
6361 | else | |
6362 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6363 | /* confdefs.h. */ |
6364 | _ACEOF | |
6365 | cat confdefs.h >>conftest.$ac_ext | |
6366 | cat >>conftest.$ac_ext <<_ACEOF | |
6367 | /* end confdefs.h. */ | |
7a197a62 | 6368 | $ac_includes_default |
ad6254c5 AK |
6369 | int |
6370 | find_stack_direction () | |
6371 | { | |
6372 | static char *addr = 0; | |
6373 | auto char dummy; | |
6374 | if (addr == 0) | |
6375 | { | |
6376 | addr = &dummy; | |
6377 | return find_stack_direction (); | |
6378 | } | |
6379 | else | |
6380 | return (&dummy > addr) ? 1 : -1; | |
6381 | } | |
6382 | ||
6383 | int | |
6384 | main () | |
6385 | { | |
7a197a62 | 6386 | return find_stack_direction () < 0; |
ad6254c5 AK |
6387 | } |
6388 | _ACEOF | |
6389 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6390 | if { (ac_try="$ac_link" |
6391 | case "(($ac_try" in | |
6392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6393 | *) ac_try_echo=$ac_try;; | |
6394 | esac | |
1995c9ff | 6395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6396 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6397 | ac_status=$? |
1995c9ff | 6398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6399 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6400 | { (case "(($ac_try" in |
6401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6402 | *) ac_try_echo=$ac_try;; | |
6403 | esac | |
1995c9ff | 6404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6405 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6406 | ac_status=$? |
1995c9ff | 6407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6408 | (exit $ac_status); }; }; then |
6409 | ac_cv_c_stack_direction=1 | |
6410 | else | |
1995c9ff AK |
6411 | echo "$as_me: program exited with status $ac_status" >&5 |
6412 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6413 | sed 's/^/| /' conftest.$ac_ext >&5 |
6414 | ||
6415 | ( exit $ac_status ) | |
6416 | ac_cv_c_stack_direction=-1 | |
6417 | fi | |
7a197a62 | 6418 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6419 | fi |
7a197a62 AK |
6420 | |
6421 | ||
ad6254c5 | 6422 | fi |
1995c9ff AK |
6423 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6424 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 AK |
6425 | |
6426 | cat >>confdefs.h <<_ACEOF | |
6427 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6428 | _ACEOF | |
6429 | ||
6430 | ||
6431 | fi | |
6432 | ||
1995c9ff AK |
6433 | { echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
6434 | echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; } | |
ad6254c5 | 6435 | if test "${ac_cv_func_closedir_void+set}" = set; then |
1995c9ff | 6436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6437 | else |
6438 | if test "$cross_compiling" = yes; then | |
6439 | ac_cv_func_closedir_void=yes | |
6440 | else | |
6441 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6442 | /* confdefs.h. */ |
6443 | _ACEOF | |
6444 | cat confdefs.h >>conftest.$ac_ext | |
6445 | cat >>conftest.$ac_ext <<_ACEOF | |
6446 | /* end confdefs.h. */ | |
6447 | $ac_includes_default | |
6448 | #include <$ac_header_dirent> | |
6449 | #ifndef __cplusplus | |
6450 | int closedir (); | |
6451 | #endif | |
6452 | ||
6453 | int | |
6454 | main () | |
6455 | { | |
7a197a62 | 6456 | return closedir (opendir (".")) != 0; |
ad6254c5 AK |
6457 | ; |
6458 | return 0; | |
6459 | } | |
6460 | _ACEOF | |
6461 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6462 | if { (ac_try="$ac_link" |
6463 | case "(($ac_try" in | |
6464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6465 | *) ac_try_echo=$ac_try;; | |
6466 | esac | |
1995c9ff | 6467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6468 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6469 | ac_status=$? |
1995c9ff | 6470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6471 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6472 | { (case "(($ac_try" in |
6473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6474 | *) ac_try_echo=$ac_try;; | |
6475 | esac | |
1995c9ff | 6476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6477 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6478 | ac_status=$? |
1995c9ff | 6479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6480 | (exit $ac_status); }; }; then |
6481 | ac_cv_func_closedir_void=no | |
6482 | else | |
1995c9ff AK |
6483 | echo "$as_me: program exited with status $ac_status" >&5 |
6484 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6485 | sed 's/^/| /' conftest.$ac_ext >&5 |
6486 | ||
6487 | ( exit $ac_status ) | |
6488 | ac_cv_func_closedir_void=yes | |
6489 | fi | |
7a197a62 | 6490 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6491 | fi |
7a197a62 AK |
6492 | |
6493 | ||
ad6254c5 | 6494 | fi |
1995c9ff AK |
6495 | { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
6496 | echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; } | |
ad6254c5 AK |
6497 | if test $ac_cv_func_closedir_void = yes; then |
6498 | ||
6499 | cat >>confdefs.h <<\_ACEOF | |
6500 | #define CLOSEDIR_VOID 1 | |
6501 | _ACEOF | |
6502 | ||
6503 | fi | |
6504 | ||
6505 | ||
7a197a62 | 6506 | for ac_header in vfork.h |
ad6254c5 | 6507 | do |
1995c9ff | 6508 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 6509 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
6510 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6511 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 6512 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 6513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 6514 | fi |
1995c9ff AK |
6515 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6516 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6517 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
6518 | else |
6519 | # Is the header compilable? | |
1995c9ff AK |
6520 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6521 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 6522 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6523 | /* confdefs.h. */ |
6524 | _ACEOF | |
6525 | cat confdefs.h >>conftest.$ac_ext | |
6526 | cat >>conftest.$ac_ext <<_ACEOF | |
6527 | /* end confdefs.h. */ | |
6528 | $ac_includes_default | |
6529 | #include <$ac_header> | |
6530 | _ACEOF | |
6531 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6532 | if { (ac_try="$ac_compile" |
6533 | case "(($ac_try" in | |
6534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6535 | *) ac_try_echo=$ac_try;; | |
6536 | esac | |
1995c9ff | 6537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6538 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6539 | ac_status=$? |
8a2fc586 AK |
6540 | grep -v '^ *+' conftest.er1 >conftest.err |
6541 | rm -f conftest.er1 | |
6542 | cat conftest.err >&5 | |
1995c9ff | 6543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
6544 | (exit $ac_status); } && |
6545 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6546 | { (case "(($ac_try" in | |
6547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6548 | *) ac_try_echo=$ac_try;; | |
6549 | esac | |
6550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6551 | (eval "$ac_try") 2>&5 | |
6552 | ac_status=$? | |
6553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6554 | (exit $ac_status); }; } && | |
6555 | { ac_try='test -s conftest.$ac_objext' | |
6556 | { (case "(($ac_try" in | |
6557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6558 | *) ac_try_echo=$ac_try;; | |
6559 | esac | |
6560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6561 | (eval "$ac_try") 2>&5 | |
6562 | ac_status=$? | |
6563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6564 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
6565 | ac_header_compiler=yes |
6566 | else | |
1995c9ff | 6567 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6568 | sed 's/^/| /' conftest.$ac_ext >&5 |
6569 | ||
7a197a62 | 6570 | ac_header_compiler=no |
ad6254c5 | 6571 | fi |
7a197a62 AK |
6572 | |
6573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
6574 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6575 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
6576 | |
6577 | # Is the header present? | |
1995c9ff AK |
6578 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6579 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 6580 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6581 | /* confdefs.h. */ |
6582 | _ACEOF | |
6583 | cat confdefs.h >>conftest.$ac_ext | |
6584 | cat >>conftest.$ac_ext <<_ACEOF | |
6585 | /* end confdefs.h. */ | |
6586 | #include <$ac_header> | |
6587 | _ACEOF | |
7a197a62 AK |
6588 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6589 | case "(($ac_try" in | |
6590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6591 | *) ac_try_echo=$ac_try;; | |
6592 | esac | |
1995c9ff | 6593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6594 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
6595 | ac_status=$? |
6596 | grep -v '^ *+' conftest.er1 >conftest.err | |
6597 | rm -f conftest.er1 | |
6598 | cat conftest.err >&5 | |
1995c9ff | 6599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
6600 | (exit $ac_status); } >/dev/null; then |
6601 | if test -s conftest.err; then | |
6602 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6603 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6604 | else | |
6605 | ac_cpp_err= | |
6606 | fi | |
6607 | else | |
6608 | ac_cpp_err=yes | |
6609 | fi | |
6610 | if test -z "$ac_cpp_err"; then | |
ad6254c5 AK |
6611 | ac_header_preproc=yes |
6612 | else | |
1995c9ff | 6613 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6614 | sed 's/^/| /' conftest.$ac_ext >&5 |
6615 | ||
6616 | ac_header_preproc=no | |
6617 | fi | |
7a197a62 | 6618 | |
ad6254c5 | 6619 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
6620 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6621 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
6622 | |
6623 | # So? What about this header? | |
8a2fc586 AK |
6624 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6625 | yes:no: ) | |
1995c9ff AK |
6626 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6627 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6628 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6629 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 6630 | ac_header_preproc=yes |
ad6254c5 | 6631 | ;; |
8a2fc586 | 6632 | no:yes:* ) |
1995c9ff AK |
6633 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6634 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6635 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6636 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6637 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6638 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6639 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6640 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6641 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6642 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6643 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6644 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 6645 | |
ad6254c5 AK |
6646 | ;; |
6647 | esac | |
1995c9ff AK |
6648 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6649 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 6650 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 6651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 6652 | else |
8a2fc586 | 6653 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 6654 | fi |
1995c9ff AK |
6655 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6656 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6657 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 | 6658 | |
795ca3e5 | 6659 | fi |
1995c9ff | 6660 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 6661 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 6662 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
6663 | _ACEOF |
6664 | ||
6665 | fi | |
6666 | ||
6667 | done | |
795ca3e5 | 6668 | |
ad6254c5 AK |
6669 | |
6670 | ||
6671 | for ac_func in fork vfork | |
6672 | do | |
1995c9ff AK |
6673 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6674 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6675 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 6676 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 6677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 6678 | else |
ad6254c5 | 6679 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6680 | /* confdefs.h. */ |
6681 | _ACEOF | |
6682 | cat confdefs.h >>conftest.$ac_ext | |
6683 | cat >>conftest.$ac_ext <<_ACEOF | |
6684 | /* end confdefs.h. */ | |
8a2fc586 AK |
6685 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6686 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6687 | #define $ac_func innocuous_$ac_func | |
6688 | ||
ad6254c5 AK |
6689 | /* System header to define __stub macros and hopefully few prototypes, |
6690 | which can conflict with char $ac_func (); below. | |
6691 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6692 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6693 | |
ad6254c5 AK |
6694 | #ifdef __STDC__ |
6695 | # include <limits.h> | |
6696 | #else | |
6697 | # include <assert.h> | |
795ca3e5 | 6698 | #endif |
8a2fc586 AK |
6699 | |
6700 | #undef $ac_func | |
6701 | ||
7a197a62 AK |
6702 | /* Override any GCC internal prototype to avoid an error. |
6703 | Use char because int might match the return type of a GCC | |
6704 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 6705 | #ifdef __cplusplus |
ad6254c5 | 6706 | extern "C" |
ad6254c5 | 6707 | #endif |
ad6254c5 AK |
6708 | char $ac_func (); |
6709 | /* The GNU C library defines this for functions which it implements | |
6710 | to always fail with ENOSYS. Some functions are actually named | |
6711 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6712 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6713 | choke me |
795ca3e5 AK |
6714 | #endif |
6715 | ||
ad6254c5 AK |
6716 | int |
6717 | main () | |
6718 | { | |
7a197a62 | 6719 | return $ac_func (); |
ad6254c5 AK |
6720 | ; |
6721 | return 0; | |
6722 | } | |
6723 | _ACEOF | |
6724 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6725 | if { (ac_try="$ac_link" |
6726 | case "(($ac_try" in | |
6727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6728 | *) ac_try_echo=$ac_try;; | |
6729 | esac | |
1995c9ff | 6730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6731 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6732 | ac_status=$? |
8a2fc586 AK |
6733 | grep -v '^ *+' conftest.er1 >conftest.err |
6734 | rm -f conftest.er1 | |
6735 | cat conftest.err >&5 | |
1995c9ff | 6736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
6737 | (exit $ac_status); } && |
6738 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6739 | { (case "(($ac_try" in | |
6740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6741 | *) ac_try_echo=$ac_try;; | |
6742 | esac | |
6743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6744 | (eval "$ac_try") 2>&5 | |
6745 | ac_status=$? | |
6746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6747 | (exit $ac_status); }; } && | |
6748 | { ac_try='test -s conftest$ac_exeext' | |
6749 | { (case "(($ac_try" in | |
6750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6751 | *) ac_try_echo=$ac_try;; | |
6752 | esac | |
6753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6754 | (eval "$ac_try") 2>&5 | |
6755 | ac_status=$? | |
6756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6757 | (exit $ac_status); }; }; then | |
ad6254c5 | 6758 | eval "$as_ac_var=yes" |
795ca3e5 | 6759 | else |
1995c9ff | 6760 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6761 | sed 's/^/| /' conftest.$ac_ext >&5 |
6762 | ||
7a197a62 | 6763 | eval "$as_ac_var=no" |
795ca3e5 | 6764 | fi |
7a197a62 | 6765 | |
fc54be10 | 6766 | rm -f core conftest.err conftest.$ac_objext \ |
8a2fc586 | 6767 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6768 | fi |
1995c9ff AK |
6769 | ac_res=`eval echo '${'$as_ac_var'}'` |
6770 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6771 | echo "${ECHO_T}$ac_res" >&6; } | |
6772 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 6773 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 6774 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6775 | _ACEOF |
6776 | ||
6777 | fi | |
6778 | done | |
6779 | ||
6780 | if test "x$ac_cv_func_fork" = xyes; then | |
1995c9ff AK |
6781 | { echo "$as_me:$LINENO: checking for working fork" >&5 |
6782 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6; } | |
ad6254c5 | 6783 | if test "${ac_cv_func_fork_works+set}" = set; then |
1995c9ff | 6784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6785 | else |
6786 | if test "$cross_compiling" = yes; then | |
6787 | ac_cv_func_fork_works=cross | |
6788 | else | |
6789 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
6790 | /* confdefs.h. */ |
6791 | _ACEOF | |
6792 | cat confdefs.h >>conftest.$ac_ext | |
6793 | cat >>conftest.$ac_ext <<_ACEOF | |
6794 | /* end confdefs.h. */ | |
6795 | $ac_includes_default | |
6796 | int | |
6797 | main () | |
6798 | { | |
6799 | ||
6800 | /* By Ruediger Kuhlmann. */ | |
6801 | return fork () < 0; | |
6802 | ||
6803 | ; | |
6804 | return 0; | |
6805 | } | |
ad6254c5 AK |
6806 | _ACEOF |
6807 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6808 | if { (ac_try="$ac_link" |
6809 | case "(($ac_try" in | |
6810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6811 | *) ac_try_echo=$ac_try;; | |
6812 | esac | |
1995c9ff | 6813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6814 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6815 | ac_status=$? |
1995c9ff | 6816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6817 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6818 | { (case "(($ac_try" in |
6819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6820 | *) ac_try_echo=$ac_try;; | |
6821 | esac | |
1995c9ff | 6822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6823 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6824 | ac_status=$? |
1995c9ff | 6825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6826 | (exit $ac_status); }; }; then |
6827 | ac_cv_func_fork_works=yes | |
6828 | else | |
1995c9ff AK |
6829 | echo "$as_me: program exited with status $ac_status" >&5 |
6830 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6831 | sed 's/^/| /' conftest.$ac_ext >&5 |
6832 | ||
6833 | ( exit $ac_status ) | |
6834 | ac_cv_func_fork_works=no | |
6835 | fi | |
7a197a62 | 6836 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6837 | fi |
7a197a62 AK |
6838 | |
6839 | ||
ad6254c5 | 6840 | fi |
1995c9ff AK |
6841 | { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
6842 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
6843 | |
6844 | else | |
6845 | ac_cv_func_fork_works=$ac_cv_func_fork | |
6846 | fi | |
6847 | if test "x$ac_cv_func_fork_works" = xcross; then | |
6848 | case $host in | |
6849 | *-*-amigaos* | *-*-msdosdjgpp*) | |
6850 | # Override, as these systems have only a dummy fork() stub | |
6851 | ac_cv_func_fork_works=no | |
6852 | ;; | |
6853 | *) | |
6854 | ac_cv_func_fork_works=yes | |
6855 | ;; | |
6856 | esac | |
1995c9ff AK |
6857 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
6858 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
6859 | fi |
6860 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
6861 | if test "x$ac_cv_func_vfork" = xyes; then | |
1995c9ff AK |
6862 | { echo "$as_me:$LINENO: checking for working vfork" >&5 |
6863 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; } | |
ad6254c5 | 6864 | if test "${ac_cv_func_vfork_works+set}" = set; then |
1995c9ff | 6865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6866 | else |
6867 | if test "$cross_compiling" = yes; then | |
6868 | ac_cv_func_vfork_works=cross | |
6869 | else | |
6870 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6871 | /* confdefs.h. */ |
6872 | _ACEOF | |
6873 | cat confdefs.h >>conftest.$ac_ext | |
6874 | cat >>conftest.$ac_ext <<_ACEOF | |
6875 | /* end confdefs.h. */ | |
6876 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 6877 | $ac_includes_default |
ad6254c5 | 6878 | #include <sys/wait.h> |
fc54be10 | 6879 | #if HAVE_VFORK_H |
ad6254c5 AK |
6880 | # include <vfork.h> |
6881 | #endif | |
6882 | /* On some sparc systems, changes by the child to local and incoming | |
6883 | argument registers are propagated back to the parent. The compiler | |
6884 | is told about this with #include <vfork.h>, but some compilers | |
6885 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
6886 | static variable whose address is put into a register that is | |
6887 | clobbered by the vfork. */ | |
6888 | static void | |
6889 | #ifdef __cplusplus | |
6890 | sparc_address_test (int arg) | |
6891 | # else | |
6892 | sparc_address_test (arg) int arg; | |
6893 | #endif | |
6894 | { | |
6895 | static pid_t child; | |
6896 | if (!child) { | |
6897 | child = vfork (); | |
6898 | if (child < 0) { | |
6899 | perror ("vfork"); | |
6900 | _exit(2); | |
6901 | } | |
6902 | if (!child) { | |
6903 | arg = getpid(); | |
6904 | write(-1, "", 0); | |
6905 | _exit (arg); | |
6906 | } | |
6907 | } | |
6908 | } | |
6909 | ||
6910 | int | |
6911 | main () | |
6912 | { | |
6913 | pid_t parent = getpid (); | |
6914 | pid_t child; | |
6915 | ||
6916 | sparc_address_test (0); | |
6917 | ||
6918 | child = vfork (); | |
6919 | ||
6920 | if (child == 0) { | |
6921 | /* Here is another test for sparc vfork register problems. This | |
6922 | test uses lots of local variables, at least as many local | |
6923 | variables as main has allocated so far including compiler | |
6924 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
6925 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
6926 | reuse the register of parent for one of the local variables, | |
6927 | since it will think that parent can't possibly be used any more | |
6928 | in this routine. Assigning to the local variable will thus | |
6929 | munge parent in the parent process. */ | |
6930 | pid_t | |
6931 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
6932 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
6933 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
6934 | use the same hardware register for all 8 local variables. */ | |
6935 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
6936 | || p != p5 || p != p6 || p != p7) | |
6937 | _exit(1); | |
6938 | ||
6939 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
6940 | from child file descriptors. If the child closes a descriptor | |
6941 | before it execs or exits, this munges the parent's descriptor | |
6942 | as well. Test for this by closing stdout in the child. */ | |
6943 | _exit(close(fileno(stdout)) != 0); | |
6944 | } else { | |
6945 | int status; | |
6946 | struct stat st; | |
6947 | ||
6948 | while (wait(&status) != child) | |
6949 | ; | |
7a197a62 | 6950 | return ( |
ad6254c5 AK |
6951 | /* Was there some problem with vforking? */ |
6952 | child < 0 | |
6953 | ||
6954 | /* Did the child fail? (This shouldn't happen.) */ | |
6955 | || status | |
6956 | ||
6957 | /* Did the vfork/compiler bug occur? */ | |
6958 | || parent != getpid() | |
6959 | ||
6960 | /* Did the file descriptor bug occur? */ | |
6961 | || fstat(fileno(stdout), &st) != 0 | |
6962 | ); | |
6963 | } | |
6964 | } | |
6965 | _ACEOF | |
6966 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6967 | if { (ac_try="$ac_link" |
6968 | case "(($ac_try" in | |
6969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6970 | *) ac_try_echo=$ac_try;; | |
6971 | esac | |
1995c9ff | 6972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6973 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6974 | ac_status=$? |
1995c9ff | 6975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6976 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6977 | { (case "(($ac_try" in |
6978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6979 | *) ac_try_echo=$ac_try;; | |
6980 | esac | |
1995c9ff | 6981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6982 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6983 | ac_status=$? |
1995c9ff | 6984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6985 | (exit $ac_status); }; }; then |
6986 | ac_cv_func_vfork_works=yes | |
6987 | else | |
1995c9ff AK |
6988 | echo "$as_me: program exited with status $ac_status" >&5 |
6989 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6990 | sed 's/^/| /' conftest.$ac_ext >&5 |
6991 | ||
6992 | ( exit $ac_status ) | |
6993 | ac_cv_func_vfork_works=no | |
6994 | fi | |
7a197a62 | 6995 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6996 | fi |
7a197a62 AK |
6997 | |
6998 | ||
ad6254c5 | 6999 | fi |
1995c9ff AK |
7000 | { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
7001 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
7002 | |
7003 | fi; | |
7004 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 7005 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
1995c9ff AK |
7006 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
7007 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7008 | fi |
7009 | ||
7010 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
7011 | ||
7012 | cat >>confdefs.h <<\_ACEOF | |
7013 | #define HAVE_WORKING_VFORK 1 | |
7014 | _ACEOF | |
7015 | ||
7016 | else | |
7017 | ||
7018 | cat >>confdefs.h <<\_ACEOF | |
7019 | #define vfork fork | |
7020 | _ACEOF | |
7021 | ||
7022 | fi | |
7023 | if test "x$ac_cv_func_fork_works" = xyes; then | |
7024 | ||
7025 | cat >>confdefs.h <<\_ACEOF | |
7026 | #define HAVE_WORKING_FORK 1 | |
7027 | _ACEOF | |
7028 | ||
7029 | fi | |
7030 | ||
1995c9ff AK |
7031 | { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
7032 | echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; } | |
ad6254c5 | 7033 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
1995c9ff | 7034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7035 | else |
7036 | rm -f conftest.sym conftest.file | |
7037 | echo >conftest.file | |
7038 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
7039 | if test "$cross_compiling" = yes; then | |
7040 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7041 | else | |
7042 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7043 | /* confdefs.h. */ |
7044 | _ACEOF | |
7045 | cat confdefs.h >>conftest.$ac_ext | |
7046 | cat >>conftest.$ac_ext <<_ACEOF | |
7047 | /* end confdefs.h. */ | |
7048 | $ac_includes_default | |
7049 | int | |
7050 | main () | |
7051 | { | |
7052 | struct stat sbuf; | |
7053 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
7054 | That is better in the sense that it means we will not |
7055 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 7056 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
7057 | ; |
7058 | return 0; | |
7059 | } | |
7060 | _ACEOF | |
7061 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7062 | if { (ac_try="$ac_link" |
7063 | case "(($ac_try" in | |
7064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7065 | *) ac_try_echo=$ac_try;; | |
7066 | esac | |
1995c9ff | 7067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7068 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7069 | ac_status=$? |
1995c9ff | 7070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7071 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7072 | { (case "(($ac_try" in |
7073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7074 | *) ac_try_echo=$ac_try;; | |
7075 | esac | |
1995c9ff | 7076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7077 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7078 | ac_status=$? |
1995c9ff | 7079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7080 | (exit $ac_status); }; }; then |
7081 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
7082 | else | |
1995c9ff AK |
7083 | echo "$as_me: program exited with status $ac_status" >&5 |
7084 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7085 | sed 's/^/| /' conftest.$ac_ext >&5 |
7086 | ||
7087 | ( exit $ac_status ) | |
7088 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7089 | fi | |
7a197a62 | 7090 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7091 | fi |
7a197a62 AK |
7092 | |
7093 | ||
ad6254c5 AK |
7094 | else |
7095 | # If the `ln -s' command failed, then we probably don't even | |
7096 | # have an lstat function. | |
7097 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7098 | fi | |
7099 | rm -f conftest.sym conftest.file | |
7100 | ||
7101 | fi | |
1995c9ff AK |
7102 | { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
7103 | echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
7104 | |
7105 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
7106 | ||
7107 | cat >>confdefs.h <<_ACEOF | |
7108 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
7109 | _ACEOF | |
7110 | ||
7111 | ||
7112 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 7113 | case " $LIBOBJS " in |
8a2fc586 | 7114 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7115 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7116 | ;; | |
8a2fc586 AK |
7117 | esac |
7118 | ||
ad6254c5 AK |
7119 | fi |
7120 | ||
1995c9ff AK |
7121 | { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
7122 | echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; } | |
ad6254c5 | 7123 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
1995c9ff | 7124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7125 | else |
7126 | if test "$cross_compiling" = yes; then | |
7127 | ac_cv_func_lstat_empty_string_bug=yes | |
7128 | else | |
7129 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7130 | /* confdefs.h. */ |
7131 | _ACEOF | |
7132 | cat confdefs.h >>conftest.$ac_ext | |
7133 | cat >>conftest.$ac_ext <<_ACEOF | |
7134 | /* end confdefs.h. */ | |
7135 | $ac_includes_default | |
7136 | int | |
7137 | main () | |
7138 | { | |
7139 | struct stat sbuf; | |
7a197a62 | 7140 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
7141 | ; |
7142 | return 0; | |
7143 | } | |
7144 | _ACEOF | |
7145 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7146 | if { (ac_try="$ac_link" |
7147 | case "(($ac_try" in | |
7148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7149 | *) ac_try_echo=$ac_try;; | |
7150 | esac | |
1995c9ff | 7151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7152 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7153 | ac_status=$? |
1995c9ff | 7154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7155 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7156 | { (case "(($ac_try" in |
7157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7158 | *) ac_try_echo=$ac_try;; | |
7159 | esac | |
1995c9ff | 7160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7161 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7162 | ac_status=$? |
1995c9ff | 7163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7164 | (exit $ac_status); }; }; then |
7a197a62 | 7165 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 7166 | else |
1995c9ff AK |
7167 | echo "$as_me: program exited with status $ac_status" >&5 |
7168 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7169 | sed 's/^/| /' conftest.$ac_ext >&5 |
7170 | ||
7171 | ( exit $ac_status ) | |
7a197a62 | 7172 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 7173 | fi |
7a197a62 | 7174 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7175 | fi |
7a197a62 AK |
7176 | |
7177 | ||
ad6254c5 | 7178 | fi |
1995c9ff AK |
7179 | { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
7180 | echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 7181 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 7182 | case " $LIBOBJS " in |
8a2fc586 | 7183 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7184 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7185 | ;; | |
8a2fc586 AK |
7186 | esac |
7187 | ||
ad6254c5 AK |
7188 | |
7189 | cat >>confdefs.h <<_ACEOF | |
7190 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
7191 | _ACEOF | |
7192 | ||
7193 | fi | |
7194 | ||
7195 | ||
7196 | for ac_header in stdlib.h | |
7197 | do | |
1995c9ff | 7198 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7199 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
7200 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7201 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7202 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 7203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7204 | fi |
1995c9ff AK |
7205 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7206 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7207 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7208 | else |
7209 | # Is the header compilable? | |
1995c9ff AK |
7210 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7211 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 7212 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7213 | /* confdefs.h. */ |
7214 | _ACEOF | |
7215 | cat confdefs.h >>conftest.$ac_ext | |
7216 | cat >>conftest.$ac_ext <<_ACEOF | |
7217 | /* end confdefs.h. */ | |
7218 | $ac_includes_default | |
7219 | #include <$ac_header> | |
7220 | _ACEOF | |
7221 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7222 | if { (ac_try="$ac_compile" |
7223 | case "(($ac_try" in | |
7224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7225 | *) ac_try_echo=$ac_try;; | |
7226 | esac | |
1995c9ff | 7227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7228 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7229 | ac_status=$? |
8a2fc586 AK |
7230 | grep -v '^ *+' conftest.er1 >conftest.err |
7231 | rm -f conftest.er1 | |
7232 | cat conftest.err >&5 | |
1995c9ff | 7233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
7234 | (exit $ac_status); } && |
7235 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7236 | { (case "(($ac_try" in | |
7237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7238 | *) ac_try_echo=$ac_try;; | |
7239 | esac | |
7240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7241 | (eval "$ac_try") 2>&5 | |
7242 | ac_status=$? | |
7243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7244 | (exit $ac_status); }; } && | |
7245 | { ac_try='test -s conftest.$ac_objext' | |
7246 | { (case "(($ac_try" in | |
7247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7248 | *) ac_try_echo=$ac_try;; | |
7249 | esac | |
7250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7251 | (eval "$ac_try") 2>&5 | |
7252 | ac_status=$? | |
7253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7254 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
7255 | ac_header_compiler=yes |
7256 | else | |
1995c9ff | 7257 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7258 | sed 's/^/| /' conftest.$ac_ext >&5 |
7259 | ||
7a197a62 | 7260 | ac_header_compiler=no |
ad6254c5 | 7261 | fi |
7a197a62 AK |
7262 | |
7263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
7264 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7265 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7266 | |
7267 | # Is the header present? | |
1995c9ff AK |
7268 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7269 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 7270 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7271 | /* confdefs.h. */ |
7272 | _ACEOF | |
7273 | cat confdefs.h >>conftest.$ac_ext | |
7274 | cat >>conftest.$ac_ext <<_ACEOF | |
7275 | /* end confdefs.h. */ | |
7276 | #include <$ac_header> | |
7277 | _ACEOF | |
7a197a62 AK |
7278 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7279 | case "(($ac_try" in | |
7280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7281 | *) ac_try_echo=$ac_try;; | |
7282 | esac | |
1995c9ff | 7283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7284 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7285 | ac_status=$? |
7286 | grep -v '^ *+' conftest.er1 >conftest.err | |
7287 | rm -f conftest.er1 | |
7288 | cat conftest.err >&5 | |
1995c9ff | 7289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
7290 | (exit $ac_status); } >/dev/null; then |
7291 | if test -s conftest.err; then | |
7292 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7293 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7294 | else | |
7295 | ac_cpp_err= | |
7296 | fi | |
7297 | else | |
7298 | ac_cpp_err=yes | |
7299 | fi | |
7300 | if test -z "$ac_cpp_err"; then | |
ad6254c5 AK |
7301 | ac_header_preproc=yes |
7302 | else | |
1995c9ff | 7303 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7304 | sed 's/^/| /' conftest.$ac_ext >&5 |
7305 | ||
7306 | ac_header_preproc=no | |
7307 | fi | |
7a197a62 | 7308 | |
ad6254c5 | 7309 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
7310 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7311 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7312 | |
7313 | # So? What about this header? | |
8a2fc586 AK |
7314 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7315 | yes:no: ) | |
1995c9ff AK |
7316 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7317 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7318 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7319 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7320 | ac_header_preproc=yes |
ad6254c5 | 7321 | ;; |
8a2fc586 | 7322 | no:yes:* ) |
1995c9ff AK |
7323 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7324 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7325 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7326 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7327 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7328 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7329 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7330 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7331 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7332 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7333 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7334 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7335 | |
ad6254c5 AK |
7336 | ;; |
7337 | esac | |
1995c9ff AK |
7338 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7339 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7340 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 7341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7342 | else |
8a2fc586 | 7343 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7344 | fi |
1995c9ff AK |
7345 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7346 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7347 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7348 | |
7349 | fi | |
1995c9ff | 7350 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 7351 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 7352 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7353 | _ACEOF |
7354 | ||
7355 | fi | |
7356 | ||
7357 | done | |
7358 | ||
1995c9ff AK |
7359 | { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
7360 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } | |
ad6254c5 | 7361 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
1995c9ff | 7362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7363 | else |
7364 | if test "$cross_compiling" = yes; then | |
7365 | ac_cv_func_malloc_0_nonnull=no | |
7366 | else | |
7367 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7368 | /* confdefs.h. */ |
7369 | _ACEOF | |
7370 | cat confdefs.h >>conftest.$ac_ext | |
7371 | cat >>conftest.$ac_ext <<_ACEOF | |
7372 | /* end confdefs.h. */ | |
fc54be10 | 7373 | #if STDC_HEADERS || HAVE_STDLIB_H |
ad6254c5 AK |
7374 | # include <stdlib.h> |
7375 | #else | |
7376 | char *malloc (); | |
7377 | #endif | |
7378 | ||
7379 | int | |
7380 | main () | |
7381 | { | |
7a197a62 | 7382 | return ! malloc (0); |
ad6254c5 AK |
7383 | ; |
7384 | return 0; | |
7385 | } | |
7386 | _ACEOF | |
7387 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7388 | if { (ac_try="$ac_link" |
7389 | case "(($ac_try" in | |
7390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7391 | *) ac_try_echo=$ac_try;; | |
7392 | esac | |
1995c9ff | 7393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7394 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7395 | ac_status=$? |
1995c9ff | 7396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7397 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7398 | { (case "(($ac_try" in |
7399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7400 | *) ac_try_echo=$ac_try;; | |
7401 | esac | |
1995c9ff | 7402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7403 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7404 | ac_status=$? |
1995c9ff | 7405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7406 | (exit $ac_status); }; }; then |
7407 | ac_cv_func_malloc_0_nonnull=yes | |
7408 | else | |
1995c9ff AK |
7409 | echo "$as_me: program exited with status $ac_status" >&5 |
7410 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7411 | sed 's/^/| /' conftest.$ac_ext >&5 |
7412 | ||
7413 | ( exit $ac_status ) | |
7414 | ac_cv_func_malloc_0_nonnull=no | |
7415 | fi | |
7a197a62 | 7416 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7417 | fi |
7a197a62 AK |
7418 | |
7419 | ||
ad6254c5 | 7420 | fi |
1995c9ff AK |
7421 | { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
7422 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
7423 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
7424 | ||
7425 | cat >>confdefs.h <<\_ACEOF | |
7426 | #define HAVE_MALLOC 1 | |
7427 | _ACEOF | |
7428 | ||
7429 | else | |
7430 | cat >>confdefs.h <<\_ACEOF | |
7431 | #define HAVE_MALLOC 0 | |
7432 | _ACEOF | |
7433 | ||
7a197a62 | 7434 | case " $LIBOBJS " in |
8a2fc586 | 7435 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
7436 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
7437 | ;; | |
8a2fc586 AK |
7438 | esac |
7439 | ||
ad6254c5 AK |
7440 | |
7441 | cat >>confdefs.h <<\_ACEOF | |
7442 | #define malloc rpl_malloc | |
7443 | _ACEOF | |
7444 | ||
7445 | fi | |
7446 | ||
7447 | ||
7448 | ||
1995c9ff AK |
7449 | { echo "$as_me:$LINENO: checking for working memcmp" >&5 |
7450 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; } | |
ad6254c5 | 7451 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
1995c9ff | 7452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7453 | else |
7454 | if test "$cross_compiling" = yes; then | |
7455 | ac_cv_func_memcmp_working=no | |
7456 | else | |
7457 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7458 | /* confdefs.h. */ |
7459 | _ACEOF | |
7460 | cat confdefs.h >>conftest.$ac_ext | |
7461 | cat >>conftest.$ac_ext <<_ACEOF | |
7462 | /* end confdefs.h. */ | |
8a2fc586 | 7463 | $ac_includes_default |
ad6254c5 AK |
7464 | int |
7465 | main () | |
7466 | { | |
7467 | ||
7468 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 7469 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 7470 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 7471 | return 1; |
ad6254c5 AK |
7472 | |
7473 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
7474 | or more and with at least one buffer not starting on a 4-byte boundary. | |
7475 | William Lewis provided this test program. */ | |
7476 | { | |
7477 | char foo[21]; | |
7478 | char bar[21]; | |
7479 | int i; | |
7480 | for (i = 0; i < 4; i++) | |
7481 | { | |
8a2fc586 AK |
7482 | char *a = foo + i; |
7483 | char *b = bar + i; | |
7484 | strcpy (a, "--------01111111"); | |
7485 | strcpy (b, "--------10000000"); | |
7486 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 7487 | return 1; |
ad6254c5 | 7488 | } |
7a197a62 | 7489 | return 0; |
ad6254c5 AK |
7490 | } |
7491 | ||
7492 | ; | |
7493 | return 0; | |
7494 | } | |
7495 | _ACEOF | |
7496 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7497 | if { (ac_try="$ac_link" |
7498 | case "(($ac_try" in | |
7499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7500 | *) ac_try_echo=$ac_try;; | |
7501 | esac | |
1995c9ff | 7502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7503 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7504 | ac_status=$? |
1995c9ff | 7505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7506 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7507 | { (case "(($ac_try" in |
7508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7509 | *) ac_try_echo=$ac_try;; | |
7510 | esac | |
1995c9ff | 7511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7512 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7513 | ac_status=$? |
1995c9ff | 7514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7515 | (exit $ac_status); }; }; then |
7516 | ac_cv_func_memcmp_working=yes | |
7517 | else | |
1995c9ff AK |
7518 | echo "$as_me: program exited with status $ac_status" >&5 |
7519 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7520 | sed 's/^/| /' conftest.$ac_ext >&5 |
7521 | ||
7522 | ( exit $ac_status ) | |
7523 | ac_cv_func_memcmp_working=no | |
7524 | fi | |
7a197a62 | 7525 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7526 | fi |
7a197a62 AK |
7527 | |
7528 | ||
ad6254c5 | 7529 | fi |
1995c9ff AK |
7530 | { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
7531 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 7532 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 7533 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
7534 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
7535 | ;; | |
8a2fc586 AK |
7536 | esac |
7537 | ||
ad6254c5 AK |
7538 | |
7539 | ||
7540 | ||
7541 | for ac_header in stdlib.h unistd.h | |
7542 | do | |
1995c9ff | 7543 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7544 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
7545 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7546 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7547 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 7548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7549 | fi |
1995c9ff AK |
7550 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7551 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7552 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7553 | else |
7554 | # Is the header compilable? | |
1995c9ff AK |
7555 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7556 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 7557 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7558 | /* confdefs.h. */ |
7559 | _ACEOF | |
7560 | cat confdefs.h >>conftest.$ac_ext | |
7561 | cat >>conftest.$ac_ext <<_ACEOF | |
7562 | /* end confdefs.h. */ | |
7563 | $ac_includes_default | |
7564 | #include <$ac_header> | |
7565 | _ACEOF | |
7566 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7567 | if { (ac_try="$ac_compile" |
7568 | case "(($ac_try" in | |
7569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7570 | *) ac_try_echo=$ac_try;; | |
7571 | esac | |
1995c9ff | 7572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7573 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7574 | ac_status=$? |
8a2fc586 AK |
7575 | grep -v '^ *+' conftest.er1 >conftest.err |
7576 | rm -f conftest.er1 | |
7577 | cat conftest.err >&5 | |
1995c9ff | 7578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
7579 | (exit $ac_status); } && |
7580 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7581 | { (case "(($ac_try" in | |
7582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7583 | *) ac_try_echo=$ac_try;; | |
7584 | esac | |
7585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7586 | (eval "$ac_try") 2>&5 | |
7587 | ac_status=$? | |
7588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7589 | (exit $ac_status); }; } && | |
7590 | { ac_try='test -s conftest.$ac_objext' | |
7591 | { (case "(($ac_try" in | |
7592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7593 | *) ac_try_echo=$ac_try;; | |
7594 | esac | |
7595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7596 | (eval "$ac_try") 2>&5 | |
7597 | ac_status=$? | |
7598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7599 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
7600 | ac_header_compiler=yes |
7601 | else | |
1995c9ff | 7602 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7603 | sed 's/^/| /' conftest.$ac_ext >&5 |
7604 | ||
7a197a62 | 7605 | ac_header_compiler=no |
ad6254c5 | 7606 | fi |
7a197a62 AK |
7607 | |
7608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
7609 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7610 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7611 | |
7612 | # Is the header present? | |
1995c9ff AK |
7613 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7614 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 7615 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7616 | /* confdefs.h. */ |
7617 | _ACEOF | |
7618 | cat confdefs.h >>conftest.$ac_ext | |
7619 | cat >>conftest.$ac_ext <<_ACEOF | |
7620 | /* end confdefs.h. */ | |
7621 | #include <$ac_header> | |
7622 | _ACEOF | |
7a197a62 AK |
7623 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7624 | case "(($ac_try" in | |
7625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7626 | *) ac_try_echo=$ac_try;; | |
7627 | esac | |
1995c9ff | 7628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7629 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7630 | ac_status=$? |
7631 | grep -v '^ *+' conftest.er1 >conftest.err | |
7632 | rm -f conftest.er1 | |
7633 | cat conftest.err >&5 | |
1995c9ff | 7634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
7635 | (exit $ac_status); } >/dev/null; then |
7636 | if test -s conftest.err; then | |
7637 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7638 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7639 | else | |
7640 | ac_cpp_err= | |
7641 | fi | |
7642 | else | |
7643 | ac_cpp_err=yes | |
7644 | fi | |
7645 | if test -z "$ac_cpp_err"; then | |
ad6254c5 AK |
7646 | ac_header_preproc=yes |
7647 | else | |
1995c9ff | 7648 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7649 | sed 's/^/| /' conftest.$ac_ext >&5 |
7650 | ||
7651 | ac_header_preproc=no | |
7652 | fi | |
7a197a62 | 7653 | |
ad6254c5 | 7654 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
7655 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7656 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7657 | |
7658 | # So? What about this header? | |
8a2fc586 AK |
7659 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7660 | yes:no: ) | |
1995c9ff AK |
7661 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7662 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7663 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7664 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7665 | ac_header_preproc=yes |
ad6254c5 | 7666 | ;; |
8a2fc586 | 7667 | no:yes:* ) |
1995c9ff AK |
7668 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7669 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7670 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7671 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7672 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7673 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7674 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7675 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7676 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7677 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7678 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7679 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7680 | |
ad6254c5 AK |
7681 | ;; |
7682 | esac | |
1995c9ff AK |
7683 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7684 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7685 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 7686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7687 | else |
8a2fc586 | 7688 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7689 | fi |
1995c9ff AK |
7690 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7691 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7692 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7693 | |
7694 | fi | |
1995c9ff | 7695 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 7696 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 7697 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7698 | _ACEOF |
7699 | ||
7700 | fi | |
7701 | ||
7702 | done | |
7703 | ||
7704 | ||
7705 | for ac_func in getpagesize | |
7706 | do | |
1995c9ff AK |
7707 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7708 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7709 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 7710 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 7711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7712 | else |
7713 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7714 | /* confdefs.h. */ |
7715 | _ACEOF | |
7716 | cat confdefs.h >>conftest.$ac_ext | |
7717 | cat >>conftest.$ac_ext <<_ACEOF | |
7718 | /* end confdefs.h. */ | |
8a2fc586 AK |
7719 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7720 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7721 | #define $ac_func innocuous_$ac_func | |
7722 | ||
ad6254c5 AK |
7723 | /* System header to define __stub macros and hopefully few prototypes, |
7724 | which can conflict with char $ac_func (); below. | |
7725 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7726 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7727 | |
ad6254c5 AK |
7728 | #ifdef __STDC__ |
7729 | # include <limits.h> | |
7730 | #else | |
7731 | # include <assert.h> | |
7732 | #endif | |
8a2fc586 AK |
7733 | |
7734 | #undef $ac_func | |
7735 | ||
7a197a62 AK |
7736 | /* Override any GCC internal prototype to avoid an error. |
7737 | Use char because int might match the return type of a GCC | |
7738 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
7739 | #ifdef __cplusplus |
7740 | extern "C" | |
ad6254c5 | 7741 | #endif |
ad6254c5 AK |
7742 | char $ac_func (); |
7743 | /* The GNU C library defines this for functions which it implements | |
7744 | to always fail with ENOSYS. Some functions are actually named | |
7745 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7746 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 7747 | choke me |
ad6254c5 AK |
7748 | #endif |
7749 | ||
7750 | int | |
7751 | main () | |
7752 | { | |
7a197a62 | 7753 | return $ac_func (); |
ad6254c5 AK |
7754 | ; |
7755 | return 0; | |
7756 | } | |
7757 | _ACEOF | |
7758 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7759 | if { (ac_try="$ac_link" |
7760 | case "(($ac_try" in | |
7761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7762 | *) ac_try_echo=$ac_try;; | |
7763 | esac | |
1995c9ff | 7764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7765 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7766 | ac_status=$? |
8a2fc586 AK |
7767 | grep -v '^ *+' conftest.er1 >conftest.err |
7768 | rm -f conftest.er1 | |
7769 | cat conftest.err >&5 | |
1995c9ff | 7770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
7771 | (exit $ac_status); } && |
7772 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7773 | { (case "(($ac_try" in | |
7774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7775 | *) ac_try_echo=$ac_try;; | |
7776 | esac | |
7777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7778 | (eval "$ac_try") 2>&5 | |
7779 | ac_status=$? | |
7780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7781 | (exit $ac_status); }; } && | |
7782 | { ac_try='test -s conftest$ac_exeext' | |
7783 | { (case "(($ac_try" in | |
7784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7785 | *) ac_try_echo=$ac_try;; | |
7786 | esac | |
7787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7788 | (eval "$ac_try") 2>&5 | |
7789 | ac_status=$? | |
7790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7791 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
7792 | eval "$as_ac_var=yes" |
7793 | else | |
1995c9ff | 7794 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7795 | sed 's/^/| /' conftest.$ac_ext >&5 |
7796 | ||
7a197a62 | 7797 | eval "$as_ac_var=no" |
ad6254c5 | 7798 | fi |
7a197a62 | 7799 | |
fc54be10 | 7800 | rm -f core conftest.err conftest.$ac_objext \ |
8a2fc586 | 7801 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7802 | fi |
1995c9ff AK |
7803 | ac_res=`eval echo '${'$as_ac_var'}'` |
7804 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7805 | echo "${ECHO_T}$ac_res" >&6; } | |
7806 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 7807 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 7808 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
7809 | _ACEOF |
7810 | ||
7811 | fi | |
7812 | done | |
7813 | ||
1995c9ff AK |
7814 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
7815 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } | |
ad6254c5 | 7816 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
1995c9ff | 7817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7818 | else |
7819 | if test "$cross_compiling" = yes; then | |
7820 | ac_cv_func_mmap_fixed_mapped=no | |
7821 | else | |
7822 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7823 | /* confdefs.h. */ |
7824 | _ACEOF | |
7825 | cat confdefs.h >>conftest.$ac_ext | |
7826 | cat >>conftest.$ac_ext <<_ACEOF | |
7827 | /* end confdefs.h. */ | |
7828 | $ac_includes_default | |
7829 | /* malloc might have been renamed as rpl_malloc. */ | |
7830 | #undef malloc | |
7831 | ||
7832 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
7833 | Here is a matrix of mmap possibilities: | |
7834 | mmap private not fixed | |
7835 | mmap private fixed at somewhere currently unmapped | |
7836 | mmap private fixed at somewhere already mapped | |
7837 | mmap shared not fixed | |
7838 | mmap shared fixed at somewhere currently unmapped | |
7839 | mmap shared fixed at somewhere already mapped | |
7840 | For private mappings, we should verify that changes cannot be read() | |
7841 | back from the file, nor mmap's back from the file at a different | |
7842 | address. (There have been systems where private was not correctly | |
7843 | implemented like the infamous i386 svr4.0, and systems where the | |
7844 | VM page cache was not coherent with the file system buffer cache | |
7845 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
7846 | For shared mappings, we should conversely verify that changes get | |
7847 | propagated back to all the places they're supposed to be. | |
7848 | ||
7849 | Grep wants private fixed already mapped. | |
7850 | The main things grep needs to know about mmap are: | |
7851 | * does it exist and is it safe to write into the mmap'd area | |
7852 | * how to use it (BSD variants) */ | |
7853 | ||
7854 | #include <fcntl.h> | |
7855 | #include <sys/mman.h> | |
7856 | ||
fc54be10 | 7857 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
ad6254c5 AK |
7858 | char *malloc (); |
7859 | #endif | |
7860 | ||
7861 | /* This mess was copied from the GNU getpagesize.h. */ | |
fc54be10 | 7862 | #if !HAVE_GETPAGESIZE |
ad6254c5 | 7863 | /* Assume that all systems that can run configure have sys/param.h. */ |
fc54be10 | 7864 | # if !HAVE_SYS_PARAM_H |
ad6254c5 AK |
7865 | # define HAVE_SYS_PARAM_H 1 |
7866 | # endif | |
7867 | ||
7868 | # ifdef _SC_PAGESIZE | |
7869 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
7870 | # else /* no _SC_PAGESIZE */ | |
fc54be10 | 7871 | # if HAVE_SYS_PARAM_H |
ad6254c5 AK |
7872 | # include <sys/param.h> |
7873 | # ifdef EXEC_PAGESIZE | |
7874 | # define getpagesize() EXEC_PAGESIZE | |
7875 | # else /* no EXEC_PAGESIZE */ | |
7876 | # ifdef NBPG | |
7877 | # define getpagesize() NBPG * CLSIZE | |
7878 | # ifndef CLSIZE | |
7879 | # define CLSIZE 1 | |
7880 | # endif /* no CLSIZE */ | |
7881 | # else /* no NBPG */ | |
7882 | # ifdef NBPC | |
7883 | # define getpagesize() NBPC | |
7884 | # else /* no NBPC */ | |
7885 | # ifdef PAGESIZE | |
7886 | # define getpagesize() PAGESIZE | |
7887 | # endif /* PAGESIZE */ | |
7888 | # endif /* no NBPC */ | |
7889 | # endif /* no NBPG */ | |
7890 | # endif /* no EXEC_PAGESIZE */ | |
7891 | # else /* no HAVE_SYS_PARAM_H */ | |
7892 | # define getpagesize() 8192 /* punt totally */ | |
7893 | # endif /* no HAVE_SYS_PARAM_H */ | |
7894 | # endif /* no _SC_PAGESIZE */ | |
7895 | ||
7896 | #endif /* no HAVE_GETPAGESIZE */ | |
7897 | ||
7898 | int | |
7899 | main () | |
7900 | { | |
7901 | char *data, *data2, *data3; | |
7902 | int i, pagesize; | |
7903 | int fd; | |
7904 | ||
7905 | pagesize = getpagesize (); | |
7906 | ||
7907 | /* First, make a file with some known garbage in it. */ | |
7908 | data = (char *) malloc (pagesize); | |
7909 | if (!data) | |
7a197a62 | 7910 | return 1; |
ad6254c5 AK |
7911 | for (i = 0; i < pagesize; ++i) |
7912 | *(data + i) = rand (); | |
7913 | umask (0); | |
7914 | fd = creat ("conftest.mmap", 0600); | |
7915 | if (fd < 0) | |
7a197a62 | 7916 | return 1; |
ad6254c5 | 7917 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 7918 | return 1; |
ad6254c5 AK |
7919 | close (fd); |
7920 | ||
7921 | /* Next, try to mmap the file at a fixed address which already has | |
7922 | something else allocated at it. If we can, also make sure that | |
7923 | we see the same garbage. */ | |
7924 | fd = open ("conftest.mmap", O_RDWR); | |
7925 | if (fd < 0) | |
7a197a62 | 7926 | return 1; |
ad6254c5 AK |
7927 | data2 = (char *) malloc (2 * pagesize); |
7928 | if (!data2) | |
7a197a62 AK |
7929 | return 1; |
7930 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 7931 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 7932 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 7933 | return 1; |
ad6254c5 AK |
7934 | for (i = 0; i < pagesize; ++i) |
7935 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 7936 | return 1; |
ad6254c5 AK |
7937 | |
7938 | /* Finally, make sure that changes to the mapped area do not | |
7939 | percolate back to the file as seen by read(). (This is a bug on | |
7940 | some variants of i386 svr4.0.) */ | |
7941 | for (i = 0; i < pagesize; ++i) | |
7942 | *(data2 + i) = *(data2 + i) + 1; | |
7943 | data3 = (char *) malloc (pagesize); | |
7944 | if (!data3) | |
7a197a62 | 7945 | return 1; |
ad6254c5 | 7946 | if (read (fd, data3, pagesize) != pagesize) |
7a197a62 | 7947 | return 1; |
ad6254c5 AK |
7948 | for (i = 0; i < pagesize; ++i) |
7949 | if (*(data + i) != *(data3 + i)) | |
7a197a62 | 7950 | return 1; |
ad6254c5 | 7951 | close (fd); |
7a197a62 | 7952 | return 0; |
ad6254c5 AK |
7953 | } |
7954 | _ACEOF | |
7955 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7956 | if { (ac_try="$ac_link" |
7957 | case "(($ac_try" in | |
7958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7959 | *) ac_try_echo=$ac_try;; | |
7960 | esac | |
1995c9ff | 7961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7962 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7963 | ac_status=$? |
1995c9ff | 7964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7965 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7966 | { (case "(($ac_try" in |
7967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7968 | *) ac_try_echo=$ac_try;; | |
7969 | esac | |
1995c9ff | 7970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7971 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7972 | ac_status=$? |
1995c9ff | 7973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7974 | (exit $ac_status); }; }; then |
7975 | ac_cv_func_mmap_fixed_mapped=yes | |
7976 | else | |
1995c9ff AK |
7977 | echo "$as_me: program exited with status $ac_status" >&5 |
7978 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7979 | sed 's/^/| /' conftest.$ac_ext >&5 |
7980 | ||
7981 | ( exit $ac_status ) | |
7982 | ac_cv_func_mmap_fixed_mapped=no | |
7983 | fi | |
7a197a62 | 7984 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7985 | fi |
7a197a62 AK |
7986 | |
7987 | ||
ad6254c5 | 7988 | fi |
1995c9ff AK |
7989 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
7990 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } | |
ad6254c5 AK |
7991 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
7992 | ||
7993 | cat >>confdefs.h <<\_ACEOF | |
7994 | #define HAVE_MMAP 1 | |
7995 | _ACEOF | |
7996 | ||
7997 | fi | |
7998 | rm -f conftest.mmap | |
7999 | ||
1995c9ff AK |
8000 | { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
8001 | echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; } | |
ad6254c5 | 8002 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
1995c9ff | 8003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8004 | else |
8005 | if test "$cross_compiling" = yes; then | |
8006 | ac_cv_func_stat_empty_string_bug=yes | |
8007 | else | |
8008 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8009 | /* confdefs.h. */ |
8010 | _ACEOF | |
8011 | cat confdefs.h >>conftest.$ac_ext | |
8012 | cat >>conftest.$ac_ext <<_ACEOF | |
8013 | /* end confdefs.h. */ | |
8014 | $ac_includes_default | |
8015 | int | |
8016 | main () | |
8017 | { | |
8018 | struct stat sbuf; | |
7a197a62 | 8019 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
8020 | ; |
8021 | return 0; | |
8022 | } | |
8023 | _ACEOF | |
8024 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8025 | if { (ac_try="$ac_link" |
8026 | case "(($ac_try" in | |
8027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8028 | *) ac_try_echo=$ac_try;; | |
8029 | esac | |
1995c9ff | 8030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8031 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8032 | ac_status=$? |
1995c9ff | 8033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8034 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8035 | { (case "(($ac_try" in |
8036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8037 | *) ac_try_echo=$ac_try;; | |
8038 | esac | |
1995c9ff | 8039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8040 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8041 | ac_status=$? |
1995c9ff | 8042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8043 | (exit $ac_status); }; }; then |
7a197a62 | 8044 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 8045 | else |
1995c9ff AK |
8046 | echo "$as_me: program exited with status $ac_status" >&5 |
8047 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8048 | sed 's/^/| /' conftest.$ac_ext >&5 |
8049 | ||
8050 | ( exit $ac_status ) | |
7a197a62 | 8051 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 8052 | fi |
7a197a62 | 8053 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8054 | fi |
7a197a62 AK |
8055 | |
8056 | ||
ad6254c5 | 8057 | fi |
1995c9ff AK |
8058 | { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
8059 | echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 8060 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 8061 | case " $LIBOBJS " in |
8a2fc586 | 8062 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
8063 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
8064 | ;; | |
8a2fc586 AK |
8065 | esac |
8066 | ||
ad6254c5 AK |
8067 | |
8068 | cat >>confdefs.h <<_ACEOF | |
8069 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
8070 | _ACEOF | |
8071 | ||
8072 | fi | |
8073 | ||
1995c9ff AK |
8074 | { echo "$as_me:$LINENO: checking for working strtod" >&5 |
8075 | echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; } | |
ad6254c5 | 8076 | if test "${ac_cv_func_strtod+set}" = set; then |
1995c9ff | 8077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8078 | else |
8079 | if test "$cross_compiling" = yes; then | |
8080 | ac_cv_func_strtod=no | |
8081 | else | |
8082 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8083 | /* confdefs.h. */ |
8084 | _ACEOF | |
8085 | cat confdefs.h >>conftest.$ac_ext | |
8086 | cat >>conftest.$ac_ext <<_ACEOF | |
8087 | /* end confdefs.h. */ | |
8088 | ||
7a197a62 AK |
8089 | $ac_includes_default |
8090 | #ifndef strtod | |
ad6254c5 | 8091 | double strtod (); |
7a197a62 | 8092 | #endif |
ad6254c5 AK |
8093 | int |
8094 | main() | |
8095 | { | |
8096 | { | |
8097 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
8098 | char *string = " +69"; | |
8099 | char *term; | |
8100 | double value; | |
8101 | value = strtod (string, &term); | |
8102 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 8103 | return 1; |
ad6254c5 AK |
8104 | } |
8105 | ||
8106 | { | |
8107 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
8108 | terminating character under some conditions. */ | |
8109 | char *string = "NaN"; | |
8110 | char *term; | |
8111 | strtod (string, &term); | |
8112 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 8113 | return 1; |
ad6254c5 | 8114 | } |
7a197a62 | 8115 | return 0; |
ad6254c5 AK |
8116 | } |
8117 | ||
8118 | _ACEOF | |
8119 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8120 | if { (ac_try="$ac_link" |
8121 | case "(($ac_try" in | |
8122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8123 | *) ac_try_echo=$ac_try;; | |
8124 | esac | |
1995c9ff | 8125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8126 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8127 | ac_status=$? |
1995c9ff | 8128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8129 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8130 | { (case "(($ac_try" in |
8131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8132 | *) ac_try_echo=$ac_try;; | |
8133 | esac | |
1995c9ff | 8134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8135 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8136 | ac_status=$? |
1995c9ff | 8137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8138 | (exit $ac_status); }; }; then |
8139 | ac_cv_func_strtod=yes | |
8140 | else | |
1995c9ff AK |
8141 | echo "$as_me: program exited with status $ac_status" >&5 |
8142 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8143 | sed 's/^/| /' conftest.$ac_ext >&5 |
8144 | ||
8145 | ( exit $ac_status ) | |
8146 | ac_cv_func_strtod=no | |
8147 | fi | |
7a197a62 | 8148 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8149 | fi |
7a197a62 AK |
8150 | |
8151 | ||
ad6254c5 | 8152 | fi |
1995c9ff AK |
8153 | { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
8154 | echo "${ECHO_T}$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 8155 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 8156 | case " $LIBOBJS " in |
8a2fc586 | 8157 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
8158 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
8159 | ;; | |
8a2fc586 AK |
8160 | esac |
8161 | ||
1995c9ff AK |
8162 | { echo "$as_me:$LINENO: checking for pow" >&5 |
8163 | echo $ECHO_N "checking for pow... $ECHO_C" >&6; } | |
ad6254c5 | 8164 | if test "${ac_cv_func_pow+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. */ | |
8a2fc586 AK |
8173 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
8174 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8175 | #define pow innocuous_pow | |
8176 | ||
ad6254c5 AK |
8177 | /* System header to define __stub macros and hopefully few prototypes, |
8178 | which can conflict with char pow (); below. | |
8179 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8180 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8181 | |
ad6254c5 AK |
8182 | #ifdef __STDC__ |
8183 | # include <limits.h> | |
8184 | #else | |
8185 | # include <assert.h> | |
8186 | #endif | |
8a2fc586 AK |
8187 | |
8188 | #undef pow | |
8189 | ||
7a197a62 AK |
8190 | /* Override any GCC internal prototype to avoid an error. |
8191 | Use char because int might match the return type of a GCC | |
8192 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8193 | #ifdef __cplusplus |
8194 | extern "C" | |
ad6254c5 | 8195 | #endif |
ad6254c5 AK |
8196 | char pow (); |
8197 | /* The GNU C library defines this for functions which it implements | |
8198 | to always fail with ENOSYS. Some functions are actually named | |
8199 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8200 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 8201 | choke me |
ad6254c5 AK |
8202 | #endif |
8203 | ||
8204 | int | |
8205 | main () | |
8206 | { | |
7a197a62 | 8207 | return pow (); |
ad6254c5 AK |
8208 | ; |
8209 | return 0; | |
8210 | } | |
8211 | _ACEOF | |
8212 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8213 | if { (ac_try="$ac_link" |
8214 | case "(($ac_try" in | |
8215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8216 | *) ac_try_echo=$ac_try;; | |
8217 | esac | |
1995c9ff | 8218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8219 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8220 | ac_status=$? |
8a2fc586 AK |
8221 | grep -v '^ *+' conftest.er1 >conftest.err |
8222 | rm -f conftest.er1 | |
8223 | cat conftest.err >&5 | |
1995c9ff | 8224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
8225 | (exit $ac_status); } && |
8226 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8227 | { (case "(($ac_try" in | |
8228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8229 | *) ac_try_echo=$ac_try;; | |
8230 | esac | |
8231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8232 | (eval "$ac_try") 2>&5 | |
8233 | ac_status=$? | |
8234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8235 | (exit $ac_status); }; } && | |
8236 | { ac_try='test -s conftest$ac_exeext' | |
8237 | { (case "(($ac_try" in | |
8238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8239 | *) ac_try_echo=$ac_try;; | |
8240 | esac | |
8241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8242 | (eval "$ac_try") 2>&5 | |
8243 | ac_status=$? | |
8244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8245 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
8246 | ac_cv_func_pow=yes |
8247 | else | |
1995c9ff | 8248 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8249 | sed 's/^/| /' conftest.$ac_ext >&5 |
8250 | ||
7a197a62 | 8251 | ac_cv_func_pow=no |
ad6254c5 | 8252 | fi |
7a197a62 | 8253 | |
fc54be10 | 8254 | rm -f core conftest.err conftest.$ac_objext \ |
8a2fc586 | 8255 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8256 | fi |
1995c9ff AK |
8257 | { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
8258 | echo "${ECHO_T}$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
8259 | |
8260 | if test $ac_cv_func_pow = no; then | |
1995c9ff AK |
8261 | { echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
8262 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; } | |
ad6254c5 | 8263 | if test "${ac_cv_lib_m_pow+set}" = set; then |
1995c9ff | 8264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8265 | else |
8266 | ac_check_lib_save_LIBS=$LIBS | |
8267 | LIBS="-lm $LIBS" | |
8268 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8269 | /* confdefs.h. */ |
8270 | _ACEOF | |
8271 | cat confdefs.h >>conftest.$ac_ext | |
8272 | cat >>conftest.$ac_ext <<_ACEOF | |
8273 | /* end confdefs.h. */ | |
8274 | ||
7a197a62 AK |
8275 | /* Override any GCC internal prototype to avoid an error. |
8276 | Use char because int might match the return type of a GCC | |
8277 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8278 | #ifdef __cplusplus |
8279 | extern "C" | |
8280 | #endif | |
ad6254c5 AK |
8281 | char pow (); |
8282 | int | |
8283 | main () | |
8284 | { | |
7a197a62 | 8285 | return pow (); |
ad6254c5 AK |
8286 | ; |
8287 | return 0; | |
8288 | } | |
8289 | _ACEOF | |
8290 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8291 | if { (ac_try="$ac_link" |
8292 | case "(($ac_try" in | |
8293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8294 | *) ac_try_echo=$ac_try;; | |
8295 | esac | |
1995c9ff | 8296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8297 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8298 | ac_status=$? |
8a2fc586 AK |
8299 | grep -v '^ *+' conftest.er1 >conftest.err |
8300 | rm -f conftest.er1 | |
8301 | cat conftest.err >&5 | |
1995c9ff | 8302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
8303 | (exit $ac_status); } && |
8304 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8305 | { (case "(($ac_try" in | |
8306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8307 | *) ac_try_echo=$ac_try;; | |
8308 | esac | |
8309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8310 | (eval "$ac_try") 2>&5 | |
8311 | ac_status=$? | |
8312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8313 | (exit $ac_status); }; } && | |
8314 | { ac_try='test -s conftest$ac_exeext' | |
8315 | { (case "(($ac_try" in | |
8316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8317 | *) ac_try_echo=$ac_try;; | |
8318 | esac | |
8319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8320 | (eval "$ac_try") 2>&5 | |
8321 | ac_status=$? | |
8322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8323 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
8324 | ac_cv_lib_m_pow=yes |
8325 | else | |
1995c9ff | 8326 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8327 | sed 's/^/| /' conftest.$ac_ext >&5 |
8328 | ||
7a197a62 | 8329 | ac_cv_lib_m_pow=no |
ad6254c5 | 8330 | fi |
7a197a62 | 8331 | |
fc54be10 | 8332 | rm -f core conftest.err conftest.$ac_objext \ |
8a2fc586 | 8333 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
8334 | LIBS=$ac_check_lib_save_LIBS |
8335 | fi | |
1995c9ff AK |
8336 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
8337 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; } | |
ad6254c5 AK |
8338 | if test $ac_cv_lib_m_pow = yes; then |
8339 | POW_LIB=-lm | |
8340 | else | |
1995c9ff AK |
8341 | { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
8342 | echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
ad6254c5 AK |
8343 | fi |
8344 | ||
8345 | fi | |
8346 | ||
8347 | fi | |
8348 | ||
8349 | ||
8350 | ################################################################################ | |
8351 | ||
8352 | ||
8353 | ################################################################################ | |
7a197a62 | 8354 | # Check whether --enable-jobs was given. |
ad6254c5 | 8355 | if test "${enable_jobs+set}" = set; then |
7a197a62 | 8356 | enableval=$enable_jobs; JOBS=-j$enableval |
ad6254c5 AK |
8357 | else |
8358 | JOBS=-j2 | |
7a197a62 AK |
8359 | fi |
8360 | ||
ad6254c5 AK |
8361 | |
8362 | ################################################################################ | |
1995c9ff AK |
8363 | { echo "$as_me:$LINENO: checking file owner" >&5 |
8364 | echo $ECHO_N "checking file owner... $ECHO_C" >&6; } | |
ad6254c5 AK |
8365 | OWNER="root" |
8366 | ||
8367 | ||
7a197a62 | 8368 | # Check whether --with-user was given. |
ad6254c5 | 8369 | if test "${with_user+set}" = set; then |
7a197a62 AK |
8370 | withval=$with_user; OWNER="$withval" |
8371 | fi | |
8372 | ||
1995c9ff AK |
8373 | { echo "$as_me:$LINENO: result: $OWNER" >&5 |
8374 | echo "${ECHO_T}$OWNER" >&6; } | |
ad6254c5 AK |
8375 | |
8376 | if test x$OWNER != x; then | |
8377 | OWNER="-o $OWNER" | |
8378 | fi | |
8379 | ||
8380 | ################################################################################ | |
1995c9ff AK |
8381 | { echo "$as_me:$LINENO: checking group owner" >&5 |
8382 | echo $ECHO_N "checking group owner... $ECHO_C" >&6; } | |
ad6254c5 AK |
8383 | GROUP="root" |
8384 | ||
7a197a62 | 8385 | # Check whether --with-group was given. |
ad6254c5 | 8386 | if test "${with_group+set}" = set; then |
7a197a62 AK |
8387 | withval=$with_group; GROUP="$withval" |
8388 | fi | |
8389 | ||
1995c9ff AK |
8390 | { echo "$as_me:$LINENO: result: $GROUP" >&5 |
8391 | echo "${ECHO_T}$GROUP" >&6; } | |
ad6254c5 AK |
8392 | |
8393 | if test x$GROUP != x; then | |
8394 | GROUP="-g $GROUP" | |
8395 | fi | |
8396 | ||
8397 | ################################################################################ | |
1995c9ff AK |
8398 | { echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
8399 | echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6; } | |
7a197a62 | 8400 | # Check whether --enable-lvm1_fallback was given. |
ad6254c5 | 8401 | if test "${enable_lvm1_fallback+set}" = set; then |
7a197a62 | 8402 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval |
ad6254c5 AK |
8403 | else |
8404 | LVM1_FALLBACK=no | |
7a197a62 AK |
8405 | fi |
8406 | ||
1995c9ff AK |
8407 | { echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
8408 | echo "${ECHO_T}$LVM1_FALLBACK" >&6; } | |
ad6254c5 AK |
8409 | |
8410 | if test x$LVM1_FALLBACK = xyes; then | |
72b2cb61 AK |
8411 | |
8412 | cat >>confdefs.h <<\_ACEOF | |
8413 | #define LVM1_FALLBACK 1 | |
8414 | _ACEOF | |
8415 | ||
ad6254c5 AK |
8416 | fi |
8417 | ||
8418 | ################################################################################ | |
1995c9ff AK |
8419 | { echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
8420 | echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6; } | |
ad6254c5 | 8421 | |
7a197a62 | 8422 | # Check whether --with-lvm1 was given. |
ad6254c5 | 8423 | if test "${with_lvm1+set}" = set; then |
7a197a62 | 8424 | withval=$with_lvm1; LVM1="$withval" |
ad6254c5 AK |
8425 | else |
8426 | LVM1="internal" | |
7a197a62 AK |
8427 | fi |
8428 | ||
1995c9ff AK |
8429 | { echo "$as_me:$LINENO: result: $LVM1" >&5 |
8430 | echo "${ECHO_T}$LVM1" >&6; } | |
ad6254c5 AK |
8431 | |
8432 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; | |
1995c9ff | 8433 | then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
ad6254c5 | 8434 | " >&5 |
1995c9ff | 8435 | echo "$as_me: error: --with-lvm1 parameter invalid |
ad6254c5 AK |
8436 | " >&2;} |
8437 | { (exit 1); exit 1; }; } | |
8438 | fi; | |
8439 | ||
8440 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
8441 | |
8442 | cat >>confdefs.h <<\_ACEOF | |
8443 | #define LVM1_INTERNAL 1 | |
8444 | _ACEOF | |
8445 | ||
ad6254c5 AK |
8446 | fi |
8447 | ||
8448 | ################################################################################ | |
1995c9ff AK |
8449 | { echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
8450 | echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6; } | |
ad6254c5 | 8451 | |
7a197a62 | 8452 | # Check whether --with-pool was given. |
ad6254c5 | 8453 | if test "${with_pool+set}" = set; then |
7a197a62 | 8454 | withval=$with_pool; POOL="$withval" |
ad6254c5 AK |
8455 | else |
8456 | POOL="internal" | |
7a197a62 AK |
8457 | fi |
8458 | ||
1995c9ff AK |
8459 | { echo "$as_me:$LINENO: result: $POOL" >&5 |
8460 | echo "${ECHO_T}$POOL" >&6; } | |
ad6254c5 AK |
8461 | |
8462 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; | |
1995c9ff | 8463 | then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid |
ad6254c5 | 8464 | " >&5 |
1995c9ff | 8465 | echo "$as_me: error: --with-pool parameter invalid |
ad6254c5 AK |
8466 | " >&2;} |
8467 | { (exit 1); exit 1; }; } | |
8468 | fi; | |
8469 | ||
8470 | if test x$POOL = xinternal; then | |
72b2cb61 AK |
8471 | |
8472 | cat >>confdefs.h <<\_ACEOF | |
8473 | #define POOL_INTERNAL 1 | |
8474 | _ACEOF | |
8475 | ||
ad6254c5 AK |
8476 | fi |
8477 | ||
8478 | ################################################################################ | |
1995c9ff AK |
8479 | { echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
8480 | echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6; } | |
ad6254c5 | 8481 | |
7a197a62 | 8482 | # Check whether --with-cluster was given. |
ad6254c5 | 8483 | if test "${with_cluster+set}" = set; then |
7a197a62 AK |
8484 | withval=$with_cluster; CLUSTER="$withval" |
8485 | fi | |
8486 | ||
1995c9ff AK |
8487 | { echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
8488 | echo "${ECHO_T}$CLUSTER" >&6; } | |
ad6254c5 AK |
8489 | |
8490 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; | |
1995c9ff | 8491 | then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
ad6254c5 | 8492 | " >&5 |
1995c9ff | 8493 | echo "$as_me: error: --with-cluster parameter invalid |
ad6254c5 AK |
8494 | " >&2;} |
8495 | { (exit 1); exit 1; }; } | |
8496 | fi; | |
8497 | ||
8498 | if test x$CLUSTER = xinternal; then | |
72b2cb61 AK |
8499 | |
8500 | cat >>confdefs.h <<\_ACEOF | |
8501 | #define CLUSTER_LOCKING_INTERNAL 1 | |
8502 | _ACEOF | |
8503 | ||
ad6254c5 AK |
8504 | fi |
8505 | ||
8506 | ################################################################################ | |
1995c9ff AK |
8507 | { echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
8508 | echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6; } | |
ad6254c5 | 8509 | |
7a197a62 | 8510 | # Check whether --with-snapshots was given. |
ad6254c5 | 8511 | if test "${with_snapshots+set}" = set; then |
7a197a62 | 8512 | withval=$with_snapshots; SNAPSHOTS="$withval" |
ad6254c5 AK |
8513 | else |
8514 | SNAPSHOTS="internal" | |
7a197a62 AK |
8515 | fi |
8516 | ||
1995c9ff AK |
8517 | { echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
8518 | echo "${ECHO_T}$SNAPSHOTS" >&6; } | |
ad6254c5 AK |
8519 | |
8520 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; | |
1995c9ff | 8521 | then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
ad6254c5 | 8522 | " >&5 |
1995c9ff | 8523 | echo "$as_me: error: --with-snapshots parameter invalid |
ad6254c5 AK |
8524 | " >&2;} |
8525 | { (exit 1); exit 1; }; } | |
8526 | fi; | |
8527 | ||
8528 | if test x$SNAPSHOTS = xinternal; then | |
72b2cb61 AK |
8529 | |
8530 | cat >>confdefs.h <<\_ACEOF | |
8531 | #define SNAPSHOT_INTERNAL 1 | |
8532 | _ACEOF | |
8533 | ||
ad6254c5 AK |
8534 | fi |
8535 | ||
8536 | ################################################################################ | |
1995c9ff AK |
8537 | { echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
8538 | echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6; } | |
ad6254c5 | 8539 | |
7a197a62 | 8540 | # Check whether --with-mirrors was given. |
ad6254c5 | 8541 | if test "${with_mirrors+set}" = set; then |
7a197a62 | 8542 | withval=$with_mirrors; MIRRORS="$withval" |
ad6254c5 AK |
8543 | else |
8544 | MIRRORS="internal" | |
7a197a62 AK |
8545 | fi |
8546 | ||
1995c9ff AK |
8547 | { echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
8548 | echo "${ECHO_T}$MIRRORS" >&6; } | |
ad6254c5 AK |
8549 | |
8550 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; | |
1995c9ff | 8551 | then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
ad6254c5 | 8552 | " >&5 |
1995c9ff | 8553 | echo "$as_me: error: --with-mirrors parameter invalid |
ad6254c5 AK |
8554 | " >&2;} |
8555 | { (exit 1); exit 1; }; } | |
8556 | fi; | |
8557 | ||
8558 | if test x$MIRRORS = xinternal; then | |
72b2cb61 AK |
8559 | |
8560 | cat >>confdefs.h <<\_ACEOF | |
8561 | #define MIRRORED_INTERNAL 1 | |
8562 | _ACEOF | |
8563 | ||
ad6254c5 AK |
8564 | fi |
8565 | ||
8566 | ################################################################################ | |
1995c9ff AK |
8567 | { echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
8568 | echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6; } | |
7a197a62 | 8569 | # Check whether --enable-static_link was given. |
ad6254c5 | 8570 | if test "${enable_static_link+set}" = set; then |
7a197a62 | 8571 | enableval=$enable_static_link; STATIC_LINK=$enableval |
ad6254c5 AK |
8572 | else |
8573 | STATIC_LINK=no | |
7a197a62 AK |
8574 | fi |
8575 | ||
1995c9ff AK |
8576 | { echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
8577 | echo "${ECHO_T}$STATIC_LINK" >&6; } | |
ad6254c5 AK |
8578 | |
8579 | ################################################################################ | |
1995c9ff AK |
8580 | { echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
8581 | echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6; } | |
7a197a62 | 8582 | # Check whether --enable-readline was given. |
ad6254c5 | 8583 | if test "${enable_readline+set}" = set; then |
7a197a62 | 8584 | enableval=$enable_readline; READLINE=$enableval |
ad6254c5 AK |
8585 | else |
8586 | READLINE=no | |
7a197a62 AK |
8587 | fi |
8588 | ||
1995c9ff AK |
8589 | { echo "$as_me:$LINENO: result: $READLINE" >&5 |
8590 | echo "${ECHO_T}$READLINE" >&6; } | |
ad6254c5 AK |
8591 | |
8592 | if test x$READLINE = xyes; then | |
72b2cb61 AK |
8593 | |
8594 | cat >>confdefs.h <<\_ACEOF | |
8595 | #define READLINE_SUPPORT 1 | |
8596 | _ACEOF | |
8597 | ||
ad6254c5 AK |
8598 | fi |
8599 | ||
8600 | ################################################################################ | |
1995c9ff AK |
8601 | { echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
8602 | echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6; } | |
7a197a62 | 8603 | # Check whether --enable-selinux was given. |
ad6254c5 | 8604 | if test "${enable_selinux+set}" = set; then |
7a197a62 AK |
8605 | enableval=$enable_selinux; SELINUX=$enableval |
8606 | fi | |
8607 | ||
1995c9ff AK |
8608 | { echo "$as_me:$LINENO: result: $SELINUX" >&5 |
8609 | echo "${ECHO_T}$SELINUX" >&6; } | |
ad6254c5 | 8610 | |
8b1a3214 | 8611 | ################################################################################ |
1995c9ff AK |
8612 | { echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
8613 | echo $ECHO_N "checking whether to enable realtime support... $ECHO_C" >&6; } | |
7a197a62 | 8614 | # Check whether --enable-realtime was given. |
8b1a3214 | 8615 | if test "${enable_realtime+set}" = set; then |
7a197a62 AK |
8616 | enableval=$enable_realtime; REALTIME=$enableval |
8617 | fi | |
8618 | ||
1995c9ff AK |
8619 | { echo "$as_me:$LINENO: result: $REALTIME" >&5 |
8620 | echo "${ECHO_T}$REALTIME" >&6; } | |
8b1a3214 | 8621 | |
ad6254c5 | 8622 | ################################################################################ |
1995c9ff AK |
8623 | { echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 |
8624 | echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6; } | |
ad6254c5 | 8625 | |
7a197a62 | 8626 | # Check whether --with-clvmd was given. |
ad6254c5 | 8627 | if test "${with_clvmd+set}" = set; then |
7a197a62 | 8628 | withval=$with_clvmd; CLVMD="$withval" |
ad6254c5 | 8629 | else |
a266258f | 8630 | CLVMD="none" |
7a197a62 AK |
8631 | fi |
8632 | ||
a266258f | 8633 | if test x$CLVMD = xyes; then |
5c7fc7c4 | 8634 | CLVMD=all |
b1098701 | 8635 | fi |
1995c9ff AK |
8636 | { echo "$as_me:$LINENO: result: $CLVMD" >&5 |
8637 | echo "${ECHO_T}$CLVMD" >&6; } | |
ad6254c5 | 8638 | |
a266258f | 8639 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
ad6254c5 AK |
8640 | CLUSTER=internal |
8641 | fi | |
8642 | ||
8643 | ################################################################################ | |
1995c9ff AK |
8644 | { echo "$as_me:$LINENO: checking whether to enable debugging" >&5 |
8645 | echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; } | |
7a197a62 | 8646 | # Check whether --enable-debug was given. |
ad6254c5 | 8647 | if test "${enable_debug+set}" = set; then |
7a197a62 | 8648 | enableval=$enable_debug; DEBUG=$enableval |
ad6254c5 AK |
8649 | else |
8650 | DEBUG=no | |
7a197a62 AK |
8651 | fi |
8652 | ||
1995c9ff AK |
8653 | { echo "$as_me:$LINENO: result: $DEBUG" >&5 |
8654 | echo "${ECHO_T}$DEBUG" >&6; } | |
ad6254c5 AK |
8655 | |
8656 | if test x$DEBUG = xyes; then | |
8657 | COPTIMISE_FLAG= | |
8a2fc586 AK |
8658 | else |
8659 | CSCOPE_CMD= | |
ad6254c5 AK |
8660 | fi |
8661 | ||
8662 | ################################################################################ | |
1995c9ff AK |
8663 | { echo "$as_me:$LINENO: checking for C optimisation flag" >&5 |
8664 | echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6; } | |
ad6254c5 | 8665 | |
7a197a62 | 8666 | # Check whether --with-optimisation was given. |
ad6254c5 | 8667 | if test "${with_optimisation+set}" = set; then |
7a197a62 AK |
8668 | withval=$with_optimisation; COPTIMISE_FLAG="$withval" |
8669 | fi | |
8670 | ||
1995c9ff AK |
8671 | { echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 |
8672 | echo "${ECHO_T}$COPTIMISE_FLAG" >&6; } | |
ad6254c5 AK |
8673 | |
8674 | ################################################################################ | |
1995c9ff AK |
8675 | { echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
8676 | echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6; } | |
7a197a62 | 8677 | # Check whether --enable-devmapper was given. |
ad6254c5 | 8678 | if test "${enable_devmapper+set}" = set; then |
7a197a62 AK |
8679 | enableval=$enable_devmapper; DEVMAPPER=$enableval |
8680 | fi | |
8681 | ||
1995c9ff AK |
8682 | { echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
8683 | echo "${ECHO_T}$DEVMAPPER" >&6; } | |
ad6254c5 AK |
8684 | |
8685 | if test x$DEVMAPPER = xyes; then | |
72b2cb61 AK |
8686 | |
8687 | cat >>confdefs.h <<\_ACEOF | |
8688 | #define DEVMAPPER_SUPPORT 1 | |
8689 | _ACEOF | |
8690 | ||
ad6254c5 AK |
8691 | fi |
8692 | ||
8693 | ################################################################################ | |
1995c9ff AK |
8694 | { echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
8695 | echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6; } | |
7a197a62 | 8696 | # Check whether --enable-o_direct was given. |
ad6254c5 | 8697 | if test "${enable_o_direct+set}" = set; then |
7a197a62 AK |
8698 | enableval=$enable_o_direct; ODIRECT=$enableval |
8699 | fi | |
8700 | ||
1995c9ff AK |
8701 | { echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
8702 | echo "${ECHO_T}$ODIRECT" >&6; } | |
ad6254c5 AK |
8703 | |
8704 | if test x$ODIRECT = xyes; then | |
72b2cb61 AK |
8705 | |
8706 | cat >>confdefs.h <<\_ACEOF | |
8707 | #define O_DIRECT_SUPPORT 1 | |
8708 | _ACEOF | |
8709 | ||
ad6254c5 AK |
8710 | fi |
8711 | ||
8712 | ################################################################################ | |
1995c9ff AK |
8713 | { echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
8714 | echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6; } | |
7a197a62 | 8715 | # Check whether --enable-cmdlib was given. |
ad6254c5 | 8716 | if test "${enable_cmdlib+set}" = set; then |
7a197a62 | 8717 | enableval=$enable_cmdlib; CMDLIB=$enableval |
ad6254c5 AK |
8718 | else |
8719 | CMDLIB=no | |
7a197a62 AK |
8720 | fi |
8721 | ||
1995c9ff AK |
8722 | { echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
8723 | echo "${ECHO_T}$CMDLIB" >&6; } | |
ad6254c5 | 8724 | |
ad6254c5 | 8725 | ################################################################################ |
1995c9ff AK |
8726 | { echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
8727 | echo $ECHO_N "checking whether to install fsadm... $ECHO_C" >&6; } | |
7a197a62 | 8728 | # Check whether --enable-fsadm was given. |
ad6254c5 | 8729 | if test "${enable_fsadm+set}" = set; then |
7a197a62 AK |
8730 | enableval=$enable_fsadm; FSADM=$enableval |
8731 | fi | |
8732 | ||
1995c9ff AK |
8733 | { echo "$as_me:$LINENO: result: $FSADM" >&5 |
8734 | echo "${ECHO_T}$FSADM" >&6; } | |
ad6254c5 | 8735 | |
06f62ad1 | 8736 | ################################################################################ |
1995c9ff AK |
8737 | { echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
8738 | echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6; } | |
7a197a62 | 8739 | # Check whether --enable-dmeventd was given. |
06f62ad1 | 8740 | if test "${enable_dmeventd+set}" = set; then |
7a197a62 AK |
8741 | enableval=$enable_dmeventd; DMEVENTD=$enableval |
8742 | fi | |
8743 | ||
1995c9ff AK |
8744 | { echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
8745 | echo "${ECHO_T}$DMEVENTD" >&6; } | |
06f62ad1 AK |
8746 | |
8747 | if test x$DMEVENTD = xyes && test x$MIRRORS != xinternal; then | |
1995c9ff | 8748 | { { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
06f62ad1 | 8749 | " >&5 |
1995c9ff | 8750 | echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
06f62ad1 AK |
8751 | " >&2;} |
8752 | { (exit 1); exit 1; }; } | |
8753 | fi | |
8754 | ||
15d91f5a | 8755 | if test x$DMEVENTD = xyes; then |
72b2cb61 AK |
8756 | |
8757 | cat >>confdefs.h <<\_ACEOF | |
8758 | #define DMEVENTD 1 | |
8759 | _ACEOF | |
8760 | ||
15d91f5a | 8761 | fi |
ad6254c5 AK |
8762 | ################################################################################ |
8763 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
8764 | then exec_prefix=""; | |
8765 | fi; | |
8766 | ||
8767 | ################################################################################ | |
8768 | if test $ac_cv_c_compiler_gnu = yes; then | |
1995c9ff AK |
8769 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
8770 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } | |
ad6254c5 | 8771 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
1995c9ff | 8772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8773 | else |
8774 | ac_pattern="Autoconf.*'x'" | |
8775 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8776 | /* confdefs.h. */ |
8777 | _ACEOF | |
8778 | cat confdefs.h >>conftest.$ac_ext | |
8779 | cat >>conftest.$ac_ext <<_ACEOF | |
8780 | /* end confdefs.h. */ | |
8781 | #include <sgtty.h> | |
8782 | Autoconf TIOCGETP | |
8783 | _ACEOF | |
8784 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8785 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
8786 | ac_cv_prog_gcc_traditional=yes | |
8787 | else | |
8788 | ac_cv_prog_gcc_traditional=no | |
8789 | fi | |
8790 | rm -f conftest* | |
8791 | ||
8792 | ||
8793 | if test $ac_cv_prog_gcc_traditional = no; then | |
8794 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8795 | /* confdefs.h. */ |
8796 | _ACEOF | |
8797 | cat confdefs.h >>conftest.$ac_ext | |
8798 | cat >>conftest.$ac_ext <<_ACEOF | |
8799 | /* end confdefs.h. */ | |
8800 | #include <termio.h> | |
8801 | Autoconf TCGETA | |
8802 | _ACEOF | |
8803 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8804 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
8805 | ac_cv_prog_gcc_traditional=yes | |
8806 | fi | |
8807 | rm -f conftest* | |
8808 | ||
8809 | fi | |
8810 | fi | |
1995c9ff AK |
8811 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
8812 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } | |
ad6254c5 AK |
8813 | if test $ac_cv_prog_gcc_traditional = yes; then |
8814 | CC="$CC -traditional" | |
8815 | fi | |
8816 | fi | |
8817 | ||
1995c9ff AK |
8818 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
8819 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } | |
ad6254c5 | 8820 | if test "${ac_cv_type_signal+set}" = set; then |
1995c9ff | 8821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8822 | else |
8823 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8824 | /* confdefs.h. */ |
8825 | _ACEOF | |
8826 | cat confdefs.h >>conftest.$ac_ext | |
8827 | cat >>conftest.$ac_ext <<_ACEOF | |
8828 | /* end confdefs.h. */ | |
8829 | #include <sys/types.h> | |
8830 | #include <signal.h> | |
ad6254c5 AK |
8831 | |
8832 | int | |
8833 | main () | |
8834 | { | |
7a197a62 | 8835 | return *(signal (0, 0)) (0) == 1; |
ad6254c5 AK |
8836 | ; |
8837 | return 0; | |
8838 | } | |
8839 | _ACEOF | |
8840 | rm -f conftest.$ac_objext | |
7a197a62 AK |
8841 | if { (ac_try="$ac_compile" |
8842 | case "(($ac_try" in | |
8843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8844 | *) ac_try_echo=$ac_try;; | |
8845 | esac | |
1995c9ff | 8846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8847 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 8848 | ac_status=$? |
8a2fc586 AK |
8849 | grep -v '^ *+' conftest.er1 >conftest.err |
8850 | rm -f conftest.er1 | |
8851 | cat conftest.err >&5 | |
1995c9ff | 8852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
8853 | (exit $ac_status); } && |
8854 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8855 | { (case "(($ac_try" in | |
8856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8857 | *) ac_try_echo=$ac_try;; | |
8858 | esac | |
8859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8860 | (eval "$ac_try") 2>&5 | |
8861 | ac_status=$? | |
8862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8863 | (exit $ac_status); }; } && | |
8864 | { ac_try='test -s conftest.$ac_objext' | |
8865 | { (case "(($ac_try" in | |
8866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8867 | *) ac_try_echo=$ac_try;; | |
8868 | esac | |
8869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8870 | (eval "$ac_try") 2>&5 | |
8871 | ac_status=$? | |
8872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8873 | (exit $ac_status); }; }; then | |
7a197a62 | 8874 | ac_cv_type_signal=int |
ad6254c5 | 8875 | else |
1995c9ff | 8876 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8877 | sed 's/^/| /' conftest.$ac_ext >&5 |
8878 | ||
7a197a62 | 8879 | ac_cv_type_signal=void |
ad6254c5 | 8880 | fi |
7a197a62 AK |
8881 | |
8882 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 8883 | fi |
1995c9ff AK |
8884 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
8885 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } | |
ad6254c5 AK |
8886 | |
8887 | cat >>confdefs.h <<_ACEOF | |
8888 | #define RETSIGTYPE $ac_cv_type_signal | |
8889 | _ACEOF | |
8890 | ||
8891 | ||
8892 | ||
8893 | for ac_func in vprintf | |
8894 | do | |
1995c9ff AK |
8895 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8896 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8897 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 8898 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 8899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8900 | else |
8901 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8902 | /* confdefs.h. */ |
8903 | _ACEOF | |
8904 | cat confdefs.h >>conftest.$ac_ext | |
8905 | cat >>conftest.$ac_ext <<_ACEOF | |
8906 | /* end confdefs.h. */ | |
8a2fc586 AK |
8907 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8908 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8909 | #define $ac_func innocuous_$ac_func | |
8910 | ||
ad6254c5 AK |
8911 | /* System header to define __stub macros and hopefully few prototypes, |
8912 | which can conflict with char $ac_func (); below. | |
8913 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8914 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8915 | |
ad6254c5 AK |
8916 | #ifdef __STDC__ |
8917 | # include <limits.h> | |
8918 | #else | |
8919 | # include <assert.h> | |
8920 | #endif | |
8a2fc586 AK |
8921 | |
8922 | #undef $ac_func | |
8923 | ||
7a197a62 AK |
8924 | /* Override any GCC internal prototype to avoid an error. |
8925 | Use char because int might match the return type of a GCC | |
8926 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8927 | #ifdef __cplusplus |
8928 | extern "C" | |
ad6254c5 | 8929 | #endif |
ad6254c5 AK |
8930 | char $ac_func (); |
8931 | /* The GNU C library defines this for functions which it implements | |
8932 | to always fail with ENOSYS. Some functions are actually named | |
8933 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8934 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8935 | choke me |
ad6254c5 AK |
8936 | #endif |
8937 | ||
8938 | int | |
8939 | main () | |
8940 | { | |
7a197a62 | 8941 | return $ac_func (); |
ad6254c5 AK |
8942 | ; |
8943 | return 0; | |
8944 | } | |
8945 | _ACEOF | |
8946 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8947 | if { (ac_try="$ac_link" |
8948 | case "(($ac_try" in | |
8949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8950 | *) ac_try_echo=$ac_try;; | |
8951 | esac | |
1995c9ff | 8952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8953 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8954 | ac_status=$? |
8a2fc586 AK |
8955 | grep -v '^ *+' conftest.er1 >conftest.err |
8956 | rm -f conftest.er1 | |
8957 | cat conftest.err >&5 | |
1995c9ff | 8958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
8959 | (exit $ac_status); } && |
8960 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8961 | { (case "(($ac_try" in | |
8962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8963 | *) ac_try_echo=$ac_try;; | |
8964 | esac | |
8965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8966 | (eval "$ac_try") 2>&5 | |
8967 | ac_status=$? | |
8968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8969 | (exit $ac_status); }; } && | |
8970 | { ac_try='test -s conftest$ac_exeext' | |
8971 | { (case "(($ac_try" in | |
8972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8973 | *) ac_try_echo=$ac_try;; | |
8974 | esac | |
8975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8976 | (eval "$ac_try") 2>&5 | |
8977 | ac_status=$? | |
8978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8979 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
8980 | eval "$as_ac_var=yes" |
8981 | else | |
1995c9ff | 8982 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8983 | sed 's/^/| /' conftest.$ac_ext >&5 |
8984 | ||
7a197a62 | 8985 | eval "$as_ac_var=no" |
ad6254c5 | 8986 | fi |
7a197a62 | 8987 | |
fc54be10 | 8988 | rm -f core conftest.err conftest.$ac_objext \ |
8a2fc586 | 8989 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8990 | fi |
1995c9ff AK |
8991 | ac_res=`eval echo '${'$as_ac_var'}'` |
8992 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8993 | echo "${ECHO_T}$ac_res" >&6; } | |
8994 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 8995 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 8996 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8997 | _ACEOF |
8998 | ||
1995c9ff AK |
8999 | { echo "$as_me:$LINENO: checking for _doprnt" >&5 |
9000 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } | |
ad6254c5 | 9001 | if test "${ac_cv_func__doprnt+set}" = set; then |
1995c9ff | 9002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9003 | else |
9004 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9005 | /* confdefs.h. */ |
9006 | _ACEOF | |
9007 | cat confdefs.h >>conftest.$ac_ext | |
9008 | cat >>conftest.$ac_ext <<_ACEOF | |
9009 | /* end confdefs.h. */ | |
8a2fc586 AK |
9010 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
9011 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9012 | #define _doprnt innocuous__doprnt | |
9013 | ||
ad6254c5 AK |
9014 | /* System header to define __stub macros and hopefully few prototypes, |
9015 | which can conflict with char _doprnt (); below. | |
9016 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9017 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9018 | |
ad6254c5 AK |
9019 | #ifdef __STDC__ |
9020 | # include <limits.h> | |
9021 | #else | |
9022 | # include <assert.h> | |
9023 | #endif | |
8a2fc586 AK |
9024 | |
9025 | #undef _doprnt | |
9026 | ||
7a197a62 AK |
9027 | /* Override any GCC internal prototype to avoid an error. |
9028 | Use char because int might match the return type of a GCC | |
9029 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9030 | #ifdef __cplusplus |
9031 | extern "C" | |
ad6254c5 | 9032 | #endif |
ad6254c5 AK |
9033 | char _doprnt (); |
9034 | /* The GNU C library defines this for functions which it implements | |
9035 | to always fail with ENOSYS. Some functions are actually named | |
9036 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 9037 | #if defined __stub__doprnt || defined __stub____doprnt |
ad6254c5 | 9038 | choke me |
ad6254c5 AK |
9039 | #endif |
9040 | ||
9041 | int | |
9042 | main () | |
9043 | { | |
7a197a62 | 9044 | return _doprnt (); |
ad6254c5 AK |
9045 | ; |
9046 | return 0; | |
9047 | } | |
9048 | _ACEOF | |
9049 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9050 | if { (ac_try="$ac_link" |
9051 | case "(($ac_try" in | |
9052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9053 | *) ac_try_echo=$ac_try;; | |
9054 | esac | |
1995c9ff | 9055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9056 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9057 | ac_status=$? |
8a2fc586 AK |
9058 | grep -v '^ *+' conftest.er1 >conftest.err |
9059 | rm -f conftest.er1 | |
9060 | cat conftest.err >&5 | |
1995c9ff | 9061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
9062 | (exit $ac_status); } && |
9063 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
9064 | { (case "(($ac_try" in | |
9065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9066 | *) ac_try_echo=$ac_try;; | |
9067 | esac | |
9068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9069 | (eval "$ac_try") 2>&5 | |
9070 | ac_status=$? | |
9071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9072 | (exit $ac_status); }; } && | |
9073 | { ac_try='test -s conftest$ac_exeext' | |
9074 | { (case "(($ac_try" in | |
9075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9076 | *) ac_try_echo=$ac_try;; | |
9077 | esac | |
9078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9079 | (eval "$ac_try") 2>&5 | |
9080 | ac_status=$? | |
9081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9082 | (exit $ac_status); }; }; then | |
9083 | ac_cv_func__doprnt=yes | |
9084 | else | |
9085 | echo "$as_me: failed program was:" >&5 | |
9086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9087 | ||
9088 | ac_cv_func__doprnt=no | |
9089 | fi | |
9090 | ||
9091 | rm -f core conftest.err conftest.$ac_objext \ | |
9092 | conftest$ac_exeext conftest.$ac_ext | |
9093 | fi | |
9094 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 | |
9095 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } | |
9096 | if test $ac_cv_func__doprnt = yes; then | |
ad6254c5 AK |
9097 | |
9098 | cat >>confdefs.h <<\_ACEOF | |
9099 | #define HAVE_DOPRNT 1 | |
9100 | _ACEOF | |
9101 | ||
9102 | fi | |
9103 | ||
9104 | fi | |
9105 | done | |
9106 | ||
9107 | ||
9108 | ||
9109 | ||
9110 | ||
9111 | for ac_func in mkdir rmdir uname | |
9112 | do | |
1995c9ff AK |
9113 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9114 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9115 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 9116 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 9117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9118 | else |
9119 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9120 | /* confdefs.h. */ |
9121 | _ACEOF | |
9122 | cat confdefs.h >>conftest.$ac_ext | |
9123 | cat >>conftest.$ac_ext <<_ACEOF | |
9124 | /* end confdefs.h. */ | |
8a2fc586 AK |
9125 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9126 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9127 | #define $ac_func innocuous_$ac_func | |
9128 | ||
ad6254c5 AK |
9129 | /* System header to define __stub macros and hopefully few prototypes, |
9130 | which can conflict with char $ac_func (); below. | |
9131 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9132 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9133 | |
ad6254c5 AK |
9134 | #ifdef __STDC__ |
9135 | # include <limits.h> | |
9136 | #else | |
9137 | # include <assert.h> | |
9138 | #endif | |
8a2fc586 AK |
9139 | |
9140 | #undef $ac_func | |
9141 | ||
7a197a62 AK |
9142 | /* Override any GCC internal prototype to avoid an error. |
9143 | Use char because int might match the return type of a GCC | |
9144 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9145 | #ifdef __cplusplus |
9146 | extern "C" | |
ad6254c5 | 9147 | #endif |
ad6254c5 AK |
9148 | char $ac_func (); |
9149 | /* The GNU C library defines this for functions which it implements | |
9150 | to always fail with ENOSYS. Some functions are actually named | |
9151 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 9152 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 9153 | choke me |
ad6254c5 AK |
9154 | #endif |
9155 | ||
9156 | int | |
9157 | main () | |
9158 | { | |
7a197a62 | 9159 | return $ac_func (); |
ad6254c5 AK |
9160 | ; |
9161 | return 0; | |
9162 | } | |
9163 | _ACEOF | |
9164 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9165 | if { (ac_try="$ac_link" |
9166 | case "(($ac_try" in | |
9167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9168 | *) ac_try_echo=$ac_try;; | |
9169 | esac | |
1995c9ff | 9170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9171 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9172 | ac_status=$? |
8a2fc586 AK |
9173 | grep -v '^ *+' conftest.er1 >conftest.err |
9174 | rm -f conftest.er1 | |
9175 | cat conftest.err >&5 | |
1995c9ff | 9176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
9177 | (exit $ac_status); } && |
9178 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
9179 | { (case "(($ac_try" in | |
9180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9181 | *) ac_try_echo=$ac_try;; | |
9182 | esac | |
9183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9184 | (eval "$ac_try") 2>&5 | |
9185 | ac_status=$? | |
9186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9187 | (exit $ac_status); }; } && | |
9188 | { ac_try='test -s conftest$ac_exeext' | |
9189 | { (case "(($ac_try" in | |
9190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9191 | *) ac_try_echo=$ac_try;; | |
9192 | esac | |
9193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9194 | (eval "$ac_try") 2>&5 | |
9195 | ac_status=$? | |
9196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9197 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
9198 | eval "$as_ac_var=yes" |
9199 | else | |
1995c9ff | 9200 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9201 | sed 's/^/| /' conftest.$ac_ext >&5 |
9202 | ||
7a197a62 | 9203 | eval "$as_ac_var=no" |
ad6254c5 | 9204 | fi |
7a197a62 | 9205 | |
fc54be10 | 9206 | rm -f core conftest.err conftest.$ac_objext \ |
8a2fc586 | 9207 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 9208 | fi |
1995c9ff AK |
9209 | ac_res=`eval echo '${'$as_ac_var'}'` |
9210 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9211 | echo "${ECHO_T}$ac_res" >&6; } | |
9212 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 9213 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 9214 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
9215 | _ACEOF |
9216 | ||
9217 | else | |
1995c9ff AK |
9218 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
9219 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
9220 | { (exit 1); exit 1; }; } |
9221 | fi | |
9222 | done | |
9223 | ||
9224 | ||
9225 | ################################################################################ | |
9226 | if test x$READLINE = xyes; then | |
1995c9ff AK |
9227 | { echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
9228 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; } | |
ad6254c5 | 9229 | if test "${ac_cv_search_tgetent+set}" = set; then |
1995c9ff | 9230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9231 | else |
9232 | ac_func_search_save_LIBS=$LIBS | |
ad6254c5 | 9233 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9234 | /* confdefs.h. */ |
9235 | _ACEOF | |
9236 | cat confdefs.h >>conftest.$ac_ext | |
9237 | cat >>conftest.$ac_ext <<_ACEOF | |
9238 | /* end confdefs.h. */ | |
9239 | ||
7a197a62 AK |
9240 | /* Override any GCC internal prototype to avoid an error. |
9241 | Use char because int might match the return type of a GCC | |
9242 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9243 | #ifdef __cplusplus |
9244 | extern "C" | |
9245 | #endif | |
ad6254c5 AK |
9246 | char tgetent (); |
9247 | int | |
9248 | main () | |
9249 | { | |
7a197a62 | 9250 | return tgetent (); |
ad6254c5 AK |
9251 | ; |
9252 | return 0; | |
9253 | } | |
9254 | _ACEOF | |
7a197a62 AK |
9255 | for ac_lib in '' ncurses curses termcap termlib; do |
9256 | if test -z "$ac_lib"; then | |
9257 | ac_res="none required" | |
9258 | else | |
9259 | ac_res=-l$ac_lib | |
9260 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9261 | fi | |
9262 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9263 | if { (ac_try="$ac_link" | |
9264 | case "(($ac_try" in | |
9265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9266 | *) ac_try_echo=$ac_try;; | |
9267 | esac | |
1995c9ff | 9268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9269 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9270 | ac_status=$? |
8a2fc586 AK |
9271 | grep -v '^ *+' conftest.er1 >conftest.err |
9272 | rm -f conftest.er1 | |
9273 | cat conftest.err >&5 | |
1995c9ff | 9274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
9275 | (exit $ac_status); } && |
9276 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
9277 | { (case "(($ac_try" in | |
9278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9279 | *) ac_try_echo=$ac_try;; | |
9280 | esac | |
9281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9282 | (eval "$ac_try") 2>&5 | |
9283 | ac_status=$? | |
9284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9285 | (exit $ac_status); }; } && | |
9286 | { ac_try='test -s conftest$ac_exeext' | |
9287 | { (case "(($ac_try" in | |
9288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9289 | *) ac_try_echo=$ac_try;; | |
9290 | esac | |
9291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9292 | (eval "$ac_try") 2>&5 | |
9293 | ac_status=$? | |
9294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9295 | (exit $ac_status); }; }; then | |
7a197a62 | 9296 | ac_cv_search_tgetent=$ac_res |
ad6254c5 | 9297 | else |
1995c9ff | 9298 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9299 | sed 's/^/| /' conftest.$ac_ext >&5 |
9300 | ||
ad6254c5 | 9301 | |
7a197a62 | 9302 | fi |
ad6254c5 | 9303 | |
fc54be10 | 9304 | rm -f core conftest.err conftest.$ac_objext \ |
7a197a62 AK |
9305 | conftest$ac_exeext |
9306 | if test "${ac_cv_search_tgetent+set}" = set; then | |
9307 | break | |
ad6254c5 | 9308 | fi |
7a197a62 AK |
9309 | done |
9310 | if test "${ac_cv_search_tgetent+set}" = set; then | |
9311 | : | |
9312 | else | |
9313 | ac_cv_search_tgetent=no | |
ad6254c5 | 9314 | fi |
7a197a62 | 9315 | rm conftest.$ac_ext |
ad6254c5 AK |
9316 | LIBS=$ac_func_search_save_LIBS |
9317 | fi | |
1995c9ff AK |
9318 | { echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
9319 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6; } | |
7a197a62 AK |
9320 | ac_res=$ac_cv_search_tgetent |
9321 | if test "$ac_res" != no; then | |
9322 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
ad6254c5 AK |
9323 | |
9324 | else | |
1995c9ff | 9325 | { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the |
ad6254c5 AK |
9326 | --enable-readline option (which is enabled by default). Either disable readline |
9327 | support with --disable-readline or download and install termcap from: | |
9328 | ftp.gnu.org/gnu/termcap | |
9329 | Note: if you are using precompiled packages you will also need the development | |
9330 | package as well (which may be called termcap-devel or something similar). | |
9331 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
9332 | not found either - but you could try installing that as well. | |
9333 | " >&5 | |
1995c9ff | 9334 | echo "$as_me: error: termcap could not be found which is required for the |
ad6254c5 AK |
9335 | --enable-readline option (which is enabled by default). Either disable readline |
9336 | support with --disable-readline or download and install termcap from: | |
9337 | ftp.gnu.org/gnu/termcap | |
9338 | Note: if you are using precompiled packages you will also need the development | |
9339 | package as well (which may be called termcap-devel or something similar). | |
9340 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
9341 | not found either - but you could try installing that as well. | |
9342 | " >&2;} | |
9343 | { (exit 1); exit 1; }; } | |
9344 | ||
9345 | fi | |
9346 | ||
9347 | fi | |
9348 | ||
9349 | ################################################################################ | |
1995c9ff AK |
9350 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9351 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
ad6254c5 | 9352 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
1995c9ff | 9353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9354 | else |
9355 | ac_check_lib_save_LIBS=$LIBS | |
9356 | LIBS="-ldl $LIBS" | |
9357 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9358 | /* confdefs.h. */ |
9359 | _ACEOF | |
9360 | cat confdefs.h >>conftest.$ac_ext | |
9361 | cat >>conftest.$ac_ext <<_ACEOF | |
9362 | /* end confdefs.h. */ | |
9363 | ||
7a197a62 AK |
9364 | /* Override any GCC internal prototype to avoid an error. |
9365 | Use char because int might match the return type of a GCC | |
9366 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9367 | #ifdef __cplusplus |
9368 | extern "C" | |
9369 | #endif | |
ad6254c5 AK |
9370 | char dlopen (); |
9371 | int | |
9372 | main () | |
9373 | { | |
7a197a62 | 9374 | return dlopen (); |
ad6254c5 AK |
9375 | ; |
9376 | return 0; | |
9377 | } | |
9378 | _ACEOF | |
9379 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9380 | if { (ac_try="$ac_link" |
9381 | case "(($ac_try" in | |
9382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9383 | *) ac_try_echo=$ac_try;; | |
9384 | esac | |
1995c9ff | 9385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9386 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9387 | ac_status=$? |
8a2fc586 AK |
9388 | grep -v '^ *+' conftest.er1 >conftest.err |
9389 | rm -f conftest.er1 | |
9390 | cat conftest.err >&5 | |
1995c9ff | 9391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
9392 | (exit $ac_status); } && |
9393 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
9394 | { (case "(($ac_try" in | |
9395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9396 | *) ac_try_echo=$ac_try;; | |
9397 | esac | |
9398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9399 | (eval "$ac_try") 2>&5 | |
9400 | ac_status=$? | |
9401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9402 | (exit $ac_status); }; } && | |
9403 | { ac_try='test -s conftest$ac_exeext' | |
9404 | { (case "(($ac_try" in | |
9405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9406 | *) ac_try_echo=$ac_try;; | |
9407 | esac | |
9408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9409 | (eval "$ac_try") 2>&5 | |
9410 | ac_status=$? | |
9411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9412 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
9413 | ac_cv_lib_dl_dlopen=yes |
9414 | else | |
1995c9ff | 9415 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9416 | sed 's/^/| /' conftest.$ac_ext >&5 |
9417 | ||
7a197a62 | 9418 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 9419 | fi |
7a197a62 | 9420 | |
fc54be10 | 9421 | rm -f core conftest.err conftest.$ac_objext \ |
8a2fc586 | 9422 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
9423 | LIBS=$ac_check_lib_save_LIBS |
9424 | fi | |
1995c9ff AK |
9425 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9426 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
ad6254c5 AK |
9427 | if test $ac_cv_lib_dl_dlopen = yes; then |
9428 | HAVE_LIBDL=yes | |
9429 | else | |
9430 | HAVE_LIBDL=no | |
9431 | fi | |
9432 | ||
9433 | ||
7e9e9502 | 9434 | if [ "x$HAVE_LIBDL" = xyes ]; then |
72b2cb61 AK |
9435 | |
9436 | cat >>confdefs.h <<\_ACEOF | |
9437 | #define HAVE_LIBDL 1 | |
9438 | _ACEOF | |
9439 | ||
ad6254c5 AK |
9440 | LIBS="-ldl $LIBS" |
9441 | else | |
9442 | HAVE_LIBDL=no | |
9443 | fi | |
9444 | ||
9445 | ################################################################################ | |
9446 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
9447 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
9448 | \) -a "x$STATIC_LINK" = xyes ]; | |
1995c9ff | 9449 | then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 9450 | " >&5 |
1995c9ff | 9451 | echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
9452 | " >&2;} |
9453 | { (exit 1); exit 1; }; } | |
9454 | fi | |
9455 | ||
9456 | ################################################################################ | |
9457 | if test x$SELINUX = xyes; then | |
1995c9ff AK |
9458 | { echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
9459 | echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6; } | |
8a2fc586 | 9460 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
1995c9ff | 9461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8a2fc586 AK |
9462 | else |
9463 | ac_check_lib_save_LIBS=$LIBS | |
9464 | LIBS="-lsepol $LIBS" | |
9465 | cat >conftest.$ac_ext <<_ACEOF | |
9466 | /* confdefs.h. */ | |
9467 | _ACEOF | |
9468 | cat confdefs.h >>conftest.$ac_ext | |
9469 | cat >>conftest.$ac_ext <<_ACEOF | |
9470 | /* end confdefs.h. */ | |
9471 | ||
7a197a62 AK |
9472 | /* Override any GCC internal prototype to avoid an error. |
9473 | Use char because int might match the return type of a GCC | |
9474 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
9475 | #ifdef __cplusplus |
9476 | extern "C" | |
9477 | #endif | |
8a2fc586 AK |
9478 | char sepol_check_context (); |
9479 | int | |
9480 | main () | |
9481 | { | |
7a197a62 | 9482 | return sepol_check_context (); |
8a2fc586 AK |
9483 | ; |
9484 | return 0; | |
9485 | } | |
9486 | _ACEOF | |
9487 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9488 | if { (ac_try="$ac_link" |
9489 | case "(($ac_try" in | |
9490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9491 | *) ac_try_echo=$ac_try;; | |
9492 | esac | |
1995c9ff | 9493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9494 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
9495 | ac_status=$? |
9496 | grep -v '^ *+' conftest.er1 >conftest.err | |
9497 | rm -f conftest.er1 | |
9498 | cat conftest.err >&5 | |
1995c9ff | 9499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
9500 | (exit $ac_status); } && |
9501 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
9502 | { (case "(($ac_try" in | |
9503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9504 | *) ac_try_echo=$ac_try;; | |
9505 | esac | |
9506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9507 | (eval "$ac_try") 2>&5 | |
9508 | ac_status=$? | |
9509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9510 | (exit $ac_status); }; } && | |
9511 | { ac_try='test -s conftest$ac_exeext' | |
9512 | { (case "(($ac_try" in | |
9513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9514 | *) ac_try_echo=$ac_try;; | |
9515 | esac | |
9516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9517 | (eval "$ac_try") 2>&5 | |
9518 | ac_status=$? | |
9519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9520 | (exit $ac_status); }; }; then | |
8a2fc586 AK |
9521 | ac_cv_lib_sepol_sepol_check_context=yes |
9522 | else | |
1995c9ff | 9523 | echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
9524 | sed 's/^/| /' conftest.$ac_ext >&5 |
9525 | ||
7a197a62 | 9526 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 9527 | fi |
7a197a62 | 9528 | |
fc54be10 | 9529 | rm -f core conftest.err conftest.$ac_objext \ |
8a2fc586 AK |
9530 | conftest$ac_exeext conftest.$ac_ext |
9531 | LIBS=$ac_check_lib_save_LIBS | |
9532 | fi | |
1995c9ff AK |
9533 | { echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
9534 | echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
8a2fc586 AK |
9535 | if test $ac_cv_lib_sepol_sepol_check_context = yes; then |
9536 | HAVE_SEPOL=yes | |
9537 | else | |
9538 | HAVE_SEPOL=no | |
9539 | fi | |
9540 | ||
8a2fc586 AK |
9541 | |
9542 | if test x$HAVE_SEPOL = xyes; then | |
9543 | LIBS="-lsepol $LIBS" | |
9544 | fi | |
9545 | ||
1995c9ff AK |
9546 | { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
9547 | echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; } | |
ad6254c5 | 9548 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
1995c9ff | 9549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9550 | else |
9551 | ac_check_lib_save_LIBS=$LIBS | |
9552 | LIBS="-lselinux $LIBS" | |
9553 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9554 | /* confdefs.h. */ |
9555 | _ACEOF | |
9556 | cat confdefs.h >>conftest.$ac_ext | |
9557 | cat >>conftest.$ac_ext <<_ACEOF | |
9558 | /* end confdefs.h. */ | |
9559 | ||
7a197a62 AK |
9560 | /* Override any GCC internal prototype to avoid an error. |
9561 | Use char because int might match the return type of a GCC | |
9562 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9563 | #ifdef __cplusplus |
9564 | extern "C" | |
9565 | #endif | |
ad6254c5 AK |
9566 | char is_selinux_enabled (); |
9567 | int | |
9568 | main () | |
9569 | { | |
7a197a62 | 9570 | return is_selinux_enabled (); |
ad6254c5 AK |
9571 | ; |
9572 | return 0; | |
9573 | } | |
9574 | _ACEOF | |
9575 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9576 | if { (ac_try="$ac_link" |
9577 | case "(($ac_try" in | |
9578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9579 | *) ac_try_echo=$ac_try;; | |
9580 | esac | |
1995c9ff | 9581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9582 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9583 | ac_status=$? |
8a2fc586 AK |
9584 | grep -v '^ *+' conftest.er1 >conftest.err |
9585 | rm -f conftest.er1 | |
9586 | cat conftest.err >&5 | |
1995c9ff | 9587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
9588 | (exit $ac_status); } && |
9589 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
9590 | { (case "(($ac_try" in | |
9591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9592 | *) ac_try_echo=$ac_try;; | |
9593 | esac | |
9594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9595 | (eval "$ac_try") 2>&5 | |
9596 | ac_status=$? | |
9597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9598 | (exit $ac_status); }; } && | |
9599 | { ac_try='test -s conftest$ac_exeext' | |
9600 | { (case "(($ac_try" in | |
9601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9602 | *) ac_try_echo=$ac_try;; | |
9603 | esac | |
9604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9605 | (eval "$ac_try") 2>&5 | |
9606 | ac_status=$? | |
9607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9608 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
9609 | ac_cv_lib_selinux_is_selinux_enabled=yes |
9610 | else | |
1995c9ff | 9611 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9612 | sed 's/^/| /' conftest.$ac_ext >&5 |
9613 | ||
7a197a62 | 9614 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 9615 | fi |
7a197a62 | 9616 | |
fc54be10 | 9617 | rm -f core conftest.err conftest.$ac_objext \ |
8a2fc586 | 9618 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
9619 | LIBS=$ac_check_lib_save_LIBS |
9620 | fi | |
1995c9ff AK |
9621 | { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
9622 | echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
ad6254c5 AK |
9623 | if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then |
9624 | HAVE_SELINUX=yes | |
9625 | else | |
9626 | HAVE_SELINUX=no | |
9627 | fi | |
9628 | ||
ad6254c5 AK |
9629 | |
9630 | if test x$HAVE_SELINUX = xyes; then | |
72b2cb61 AK |
9631 | |
9632 | cat >>confdefs.h <<\_ACEOF | |
9633 | #define HAVE_SELINUX 1 | |
9634 | _ACEOF | |
9635 | ||
ad6254c5 AK |
9636 | LIBS="-lselinux $LIBS" |
9637 | else | |
1995c9ff AK |
9638 | { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 |
9639 | echo "$as_me: WARNING: Disabling selinux" >&2;} | |
66e941e8 JM |
9640 | fi |
9641 | ||
9642 | # With --enable-static_link and selinux enabled, linking lvm.static | |
9643 | # fails on at least Debian unstable due to unsatisfied references | |
9644 | # to pthread_mutex_lock and _unlock. See if we need -lpthread. | |
9645 | if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then | |
9646 | lvm_saved_libs=$LIBS | |
9647 | LIBS="$LIBS -static" | |
1995c9ff AK |
9648 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
9649 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } | |
66e941e8 | 9650 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
1995c9ff | 9651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
66e941e8 JM |
9652 | else |
9653 | ac_func_search_save_LIBS=$LIBS | |
9654 | cat >conftest.$ac_ext <<_ACEOF | |
9655 | /* confdefs.h. */ | |
9656 | _ACEOF | |
9657 | cat confdefs.h >>conftest.$ac_ext | |
9658 | cat >>conftest.$ac_ext <<_ACEOF | |
9659 | /* end confdefs.h. */ | |
9660 | ||
9661 | /* Override any GCC internal prototype to avoid an error. | |
9662 | Use char because int might match the return type of a GCC | |
9663 | builtin and then its argument prototype would still apply. */ | |
9664 | #ifdef __cplusplus | |
9665 | extern "C" | |
9666 | #endif | |
9667 | char pthread_mutex_lock (); | |
9668 | int | |
9669 | main () | |
9670 | { | |
9671 | return pthread_mutex_lock (); | |
9672 | ; | |
9673 | return 0; | |
9674 | } | |
9675 | _ACEOF | |
9676 | for ac_lib in '' pthread; do | |
9677 | if test -z "$ac_lib"; then | |
9678 | ac_res="none required" | |
9679 | else | |
9680 | ac_res=-l$ac_lib | |
9681 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9682 | fi | |
9683 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9684 | if { (ac_try="$ac_link" | |
9685 | case "(($ac_try" in | |
9686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9687 | *) ac_try_echo=$ac_try;; | |
9688 | esac | |
1995c9ff | 9689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
66e941e8 JM |
9690 | (eval "$ac_link") 2>conftest.er1 |
9691 | ac_status=$? | |
9692 | grep -v '^ *+' conftest.er1 >conftest.err | |
9693 | rm -f conftest.er1 | |
9694 | cat conftest.err >&5 | |
1995c9ff | 9695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
9696 | (exit $ac_status); } && |
9697 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
9698 | { (case "(($ac_try" in | |
9699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9700 | *) ac_try_echo=$ac_try;; | |
9701 | esac | |
9702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9703 | (eval "$ac_try") 2>&5 | |
9704 | ac_status=$? | |
9705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9706 | (exit $ac_status); }; } && | |
9707 | { ac_try='test -s conftest$ac_exeext' | |
9708 | { (case "(($ac_try" in | |
9709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9710 | *) ac_try_echo=$ac_try;; | |
9711 | esac | |
9712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9713 | (eval "$ac_try") 2>&5 | |
9714 | ac_status=$? | |
9715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9716 | (exit $ac_status); }; }; then | |
66e941e8 JM |
9717 | ac_cv_search_pthread_mutex_lock=$ac_res |
9718 | else | |
1995c9ff | 9719 | echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
9720 | sed 's/^/| /' conftest.$ac_ext >&5 |
9721 | ||
9722 | ||
9723 | fi | |
9724 | ||
fc54be10 | 9725 | rm -f core conftest.err conftest.$ac_objext \ |
66e941e8 JM |
9726 | conftest$ac_exeext |
9727 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
9728 | break | |
9729 | fi | |
9730 | done | |
9731 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
9732 | : | |
9733 | else | |
9734 | ac_cv_search_pthread_mutex_lock=no | |
9735 | fi | |
9736 | rm conftest.$ac_ext | |
9737 | LIBS=$ac_func_search_save_LIBS | |
9738 | fi | |
1995c9ff AK |
9739 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
9740 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } | |
66e941e8 JM |
9741 | ac_res=$ac_cv_search_pthread_mutex_lock |
9742 | if test "$ac_res" != no; then | |
9743 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9744 | test "$ac_cv_search_pthread_mutex_lock" = "none required" || | |
9745 | LIB_PTHREAD=-lpthread | |
9746 | fi | |
9747 | ||
9748 | LIBS=$lvm_saved_libs | |
ad6254c5 AK |
9749 | fi |
9750 | fi | |
9751 | ||
8b1a3214 AK |
9752 | ################################################################################ |
9753 | if test x$REALTIME = xyes; then | |
1995c9ff AK |
9754 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
9755 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } | |
8b1a3214 | 9756 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
1995c9ff | 9757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8b1a3214 AK |
9758 | else |
9759 | ac_check_lib_save_LIBS=$LIBS | |
9760 | LIBS="-lrt $LIBS" | |
9761 | cat >conftest.$ac_ext <<_ACEOF | |
9762 | /* confdefs.h. */ | |
9763 | _ACEOF | |
9764 | cat confdefs.h >>conftest.$ac_ext | |
9765 | cat >>conftest.$ac_ext <<_ACEOF | |
9766 | /* end confdefs.h. */ | |
9767 | ||
7a197a62 AK |
9768 | /* Override any GCC internal prototype to avoid an error. |
9769 | Use char because int might match the return type of a GCC | |
9770 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
9771 | #ifdef __cplusplus |
9772 | extern "C" | |
9773 | #endif | |
8b1a3214 AK |
9774 | char clock_gettime (); |
9775 | int | |
9776 | main () | |
9777 | { | |
7a197a62 | 9778 | return clock_gettime (); |
8b1a3214 AK |
9779 | ; |
9780 | return 0; | |
9781 | } | |
9782 | _ACEOF | |
9783 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9784 | if { (ac_try="$ac_link" |
9785 | case "(($ac_try" in | |
9786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9787 | *) ac_try_echo=$ac_try;; | |
9788 | esac | |
1995c9ff | 9789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9790 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
9791 | ac_status=$? |
9792 | grep -v '^ *+' conftest.er1 >conftest.err | |
9793 | rm -f conftest.er1 | |
9794 | cat conftest.err >&5 | |
1995c9ff | 9795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
9796 | (exit $ac_status); } && |
9797 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
9798 | { (case "(($ac_try" in | |
9799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9800 | *) ac_try_echo=$ac_try;; | |
9801 | esac | |
9802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9803 | (eval "$ac_try") 2>&5 | |
9804 | ac_status=$? | |
9805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9806 | (exit $ac_status); }; } && | |
9807 | { ac_try='test -s conftest$ac_exeext' | |
9808 | { (case "(($ac_try" in | |
9809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9810 | *) ac_try_echo=$ac_try;; | |
9811 | esac | |
9812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9813 | (eval "$ac_try") 2>&5 | |
9814 | ac_status=$? | |
9815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9816 | (exit $ac_status); }; }; then | |
8b1a3214 AK |
9817 | ac_cv_lib_rt_clock_gettime=yes |
9818 | else | |
1995c9ff | 9819 | echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
9820 | sed 's/^/| /' conftest.$ac_ext >&5 |
9821 | ||
7a197a62 | 9822 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 9823 | fi |
7a197a62 | 9824 | |
fc54be10 | 9825 | rm -f core conftest.err conftest.$ac_objext \ |
8b1a3214 AK |
9826 | conftest$ac_exeext conftest.$ac_ext |
9827 | LIBS=$ac_check_lib_save_LIBS | |
9828 | fi | |
1995c9ff AK |
9829 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
9830 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } | |
8b1a3214 AK |
9831 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
9832 | HAVE_REALTIME=yes | |
9833 | else | |
9834 | HAVE_REALTIME=no | |
9835 | fi | |
9836 | ||
8b1a3214 AK |
9837 | |
9838 | if test x$HAVE_REALTIME = xyes; then | |
9839 | ||
9840 | cat >>confdefs.h <<\_ACEOF | |
9841 | #define HAVE_REALTIME 1 | |
9842 | _ACEOF | |
9843 | ||
9844 | LIBS="-lrt $LIBS" | |
9845 | else | |
1995c9ff AK |
9846 | { echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
9847 | echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
9848 | fi |
9849 | fi | |
9850 | ||
ad6254c5 AK |
9851 | ################################################################################ |
9852 | ||
9853 | for ac_header in getopt.h | |
9854 | do | |
1995c9ff | 9855 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9856 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
9857 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9858 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9859 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 9860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9861 | fi |
1995c9ff AK |
9862 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9863 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9864 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9865 | else |
9866 | # Is the header compilable? | |
1995c9ff AK |
9867 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9868 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 9869 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9870 | /* confdefs.h. */ |
9871 | _ACEOF | |
9872 | cat confdefs.h >>conftest.$ac_ext | |
9873 | cat >>conftest.$ac_ext <<_ACEOF | |
9874 | /* end confdefs.h. */ | |
9875 | $ac_includes_default | |
9876 | #include <$ac_header> | |
9877 | _ACEOF | |
9878 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9879 | if { (ac_try="$ac_compile" |
9880 | case "(($ac_try" in | |
9881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9882 | *) ac_try_echo=$ac_try;; | |
9883 | esac | |
1995c9ff | 9884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9885 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9886 | ac_status=$? |
8a2fc586 AK |
9887 | grep -v '^ *+' conftest.er1 >conftest.err |
9888 | rm -f conftest.er1 | |
9889 | cat conftest.err >&5 | |
1995c9ff | 9890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
9891 | (exit $ac_status); } && |
9892 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
9893 | { (case "(($ac_try" in | |
9894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9895 | *) ac_try_echo=$ac_try;; | |
9896 | esac | |
9897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9898 | (eval "$ac_try") 2>&5 | |
9899 | ac_status=$? | |
9900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9901 | (exit $ac_status); }; } && | |
9902 | { ac_try='test -s conftest.$ac_objext' | |
9903 | { (case "(($ac_try" in | |
9904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9905 | *) ac_try_echo=$ac_try;; | |
9906 | esac | |
9907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9908 | (eval "$ac_try") 2>&5 | |
9909 | ac_status=$? | |
9910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9911 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
9912 | ac_header_compiler=yes |
9913 | else | |
1995c9ff | 9914 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9915 | sed 's/^/| /' conftest.$ac_ext >&5 |
9916 | ||
7a197a62 | 9917 | ac_header_compiler=no |
ad6254c5 | 9918 | fi |
7a197a62 AK |
9919 | |
9920 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
9921 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9922 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9923 | |
9924 | # Is the header present? | |
1995c9ff AK |
9925 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9926 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 9927 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9928 | /* confdefs.h. */ |
9929 | _ACEOF | |
9930 | cat confdefs.h >>conftest.$ac_ext | |
9931 | cat >>conftest.$ac_ext <<_ACEOF | |
9932 | /* end confdefs.h. */ | |
9933 | #include <$ac_header> | |
9934 | _ACEOF | |
7a197a62 AK |
9935 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9936 | case "(($ac_try" in | |
9937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9938 | *) ac_try_echo=$ac_try;; | |
9939 | esac | |
1995c9ff | 9940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9941 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9942 | ac_status=$? |
9943 | grep -v '^ *+' conftest.er1 >conftest.err | |
9944 | rm -f conftest.er1 | |
9945 | cat conftest.err >&5 | |
1995c9ff | 9946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
9947 | (exit $ac_status); } >/dev/null; then |
9948 | if test -s conftest.err; then | |
9949 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9950 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9951 | else | |
9952 | ac_cpp_err= | |
9953 | fi | |
9954 | else | |
9955 | ac_cpp_err=yes | |
9956 | fi | |
9957 | if test -z "$ac_cpp_err"; then | |
ad6254c5 AK |
9958 | ac_header_preproc=yes |
9959 | else | |
1995c9ff | 9960 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9961 | sed 's/^/| /' conftest.$ac_ext >&5 |
9962 | ||
9963 | ac_header_preproc=no | |
9964 | fi | |
7a197a62 | 9965 | |
ad6254c5 | 9966 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
9967 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9968 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9969 | |
9970 | # So? What about this header? | |
8a2fc586 AK |
9971 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9972 | yes:no: ) | |
1995c9ff AK |
9973 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9974 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9975 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9976 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9977 | ac_header_preproc=yes |
ad6254c5 | 9978 | ;; |
8a2fc586 | 9979 | no:yes:* ) |
1995c9ff AK |
9980 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9981 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9982 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9983 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9984 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9985 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9986 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9987 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9988 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9989 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9990 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9991 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9992 | |
ad6254c5 AK |
9993 | ;; |
9994 | esac | |
1995c9ff AK |
9995 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9996 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9997 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 9998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9999 | else |
8a2fc586 | 10000 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10001 | fi |
1995c9ff AK |
10002 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10003 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10004 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10005 | |
10006 | fi | |
1995c9ff | 10007 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10008 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 10009 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 10010 | _ACEOF |
72b2cb61 AK |
10011 | |
10012 | cat >>confdefs.h <<\_ACEOF | |
10013 | #define HAVE_GETOPTLONG 1 | |
10014 | _ACEOF | |
10015 | ||
ad6254c5 AK |
10016 | fi |
10017 | ||
10018 | done | |
10019 | ||
10020 | ||
10021 | ################################################################################ | |
10022 | if test x$READLINE = xyes; then | |
10023 | ||
1995c9ff AK |
10024 | { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
10025 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; } | |
ad6254c5 | 10026 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
1995c9ff | 10027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
10028 | else |
10029 | ac_check_lib_save_LIBS=$LIBS | |
10030 | LIBS="-lreadline $LIBS" | |
10031 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10032 | /* confdefs.h. */ |
10033 | _ACEOF | |
10034 | cat confdefs.h >>conftest.$ac_ext | |
10035 | cat >>conftest.$ac_ext <<_ACEOF | |
10036 | /* end confdefs.h. */ | |
10037 | ||
7a197a62 AK |
10038 | /* Override any GCC internal prototype to avoid an error. |
10039 | Use char because int might match the return type of a GCC | |
10040 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10041 | #ifdef __cplusplus |
10042 | extern "C" | |
10043 | #endif | |
ad6254c5 AK |
10044 | char readline (); |
10045 | int | |
10046 | main () | |
10047 | { | |
7a197a62 | 10048 | return readline (); |
ad6254c5 AK |
10049 | ; |
10050 | return 0; | |
10051 | } | |
10052 | _ACEOF | |
10053 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10054 | if { (ac_try="$ac_link" |
10055 | case "(($ac_try" in | |
10056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10057 | *) ac_try_echo=$ac_try;; | |
10058 | esac | |
1995c9ff | 10059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10060 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10061 | ac_status=$? |
8a2fc586 AK |
10062 | grep -v '^ *+' conftest.er1 >conftest.err |
10063 | rm -f conftest.er1 | |
10064 | cat conftest.err >&5 | |
1995c9ff | 10065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
10066 | (exit $ac_status); } && |
10067 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
10068 | { (case "(($ac_try" in | |
10069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10070 | *) ac_try_echo=$ac_try;; | |
10071 | esac | |
10072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10073 | (eval "$ac_try") 2>&5 | |
10074 | ac_status=$? | |
10075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10076 | (exit $ac_status); }; } && | |
10077 | { ac_try='test -s conftest$ac_exeext' | |
10078 | { (case "(($ac_try" in | |
10079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10080 | *) ac_try_echo=$ac_try;; | |
10081 | esac | |
10082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10083 | (eval "$ac_try") 2>&5 | |
10084 | ac_status=$? | |
10085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10086 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
10087 | ac_cv_lib_readline_readline=yes |
10088 | else | |
1995c9ff | 10089 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10090 | sed 's/^/| /' conftest.$ac_ext >&5 |
10091 | ||
7a197a62 | 10092 | ac_cv_lib_readline_readline=no |
ad6254c5 | 10093 | fi |
7a197a62 | 10094 | |
fc54be10 | 10095 | rm -f core conftest.err conftest.$ac_objext \ |
8a2fc586 | 10096 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
10097 | LIBS=$ac_check_lib_save_LIBS |
10098 | fi | |
1995c9ff AK |
10099 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
10100 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; } | |
ad6254c5 AK |
10101 | if test $ac_cv_lib_readline_readline = yes; then |
10102 | cat >>confdefs.h <<_ACEOF | |
10103 | #define HAVE_LIBREADLINE 1 | |
10104 | _ACEOF | |
10105 | ||
10106 | LIBS="-lreadline $LIBS" | |
10107 | ||
10108 | else | |
1995c9ff | 10109 | { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
10110 | --enable-readline option (which is enabled by default). Either disable readline |
10111 | support with --disable-readline or download and install readline from: | |
10112 | ftp.gnu.org/gnu/readline | |
10113 | Note: if you are using precompiled packages you will also need the development | |
10114 | package as well (which may be called readline-devel or something similar). | |
10115 | " >&5 | |
1995c9ff | 10116 | echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
10117 | --enable-readline option (which is enabled by default). Either disable readline |
10118 | support with --disable-readline or download and install readline from: | |
10119 | ftp.gnu.org/gnu/readline | |
10120 | Note: if you are using precompiled packages you will also need the development | |
10121 | package as well (which may be called readline-devel or something similar). | |
10122 | " >&2;} | |
10123 | { (exit 1); exit 1; }; } | |
10124 | ||
10125 | fi | |
10126 | ||
1995c9ff AK |
10127 | { echo "$as_me:$LINENO: checking for rl_completion_matches" >&5 |
10128 | echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6; } | |
ad6254c5 | 10129 | if test "${ac_cv_func_rl_completion_matches+set}" = set; then |
1995c9ff | 10130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
10131 | else |
10132 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10133 | /* confdefs.h. */ |
10134 | _ACEOF | |
10135 | cat confdefs.h >>conftest.$ac_ext | |
10136 | cat >>conftest.$ac_ext <<_ACEOF | |
10137 | /* end confdefs.h. */ | |
8a2fc586 AK |
10138 | /* Define rl_completion_matches to an innocuous variant, in case <limits.h> declares rl_completion_matches. |
10139 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10140 | #define rl_completion_matches innocuous_rl_completion_matches | |
10141 | ||
ad6254c5 AK |
10142 | /* System header to define __stub macros and hopefully few prototypes, |
10143 | which can conflict with char rl_completion_matches (); below. | |
10144 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10145 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10146 | |
ad6254c5 AK |
10147 | #ifdef __STDC__ |
10148 | # include <limits.h> | |
10149 | #else | |
10150 | # include <assert.h> | |
10151 | #endif | |
8a2fc586 AK |
10152 | |
10153 | #undef rl_completion_matches | |
10154 | ||
7a197a62 AK |
10155 | /* Override any GCC internal prototype to avoid an error. |
10156 | Use char because int might match the return type of a GCC | |
10157 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10158 | #ifdef __cplusplus |
10159 | extern "C" | |
ad6254c5 | 10160 | #endif |
ad6254c5 AK |
10161 | char rl_completion_matches (); |
10162 | /* The GNU C library defines this for functions which it implements | |
10163 | to always fail with ENOSYS. Some functions are actually named | |
10164 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10165 | #if defined __stub_rl_completion_matches || defined __stub___rl_completion_matches |
ad6254c5 | 10166 | choke me |
ad6254c5 AK |
10167 | #endif |
10168 | ||
10169 | int | |
10170 | main () | |
10171 | { | |
7a197a62 | 10172 | return rl_completion_matches (); |
ad6254c5 AK |
10173 | ; |
10174 | return 0; | |
10175 | } | |
10176 | _ACEOF | |
10177 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10178 | if { (ac_try="$ac_link" |
10179 | case "(($ac_try" in | |
10180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10181 | *) ac_try_echo=$ac_try;; | |
10182 | esac | |
1995c9ff | 10183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10184 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10185 | ac_status=$? |
8a2fc586 AK |
10186 | grep -v '^ *+' conftest.er1 >conftest.err |
10187 | rm -f conftest.er1 | |
10188 | cat conftest.err >&5 | |
1995c9ff | 10189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
10190 | (exit $ac_status); } && |
10191 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
10192 | { (case "(($ac_try" in | |
10193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10194 | *) ac_try_echo=$ac_try;; | |
10195 | esac | |
10196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10197 | (eval "$ac_try") 2>&5 | |
10198 | ac_status=$? | |
10199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10200 | (exit $ac_status); }; } && | |
10201 | { ac_try='test -s conftest$ac_exeext' | |
10202 | { (case "(($ac_try" in | |
10203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10204 | *) ac_try_echo=$ac_try;; | |
10205 | esac | |
10206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10207 | (eval "$ac_try") 2>&5 | |
10208 | ac_status=$? | |
10209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10210 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
10211 | ac_cv_func_rl_completion_matches=yes |
10212 | else | |
1995c9ff | 10213 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10214 | sed 's/^/| /' conftest.$ac_ext >&5 |
10215 | ||
7a197a62 | 10216 | ac_cv_func_rl_completion_matches=no |
ad6254c5 | 10217 | fi |
7a197a62 | 10218 | |
fc54be10 | 10219 | rm -f core conftest.err conftest.$ac_objext \ |
8a2fc586 | 10220 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10221 | fi |
1995c9ff AK |
10222 | { echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5 |
10223 | echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6; } | |
ad6254c5 | 10224 | if test $ac_cv_func_rl_completion_matches = yes; then |
ad6254c5 | 10225 | |
72b2cb61 AK |
10226 | cat >>confdefs.h <<\_ACEOF |
10227 | #define HAVE_RL_COMPLETION_MATCHES 1 | |
10228 | _ACEOF | |
10229 | ||
10230 | fi | |
ad6254c5 AK |
10231 | |
10232 | fi | |
10233 | ||
10234 | ################################################################################ | |
1995c9ff AK |
10235 | { echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
10236 | echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6; } | |
7a197a62 | 10237 | # Check whether --enable-nls was given. |
ad6254c5 | 10238 | if test "${enable_nls+set}" = set; then |
7a197a62 | 10239 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
10240 | else |
10241 | INTL=no | |
7a197a62 AK |
10242 | fi |
10243 | ||
1995c9ff AK |
10244 | { echo "$as_me:$LINENO: result: $INTL" >&5 |
10245 | echo "${ECHO_T}$INTL" >&6; } | |
ad6254c5 AK |
10246 | |
10247 | if test x$INTL = xyes; then | |
10248 | INTL_PACKAGE="lvm2" | |
10249 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
10250 | set dummy msgfmt; ac_word=$2 | |
1995c9ff AK |
10251 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10252 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 10253 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
1995c9ff | 10254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
10255 | else |
10256 | case $MSGFMT in | |
10257 | [\\/]* | ?:[\\/]*) | |
10258 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
10259 | ;; | |
10260 | *) | |
10261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10262 | for as_dir in $PATH | |
10263 | do | |
10264 | IFS=$as_save_IFS | |
10265 | test -z "$as_dir" && as_dir=. | |
10266 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc54be10 | 10267 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 10268 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
1995c9ff | 10269 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
10270 | break 2 |
10271 | fi | |
10272 | done | |
10273 | done | |
7a197a62 | 10274 | IFS=$as_save_IFS |
ad6254c5 AK |
10275 | |
10276 | ;; | |
10277 | esac | |
10278 | fi | |
10279 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 10280 | if test -n "$MSGFMT"; then |
1995c9ff AK |
10281 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
10282 | echo "${ECHO_T}$MSGFMT" >&6; } | |
ad6254c5 | 10283 | else |
1995c9ff AK |
10284 | { echo "$as_me:$LINENO: result: no" >&5 |
10285 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
10286 | fi |
10287 | ||
7a197a62 | 10288 | |
ad6254c5 | 10289 | if [ "x$MSGFMT" == x ]; |
1995c9ff | 10290 | then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 10291 | " >&5 |
1995c9ff | 10292 | echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
10293 | " >&2;} |
10294 | { (exit 1); exit 1; }; } | |
10295 | fi; | |
10296 | ||
10297 | ||
7a197a62 | 10298 | # Check whether --with-localedir was given. |
ad6254c5 | 10299 | if test "${with_localedir+set}" = set; then |
7a197a62 | 10300 | withval=$with_localedir; LOCALEDIR="$withval" |
ad6254c5 AK |
10301 | else |
10302 | LOCALEDIR='${prefix}/share/locale' | |
7a197a62 AK |
10303 | fi |
10304 | ||
ad6254c5 AK |
10305 | fi |
10306 | ||
10307 | ################################################################################ | |
10308 | ||
7a197a62 | 10309 | # Check whether --with-confdir was given. |
ad6254c5 | 10310 | if test "${with_confdir+set}" = set; then |
7a197a62 | 10311 | withval=$with_confdir; CONFDIR="$withval" |
ad6254c5 AK |
10312 | else |
10313 | CONFDIR='/etc' | |
7a197a62 AK |
10314 | fi |
10315 | ||
ad6254c5 AK |
10316 | |
10317 | ||
7a197a62 | 10318 | # Check whether --with-staticdir was given. |
ad6254c5 | 10319 | if test "${with_staticdir+set}" = set; then |
7a197a62 | 10320 | withval=$with_staticdir; STATICDIR="$withval" |
ad6254c5 AK |
10321 | else |
10322 | STATICDIR='${exec_prefix}/sbin' | |
7a197a62 | 10323 | fi |
ad6254c5 | 10324 | |
33f732c5 | 10325 | |
7a197a62 AK |
10326 | |
10327 | # Check whether --with-dmdir was given. | |
33f732c5 | 10328 | if test "${with_dmdir+set}" = set; then |
7a197a62 | 10329 | withval=$with_dmdir; DMDIR="$withval" CPPFLAGS="$CPPFLAGS -I$DMDIR/include" |
33f732c5 AK |
10330 | else |
10331 | DMDIR= | |
7a197a62 AK |
10332 | fi |
10333 | ||
33f732c5 | 10334 | |
09339e2b | 10335 | # Convert a relative dir name to absolute. |
fc54be10 AK |
10336 | case x$DMDIR in |
10337 | x/*) ;; | |
10338 | x) ;; | |
10339 | x*) DMDIR="`pwd`/$DMDIR" ;; | |
09339e2b JM |
10340 | esac |
10341 | ||
ad6254c5 AK |
10342 | ################################################################################ |
10343 | if test x$READLINE = xyes; then | |
10344 | ||
10345 | ||
10346 | for ac_header in readline/readline.h readline/history.h | |
10347 | do | |
1995c9ff | 10348 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10349 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
10350 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10351 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10352 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 10353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10354 | fi |
1995c9ff AK |
10355 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10356 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10357 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10358 | else |
10359 | # Is the header compilable? | |
1995c9ff AK |
10360 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10361 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10362 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10363 | /* confdefs.h. */ |
10364 | _ACEOF | |
10365 | cat confdefs.h >>conftest.$ac_ext | |
10366 | cat >>conftest.$ac_ext <<_ACEOF | |
10367 | /* end confdefs.h. */ | |
10368 | $ac_includes_default | |
10369 | #include <$ac_header> | |
10370 | _ACEOF | |
10371 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10372 | if { (ac_try="$ac_compile" |
10373 | case "(($ac_try" in | |
10374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10375 | *) ac_try_echo=$ac_try;; | |
10376 | esac | |
1995c9ff | 10377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10378 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10379 | ac_status=$? |
8a2fc586 AK |
10380 | grep -v '^ *+' conftest.er1 >conftest.err |
10381 | rm -f conftest.er1 | |
10382 | cat conftest.err >&5 | |
1995c9ff | 10383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
10384 | (exit $ac_status); } && |
10385 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
10386 | { (case "(($ac_try" in | |
10387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10388 | *) ac_try_echo=$ac_try;; | |
10389 | esac | |
10390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10391 | (eval "$ac_try") 2>&5 | |
10392 | ac_status=$? | |
10393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10394 | (exit $ac_status); }; } && | |
10395 | { ac_try='test -s conftest.$ac_objext' | |
10396 | { (case "(($ac_try" in | |
10397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10398 | *) ac_try_echo=$ac_try;; | |
10399 | esac | |
10400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10401 | (eval "$ac_try") 2>&5 | |
10402 | ac_status=$? | |
10403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10404 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
10405 | ac_header_compiler=yes |
10406 | else | |
1995c9ff | 10407 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10408 | sed 's/^/| /' conftest.$ac_ext >&5 |
10409 | ||
7a197a62 | 10410 | ac_header_compiler=no |
ad6254c5 | 10411 | fi |
7a197a62 AK |
10412 | |
10413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
10414 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10415 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10416 | |
10417 | # Is the header present? | |
1995c9ff AK |
10418 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10419 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10420 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10421 | /* confdefs.h. */ |
10422 | _ACEOF | |
10423 | cat confdefs.h >>conftest.$ac_ext | |
10424 | cat >>conftest.$ac_ext <<_ACEOF | |
10425 | /* end confdefs.h. */ | |
10426 | #include <$ac_header> | |
10427 | _ACEOF | |
7a197a62 AK |
10428 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10429 | case "(($ac_try" in | |
10430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10431 | *) ac_try_echo=$ac_try;; | |
10432 | esac | |
1995c9ff | 10433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10434 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10435 | ac_status=$? |
10436 | grep -v '^ *+' conftest.er1 >conftest.err | |
10437 | rm -f conftest.er1 | |
10438 | cat conftest.err >&5 | |
1995c9ff | 10439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
10440 | (exit $ac_status); } >/dev/null; then |
10441 | if test -s conftest.err; then | |
10442 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10443 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10444 | else | |
10445 | ac_cpp_err= | |
10446 | fi | |
10447 | else | |
10448 | ac_cpp_err=yes | |
10449 | fi | |
10450 | if test -z "$ac_cpp_err"; then | |
ad6254c5 AK |
10451 | ac_header_preproc=yes |
10452 | else | |
1995c9ff | 10453 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10454 | sed 's/^/| /' conftest.$ac_ext >&5 |
10455 | ||
10456 | ac_header_preproc=no | |
10457 | fi | |
7a197a62 | 10458 | |
ad6254c5 | 10459 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
10460 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10461 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10462 | |
10463 | # So? What about this header? | |
8a2fc586 AK |
10464 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10465 | yes:no: ) | |
1995c9ff AK |
10466 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10467 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10468 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10469 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10470 | ac_header_preproc=yes |
ad6254c5 | 10471 | ;; |
8a2fc586 | 10472 | no:yes:* ) |
1995c9ff AK |
10473 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10474 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10475 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10476 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10477 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10478 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10479 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10480 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10481 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10482 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10483 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10484 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10485 | |
ad6254c5 AK |
10486 | ;; |
10487 | esac | |
1995c9ff AK |
10488 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10489 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10490 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 10491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10492 | else |
8a2fc586 | 10493 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10494 | fi |
1995c9ff AK |
10495 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10496 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10497 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10498 | |
10499 | fi | |
1995c9ff | 10500 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10501 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 10502 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10503 | _ACEOF |
10504 | ||
10505 | else | |
1995c9ff AK |
10506 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10507 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
10508 | { (exit 1); exit 1; }; } |
10509 | fi | |
10510 | ||
10511 | done | |
10512 | ||
10513 | fi | |
10514 | ||
5c7fc7c4 | 10515 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
10516 | |
10517 | ||
10518 | ||
10519 | ||
10520 | ||
10521 | ||
10522 | ||
10523 | ||
10524 | ||
10525 | ||
10526 | 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 | |
10527 | do | |
1995c9ff | 10528 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10529 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
10530 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10531 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10532 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 10533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10534 | fi |
1995c9ff AK |
10535 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10536 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10537 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10538 | else |
10539 | # Is the header compilable? | |
1995c9ff AK |
10540 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10541 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10542 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10543 | /* confdefs.h. */ |
10544 | _ACEOF | |
10545 | cat confdefs.h >>conftest.$ac_ext | |
10546 | cat >>conftest.$ac_ext <<_ACEOF | |
10547 | /* end confdefs.h. */ | |
10548 | $ac_includes_default | |
10549 | #include <$ac_header> | |
10550 | _ACEOF | |
10551 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10552 | if { (ac_try="$ac_compile" |
10553 | case "(($ac_try" in | |
10554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10555 | *) ac_try_echo=$ac_try;; | |
10556 | esac | |
1995c9ff | 10557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10558 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10559 | ac_status=$? |
8a2fc586 AK |
10560 | grep -v '^ *+' conftest.er1 >conftest.err |
10561 | rm -f conftest.er1 | |
10562 | cat conftest.err >&5 | |
1995c9ff | 10563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
10564 | (exit $ac_status); } && |
10565 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
10566 | { (case "(($ac_try" in | |
10567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10568 | *) ac_try_echo=$ac_try;; | |
10569 | esac | |
10570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10571 | (eval "$ac_try") 2>&5 | |
10572 | ac_status=$? | |
10573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10574 | (exit $ac_status); }; } && | |
10575 | { ac_try='test -s conftest.$ac_objext' | |
10576 | { (case "(($ac_try" in | |
10577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10578 | *) ac_try_echo=$ac_try;; | |
10579 | esac | |
10580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10581 | (eval "$ac_try") 2>&5 | |
10582 | ac_status=$? | |
10583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10584 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
10585 | ac_header_compiler=yes |
10586 | else | |
1995c9ff | 10587 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10588 | sed 's/^/| /' conftest.$ac_ext >&5 |
10589 | ||
7a197a62 | 10590 | ac_header_compiler=no |
ad6254c5 | 10591 | fi |
7a197a62 AK |
10592 | |
10593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
10594 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10595 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10596 | |
10597 | # Is the header present? | |
1995c9ff AK |
10598 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10599 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10600 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10601 | /* confdefs.h. */ |
10602 | _ACEOF | |
10603 | cat confdefs.h >>conftest.$ac_ext | |
10604 | cat >>conftest.$ac_ext <<_ACEOF | |
10605 | /* end confdefs.h. */ | |
10606 | #include <$ac_header> | |
10607 | _ACEOF | |
7a197a62 AK |
10608 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10609 | case "(($ac_try" in | |
10610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10611 | *) ac_try_echo=$ac_try;; | |
10612 | esac | |
1995c9ff | 10613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10614 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10615 | ac_status=$? |
10616 | grep -v '^ *+' conftest.er1 >conftest.err | |
10617 | rm -f conftest.er1 | |
10618 | cat conftest.err >&5 | |
1995c9ff | 10619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
10620 | (exit $ac_status); } >/dev/null; then |
10621 | if test -s conftest.err; then | |
10622 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10623 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10624 | else | |
10625 | ac_cpp_err= | |
10626 | fi | |
10627 | else | |
10628 | ac_cpp_err=yes | |
10629 | fi | |
10630 | if test -z "$ac_cpp_err"; then | |
ad6254c5 AK |
10631 | ac_header_preproc=yes |
10632 | else | |
1995c9ff | 10633 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10634 | sed 's/^/| /' conftest.$ac_ext >&5 |
10635 | ||
10636 | ac_header_preproc=no | |
10637 | fi | |
7a197a62 | 10638 | |
ad6254c5 | 10639 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
10640 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10641 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10642 | |
10643 | # So? What about this header? | |
8a2fc586 AK |
10644 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10645 | yes:no: ) | |
1995c9ff AK |
10646 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10647 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10648 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10649 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10650 | ac_header_preproc=yes |
ad6254c5 | 10651 | ;; |
8a2fc586 | 10652 | no:yes:* ) |
1995c9ff AK |
10653 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10654 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10655 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10656 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10657 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10658 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10659 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10660 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10661 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10662 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10663 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10664 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10665 | |
ad6254c5 AK |
10666 | ;; |
10667 | esac | |
1995c9ff AK |
10668 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10669 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10670 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 10671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10672 | else |
8a2fc586 | 10673 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10674 | fi |
1995c9ff AK |
10675 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10676 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10677 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10678 | |
10679 | fi | |
1995c9ff | 10680 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10681 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 10682 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10683 | _ACEOF |
10684 | ||
10685 | else | |
1995c9ff AK |
10686 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10687 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10688 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
10689 | fi |
10690 | ||
ad6254c5 AK |
10691 | done |
10692 | ||
10693 | ||
795ca3e5 | 10694 | |
8106cdd5 | 10695 | |
ad6254c5 AK |
10696 | |
10697 | ||
10698 | for ac_func in dup2 getmntent memmove select socket | |
10699 | do | |
1995c9ff AK |
10700 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10701 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10702 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 10703 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 10704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 10705 | else |
ad6254c5 | 10706 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10707 | /* confdefs.h. */ |
10708 | _ACEOF | |
10709 | cat confdefs.h >>conftest.$ac_ext | |
10710 | cat >>conftest.$ac_ext <<_ACEOF | |
10711 | /* end confdefs.h. */ | |
8a2fc586 AK |
10712 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10713 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10714 | #define $ac_func innocuous_$ac_func | |
10715 | ||
795ca3e5 | 10716 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
10717 | which can conflict with char $ac_func (); below. |
10718 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10719 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10720 | |
ad6254c5 AK |
10721 | #ifdef __STDC__ |
10722 | # include <limits.h> | |
10723 | #else | |
10724 | # include <assert.h> | |
10725 | #endif | |
8a2fc586 AK |
10726 | |
10727 | #undef $ac_func | |
10728 | ||
7a197a62 AK |
10729 | /* Override any GCC internal prototype to avoid an error. |
10730 | Use char because int might match the return type of a GCC | |
10731 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10732 | #ifdef __cplusplus |
10733 | extern "C" | |
ad6254c5 | 10734 | #endif |
ad6254c5 | 10735 | char $ac_func (); |
795ca3e5 AK |
10736 | /* The GNU C library defines this for functions which it implements |
10737 | to always fail with ENOSYS. Some functions are actually named | |
10738 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10739 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 10740 | choke me |
795ca3e5 AK |
10741 | #endif |
10742 | ||
ad6254c5 AK |
10743 | int |
10744 | main () | |
10745 | { | |
7a197a62 | 10746 | return $ac_func (); |
ad6254c5 AK |
10747 | ; |
10748 | return 0; | |
10749 | } | |
10750 | _ACEOF | |
10751 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10752 | if { (ac_try="$ac_link" |
10753 | case "(($ac_try" in | |
10754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10755 | *) ac_try_echo=$ac_try;; | |
10756 | esac | |
1995c9ff | 10757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10758 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10759 | ac_status=$? |
8a2fc586 AK |
10760 | grep -v '^ *+' conftest.er1 >conftest.err |
10761 | rm -f conftest.er1 | |
10762 | cat conftest.err >&5 | |
1995c9ff | 10763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
10764 | (exit $ac_status); } && |
10765 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
10766 | { (case "(($ac_try" in | |
10767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10768 | *) ac_try_echo=$ac_try;; | |
10769 | esac | |
10770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10771 | (eval "$ac_try") 2>&5 | |
10772 | ac_status=$? | |
10773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10774 | (exit $ac_status); }; } && | |
10775 | { ac_try='test -s conftest$ac_exeext' | |
10776 | { (case "(($ac_try" in | |
10777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10778 | *) ac_try_echo=$ac_try;; | |
10779 | esac | |
10780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10781 | (eval "$ac_try") 2>&5 | |
10782 | ac_status=$? | |
10783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10784 | (exit $ac_status); }; }; then | |
ad6254c5 | 10785 | eval "$as_ac_var=yes" |
795ca3e5 | 10786 | else |
1995c9ff | 10787 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10788 | sed 's/^/| /' conftest.$ac_ext >&5 |
10789 | ||
7a197a62 | 10790 | eval "$as_ac_var=no" |
80992638 | 10791 | fi |
7a197a62 | 10792 | |
fc54be10 | 10793 | rm -f core conftest.err conftest.$ac_objext \ |
8a2fc586 | 10794 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 10795 | fi |
1995c9ff AK |
10796 | ac_res=`eval echo '${'$as_ac_var'}'` |
10797 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10798 | echo "${ECHO_T}$ac_res" >&6; } | |
10799 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 10800 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 10801 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 10802 | _ACEOF |
80992638 AK |
10803 | |
10804 | else | |
1995c9ff AK |
10805 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10806 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10807 | { (exit 1); exit 1; }; } |
8106cdd5 | 10808 | fi |
ad6254c5 | 10809 | done |
795ca3e5 | 10810 | |
fc54be10 AK |
10811 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
10812 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
10813 | { echo "$as_me:$LINENO: checking for library containing getmntent" >&5 | |
10814 | echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; } | |
10815 | if test "${ac_cv_search_getmntent+set}" = set; then | |
10816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10817 | else | |
10818 | ac_func_search_save_LIBS=$LIBS | |
10819 | cat >conftest.$ac_ext <<_ACEOF | |
10820 | /* confdefs.h. */ | |
10821 | _ACEOF | |
10822 | cat confdefs.h >>conftest.$ac_ext | |
10823 | cat >>conftest.$ac_ext <<_ACEOF | |
10824 | /* end confdefs.h. */ | |
10825 | ||
10826 | /* Override any GCC internal prototype to avoid an error. | |
10827 | Use char because int might match the return type of a GCC | |
10828 | builtin and then its argument prototype would still apply. */ | |
10829 | #ifdef __cplusplus | |
10830 | extern "C" | |
10831 | #endif | |
10832 | char getmntent (); | |
10833 | int | |
10834 | main () | |
10835 | { | |
10836 | return getmntent (); | |
10837 | ; | |
10838 | return 0; | |
10839 | } | |
10840 | _ACEOF | |
10841 | for ac_lib in '' sun seq gen; do | |
10842 | if test -z "$ac_lib"; then | |
10843 | ac_res="none required" | |
10844 | else | |
10845 | ac_res=-l$ac_lib | |
10846 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10847 | fi | |
10848 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10849 | if { (ac_try="$ac_link" | |
10850 | case "(($ac_try" in | |
10851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10852 | *) ac_try_echo=$ac_try;; | |
10853 | esac | |
10854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10855 | (eval "$ac_link") 2>conftest.er1 | |
10856 | ac_status=$? | |
10857 | grep -v '^ *+' conftest.er1 >conftest.err | |
10858 | rm -f conftest.er1 | |
10859 | cat conftest.err >&5 | |
10860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10861 | (exit $ac_status); } && | |
10862 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
10863 | { (case "(($ac_try" in | |
10864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10865 | *) ac_try_echo=$ac_try;; | |
10866 | esac | |
10867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10868 | (eval "$ac_try") 2>&5 | |
10869 | ac_status=$? | |
10870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10871 | (exit $ac_status); }; } && | |
10872 | { ac_try='test -s conftest$ac_exeext' | |
10873 | { (case "(($ac_try" in | |
10874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10875 | *) ac_try_echo=$ac_try;; | |
10876 | esac | |
10877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10878 | (eval "$ac_try") 2>&5 | |
10879 | ac_status=$? | |
10880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10881 | (exit $ac_status); }; }; then | |
10882 | ac_cv_search_getmntent=$ac_res | |
10883 | else | |
10884 | echo "$as_me: failed program was:" >&5 | |
10885 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10886 | ||
10887 | ||
10888 | fi | |
10889 | ||
10890 | rm -f core conftest.err conftest.$ac_objext \ | |
10891 | conftest$ac_exeext | |
10892 | if test "${ac_cv_search_getmntent+set}" = set; then | |
10893 | break | |
10894 | fi | |
10895 | done | |
10896 | if test "${ac_cv_search_getmntent+set}" = set; then | |
10897 | : | |
10898 | else | |
10899 | ac_cv_search_getmntent=no | |
10900 | fi | |
10901 | rm conftest.$ac_ext | |
10902 | LIBS=$ac_func_search_save_LIBS | |
10903 | fi | |
10904 | { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 | |
10905 | echo "${ECHO_T}$ac_cv_search_getmntent" >&6; } | |
10906 | ac_res=$ac_cv_search_getmntent | |
10907 | if test "$ac_res" != no; then | |
10908 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
10909 | ||
10910 | fi | |
10911 | ||
10912 | ||
10913 | for ac_func in getmntent | |
10914 | do | |
10915 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10916 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10917 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10918 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
10919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10920 | else | |
10921 | cat >conftest.$ac_ext <<_ACEOF | |
10922 | /* confdefs.h. */ | |
10923 | _ACEOF | |
10924 | cat confdefs.h >>conftest.$ac_ext | |
10925 | cat >>conftest.$ac_ext <<_ACEOF | |
10926 | /* end confdefs.h. */ | |
10927 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10928 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10929 | #define $ac_func innocuous_$ac_func | |
10930 | ||
10931 | /* System header to define __stub macros and hopefully few prototypes, | |
10932 | which can conflict with char $ac_func (); below. | |
10933 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10934 | <limits.h> exists even on freestanding compilers. */ | |
10935 | ||
10936 | #ifdef __STDC__ | |
10937 | # include <limits.h> | |
10938 | #else | |
10939 | # include <assert.h> | |
10940 | #endif | |
10941 | ||
10942 | #undef $ac_func | |
80992638 | 10943 | |
7a197a62 AK |
10944 | /* Override any GCC internal prototype to avoid an error. |
10945 | Use char because int might match the return type of a GCC | |
ad6254c5 | 10946 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
10947 | #ifdef __cplusplus |
10948 | extern "C" | |
10949 | #endif | |
fc54be10 AK |
10950 | char $ac_func (); |
10951 | /* The GNU C library defines this for functions which it implements | |
10952 | to always fail with ENOSYS. Some functions are actually named | |
10953 | something starting with __ and the normal name is an alias. */ | |
10954 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
10955 | choke me | |
10956 | #endif | |
10957 | ||
ad6254c5 AK |
10958 | int |
10959 | main () | |
10960 | { | |
fc54be10 | 10961 | return $ac_func (); |
ad6254c5 AK |
10962 | ; |
10963 | return 0; | |
10964 | } | |
10965 | _ACEOF | |
fc54be10 | 10966 | rm -f conftest.$ac_objext conftest$ac_exeext |
7a197a62 AK |
10967 | if { (ac_try="$ac_link" |
10968 | case "(($ac_try" in | |
10969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10970 | *) ac_try_echo=$ac_try;; | |
10971 | esac | |
1995c9ff | 10972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10973 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10974 | ac_status=$? |
8a2fc586 AK |
10975 | grep -v '^ *+' conftest.er1 >conftest.err |
10976 | rm -f conftest.er1 | |
10977 | cat conftest.err >&5 | |
1995c9ff | 10978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
10979 | (exit $ac_status); } && |
10980 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
10981 | { (case "(($ac_try" in | |
10982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10983 | *) ac_try_echo=$ac_try;; | |
10984 | esac | |
10985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10986 | (eval "$ac_try") 2>&5 | |
10987 | ac_status=$? | |
10988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10989 | (exit $ac_status); }; } && | |
10990 | { ac_try='test -s conftest$ac_exeext' | |
10991 | { (case "(($ac_try" in | |
10992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10993 | *) ac_try_echo=$ac_try;; | |
10994 | esac | |
10995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10996 | (eval "$ac_try") 2>&5 | |
10997 | ac_status=$? | |
10998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10999 | (exit $ac_status); }; }; then | |
11000 | eval "$as_ac_var=yes" | |
80992638 | 11001 | else |
1995c9ff | 11002 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11003 | sed 's/^/| /' conftest.$ac_ext >&5 |
11004 | ||
fc54be10 | 11005 | eval "$as_ac_var=no" |
795ca3e5 AK |
11006 | fi |
11007 | ||
fc54be10 AK |
11008 | rm -f core conftest.err conftest.$ac_objext \ |
11009 | conftest$ac_exeext conftest.$ac_ext | |
795ca3e5 | 11010 | fi |
fc54be10 AK |
11011 | ac_res=`eval echo '${'$as_ac_var'}'` |
11012 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11013 | echo "${ECHO_T}$ac_res" >&6; } | |
11014 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
11015 | cat >>confdefs.h <<_ACEOF | |
11016 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
ad6254c5 | 11017 | _ACEOF |
795ca3e5 | 11018 | |
795ca3e5 | 11019 | fi |
fc54be10 | 11020 | done |
795ca3e5 AK |
11021 | |
11022 | ||
ad6254c5 AK |
11023 | # AC_FUNC_REALLOC |
11024 | ||
11025 | ||
11026 | for ac_header in sys/select.h sys/socket.h | |
11027 | do | |
1995c9ff | 11028 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11029 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
11030 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11031 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11032 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 11033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11034 | fi |
1995c9ff AK |
11035 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11036 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11037 | echo "${ECHO_T}$ac_res" >&6; } | |
795ca3e5 | 11038 | else |
ad6254c5 | 11039 | # Is the header compilable? |
1995c9ff AK |
11040 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11041 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 11042 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11043 | /* confdefs.h. */ |
11044 | _ACEOF | |
11045 | cat confdefs.h >>conftest.$ac_ext | |
11046 | cat >>conftest.$ac_ext <<_ACEOF | |
11047 | /* end confdefs.h. */ | |
11048 | $ac_includes_default | |
11049 | #include <$ac_header> | |
11050 | _ACEOF | |
11051 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11052 | if { (ac_try="$ac_compile" |
11053 | case "(($ac_try" in | |
11054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11055 | *) ac_try_echo=$ac_try;; | |
11056 | esac | |
1995c9ff | 11057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11058 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11059 | ac_status=$? |
8a2fc586 AK |
11060 | grep -v '^ *+' conftest.er1 >conftest.err |
11061 | rm -f conftest.er1 | |
11062 | cat conftest.err >&5 | |
1995c9ff | 11063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
11064 | (exit $ac_status); } && |
11065 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
11066 | { (case "(($ac_try" in | |
11067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11068 | *) ac_try_echo=$ac_try;; | |
11069 | esac | |
11070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11071 | (eval "$ac_try") 2>&5 | |
11072 | ac_status=$? | |
11073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11074 | (exit $ac_status); }; } && | |
11075 | { ac_try='test -s conftest.$ac_objext' | |
11076 | { (case "(($ac_try" in | |
11077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11078 | *) ac_try_echo=$ac_try;; | |
11079 | esac | |
11080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11081 | (eval "$ac_try") 2>&5 | |
11082 | ac_status=$? | |
11083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11084 | (exit $ac_status); }; }; then | |
ad6254c5 | 11085 | ac_header_compiler=yes |
80992638 | 11086 | else |
1995c9ff | 11087 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11088 | sed 's/^/| /' conftest.$ac_ext >&5 |
11089 | ||
7a197a62 | 11090 | ac_header_compiler=no |
ad6254c5 | 11091 | fi |
7a197a62 AK |
11092 | |
11093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
11094 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11095 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11096 | |
11097 | # Is the header present? | |
1995c9ff AK |
11098 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11099 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 11100 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11101 | /* confdefs.h. */ |
11102 | _ACEOF | |
11103 | cat confdefs.h >>conftest.$ac_ext | |
11104 | cat >>conftest.$ac_ext <<_ACEOF | |
11105 | /* end confdefs.h. */ | |
11106 | #include <$ac_header> | |
11107 | _ACEOF | |
7a197a62 AK |
11108 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11109 | case "(($ac_try" in | |
11110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11111 | *) ac_try_echo=$ac_try;; | |
11112 | esac | |
1995c9ff | 11113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11114 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11115 | ac_status=$? |
11116 | grep -v '^ *+' conftest.er1 >conftest.err | |
11117 | rm -f conftest.er1 | |
11118 | cat conftest.err >&5 | |
1995c9ff | 11119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
11120 | (exit $ac_status); } >/dev/null; then |
11121 | if test -s conftest.err; then | |
11122 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11123 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11124 | else | |
11125 | ac_cpp_err= | |
11126 | fi | |
11127 | else | |
11128 | ac_cpp_err=yes | |
11129 | fi | |
11130 | if test -z "$ac_cpp_err"; then | |
ad6254c5 AK |
11131 | ac_header_preproc=yes |
11132 | else | |
1995c9ff | 11133 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11134 | sed 's/^/| /' conftest.$ac_ext >&5 |
11135 | ||
11136 | ac_header_preproc=no | |
11137 | fi | |
7a197a62 | 11138 | |
ad6254c5 | 11139 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
11140 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11141 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11142 | |
11143 | # So? What about this header? | |
8a2fc586 AK |
11144 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11145 | yes:no: ) | |
1995c9ff AK |
11146 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11147 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11148 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11149 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11150 | ac_header_preproc=yes |
ad6254c5 | 11151 | ;; |
8a2fc586 | 11152 | no:yes:* ) |
1995c9ff AK |
11153 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11154 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11155 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11156 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11157 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11158 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11159 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11160 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11161 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11162 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11163 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11164 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11165 | |
ad6254c5 AK |
11166 | ;; |
11167 | esac | |
1995c9ff AK |
11168 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11169 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11170 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 11171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11172 | else |
8a2fc586 | 11173 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 11174 | fi |
1995c9ff AK |
11175 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11176 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11177 | echo "${ECHO_T}$ac_res" >&6; } | |
8106cdd5 | 11178 | |
795ca3e5 | 11179 | fi |
1995c9ff | 11180 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 11181 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 11182 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
11183 | _ACEOF |
11184 | ||
795ca3e5 AK |
11185 | fi |
11186 | ||
ad6254c5 AK |
11187 | done |
11188 | ||
1995c9ff AK |
11189 | { echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
11190 | echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; } | |
ad6254c5 | 11191 | if test "${ac_cv_func_select_args+set}" = set; then |
1995c9ff | 11192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
26e7f2e0 | 11193 | else |
ad6254c5 | 11194 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 11195 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
11196 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
11197 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
11198 | /* confdefs.h. */ |
11199 | _ACEOF | |
11200 | cat confdefs.h >>conftest.$ac_ext | |
11201 | cat >>conftest.$ac_ext <<_ACEOF | |
11202 | /* end confdefs.h. */ | |
11203 | $ac_includes_default | |
fc54be10 | 11204 | #if HAVE_SYS_SELECT_H |
ad6254c5 AK |
11205 | # include <sys/select.h> |
11206 | #endif | |
fc54be10 | 11207 | #if HAVE_SYS_SOCKET_H |
ad6254c5 AK |
11208 | # include <sys/socket.h> |
11209 | #endif | |
11210 | ||
11211 | int | |
11212 | main () | |
11213 | { | |
11214 | extern int select ($ac_arg1, | |
8a2fc586 AK |
11215 | $ac_arg234, $ac_arg234, $ac_arg234, |
11216 | $ac_arg5); | |
ad6254c5 AK |
11217 | ; |
11218 | return 0; | |
11219 | } | |
11220 | _ACEOF | |
11221 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11222 | if { (ac_try="$ac_compile" |
11223 | case "(($ac_try" in | |
11224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11225 | *) ac_try_echo=$ac_try;; | |
11226 | esac | |
1995c9ff | 11227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11228 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11229 | ac_status=$? |
8a2fc586 AK |
11230 | grep -v '^ *+' conftest.er1 >conftest.err |
11231 | rm -f conftest.er1 | |
11232 | cat conftest.err >&5 | |
1995c9ff | 11233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
11234 | (exit $ac_status); } && |
11235 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
11236 | { (case "(($ac_try" in | |
11237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11238 | *) ac_try_echo=$ac_try;; | |
11239 | esac | |
11240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11241 | (eval "$ac_try") 2>&5 | |
11242 | ac_status=$? | |
11243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11244 | (exit $ac_status); }; } && | |
11245 | { ac_try='test -s conftest.$ac_objext' | |
11246 | { (case "(($ac_try" in | |
11247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11248 | *) ac_try_echo=$ac_try;; | |
11249 | esac | |
11250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11251 | (eval "$ac_try") 2>&5 | |
11252 | ac_status=$? | |
11253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11254 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
11255 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
11256 | else | |
1995c9ff | 11257 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11258 | sed 's/^/| /' conftest.$ac_ext >&5 |
11259 | ||
7a197a62 | 11260 | |
ad6254c5 | 11261 | fi |
7a197a62 AK |
11262 | |
11263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
11264 | done |
11265 | done | |
11266 | done | |
11267 | # Provide a safe default value. | |
11268 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
11269 | ||
26e7f2e0 | 11270 | fi |
1995c9ff AK |
11271 | { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
11272 | echo "${ECHO_T}$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
11273 | ac_save_IFS=$IFS; IFS=',' |
11274 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
11275 | IFS=$ac_save_IFS | |
11276 | shift | |
11277 | ||
11278 | cat >>confdefs.h <<_ACEOF | |
11279 | #define SELECT_TYPE_ARG1 $1 | |
11280 | _ACEOF | |
11281 | ||
11282 | ||
11283 | cat >>confdefs.h <<_ACEOF | |
11284 | #define SELECT_TYPE_ARG234 ($2) | |
11285 | _ACEOF | |
11286 | ||
11287 | ||
11288 | cat >>confdefs.h <<_ACEOF | |
11289 | #define SELECT_TYPE_ARG5 ($3) | |
11290 | _ACEOF | |
11291 | ||
80992638 | 11292 | rm -f conftest* |
80992638 | 11293 | |
8106cdd5 | 11294 | fi |
ad6254c5 | 11295 | |
ad6254c5 AK |
11296 | if test x$CLUSTER != xnone; then |
11297 | ||
11298 | ||
11299 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 11300 | do |
1995c9ff | 11301 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11302 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
11303 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11304 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11305 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 11306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11307 | fi |
1995c9ff AK |
11308 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11309 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11310 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
11311 | else |
11312 | # Is the header compilable? | |
1995c9ff AK |
11313 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11314 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 11315 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11316 | /* confdefs.h. */ |
11317 | _ACEOF | |
11318 | cat confdefs.h >>conftest.$ac_ext | |
11319 | cat >>conftest.$ac_ext <<_ACEOF | |
11320 | /* end confdefs.h. */ | |
11321 | $ac_includes_default | |
11322 | #include <$ac_header> | |
11323 | _ACEOF | |
11324 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11325 | if { (ac_try="$ac_compile" |
11326 | case "(($ac_try" in | |
11327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11328 | *) ac_try_echo=$ac_try;; | |
11329 | esac | |
1995c9ff | 11330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11331 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11332 | ac_status=$? |
8a2fc586 AK |
11333 | grep -v '^ *+' conftest.er1 >conftest.err |
11334 | rm -f conftest.er1 | |
11335 | cat conftest.err >&5 | |
1995c9ff | 11336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
11337 | (exit $ac_status); } && |
11338 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
11339 | { (case "(($ac_try" in | |
11340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11341 | *) ac_try_echo=$ac_try;; | |
11342 | esac | |
11343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11344 | (eval "$ac_try") 2>&5 | |
11345 | ac_status=$? | |
11346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11347 | (exit $ac_status); }; } && | |
11348 | { ac_try='test -s conftest.$ac_objext' | |
11349 | { (case "(($ac_try" in | |
11350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11351 | *) ac_try_echo=$ac_try;; | |
11352 | esac | |
11353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11354 | (eval "$ac_try") 2>&5 | |
11355 | ac_status=$? | |
11356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11357 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
11358 | ac_header_compiler=yes |
11359 | else | |
1995c9ff | 11360 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11361 | sed 's/^/| /' conftest.$ac_ext >&5 |
11362 | ||
7a197a62 | 11363 | ac_header_compiler=no |
ad6254c5 | 11364 | fi |
7a197a62 AK |
11365 | |
11366 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
11367 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11368 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11369 | |
11370 | # Is the header present? | |
1995c9ff AK |
11371 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11372 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 11373 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11374 | /* confdefs.h. */ |
11375 | _ACEOF | |
11376 | cat confdefs.h >>conftest.$ac_ext | |
11377 | cat >>conftest.$ac_ext <<_ACEOF | |
11378 | /* end confdefs.h. */ | |
11379 | #include <$ac_header> | |
11380 | _ACEOF | |
7a197a62 AK |
11381 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11382 | case "(($ac_try" in | |
11383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11384 | *) ac_try_echo=$ac_try;; | |
11385 | esac | |
1995c9ff | 11386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11387 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11388 | ac_status=$? |
11389 | grep -v '^ *+' conftest.er1 >conftest.err | |
11390 | rm -f conftest.er1 | |
11391 | cat conftest.err >&5 | |
1995c9ff | 11392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
11393 | (exit $ac_status); } >/dev/null; then |
11394 | if test -s conftest.err; then | |
11395 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11396 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11397 | else | |
11398 | ac_cpp_err= | |
11399 | fi | |
11400 | else | |
11401 | ac_cpp_err=yes | |
11402 | fi | |
11403 | if test -z "$ac_cpp_err"; then | |
ad6254c5 AK |
11404 | ac_header_preproc=yes |
11405 | else | |
1995c9ff | 11406 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11407 | sed 's/^/| /' conftest.$ac_ext >&5 |
11408 | ||
11409 | ac_header_preproc=no | |
11410 | fi | |
7a197a62 | 11411 | |
ad6254c5 | 11412 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
11413 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11414 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11415 | |
11416 | # So? What about this header? | |
8a2fc586 AK |
11417 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11418 | yes:no: ) | |
1995c9ff AK |
11419 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11420 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11421 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11422 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11423 | ac_header_preproc=yes |
ad6254c5 | 11424 | ;; |
8a2fc586 | 11425 | no:yes:* ) |
1995c9ff AK |
11426 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11427 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11428 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11429 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11430 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11431 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11432 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11433 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11434 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11435 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11436 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11437 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11438 | |
ad6254c5 AK |
11439 | ;; |
11440 | esac | |
1995c9ff AK |
11441 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11442 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11443 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 11444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11445 | else |
8a2fc586 | 11446 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 11447 | fi |
1995c9ff AK |
11448 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11449 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11450 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
11451 | |
11452 | fi | |
1995c9ff | 11453 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 11454 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 11455 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
11456 | _ACEOF |
11457 | ||
80992638 | 11458 | else |
1995c9ff AK |
11459 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11460 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11461 | { (exit 1); exit 1; }; } |
b896caa1 | 11462 | fi |
ad6254c5 | 11463 | |
b896caa1 AK |
11464 | done |
11465 | ||
11466 | ||
ad6254c5 AK |
11467 | for ac_func in socket |
11468 | do | |
1995c9ff AK |
11469 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
11470 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11471 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 11472 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 11473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 11474 | else |
ad6254c5 | 11475 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11476 | /* confdefs.h. */ |
11477 | _ACEOF | |
11478 | cat confdefs.h >>conftest.$ac_ext | |
11479 | cat >>conftest.$ac_ext <<_ACEOF | |
11480 | /* end confdefs.h. */ | |
8a2fc586 AK |
11481 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11482 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11483 | #define $ac_func innocuous_$ac_func | |
11484 | ||
ad6254c5 AK |
11485 | /* System header to define __stub macros and hopefully few prototypes, |
11486 | which can conflict with char $ac_func (); below. | |
11487 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11488 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 11489 | |
ad6254c5 AK |
11490 | #ifdef __STDC__ |
11491 | # include <limits.h> | |
11492 | #else | |
11493 | # include <assert.h> | |
11494 | #endif | |
8a2fc586 AK |
11495 | |
11496 | #undef $ac_func | |
11497 | ||
7a197a62 AK |
11498 | /* Override any GCC internal prototype to avoid an error. |
11499 | Use char because int might match the return type of a GCC | |
11500 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
11501 | #ifdef __cplusplus |
11502 | extern "C" | |
ad6254c5 | 11503 | #endif |
ad6254c5 AK |
11504 | char $ac_func (); |
11505 | /* The GNU C library defines this for functions which it implements | |
11506 | to always fail with ENOSYS. Some functions are actually named | |
11507 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 11508 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 11509 | choke me |
ad6254c5 AK |
11510 | #endif |
11511 | ||
11512 | int | |
11513 | main () | |
11514 | { | |
7a197a62 | 11515 | return $ac_func (); |
ad6254c5 AK |
11516 | ; |
11517 | return 0; | |
11518 | } | |
11519 | _ACEOF | |
11520 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
11521 | if { (ac_try="$ac_link" |
11522 | case "(($ac_try" in | |
11523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11524 | *) ac_try_echo=$ac_try;; | |
11525 | esac | |
1995c9ff | 11526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11527 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 11528 | ac_status=$? |
8a2fc586 AK |
11529 | grep -v '^ *+' conftest.er1 >conftest.err |
11530 | rm -f conftest.er1 | |
11531 | cat conftest.err >&5 | |
1995c9ff | 11532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
11533 | (exit $ac_status); } && |
11534 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
11535 | { (case "(($ac_try" in | |
11536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11537 | *) ac_try_echo=$ac_try;; | |
11538 | esac | |
11539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11540 | (eval "$ac_try") 2>&5 | |
11541 | ac_status=$? | |
11542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11543 | (exit $ac_status); }; } && | |
11544 | { ac_try='test -s conftest$ac_exeext' | |
11545 | { (case "(($ac_try" in | |
11546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11547 | *) ac_try_echo=$ac_try;; | |
11548 | esac | |
11549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11550 | (eval "$ac_try") 2>&5 | |
11551 | ac_status=$? | |
11552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11553 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
11554 | eval "$as_ac_var=yes" |
11555 | else | |
1995c9ff | 11556 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11557 | sed 's/^/| /' conftest.$ac_ext >&5 |
11558 | ||
7a197a62 | 11559 | eval "$as_ac_var=no" |
ad6254c5 | 11560 | fi |
7a197a62 | 11561 | |
fc54be10 | 11562 | rm -f core conftest.err conftest.$ac_objext \ |
8a2fc586 | 11563 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 11564 | fi |
1995c9ff AK |
11565 | ac_res=`eval echo '${'$as_ac_var'}'` |
11566 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11567 | echo "${ECHO_T}$ac_res" >&6; } | |
11568 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 11569 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 11570 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
11571 | _ACEOF |
11572 | ||
11573 | else | |
1995c9ff AK |
11574 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11575 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
11576 | { (exit 1); exit 1; }; } |
11577 | fi | |
11578 | done | |
11579 | ||
11580 | fi | |
11581 | ||
11582 | if test x$HAVE_LIBDL = xyes; then | |
11583 | ||
11584 | for ac_header in dlfcn.h | |
11585 | do | |
1995c9ff | 11586 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11587 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
11588 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11589 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11590 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 11591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11592 | fi |
1995c9ff AK |
11593 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11594 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11595 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
11596 | else |
11597 | # Is the header compilable? | |
1995c9ff AK |
11598 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11599 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 11600 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11601 | /* confdefs.h. */ |
11602 | _ACEOF | |
11603 | cat confdefs.h >>conftest.$ac_ext | |
11604 | cat >>conftest.$ac_ext <<_ACEOF | |
11605 | /* end confdefs.h. */ | |
11606 | $ac_includes_default | |
11607 | #include <$ac_header> | |
11608 | _ACEOF | |
11609 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11610 | if { (ac_try="$ac_compile" |
11611 | case "(($ac_try" in | |
11612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11613 | *) ac_try_echo=$ac_try;; | |
11614 | esac | |
1995c9ff | 11615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11616 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11617 | ac_status=$? |
8a2fc586 AK |
11618 | grep -v '^ *+' conftest.er1 >conftest.err |
11619 | rm -f conftest.er1 | |
11620 | cat conftest.err >&5 | |
1995c9ff | 11621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
11622 | (exit $ac_status); } && |
11623 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
11624 | { (case "(($ac_try" in | |
11625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11626 | *) ac_try_echo=$ac_try;; | |
11627 | esac | |
11628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11629 | (eval "$ac_try") 2>&5 | |
11630 | ac_status=$? | |
11631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11632 | (exit $ac_status); }; } && | |
11633 | { ac_try='test -s conftest.$ac_objext' | |
11634 | { (case "(($ac_try" in | |
11635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11636 | *) ac_try_echo=$ac_try;; | |
11637 | esac | |
11638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11639 | (eval "$ac_try") 2>&5 | |
11640 | ac_status=$? | |
11641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11642 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
11643 | ac_header_compiler=yes |
11644 | else | |
1995c9ff | 11645 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11646 | sed 's/^/| /' conftest.$ac_ext >&5 |
11647 | ||
7a197a62 | 11648 | ac_header_compiler=no |
ad6254c5 | 11649 | fi |
7a197a62 AK |
11650 | |
11651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
11652 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11653 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11654 | |
11655 | # Is the header present? | |
1995c9ff AK |
11656 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11657 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 11658 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11659 | /* confdefs.h. */ |
11660 | _ACEOF | |
11661 | cat confdefs.h >>conftest.$ac_ext | |
11662 | cat >>conftest.$ac_ext <<_ACEOF | |
11663 | /* end confdefs.h. */ | |
11664 | #include <$ac_header> | |
11665 | _ACEOF | |
7a197a62 AK |
11666 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11667 | case "(($ac_try" in | |
11668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11669 | *) ac_try_echo=$ac_try;; | |
11670 | esac | |
1995c9ff | 11671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11672 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11673 | ac_status=$? |
11674 | grep -v '^ *+' conftest.er1 >conftest.err | |
11675 | rm -f conftest.er1 | |
11676 | cat conftest.err >&5 | |
1995c9ff | 11677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
11678 | (exit $ac_status); } >/dev/null; then |
11679 | if test -s conftest.err; then | |
11680 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11681 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11682 | else | |
11683 | ac_cpp_err= | |
11684 | fi | |
11685 | else | |
11686 | ac_cpp_err=yes | |
11687 | fi | |
11688 | if test -z "$ac_cpp_err"; then | |
ad6254c5 AK |
11689 | ac_header_preproc=yes |
11690 | else | |
1995c9ff | 11691 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11692 | sed 's/^/| /' conftest.$ac_ext >&5 |
11693 | ||
11694 | ac_header_preproc=no | |
11695 | fi | |
7a197a62 | 11696 | |
ad6254c5 | 11697 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
11698 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11699 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11700 | |
11701 | # So? What about this header? | |
8a2fc586 AK |
11702 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11703 | yes:no: ) | |
1995c9ff AK |
11704 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11705 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11706 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11707 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11708 | ac_header_preproc=yes |
ad6254c5 | 11709 | ;; |
8a2fc586 | 11710 | no:yes:* ) |
1995c9ff AK |
11711 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11712 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11713 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11714 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11715 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11716 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11717 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11718 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11719 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11720 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11721 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11722 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11723 | |
ad6254c5 AK |
11724 | ;; |
11725 | esac | |
1995c9ff AK |
11726 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11727 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11728 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 11729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11730 | else |
8a2fc586 | 11731 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 11732 | fi |
1995c9ff AK |
11733 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11734 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11735 | echo "${ECHO_T}$ac_res" >&6; } | |
80992638 | 11736 | |
8106cdd5 | 11737 | fi |
1995c9ff | 11738 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 11739 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 11740 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11741 | _ACEOF |
795ca3e5 AK |
11742 | |
11743 | else | |
1995c9ff AK |
11744 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11745 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11746 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
11747 | fi |
11748 | ||
ad6254c5 | 11749 | done |
80992638 | 11750 | |
ad6254c5 | 11751 | fi |
80992638 | 11752 | |
ad6254c5 | 11753 | if test x$INTL = xyes; then |
83912faa | 11754 | |
ad6254c5 AK |
11755 | for ac_header in libintl.h |
11756 | do | |
1995c9ff | 11757 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11758 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
11759 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11760 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11761 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 11762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11763 | fi |
1995c9ff AK |
11764 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11765 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11766 | echo "${ECHO_T}$ac_res" >&6; } | |
83912faa | 11767 | else |
ad6254c5 | 11768 | # Is the header compilable? |
1995c9ff AK |
11769 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11770 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 11771 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11772 | /* confdefs.h. */ |
11773 | _ACEOF | |
11774 | cat confdefs.h >>conftest.$ac_ext | |
11775 | cat >>conftest.$ac_ext <<_ACEOF | |
11776 | /* end confdefs.h. */ | |
11777 | $ac_includes_default | |
11778 | #include <$ac_header> | |
11779 | _ACEOF | |
11780 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11781 | if { (ac_try="$ac_compile" |
11782 | case "(($ac_try" in | |
11783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11784 | *) ac_try_echo=$ac_try;; | |
11785 | esac | |
1995c9ff | 11786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11787 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11788 | ac_status=$? |
8a2fc586 AK |
11789 | grep -v '^ *+' conftest.er1 >conftest.err |
11790 | rm -f conftest.er1 | |
11791 | cat conftest.err >&5 | |
1995c9ff | 11792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
11793 | (exit $ac_status); } && |
11794 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
11795 | { (case "(($ac_try" in | |
11796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11797 | *) ac_try_echo=$ac_try;; | |
11798 | esac | |
11799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11800 | (eval "$ac_try") 2>&5 | |
11801 | ac_status=$? | |
11802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11803 | (exit $ac_status); }; } && | |
11804 | { ac_try='test -s conftest.$ac_objext' | |
11805 | { (case "(($ac_try" in | |
11806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11807 | *) ac_try_echo=$ac_try;; | |
11808 | esac | |
11809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11810 | (eval "$ac_try") 2>&5 | |
11811 | ac_status=$? | |
11812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11813 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
11814 | ac_header_compiler=yes |
11815 | else | |
1995c9ff | 11816 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11817 | sed 's/^/| /' conftest.$ac_ext >&5 |
11818 | ||
7a197a62 | 11819 | ac_header_compiler=no |
ad6254c5 | 11820 | fi |
7a197a62 AK |
11821 | |
11822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
11823 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11824 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11825 | |
11826 | # Is the header present? | |
1995c9ff AK |
11827 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11828 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 11829 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11830 | /* confdefs.h. */ |
11831 | _ACEOF | |
11832 | cat confdefs.h >>conftest.$ac_ext | |
11833 | cat >>conftest.$ac_ext <<_ACEOF | |
11834 | /* end confdefs.h. */ | |
11835 | #include <$ac_header> | |
11836 | _ACEOF | |
7a197a62 AK |
11837 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11838 | case "(($ac_try" in | |
11839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11840 | *) ac_try_echo=$ac_try;; | |
11841 | esac | |
1995c9ff | 11842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11843 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11844 | ac_status=$? |
11845 | grep -v '^ *+' conftest.er1 >conftest.err | |
11846 | rm -f conftest.er1 | |
11847 | cat conftest.err >&5 | |
1995c9ff | 11848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
11849 | (exit $ac_status); } >/dev/null; then |
11850 | if test -s conftest.err; then | |
11851 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11852 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11853 | else | |
11854 | ac_cpp_err= | |
11855 | fi | |
11856 | else | |
11857 | ac_cpp_err=yes | |
11858 | fi | |
11859 | if test -z "$ac_cpp_err"; then | |
ad6254c5 AK |
11860 | ac_header_preproc=yes |
11861 | else | |
1995c9ff | 11862 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11863 | sed 's/^/| /' conftest.$ac_ext >&5 |
11864 | ||
11865 | ac_header_preproc=no | |
11866 | fi | |
7a197a62 | 11867 | |
ad6254c5 | 11868 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
11869 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11870 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11871 | |
11872 | # So? What about this header? | |
8a2fc586 AK |
11873 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11874 | yes:no: ) | |
1995c9ff AK |
11875 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11876 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11877 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11878 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11879 | ac_header_preproc=yes |
ad6254c5 | 11880 | ;; |
8a2fc586 | 11881 | no:yes:* ) |
1995c9ff AK |
11882 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11883 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11884 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11885 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11886 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11887 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11888 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11889 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11890 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11891 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11892 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11893 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11894 | |
ad6254c5 AK |
11895 | ;; |
11896 | esac | |
1995c9ff AK |
11897 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11898 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11899 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 11900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
80992638 | 11901 | else |
8a2fc586 | 11902 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 11903 | fi |
1995c9ff AK |
11904 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11905 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11906 | echo "${ECHO_T}$ac_res" >&6; } | |
83912faa | 11907 | |
69792976 | 11908 | fi |
1995c9ff | 11909 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 11910 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 11911 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11912 | _ACEOF |
69792976 | 11913 | |
69792976 | 11914 | else |
1995c9ff AK |
11915 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11916 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11917 | { (exit 1); exit 1; }; } |
80992638 AK |
11918 | fi |
11919 | ||
ad6254c5 | 11920 | done |
69792976 | 11921 | |
ad6254c5 AK |
11922 | fi |
11923 | ||
ad6254c5 AK |
11924 | |
11925 | for ac_header in libdevmapper.h | |
11926 | do | |
1995c9ff | 11927 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11928 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
11929 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11930 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11931 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 11932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11933 | fi |
1995c9ff AK |
11934 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11935 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11936 | echo "${ECHO_T}$ac_res" >&6; } | |
69792976 | 11937 | else |
ad6254c5 | 11938 | # Is the header compilable? |
1995c9ff AK |
11939 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11940 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 11941 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11942 | /* confdefs.h. */ |
11943 | _ACEOF | |
11944 | cat confdefs.h >>conftest.$ac_ext | |
11945 | cat >>conftest.$ac_ext <<_ACEOF | |
11946 | /* end confdefs.h. */ | |
11947 | $ac_includes_default | |
11948 | #include <$ac_header> | |
11949 | _ACEOF | |
11950 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11951 | if { (ac_try="$ac_compile" |
11952 | case "(($ac_try" in | |
11953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11954 | *) ac_try_echo=$ac_try;; | |
11955 | esac | |
1995c9ff | 11956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11957 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11958 | ac_status=$? |
8a2fc586 AK |
11959 | grep -v '^ *+' conftest.er1 >conftest.err |
11960 | rm -f conftest.er1 | |
11961 | cat conftest.err >&5 | |
1995c9ff | 11962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
11963 | (exit $ac_status); } && |
11964 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
11965 | { (case "(($ac_try" in | |
11966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11967 | *) ac_try_echo=$ac_try;; | |
11968 | esac | |
11969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11970 | (eval "$ac_try") 2>&5 | |
11971 | ac_status=$? | |
11972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11973 | (exit $ac_status); }; } && | |
11974 | { ac_try='test -s conftest.$ac_objext' | |
11975 | { (case "(($ac_try" in | |
11976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11977 | *) ac_try_echo=$ac_try;; | |
11978 | esac | |
11979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11980 | (eval "$ac_try") 2>&5 | |
11981 | ac_status=$? | |
11982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11983 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
11984 | ac_header_compiler=yes |
11985 | else | |
1995c9ff | 11986 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11987 | sed 's/^/| /' conftest.$ac_ext >&5 |
11988 | ||
7a197a62 | 11989 | ac_header_compiler=no |
ad6254c5 | 11990 | fi |
7a197a62 AK |
11991 | |
11992 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
11993 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11994 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11995 | |
11996 | # Is the header present? | |
1995c9ff AK |
11997 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11998 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 11999 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12000 | /* confdefs.h. */ |
12001 | _ACEOF | |
12002 | cat confdefs.h >>conftest.$ac_ext | |
12003 | cat >>conftest.$ac_ext <<_ACEOF | |
12004 | /* end confdefs.h. */ | |
12005 | #include <$ac_header> | |
12006 | _ACEOF | |
7a197a62 AK |
12007 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
12008 | case "(($ac_try" in | |
12009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12010 | *) ac_try_echo=$ac_try;; | |
12011 | esac | |
1995c9ff | 12012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 12013 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
12014 | ac_status=$? |
12015 | grep -v '^ *+' conftest.er1 >conftest.err | |
12016 | rm -f conftest.er1 | |
12017 | cat conftest.err >&5 | |
1995c9ff | 12018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
12019 | (exit $ac_status); } >/dev/null; then |
12020 | if test -s conftest.err; then | |
12021 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12022 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12023 | else | |
12024 | ac_cpp_err= | |
12025 | fi | |
12026 | else | |
12027 | ac_cpp_err=yes | |
12028 | fi | |
12029 | if test -z "$ac_cpp_err"; then | |
ad6254c5 AK |
12030 | ac_header_preproc=yes |
12031 | else | |
1995c9ff | 12032 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12033 | sed 's/^/| /' conftest.$ac_ext >&5 |
12034 | ||
12035 | ac_header_preproc=no | |
12036 | fi | |
7a197a62 | 12037 | |
ad6254c5 | 12038 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
12039 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12040 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
12041 | |
12042 | # So? What about this header? | |
8a2fc586 AK |
12043 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12044 | yes:no: ) | |
1995c9ff AK |
12045 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12046 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12047 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12048 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 12049 | ac_header_preproc=yes |
ad6254c5 | 12050 | ;; |
8a2fc586 | 12051 | no:yes:* ) |
1995c9ff AK |
12052 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12053 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12054 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12055 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12056 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12057 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12058 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12059 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12060 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12061 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12062 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12063 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 12064 | |
ad6254c5 AK |
12065 | ;; |
12066 | esac | |
1995c9ff AK |
12067 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12068 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 12069 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 12070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
69792976 | 12071 | else |
8a2fc586 | 12072 | eval "$as_ac_Header=\$ac_header_preproc" |
69792976 | 12073 | fi |
1995c9ff AK |
12074 | ac_res=`eval echo '${'$as_ac_Header'}'` |
12075 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12076 | echo "${ECHO_T}$ac_res" >&6; } | |
69792976 | 12077 | |
ad6254c5 | 12078 | fi |
1995c9ff | 12079 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 12080 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 12081 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 12082 | _ACEOF |
69792976 | 12083 | |
69792976 | 12084 | else |
1995c9ff AK |
12085 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
12086 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 12087 | { (exit 1); exit 1; }; } |
83912faa AK |
12088 | fi |
12089 | ||
ad6254c5 AK |
12090 | done |
12091 | ||
4a7f3eb2 | 12092 | |
ad6254c5 AK |
12093 | if test x$HAVE_SELINUX = xyes; then |
12094 | ||
12095 | for ac_header in selinux/selinux.h | |
12096 | do | |
1995c9ff | 12097 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 12098 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff AK |
12099 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12100 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 12101 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 12102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 12103 | fi |
1995c9ff AK |
12104 | ac_res=`eval echo '${'$as_ac_Header'}'` |
12105 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12106 | echo "${ECHO_T}$ac_res" >&6; } | |
4a7f3eb2 | 12107 | else |
ad6254c5 | 12108 | # Is the header compilable? |
1995c9ff AK |
12109 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12110 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 12111 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12112 | /* confdefs.h. */ |
12113 | _ACEOF | |
12114 | cat confdefs.h >>conftest.$ac_ext | |
12115 | cat >>conftest.$ac_ext <<_ACEOF | |
12116 | /* end confdefs.h. */ | |
12117 | $ac_includes_default | |
12118 | #include <$ac_header> | |
12119 | _ACEOF | |
12120 | rm -f conftest.$ac_objext | |
7a197a62 AK |
12121 | if { (ac_try="$ac_compile" |
12122 | case "(($ac_try" in | |
12123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12124 | *) ac_try_echo=$ac_try;; | |
12125 | esac | |
1995c9ff | 12126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 12127 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 12128 | ac_status=$? |
8a2fc586 AK |
12129 | grep -v '^ *+' conftest.er1 >conftest.err |
12130 | rm -f conftest.er1 | |
12131 | cat conftest.err >&5 | |
1995c9ff | 12132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
12133 | (exit $ac_status); } && |
12134 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
12135 | { (case "(($ac_try" in | |
12136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12137 | *) ac_try_echo=$ac_try;; | |
12138 | esac | |
12139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12140 | (eval "$ac_try") 2>&5 | |
12141 | ac_status=$? | |
12142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12143 | (exit $ac_status); }; } && | |
12144 | { ac_try='test -s conftest.$ac_objext' | |
12145 | { (case "(($ac_try" in | |
12146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12147 | *) ac_try_echo=$ac_try;; | |
12148 | esac | |
12149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12150 | (eval "$ac_try") 2>&5 | |
12151 | ac_status=$? | |
12152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12153 | (exit $ac_status); }; }; then | |
ad6254c5 AK |
12154 | ac_header_compiler=yes |
12155 | else | |
1995c9ff | 12156 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12157 | sed 's/^/| /' conftest.$ac_ext >&5 |
12158 | ||
7a197a62 | 12159 | ac_header_compiler=no |
ad6254c5 | 12160 | fi |
7a197a62 AK |
12161 | |
12162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995c9ff AK |
12163 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12164 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
12165 | |
12166 | # Is the header present? | |
1995c9ff AK |
12167 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12168 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 12169 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
12170 | /* confdefs.h. */ |
12171 | _ACEOF | |
12172 | cat confdefs.h >>conftest.$ac_ext | |
12173 | cat >>conftest.$ac_ext <<_ACEOF | |
12174 | /* end confdefs.h. */ | |
12175 | #include <$ac_header> | |
12176 | _ACEOF | |
7a197a62 AK |
12177 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
12178 | case "(($ac_try" in | |
12179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12180 | *) ac_try_echo=$ac_try;; | |
12181 | esac | |
1995c9ff | 12182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 12183 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
12184 | ac_status=$? |
12185 | grep -v '^ *+' conftest.er1 >conftest.err | |
12186 | rm -f conftest.er1 | |
12187 | cat conftest.err >&5 | |
1995c9ff | 12188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
fc54be10 AK |
12189 | (exit $ac_status); } >/dev/null; then |
12190 | if test -s conftest.err; then | |
12191 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12192 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12193 | else | |
12194 | ac_cpp_err= | |
12195 | fi | |
12196 | else | |
12197 | ac_cpp_err=yes | |
12198 | fi | |
12199 | if test -z "$ac_cpp_err"; then | |
ad6254c5 AK |
12200 | ac_header_preproc=yes |
12201 | else | |
1995c9ff | 12202 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12203 | sed 's/^/| /' conftest.$ac_ext >&5 |
12204 | ||
12205 | ac_header_preproc=no | |
12206 | fi | |
7a197a62 | 12207 | |
ad6254c5 | 12208 | rm -f conftest.err conftest.$ac_ext |
1995c9ff AK |
12209 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12210 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
12211 | |
12212 | # So? What about this header? | |
8a2fc586 AK |
12213 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12214 | yes:no: ) | |
1995c9ff AK |
12215 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12216 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12217 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12218 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 12219 | ac_header_preproc=yes |
ad6254c5 | 12220 | ;; |
8a2fc586 | 12221 | no:yes:* ) |
1995c9ff AK |
12222 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12223 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12224 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12225 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12226 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12227 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12228 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12229 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12230 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12231 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12232 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12233 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 12234 | |
ad6254c5 AK |
12235 | ;; |
12236 | esac | |
1995c9ff AK |
12237 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12238 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 12239 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
1995c9ff | 12240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 12241 | else |
8a2fc586 | 12242 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 12243 | fi |
1995c9ff AK |
12244 | ac_res=`eval echo '${'$as_ac_Header'}'` |
12245 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12246 | echo "${ECHO_T}$ac_res" >&6; } | |
4a7f3eb2 | 12247 | |
ad6254c5 | 12248 | fi |
1995c9ff | 12249 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 12250 | cat >>confdefs.h <<_ACEOF |
1995c9ff | 12251 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 12252 | _ACEOF |
0a62c911 | 12253 | |
0a62c911 | 12254 | else |
1995c9ff AK |
12255 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
12256 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 12257 | { (exit 1); exit 1; }; } |
80992638 AK |
12258 | fi |
12259 | ||
ad6254c5 | 12260 | done |
0a62c911 | 12261 | |
ad6254c5 | 12262 | fi |
0a62c911 | 12263 | |
a653923f AK |
12264 | ################################################################################ |
12265 | # Extract the first word of "modprobe", so it can be a program name with args. | |
12266 | set dummy modprobe; ac_word=$2 | |
1995c9ff AK |
12267 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12268 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
72b2cb61 | 12269 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
1995c9ff | 12270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
72b2cb61 AK |
12271 | else |
12272 | case $MODPROBE_CMD in | |
12273 | [\\/]* | ?:[\\/]*) | |
12274 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
12275 | ;; | |
12276 | *) | |
12277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12278 | for as_dir in $PATH | |
12279 | do | |
12280 | IFS=$as_save_IFS | |
12281 | test -z "$as_dir" && as_dir=. | |
12282 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc54be10 | 12283 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 12284 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
1995c9ff | 12285 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
12286 | break 2 |
12287 | fi | |
12288 | done | |
12289 | done | |
7a197a62 | 12290 | IFS=$as_save_IFS |
72b2cb61 AK |
12291 | |
12292 | ;; | |
12293 | esac | |
12294 | fi | |
12295 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 12296 | if test -n "$MODPROBE_CMD"; then |
1995c9ff AK |
12297 | { echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
12298 | echo "${ECHO_T}$MODPROBE_CMD" >&6; } | |
72b2cb61 | 12299 | else |
1995c9ff AK |
12300 | { echo "$as_me:$LINENO: result: no" >&5 |
12301 | echo "${ECHO_T}no" >&6; } | |
72b2cb61 AK |
12302 | fi |
12303 | ||
a653923f | 12304 | |
7a197a62 | 12305 | |
a653923f | 12306 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
12307 | |
12308 | cat >>confdefs.h <<_ACEOF | |
12309 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
12310 | _ACEOF | |
12311 | ||
a653923f AK |
12312 | fi |
12313 | ||
80992638 | 12314 | ################################################################################ |
fae0c576 AK |
12315 | if test "-f VERSION"; then |
12316 | LVM_VERSION="\"`cat VERSION`\"" | |
12317 | else | |
12318 | LVM_VERSION="Unknown" | |
12319 | fi | |
12320 | ||
80992638 | 12321 | ################################################################################ |
fae0c576 | 12322 | |
83912faa | 12323 | |
795ca3e5 AK |
12324 | |
12325 | ||
12326 | ||
12327 | ||
12328 | ||
12329 | ||
5a52dca9 | 12330 | |
8ef2b021 | 12331 | |
199e490e | 12332 | |
69792976 AK |
12333 | |
12334 | ||
12335 | ||
12336 | ||
8106cdd5 AK |
12337 | |
12338 | ||
12339 | ||
12340 | ||
12341 | ||
d68a82ec | 12342 | |
036f273a | 12343 | |
7d1552c9 | 12344 | |
8106cdd5 | 12345 | |
0a62c911 | 12346 | |
8106cdd5 | 12347 | |
4a7f3eb2 | 12348 | |
4922197a AK |
12349 | |
12350 | ||
d8ac0fbc | 12351 | |
1a9ea74d | 12352 | |
8a2fc586 AK |
12353 | |
12354 | ||
12355 | ||
8ce0cbda | 12356 | |
8b1a3214 | 12357 | |
33f732c5 | 12358 | |
66e941e8 | 12359 | |
fc54be10 | 12360 | |
d3c8211f AK |
12361 | |
12362 | ||
80992638 | 12363 | ################################################################################ |
67961c7c | 12364 | 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 | 12365 | |
ad6254c5 | 12366 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
12367 | # This file is a shell script that caches the results of configure |
12368 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
12369 | # scripts and configure runs, see configure's option --config-cache. |
12370 | # It is not useful on other systems. If it contains results you don't | |
12371 | # want to keep, you may remove or edit it. | |
795ca3e5 | 12372 | # |
ad6254c5 AK |
12373 | # config.status only pays attention to the cache file if you give it |
12374 | # the --recheck option to rerun configure. | |
795ca3e5 | 12375 | # |
ad6254c5 AK |
12376 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
12377 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12378 | # following values. | |
12379 | ||
12380 | _ACEOF | |
12381 | ||
795ca3e5 AK |
12382 | # The following way of writing the cache mishandles newlines in values, |
12383 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 12384 | # So, we kill variables containing newlines. |
795ca3e5 AK |
12385 | # Ultrix sh set writes to stderr and can't be redirected directly, |
12386 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
12387 | ( |
12388 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
12389 | eval ac_val=\$$ac_var | |
12390 | case $ac_val in #( | |
12391 | *${as_nl}*) | |
12392 | case $ac_var in #( | |
1995c9ff AK |
12393 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
12394 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
7a197a62 AK |
12395 | esac |
12396 | case $ac_var in #( | |
12397 | _ | IFS | as_nl) ;; #( | |
12398 | *) $as_unset $ac_var ;; | |
12399 | esac ;; | |
12400 | esac | |
12401 | done | |
12402 | ||
ad6254c5 | 12403 | (set) 2>&1 | |
7a197a62 AK |
12404 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
12405 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
12406 | # `set' does not quote correctly, so add quotes (double-quote |
12407 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
12408 | sed -n \ | |
8a2fc586 AK |
12409 | "s/'/'\\\\''/g; |
12410 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 12411 | ;; #( |
ad6254c5 AK |
12412 | *) |
12413 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 12414 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 12415 | ;; |
7a197a62 AK |
12416 | esac | |
12417 | sort | |
12418 | ) | | |
ad6254c5 | 12419 | sed ' |
7a197a62 | 12420 | /^ac_cv_env_/b end |
ad6254c5 | 12421 | t clear |
7a197a62 | 12422 | :clear |
ad6254c5 AK |
12423 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
12424 | t end | |
7a197a62 AK |
12425 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
12426 | :end' >>confcache | |
12427 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
12428 | if test -w "$cache_file"; then | |
12429 | test "x$cache_file" != "x/dev/null" && | |
1995c9ff AK |
12430 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
12431 | echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 12432 | cat confcache >$cache_file |
795ca3e5 | 12433 | else |
1995c9ff AK |
12434 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
12435 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
12436 | fi |
12437 | fi | |
12438 | rm -f confcache | |
12439 | ||
795ca3e5 AK |
12440 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
12441 | # Let make expand exec_prefix. | |
12442 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12443 | ||
72b2cb61 | 12444 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
12445 | |
12446 | ac_libobjs= | |
12447 | ac_ltlibobjs= | |
12448 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
12449 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 12450 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
1995c9ff | 12451 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
12452 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
12453 | # will be set to the directory where LIBOBJS objects are built. | |
12454 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
12455 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
12456 | done |
12457 | LIBOBJS=$ac_libobjs | |
80992638 | 12458 | |
ad6254c5 AK |
12459 | LTLIBOBJS=$ac_ltlibobjs |
12460 | ||
12461 | ||
12462 | ||
12463 | : ${CONFIG_STATUS=./config.status} | |
12464 | ac_clean_files_save=$ac_clean_files | |
12465 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
1995c9ff AK |
12466 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
12467 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
ad6254c5 AK |
12468 | cat >$CONFIG_STATUS <<_ACEOF |
12469 | #! $SHELL | |
12470 | # Generated by $as_me. | |
795ca3e5 | 12471 | # Run this file to recreate the current configuration. |
795ca3e5 | 12472 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
12473 | # configure, is in config.log if it exists. |
12474 | ||
12475 | debug=false | |
12476 | ac_cs_recheck=false | |
12477 | ac_cs_silent=false | |
12478 | SHELL=\${CONFIG_SHELL-$SHELL} | |
12479 | _ACEOF | |
12480 | ||
12481 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12482 | ## --------------------- ## | |
12483 | ## M4sh Initialization. ## | |
12484 | ## --------------------- ## | |
12485 | ||
fc54be10 | 12486 | # Be Bourne compatible |
ad6254c5 AK |
12487 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
12488 | emulate sh | |
12489 | NULLCMD=: | |
12490 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
12491 | # is contrary to our usage. Disable this feature. | |
12492 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
12493 | setopt NO_GLOB_SUBST |
12494 | else | |
fc54be10 | 12495 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
7a197a62 | 12496 | fi |
fc54be10 AK |
12497 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
12498 | DUALCASE=1; export DUALCASE # for MKS sh | |
7a197a62 AK |
12499 | |
12500 | ||
12501 | # PATH needs CR | |
12502 | # Avoid depending upon Character Ranges. | |
12503 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12504 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12505 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12506 | as_cr_digits='0123456789' | |
12507 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
12508 | ||
12509 | # The user is always right. | |
12510 | if test "${PATH_SEPARATOR+set}" != set; then | |
12511 | echo "#! /bin/sh" >conf$$.sh | |
12512 | echo "exit 0" >>conf$$.sh | |
12513 | chmod +x conf$$.sh | |
12514 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12515 | PATH_SEPARATOR=';' | |
12516 | else | |
12517 | PATH_SEPARATOR=: | |
12518 | fi | |
12519 | rm -f conf$$.sh | |
ad6254c5 AK |
12520 | fi |
12521 | ||
12522 | # Support unset when possible. | |
8a2fc586 | 12523 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
12524 | as_unset=unset |
12525 | else | |
12526 | as_unset=false | |
12527 | fi | |
8106cdd5 | 12528 | |
ad6254c5 | 12529 | |
7a197a62 AK |
12530 | # IFS |
12531 | # We need space, tab and new line, in precisely that order. Quoting is | |
12532 | # there to prevent editors from complaining about space-tab. | |
12533 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
12534 | # splitting by setting IFS to empty value.) | |
1995c9ff AK |
12535 | as_nl=' |
12536 | ' | |
7a197a62 AK |
12537 | IFS=" "" $as_nl" |
12538 | ||
12539 | # Find who we are. Look in the path if we contain no directory separator. | |
12540 | case $0 in | |
12541 | *[\\/]* ) as_myself=$0 ;; | |
12542 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12543 | for as_dir in $PATH | |
12544 | do | |
12545 | IFS=$as_save_IFS | |
12546 | test -z "$as_dir" && as_dir=. | |
12547 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
12548 | done | |
12549 | IFS=$as_save_IFS | |
12550 | ||
12551 | ;; | |
12552 | esac | |
12553 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12554 | # in which case we are not to be found in the path. | |
12555 | if test "x$as_myself" = x; then | |
12556 | as_myself=$0 | |
12557 | fi | |
12558 | if test ! -f "$as_myself"; then | |
1995c9ff | 12559 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
12560 | { (exit 1); exit 1; } |
12561 | fi | |
12562 | ||
ad6254c5 | 12563 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
12564 | for as_var in ENV MAIL MAILPATH |
12565 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
12566 | done | |
ad6254c5 AK |
12567 | PS1='$ ' |
12568 | PS2='> ' | |
12569 | PS4='+ ' | |
12570 | ||
12571 | # NLS nuisances. | |
12572 | for as_var in \ | |
12573 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
12574 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
12575 | LC_TELEPHONE LC_TIME | |
8106cdd5 | 12576 | do |
8a2fc586 | 12577 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
ad6254c5 AK |
12578 | eval $as_var=C; export $as_var |
12579 | else | |
7a197a62 | 12580 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
ad6254c5 | 12581 | fi |
8106cdd5 AK |
12582 | done |
12583 | ||
ad6254c5 | 12584 | # Required to use basename. |
7a197a62 AK |
12585 | if expr a : '\(a\)' >/dev/null 2>&1 && |
12586 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
12587 | as_expr=expr |
12588 | else | |
12589 | as_expr=false | |
12590 | fi | |
8106cdd5 | 12591 | |
7a197a62 | 12592 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
12593 | as_basename=basename |
12594 | else | |
12595 | as_basename=false | |
12596 | fi | |
12597 | ||
12598 | ||
12599 | # Name of the executable. | |
7a197a62 | 12600 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
12601 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
12602 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 12603 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1995c9ff | 12604 | echo X/"$0" | |
7a197a62 AK |
12605 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
12606 | s//\1/ | |
12607 | q | |
12608 | } | |
12609 | /^X\/\(\/\/\)$/{ | |
12610 | s//\1/ | |
12611 | q | |
12612 | } | |
12613 | /^X\/\(\/\).*/{ | |
12614 | s//\1/ | |
12615 | q | |
12616 | } | |
12617 | s/.*/./; q'` | |
ad6254c5 | 12618 | |
7a197a62 AK |
12619 | # CDPATH. |
12620 | $as_unset CDPATH | |
ad6254c5 AK |
12621 | |
12622 | ||
ad6254c5 | 12623 | |
ad6254c5 AK |
12624 | as_lineno_1=$LINENO |
12625 | as_lineno_2=$LINENO | |
ad6254c5 | 12626 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 12627 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 12628 | |
ad6254c5 AK |
12629 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
12630 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
12631 | # line-number line after each line using $LINENO; the second 'sed' |
12632 | # does the real work. The second script uses 'N' to pair each | |
12633 | # line-number line with the line containing $LINENO, and appends | |
12634 | # trailing '-' during substitution so that $LINENO is not a special | |
12635 | # case at line end. | |
ad6254c5 | 12636 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
12637 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
12638 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
12639 | sed -n ' | |
12640 | p | |
12641 | /[$]LINENO/= | |
12642 | ' <$as_myself | | |
ad6254c5 | 12643 | sed ' |
7a197a62 AK |
12644 | s/[$]LINENO.*/&-/ |
12645 | t lineno | |
12646 | b | |
12647 | :lineno | |
ad6254c5 | 12648 | N |
7a197a62 AK |
12649 | :loop |
12650 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 12651 | t loop |
7a197a62 | 12652 | s/-\n.*// |
ad6254c5 | 12653 | ' >$as_me.lineno && |
7a197a62 | 12654 | chmod +x "$as_me.lineno" || |
1995c9ff | 12655 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
12656 | { (exit 1); exit 1; }; } |
12657 | ||
12658 | # Don't try to exec as it changes $[0], causing all sort of problems | |
12659 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
12660 | # original and so on. Autoconf is especially sensitive to this). |
12661 | . "./$as_me.lineno" | |
ad6254c5 AK |
12662 | # Exit status is that of the last command. |
12663 | exit | |
12664 | } | |
12665 | ||
12666 | ||
7a197a62 AK |
12667 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
12668 | as_dirname=dirname | |
12669 | else | |
12670 | as_dirname=false | |
12671 | fi | |
12672 | ||
12673 | ECHO_C= ECHO_N= ECHO_T= | |
12674 | case `echo -n x` in | |
12675 | -n*) | |
12676 | case `echo 'x\c'` in | |
12677 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
12678 | *) ECHO_C='\c';; | |
12679 | esac;; | |
12680 | *) | |
12681 | ECHO_N='-n';; | |
ad6254c5 | 12682 | esac |
1995c9ff | 12683 | |
7a197a62 AK |
12684 | if expr a : '\(a\)' >/dev/null 2>&1 && |
12685 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
12686 | as_expr=expr |
12687 | else | |
12688 | as_expr=false | |
12689 | fi | |
80992638 | 12690 | |
ad6254c5 | 12691 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
12692 | if test -d conf$$.dir; then |
12693 | rm -f conf$$.dir/conf$$.file | |
12694 | else | |
12695 | rm -f conf$$.dir | |
12696 | mkdir conf$$.dir | |
12697 | fi | |
ad6254c5 AK |
12698 | echo >conf$$.file |
12699 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7a197a62 AK |
12700 | as_ln_s='ln -s' |
12701 | # ... but there are two gotchas: | |
12702 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
12703 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
12704 | # In both cases, we have to default to `cp -p'. | |
12705 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
ad6254c5 | 12706 | as_ln_s='cp -p' |
ad6254c5 AK |
12707 | elif ln conf$$.file conf$$ 2>/dev/null; then |
12708 | as_ln_s=ln | |
12709 | else | |
12710 | as_ln_s='cp -p' | |
12711 | fi | |
7a197a62 AK |
12712 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
12713 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 12714 | |
ad6254c5 AK |
12715 | if mkdir -p . 2>/dev/null; then |
12716 | as_mkdir_p=: | |
12717 | else | |
8a2fc586 | 12718 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
12719 | as_mkdir_p=false |
12720 | fi | |
12721 | ||
fc54be10 AK |
12722 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
12723 | # systems may use methods other than mode bits to determine executability. | |
12724 | cat >conf$$.file <<_ASEOF | |
12725 | #! /bin/sh | |
12726 | exit 0 | |
12727 | _ASEOF | |
12728 | chmod +x conf$$.file | |
12729 | if test -x conf$$.file >/dev/null 2>&1; then | |
12730 | as_executable_p="test -x" | |
7a197a62 | 12731 | else |
fc54be10 | 12732 | as_executable_p=: |
7a197a62 | 12733 | fi |
fc54be10 | 12734 | rm -f conf$$.file |
ad6254c5 AK |
12735 | |
12736 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 12737 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
12738 | |
12739 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 12740 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
12741 | |
12742 | ||
ad6254c5 AK |
12743 | exec 6>&1 |
12744 | ||
7a197a62 | 12745 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 12746 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
12747 | # values after options handling. |
12748 | ac_log=" | |
ad6254c5 | 12749 | This file was extended by $as_me, which was |
fc54be10 | 12750 | generated by GNU Autoconf 2.60. Invocation command line was |
ad6254c5 AK |
12751 | |
12752 | CONFIG_FILES = $CONFIG_FILES | |
12753 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12754 | CONFIG_LINKS = $CONFIG_LINKS | |
12755 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12756 | $ $0 $@ | |
12757 | ||
7a197a62 AK |
12758 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
12759 | " | |
12760 | ||
ad6254c5 AK |
12761 | _ACEOF |
12762 | ||
7a197a62 | 12763 | cat >>$CONFIG_STATUS <<_ACEOF |
ad6254c5 | 12764 | # Files that config.status was made for. |
7a197a62 AK |
12765 | config_files="$ac_config_files" |
12766 | config_headers="$ac_config_headers" | |
ad6254c5 | 12767 | |
7a197a62 | 12768 | _ACEOF |
ad6254c5 AK |
12769 | |
12770 | cat >>$CONFIG_STATUS <<\_ACEOF | |
ad6254c5 AK |
12771 | ac_cs_usage="\ |
12772 | \`$as_me' instantiates files from templates according to the | |
12773 | current configuration. | |
12774 | ||
12775 | Usage: $0 [OPTIONS] [FILE]... | |
12776 | ||
12777 | -h, --help print this help, then exit | |
fc54be10 | 12778 | -V, --version print version number, then exit |
ad6254c5 AK |
12779 | -q, --quiet do not print progress messages |
12780 | -d, --debug don't remove temporary files | |
12781 | --recheck update $as_me by reconfiguring in the same conditions | |
12782 | --file=FILE[:TEMPLATE] | |
8a2fc586 | 12783 | instantiate the configuration file FILE |
72b2cb61 AK |
12784 | --header=FILE[:TEMPLATE] |
12785 | instantiate the configuration header FILE | |
ad6254c5 AK |
12786 | |
12787 | Configuration files: | |
12788 | $config_files | |
12789 | ||
72b2cb61 AK |
12790 | Configuration headers: |
12791 | $config_headers | |
12792 | ||
ad6254c5 | 12793 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 12794 | |
7a197a62 | 12795 | _ACEOF |
ad6254c5 AK |
12796 | cat >>$CONFIG_STATUS <<_ACEOF |
12797 | ac_cs_version="\\ | |
12798 | config.status | |
fc54be10 | 12799 | configured by $0, generated by GNU Autoconf 2.60, |
1995c9ff | 12800 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
ad6254c5 | 12801 | |
7a197a62 | 12802 | Copyright (C) 2006 Free Software Foundation, Inc. |
ad6254c5 AK |
12803 | This config.status script is free software; the Free Software Foundation |
12804 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
12805 | |
12806 | ac_pwd='$ac_pwd' | |
12807 | srcdir='$srcdir' | |
12808 | INSTALL='$INSTALL' | |
ad6254c5 AK |
12809 | _ACEOF |
12810 | ||
12811 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12812 | # If no file are specified by the user, then we need to provide default | |
12813 | # value. By we need to know if files were specified by the user. | |
12814 | ac_need_defaults=: | |
12815 | while test $# != 0 | |
12816 | do | |
12817 | case $1 in | |
12818 | --*=*) | |
7a197a62 AK |
12819 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
12820 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
12821 | ac_shift=: |
12822 | ;; | |
7a197a62 | 12823 | *) |
ad6254c5 AK |
12824 | ac_option=$1 |
12825 | ac_optarg=$2 | |
12826 | ac_shift=shift | |
12827 | ;; | |
ad6254c5 AK |
12828 | esac |
12829 | ||
12830 | case $ac_option in | |
12831 | # Handling of the options. | |
ad6254c5 AK |
12832 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
12833 | ac_cs_recheck=: ;; | |
7a197a62 | 12834 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
1995c9ff | 12835 | echo "$ac_cs_version"; exit ;; |
7a197a62 | 12836 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
12837 | debug=: ;; |
12838 | --file | --fil | --fi | --f ) | |
12839 | $ac_shift | |
12840 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
12841 | ac_need_defaults=false;; | |
12842 | --header | --heade | --head | --hea ) | |
12843 | $ac_shift | |
12844 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
12845 | ac_need_defaults=false;; | |
7a197a62 AK |
12846 | --he | --h) |
12847 | # Conflict between --help and --header | |
1995c9ff | 12848 | { echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
12849 | Try \`$0 --help' for more information." >&2 |
12850 | { (exit 1); exit 1; }; };; | |
12851 | --help | --hel | -h ) | |
1995c9ff | 12852 | echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
12853 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
12854 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
12855 | ac_cs_silent=: ;; | |
12856 | ||
12857 | # This is an error. | |
1995c9ff | 12858 | -*) { echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 12859 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
12860 | { (exit 1); exit 1; }; } ;; |
12861 | ||
7a197a62 AK |
12862 | *) ac_config_targets="$ac_config_targets $1" |
12863 | ac_need_defaults=false ;; | |
ad6254c5 AK |
12864 | |
12865 | esac | |
12866 | shift | |
12867 | done | |
12868 | ||
12869 | ac_configure_extra_args= | |
12870 | ||
12871 | if $ac_cs_silent; then | |
12872 | exec 6>/dev/null | |
12873 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
12874 | fi | |
12875 | ||
12876 | _ACEOF | |
12877 | cat >>$CONFIG_STATUS <<_ACEOF | |
12878 | if \$ac_cs_recheck; then | |
1995c9ff AK |
12879 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
12880 | CONFIG_SHELL=$SHELL | |
7a197a62 | 12881 | export CONFIG_SHELL |
1995c9ff | 12882 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
ad6254c5 AK |
12883 | fi |
12884 | ||
12885 | _ACEOF | |
7a197a62 AK |
12886 | cat >>$CONFIG_STATUS <<\_ACEOF |
12887 | exec 5>>config.log | |
12888 | { | |
12889 | echo | |
12890 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
12891 | ## Running $as_me. ## | |
12892 | _ASBOX | |
1995c9ff | 12893 | echo "$ac_log" |
7a197a62 | 12894 | } >&5 |
ad6254c5 | 12895 | |
7a197a62 AK |
12896 | _ACEOF |
12897 | cat >>$CONFIG_STATUS <<_ACEOF | |
12898 | _ACEOF | |
ad6254c5 AK |
12899 | |
12900 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7a197a62 AK |
12901 | |
12902 | # Handling of arguments. | |
ad6254c5 AK |
12903 | for ac_config_target in $ac_config_targets |
12904 | do | |
7a197a62 AK |
12905 | case $ac_config_target in |
12906 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
12907 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
12908 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
12909 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
12910 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
12911 | "dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;; | |
12912 | "dmeventd/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;; | |
fc54be10 | 12913 | "dmeventd/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/snapshot/Makefile" ;; |
7a197a62 AK |
12914 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
12915 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
12916 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
12917 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; | |
12918 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
12919 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
12920 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
12921 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; | |
09339e2b | 12922 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
7a197a62 AK |
12923 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
12924 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
12925 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; | |
12926 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
12927 | "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;; | |
7a197a62 | 12928 | |
1995c9ff AK |
12929 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12930 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 12931 | { (exit 1); exit 1; }; };; |
80992638 | 12932 | esac |
ad6254c5 AK |
12933 | done |
12934 | ||
7a197a62 | 12935 | |
ad6254c5 AK |
12936 | # If the user did not use the arguments to specify the items to instantiate, |
12937 | # then the envvar interface is used. Set only those that are not. | |
12938 | # We use the long form for the default assignment because of an extremely | |
12939 | # bizarre bug on SunOS 4.1.3. | |
12940 | if $ac_need_defaults; then | |
12941 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 12942 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
12943 | fi |
12944 | ||
12945 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 12946 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 12947 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
12948 | # Hook for its removal unless debugging. |
12949 | # Note that there is a small window in which the directory will not be cleaned: | |
12950 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
12951 | $debug || |
12952 | { | |
7a197a62 AK |
12953 | tmp= |
12954 | trap 'exit_status=$? | |
12955 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
12956 | ' 0 | |
ad6254c5 AK |
12957 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
12958 | } | |
ad6254c5 AK |
12959 | # Create a (secure) tmp directory for tmp files. |
12960 | ||
12961 | { | |
7a197a62 | 12962 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
12963 | test -n "$tmp" && test -d "$tmp" |
12964 | } || | |
12965 | { | |
7a197a62 AK |
12966 | tmp=./conf$$-$RANDOM |
12967 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
12968 | } || |
12969 | { | |
1995c9ff | 12970 | echo "$me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
12971 | { (exit 1); exit 1; } |
12972 | } | |
12973 | ||
1995c9ff AK |
12974 | # |
12975 | # Set up the sed scripts for CONFIG_FILES section. | |
12976 | # | |
7a197a62 | 12977 | |
1995c9ff AK |
12978 | # No need to generate the scripts if there are no CONFIG_FILES. |
12979 | # This happens for instance when ./config.status config.h | |
12980 | if test -n "$CONFIG_FILES"; then | |
7a197a62 | 12981 | |
66e941e8 | 12982 | _ACEOF |
7a197a62 AK |
12983 | |
12984 | ||
1995c9ff | 12985 | |
7a197a62 AK |
12986 | ac_delim='%!_!# ' |
12987 | for ac_last_try in false false false false false :; do | |
1995c9ff AK |
12988 | cat >conf$$subs.sed <<_ACEOF |
12989 | SHELL!$SHELL$ac_delim | |
12990 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
12991 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
12992 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
12993 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
12994 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
12995 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
12996 | exec_prefix!$exec_prefix$ac_delim | |
12997 | prefix!$prefix$ac_delim | |
12998 | program_transform_name!$program_transform_name$ac_delim | |
12999 | bindir!$bindir$ac_delim | |
13000 | sbindir!$sbindir$ac_delim | |
13001 | libexecdir!$libexecdir$ac_delim | |
13002 | datarootdir!$datarootdir$ac_delim | |
13003 | datadir!$datadir$ac_delim | |
13004 | sysconfdir!$sysconfdir$ac_delim | |
13005 | sharedstatedir!$sharedstatedir$ac_delim | |
13006 | localstatedir!$localstatedir$ac_delim | |
13007 | includedir!$includedir$ac_delim | |
13008 | oldincludedir!$oldincludedir$ac_delim | |
13009 | docdir!$docdir$ac_delim | |
13010 | infodir!$infodir$ac_delim | |
13011 | htmldir!$htmldir$ac_delim | |
13012 | dvidir!$dvidir$ac_delim | |
13013 | pdfdir!$pdfdir$ac_delim | |
13014 | psdir!$psdir$ac_delim | |
13015 | libdir!$libdir$ac_delim | |
13016 | localedir!$localedir$ac_delim | |
13017 | mandir!$mandir$ac_delim | |
13018 | DEFS!$DEFS$ac_delim | |
13019 | ECHO_C!$ECHO_C$ac_delim | |
13020 | ECHO_N!$ECHO_N$ac_delim | |
13021 | ECHO_T!$ECHO_T$ac_delim | |
13022 | LIBS!$LIBS$ac_delim | |
13023 | build_alias!$build_alias$ac_delim | |
13024 | host_alias!$host_alias$ac_delim | |
13025 | target_alias!$target_alias$ac_delim | |
13026 | build!$build$ac_delim | |
13027 | build_cpu!$build_cpu$ac_delim | |
13028 | build_vendor!$build_vendor$ac_delim | |
13029 | build_os!$build_os$ac_delim | |
13030 | host!$host$ac_delim | |
13031 | host_cpu!$host_cpu$ac_delim | |
13032 | host_vendor!$host_vendor$ac_delim | |
13033 | host_os!$host_os$ac_delim | |
13034 | target!$target$ac_delim | |
13035 | target_cpu!$target_cpu$ac_delim | |
13036 | target_vendor!$target_vendor$ac_delim | |
13037 | target_os!$target_os$ac_delim | |
13038 | AWK!$AWK$ac_delim | |
13039 | CC!$CC$ac_delim | |
13040 | CFLAGS!$CFLAGS$ac_delim | |
13041 | LDFLAGS!$LDFLAGS$ac_delim | |
13042 | CPPFLAGS!$CPPFLAGS$ac_delim | |
13043 | ac_ct_CC!$ac_ct_CC$ac_delim | |
13044 | EXEEXT!$EXEEXT$ac_delim | |
13045 | OBJEXT!$OBJEXT$ac_delim | |
13046 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
13047 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
13048 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
13049 | LN_S!$LN_S$ac_delim | |
13050 | SET_MAKE!$SET_MAKE$ac_delim | |
13051 | RANLIB!$RANLIB$ac_delim | |
13052 | CFLOW_CMD!$CFLOW_CMD$ac_delim | |
13053 | CSCOPE_CMD!$CSCOPE_CMD$ac_delim | |
13054 | CPP!$CPP$ac_delim | |
13055 | GREP!$GREP$ac_delim | |
13056 | EGREP!$EGREP$ac_delim | |
13057 | ALLOCA!$ALLOCA$ac_delim | |
13058 | LIBOBJS!$LIBOBJS$ac_delim | |
13059 | POW_LIB!$POW_LIB$ac_delim | |
13060 | MSGFMT!$MSGFMT$ac_delim | |
13061 | MODPROBE_CMD!$MODPROBE_CMD$ac_delim | |
13062 | JOBS!$JOBS$ac_delim | |
13063 | STATIC_LINK!$STATIC_LINK$ac_delim | |
13064 | LVM1!$LVM1$ac_delim | |
13065 | POOL!$POOL$ac_delim | |
13066 | SNAPSHOTS!$SNAPSHOTS$ac_delim | |
13067 | MIRRORS!$MIRRORS$ac_delim | |
13068 | OWNER!$OWNER$ac_delim | |
13069 | GROUP!$GROUP$ac_delim | |
13070 | COPTIMISE_FLAG!$COPTIMISE_FLAG$ac_delim | |
13071 | CLDFLAGS!$CLDFLAGS$ac_delim | |
13072 | CLDWHOLEARCHIVE!$CLDWHOLEARCHIVE$ac_delim | |
13073 | CLDNOWHOLEARCHIVE!$CLDNOWHOLEARCHIVE$ac_delim | |
13074 | LDDEPS!$LDDEPS$ac_delim | |
13075 | LIB_SUFFIX!$LIB_SUFFIX$ac_delim | |
13076 | LVM_VERSION!$LVM_VERSION$ac_delim | |
13077 | LVM1_FALLBACK!$LVM1_FALLBACK$ac_delim | |
13078 | DEBUG!$DEBUG$ac_delim | |
13079 | DEVMAPPER!$DEVMAPPER$ac_delim | |
13080 | HAVE_LIBDL!$HAVE_LIBDL$ac_delim | |
13081 | HAVE_SELINUX!$HAVE_SELINUX$ac_delim | |
13082 | HAVE_REALTIME!$HAVE_REALTIME$ac_delim | |
13083 | CMDLIB!$CMDLIB$ac_delim | |
13084 | LOCALEDIR!$LOCALEDIR$ac_delim | |
13085 | CONFDIR!$CONFDIR$ac_delim | |
13086 | _ACEOF | |
13087 | ||
13088 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
7a197a62 AK |
13089 | break |
13090 | elif $ac_last_try; then | |
1995c9ff AK |
13091 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
13092 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
7a197a62 AK |
13093 | { (exit 1); exit 1; }; } |
13094 | else | |
13095 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
ad6254c5 | 13096 | fi |
7a197a62 | 13097 | done |
1995c9ff AK |
13098 | |
13099 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
13100 | if test -n "$ac_eof"; then | |
13101 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
13102 | ac_eof=`expr $ac_eof + 1` | |
13103 | fi | |
7a197a62 AK |
13104 | |
13105 | cat >>$CONFIG_STATUS <<_ACEOF | |
1995c9ff AK |
13106 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
13107 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
13108 | _ACEOF | |
13109 | sed ' | |
13110 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
13111 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
13112 | :n | |
13113 | t n | |
13114 | s/'"$ac_delim"'$/,g/; t | |
13115 | s/$/\\/; p | |
13116 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
13117 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
13118 | rm -f conf$$subs.sed | |
7a197a62 | 13119 | cat >>$CONFIG_STATUS <<_ACEOF |
1995c9ff AK |
13120 | CEOF$ac_eof |
13121 | _ACEOF | |
7a197a62 | 13122 | |
8106cdd5 | 13123 | |
1995c9ff AK |
13124 | ac_delim='%!_!# ' |
13125 | for ac_last_try in false false false false false :; do | |
13126 | cat >conf$$subs.sed <<_ACEOF | |
13127 | STATICDIR!$STATICDIR$ac_delim | |
13128 | DMDIR!$DMDIR$ac_delim | |
13129 | INTL_PACKAGE!$INTL_PACKAGE$ac_delim | |
13130 | INTL!$INTL$ac_delim | |
13131 | CLVMD!$CLVMD$ac_delim | |
13132 | CLUSTER!$CLUSTER$ac_delim | |
13133 | FSADM!$FSADM$ac_delim | |
13134 | DMEVENTD!$DMEVENTD$ac_delim | |
13135 | LIB_PTHREAD!$LIB_PTHREAD$ac_delim | |
13136 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
13137 | _ACEOF | |
13138 | ||
13139 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then | |
13140 | break | |
13141 | elif $ac_last_try; then | |
13142 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
13143 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
13144 | { (exit 1); exit 1; }; } | |
13145 | else | |
13146 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13147 | fi | |
13148 | done | |
13149 | ||
13150 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
13151 | if test -n "$ac_eof"; then | |
13152 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
13153 | ac_eof=`expr $ac_eof + 1` | |
13154 | fi | |
7a197a62 | 13155 | |
1995c9ff AK |
13156 | cat >>$CONFIG_STATUS <<_ACEOF |
13157 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
13158 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
13159 | _ACEOF | |
13160 | sed ' | |
13161 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
13162 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
13163 | :n | |
13164 | t n | |
13165 | s/'"$ac_delim"'$/,g/; t | |
13166 | s/$/\\/; p | |
13167 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
13168 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
13169 | rm -f conf$$subs.sed | |
13170 | cat >>$CONFIG_STATUS <<_ACEOF | |
13171 | :end | |
13172 | s/|#_!!_#|//g | |
13173 | CEOF$ac_eof | |
7a197a62 AK |
13174 | _ACEOF |
13175 | ||
1995c9ff | 13176 | |
7a197a62 AK |
13177 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
13178 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
13179 | # trailing colons and then remove the whole line if VPATH becomes empty | |
13180 | # (actually we leave an empty line to preserve line numbers). | |
13181 | if test "x$srcdir" = x.; then | |
13182 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
13183 | s/:*\$(srcdir):*/:/ | |
13184 | s/:*\${srcdir}:*/:/ | |
13185 | s/:*@srcdir@:*/:/ | |
13186 | s/^\([^=]*=[ ]*\):*/\1/ | |
13187 | s/:*$// | |
13188 | s/^[^=]*=[ ]*$// | |
13189 | }' | |
13190 | fi | |
13191 | ||
ad6254c5 | 13192 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
13193 | fi # test -n "$CONFIG_FILES" |
13194 | ||
13195 | ||
13196 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS | |
13197 | do | |
13198 | case $ac_tag in | |
13199 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
13200 | esac | |
13201 | case $ac_mode$ac_tag in | |
13202 | :[FHL]*:*);; | |
1995c9ff AK |
13203 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
13204 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
7a197a62 AK |
13205 | { (exit 1); exit 1; }; };; |
13206 | :[FH]-) ac_tag=-:-;; | |
13207 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
13208 | esac | |
13209 | ac_save_IFS=$IFS | |
13210 | IFS=: | |
13211 | set x $ac_tag | |
13212 | IFS=$ac_save_IFS | |
13213 | shift | |
13214 | ac_file=$1 | |
13215 | shift | |
13216 | ||
13217 | case $ac_mode in | |
13218 | :L) ac_source=$1;; | |
13219 | :[FH]) | |
13220 | ac_file_inputs= | |
13221 | for ac_f | |
13222 | do | |
13223 | case $ac_f in | |
13224 | -) ac_f="$tmp/stdin";; | |
13225 | *) # Look for the file first in the build tree, then in the source tree | |
13226 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
13227 | # because $ac_f cannot contain `:'. | |
13228 | test -f "$ac_f" || | |
13229 | case $ac_f in | |
13230 | [\\/$]*) false;; | |
13231 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
13232 | esac || | |
1995c9ff AK |
13233 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
13234 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
13235 | { (exit 1); exit 1; }; };; |
13236 | esac | |
13237 | ac_file_inputs="$ac_file_inputs $ac_f" | |
13238 | done | |
13239 | ||
13240 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
13241 | # use $as_me), people would be surprised to read: | |
13242 | # /* config.h. Generated by config.status. */ | |
1995c9ff AK |
13243 | configure_input="Generated from "`IFS=: |
13244 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
7a197a62 AK |
13245 | if test x"$ac_file" != x-; then |
13246 | configure_input="$ac_file. $configure_input" | |
1995c9ff AK |
13247 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
13248 | echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 AK |
13249 | fi |
13250 | ||
13251 | case $ac_tag in | |
13252 | *:-:* | *:-) cat >"$tmp/stdin";; | |
13253 | esac | |
13254 | ;; | |
80992638 | 13255 | esac |
8106cdd5 | 13256 | |
7a197a62 | 13257 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 13258 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
13259 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
13260 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 13261 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
1995c9ff | 13262 | echo X"$ac_file" | |
7a197a62 AK |
13263 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
13264 | s//\1/ | |
13265 | q | |
13266 | } | |
13267 | /^X\(\/\/\)[^/].*/{ | |
13268 | s//\1/ | |
13269 | q | |
13270 | } | |
13271 | /^X\(\/\/\)$/{ | |
13272 | s//\1/ | |
13273 | q | |
13274 | } | |
13275 | /^X\(\/\).*/{ | |
13276 | s//\1/ | |
13277 | q | |
13278 | } | |
13279 | s/.*/./; q'` | |
13280 | { as_dir="$ac_dir" | |
13281 | case $as_dir in #( | |
13282 | -*) as_dir=./$as_dir;; | |
13283 | esac | |
13284 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 13285 | as_dirs= |
7a197a62 AK |
13286 | while :; do |
13287 | case $as_dir in #( | |
1995c9ff | 13288 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
7a197a62 AK |
13289 | *) as_qdir=$as_dir;; |
13290 | esac | |
13291 | as_dirs="'$as_qdir' $as_dirs" | |
13292 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 13293 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
13294 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
13295 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 13296 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
1995c9ff | 13297 | echo X"$as_dir" | |
7a197a62 AK |
13298 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
13299 | s//\1/ | |
13300 | q | |
13301 | } | |
13302 | /^X\(\/\/\)[^/].*/{ | |
13303 | s//\1/ | |
13304 | q | |
13305 | } | |
13306 | /^X\(\/\/\)$/{ | |
13307 | s//\1/ | |
13308 | q | |
13309 | } | |
13310 | /^X\(\/\).*/{ | |
13311 | s//\1/ | |
13312 | q | |
13313 | } | |
13314 | s/.*/./; q'` | |
13315 | test -d "$as_dir" && break | |
ad6254c5 | 13316 | done |
7a197a62 | 13317 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
1995c9ff AK |
13318 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
13319 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 13320 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
13321 | ac_builddir=. |
13322 | ||
7a197a62 AK |
13323 | case "$ac_dir" in |
13324 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13325 | *) | |
1995c9ff | 13326 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7a197a62 | 13327 | # A ".." for each directory in $ac_dir_suffix. |
1995c9ff | 13328 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
7a197a62 AK |
13329 | case $ac_top_builddir_sub in |
13330 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13331 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13332 | esac ;; | |
13333 | esac | |
13334 | ac_abs_top_builddir=$ac_pwd | |
13335 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
13336 | # for backward compatibility: | |
13337 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
13338 | |
13339 | case $srcdir in | |
7a197a62 | 13340 | .) # We are building in place. |
ad6254c5 | 13341 | ac_srcdir=. |
7a197a62 AK |
13342 | ac_top_srcdir=$ac_top_builddir_sub |
13343 | ac_abs_top_srcdir=$ac_pwd ;; | |
13344 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 13345 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
13346 | ac_top_srcdir=$srcdir |
13347 | ac_abs_top_srcdir=$srcdir ;; | |
13348 | *) # Relative name. | |
13349 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
13350 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
13351 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 13352 | esac |
7a197a62 | 13353 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 13354 | |
ad6254c5 | 13355 | |
7a197a62 AK |
13356 | case $ac_mode in |
13357 | :F) | |
13358 | # | |
13359 | # CONFIG_FILE | |
13360 | # | |
ad6254c5 AK |
13361 | |
13362 | case $INSTALL in | |
13363 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 13364 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 13365 | esac |
7a197a62 | 13366 | _ACEOF |
795ca3e5 | 13367 | |
7a197a62 AK |
13368 | cat >>$CONFIG_STATUS <<\_ACEOF |
13369 | # If the template does not know about datarootdir, expand it. | |
13370 | # FIXME: This hack should be removed a few years after 2.60. | |
13371 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
13372 | ||
13373 | case `sed -n '/datarootdir/ { | |
13374 | p | |
13375 | q | |
13376 | } | |
13377 | /@datadir@/p | |
13378 | /@docdir@/p | |
13379 | /@infodir@/p | |
13380 | /@localedir@/p | |
13381 | /@mandir@/p | |
13382 | ' $ac_file_inputs` in | |
13383 | *datarootdir*) ac_datarootdir_seen=yes;; | |
13384 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
1995c9ff AK |
13385 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
13386 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 13387 | _ACEOF |
7a197a62 AK |
13388 | cat >>$CONFIG_STATUS <<_ACEOF |
13389 | ac_datarootdir_hack=' | |
13390 | s&@datadir@&$datadir&g | |
13391 | s&@docdir@&$docdir&g | |
13392 | s&@infodir@&$infodir&g | |
13393 | s&@localedir@&$localedir&g | |
13394 | s&@mandir@&$mandir&g | |
13395 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
13396 | esac | |
13397 | _ACEOF | |
13398 | ||
13399 | # Neutralize VPATH when `$srcdir' = `.'. | |
13400 | # Shell code in configure.ac might set extrasub. | |
13401 | # FIXME: do we really want to maintain this feature? | |
ad6254c5 AK |
13402 | cat >>$CONFIG_STATUS <<_ACEOF |
13403 | sed "$ac_vpsub | |
13404 | $extrasub | |
13405 | _ACEOF | |
13406 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13407 | :t | |
13408 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7a197a62 AK |
13409 | s&@configure_input@&$configure_input&;t t |
13410 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
13411 | s&@srcdir@&$ac_srcdir&;t t | |
13412 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
13413 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
13414 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
13415 | s&@builddir@&$ac_builddir&;t t | |
13416 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
13417 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
13418 | s&@INSTALL@&$ac_INSTALL&;t t | |
13419 | $ac_datarootdir_hack | |
1995c9ff | 13420 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
7a197a62 AK |
13421 | |
13422 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
13423 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
13424 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
1995c9ff | 13425 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 13426 | which seems to be undefined. Please make sure it is defined." >&5 |
1995c9ff | 13427 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
13428 | which seems to be undefined. Please make sure it is defined." >&2;} |
13429 | ||
13430 | rm -f "$tmp/stdin" | |
72b2cb61 | 13431 | case $ac_file in |
7a197a62 AK |
13432 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
13433 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
72b2cb61 | 13434 | esac |
7a197a62 AK |
13435 | ;; |
13436 | :H) | |
13437 | # | |
13438 | # CONFIG_HEADER | |
13439 | # | |
13440 | _ACEOF | |
13441 | ||
13442 | # Transform confdefs.h into a sed script `conftest.defines', that | |
13443 | # substitutes the proper values into config.h.in to produce config.h. | |
13444 | rm -f conftest.defines conftest.tail | |
13445 | # First, append a space to every undef/define line, to ease matching. | |
13446 | echo 's/$/ /' >conftest.defines | |
13447 | # Then, protect against being on the right side of a sed subst, or in | |
13448 | # an unquoted here document, in config.status. If some macros were | |
13449 | # called several times there might be several #defines for the same | |
13450 | # symbol, which is useless. But do not sort them, since the last | |
13451 | # AC_DEFINE must be honored. | |
13452 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
13453 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
13454 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
13455 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
13456 | # just an empty string. | |
13457 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
13458 | ac_dB='\\)[ (].*,\\1define\\2' | |
13459 | ac_dC=' ' | |
13460 | ac_dD=' ,' | |
13461 | ||
13462 | uniq confdefs.h | | |
13463 | sed -n ' | |
13464 | t rset | |
13465 | :rset | |
13466 | s/^[ ]*#[ ]*define[ ][ ]*// | |
13467 | t ok | |
13468 | d | |
13469 | :ok | |
13470 | s/[\\&,]/\\&/g | |
13471 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
13472 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
13473 | ' >>conftest.defines | |
13474 | ||
13475 | # Remove the space that was appended to ease matching. | |
13476 | # Then replace #undef with comments. This is necessary, for | |
72b2cb61 AK |
13477 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
13478 | # on some systems where configure will not decide to define it. | |
7a197a62 AK |
13479 | # (The regexp can be short, since the line contains either #define or #undef.) |
13480 | echo 's/ $// | |
13481 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
13482 | ||
13483 | # Break up conftest.defines: | |
13484 | ac_max_sed_lines=50 | |
13485 | ||
13486 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
13487 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
13488 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
13489 | # et cetera. | |
13490 | ac_in='$ac_file_inputs' | |
13491 | ac_out='"$tmp/out1"' | |
13492 | ac_nxt='"$tmp/out2"' | |
13493 | ||
13494 | while : | |
72b2cb61 | 13495 | do |
7a197a62 AK |
13496 | # Write a here document: |
13497 | cat >>$CONFIG_STATUS <<_ACEOF | |
13498 | # First, check the format of the line: | |
13499 | cat >"\$tmp/defines.sed" <<\\CEOF | |
13500 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
13501 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
13502 | b | |
13503 | :def | |
13504 | _ACEOF | |
13505 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
72b2cb61 | 13506 | echo 'CEOF |
7a197a62 AK |
13507 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
13508 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
13509 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
13510 | grep . conftest.tail >/dev/null || break | |
72b2cb61 AK |
13511 | rm -f conftest.defines |
13512 | mv conftest.tail conftest.defines | |
13513 | done | |
7a197a62 | 13514 | rm -f conftest.defines conftest.tail |
72b2cb61 | 13515 | |
7a197a62 | 13516 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
72b2cb61 | 13517 | cat >>$CONFIG_STATUS <<\_ACEOF |
72b2cb61 | 13518 | if test x"$ac_file" != x-; then |
1995c9ff | 13519 | echo "/* $configure_input */" >"$tmp/config.h" |
7a197a62 AK |
13520 | cat "$ac_result" >>"$tmp/config.h" |
13521 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
1995c9ff AK |
13522 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
13523 | echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 13524 | else |
72b2cb61 | 13525 | rm -f $ac_file |
7a197a62 | 13526 | mv "$tmp/config.h" $ac_file |
72b2cb61 AK |
13527 | fi |
13528 | else | |
1995c9ff | 13529 | echo "/* $configure_input */" |
7a197a62 | 13530 | cat "$ac_result" |
72b2cb61 | 13531 | fi |
7a197a62 AK |
13532 | rm -f "$tmp/out12" |
13533 | ;; | |
13534 | ||
13535 | ||
13536 | esac | |
13537 | ||
13538 | done # for ac_tag | |
795ca3e5 | 13539 | |
795ca3e5 | 13540 | |
ad6254c5 AK |
13541 | { (exit 0); exit 0; } |
13542 | _ACEOF | |
795ca3e5 | 13543 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
13544 | ac_clean_files=$ac_clean_files_save |
13545 | ||
13546 | ||
13547 | # configure is writing to config.log, and then calls config.status. | |
13548 | # config.status does its own redirection, appending to config.log. | |
13549 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
13550 | # by configure, so config.status won't be able to write to it; its | |
13551 | # output is simply discarded. So we exec the FD to /dev/null, | |
13552 | # effectively closing config.log, so it can be properly (re)opened and | |
13553 | # appended to by config.status. When coming back to configure, we | |
13554 | # need to make the FD available again. | |
13555 | if test "$no_create" != yes; then | |
13556 | ac_cs_success=: | |
13557 | ac_config_status_args= | |
13558 | test "$silent" = yes && | |
13559 | ac_config_status_args="$ac_config_status_args --quiet" | |
13560 | exec 5>/dev/null | |
13561 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
13562 | exec 5>>config.log | |
13563 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
13564 | # would make configure fail if this is the last instruction. | |
13565 | $ac_cs_success || { (exit 1); exit 1; } | |
13566 | fi | |
795ca3e5 | 13567 | |
2dc95e1c AK |
13568 | |
13569 | if test x$ODIRECT != xyes; then | |
1995c9ff AK |
13570 | { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
13571 | echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 13572 | fi |
809fae91 AK |
13573 | |
13574 | if test x$FSADM == xyes; then | |
1995c9ff AK |
13575 | { echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5 |
13576 | echo "$as_me: WARNING: fsadm support is untested" >&2;} | |
809fae91 | 13577 | fi |
06f62ad1 AK |
13578 | |
13579 | if test x$DMEVENTD == xyes; then | |
1995c9ff AK |
13580 | { echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5 |
13581 | echo "$as_me: WARNING: dmeventd support is untested" >&2;} | |
06f62ad1 | 13582 | fi |