]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
5556819a | 3 | # Generated by GNU Autoconf 2.61. |
795ca3e5 | 4 | # |
7a197a62 | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
5556819a | 6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
795ca3e5 AK |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
ad6254c5 AK |
9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
12 | ||
25fbec5b AK |
13 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh | |
17 | NULLCMD=: | |
5556819a | 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
ad6254c5 AK |
19 | # is contrary to our usage. Disable this feature. |
20 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
21 | setopt NO_GLOB_SUBST |
22 | else | |
25fbec5b AK |
23 | case `(set -o) 2>/dev/null` in |
24 | *posix*) set -o posix ;; | |
25 | esac | |
26 | ||
7a197a62 | 27 | fi |
25fbec5b AK |
28 | |
29 | ||
7a197a62 AK |
30 | |
31 | ||
32 | # PATH needs CR | |
33 | # Avoid depending upon Character Ranges. | |
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37 | as_cr_digits='0123456789' | |
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39 | ||
fddafd51 ZK |
40 | # The user is always right. |
41 | if test "${PATH_SEPARATOR+set}" != set; then | |
5556819a AK |
42 | echo "#! /bin/sh" >conf$$.sh |
43 | echo "exit 0" >>conf$$.sh | |
44 | chmod +x conf$$.sh | |
45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
46 | PATH_SEPARATOR=';' | |
47 | else | |
48 | PATH_SEPARATOR=: | |
49 | fi | |
50 | rm -f conf$$.sh | |
ad6254c5 AK |
51 | fi |
52 | ||
53 | # Support unset when possible. | |
8a2fc586 | 54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
55 | as_unset=unset |
56 | else | |
57 | as_unset=false | |
58 | fi | |
59 | ||
60 | ||
7a197a62 AK |
61 | # IFS |
62 | # We need space, tab and new line, in precisely that order. Quoting is | |
63 | # there to prevent editors from complaining about space-tab. | |
64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
65 | # splitting by setting IFS to empty value.) | |
5556819a AK |
66 | as_nl=' |
67 | ' | |
7a197a62 AK |
68 | IFS=" "" $as_nl" |
69 | ||
70 | # Find who we are. Look in the path if we contain no directory separator. | |
71 | case $0 in | |
72 | *[\\/]* ) as_myself=$0 ;; | |
73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
74 | for as_dir in $PATH | |
75 | do | |
76 | IFS=$as_save_IFS | |
77 | test -z "$as_dir" && as_dir=. | |
78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
79 | done | |
80 | IFS=$as_save_IFS | |
81 | ||
82 | ;; | |
83 | esac | |
84 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
85 | # in which case we are not to be found in the path. | |
86 | if test "x$as_myself" = x; then | |
87 | as_myself=$0 | |
88 | fi | |
89 | if test ! -f "$as_myself"; then | |
5556819a | 90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
91 | { (exit 1); exit 1; } |
92 | fi | |
93 | ||
ad6254c5 | 94 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
95 | for as_var in ENV MAIL MAILPATH |
96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
97 | done | |
ad6254c5 AK |
98 | PS1='$ ' |
99 | PS2='> ' | |
100 | PS4='+ ' | |
101 | ||
102 | # NLS nuisances. | |
5556819a AK |
103 | for as_var in \ |
104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
106 | LC_TELEPHONE LC_TIME | |
107 | do | |
108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
109 | eval $as_var=C; export $as_var | |
110 | else | |
111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
112 | fi | |
113 | done | |
ad6254c5 AK |
114 | |
115 | # Required to use basename. | |
7a197a62 AK |
116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
118 | as_expr=expr |
119 | else | |
120 | as_expr=false | |
121 | fi | |
122 | ||
7a197a62 | 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
124 | as_basename=basename |
125 | else | |
126 | as_basename=false | |
127 | fi | |
128 | ||
129 | ||
130 | # Name of the executable. | |
7a197a62 | 131 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
133 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
5556819a | 135 | echo X/"$0" | |
7a197a62 AK |
136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
137 | s//\1/ | |
138 | q | |
139 | } | |
140 | /^X\/\(\/\/\)$/{ | |
141 | s//\1/ | |
142 | q | |
143 | } | |
144 | /^X\/\(\/\).*/{ | |
145 | s//\1/ | |
146 | q | |
147 | } | |
148 | s/.*/./; q'` | |
ad6254c5 | 149 | |
7a197a62 AK |
150 | # CDPATH. |
151 | $as_unset CDPATH | |
ad6254c5 | 152 | |
ad6254c5 | 153 | |
7a197a62 AK |
154 | if test "x$CONFIG_SHELL" = x; then |
155 | if (eval ":") 2>/dev/null; then | |
156 | as_have_required=yes | |
157 | else | |
158 | as_have_required=no | |
ad6254c5 AK |
159 | fi |
160 | ||
5556819a | 161 | if test $as_have_required = yes && (eval ": |
7a197a62 AK |
162 | (as_func_return () { |
163 | (exit \$1) | |
164 | } | |
165 | as_func_success () { | |
166 | as_func_return 0 | |
167 | } | |
168 | as_func_failure () { | |
169 | as_func_return 1 | |
170 | } | |
171 | as_func_ret_success () { | |
172 | return 0 | |
173 | } | |
174 | as_func_ret_failure () { | |
175 | return 1 | |
176 | } | |
ad6254c5 | 177 | |
7a197a62 AK |
178 | exitcode=0 |
179 | if as_func_success; then | |
180 | : | |
181 | else | |
182 | exitcode=1 | |
183 | echo as_func_success failed. | |
184 | fi | |
ad6254c5 | 185 | |
7a197a62 AK |
186 | if as_func_failure; then |
187 | exitcode=1 | |
188 | echo as_func_failure succeeded. | |
189 | fi | |
190 | ||
191 | if as_func_ret_success; then | |
192 | : | |
193 | else | |
194 | exitcode=1 | |
195 | echo as_func_ret_success failed. | |
196 | fi | |
197 | ||
198 | if as_func_ret_failure; then | |
199 | exitcode=1 | |
200 | echo as_func_ret_failure succeeded. | |
201 | fi | |
202 | ||
203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
204 | : | |
205 | else | |
206 | exitcode=1 | |
207 | echo positional parameters were not saved. | |
208 | fi | |
209 | ||
210 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
211 | ||
212 | ( | |
213 | as_lineno_1=\$LINENO | |
214 | as_lineno_2=\$LINENO | |
215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
217 | ") 2> /dev/null; then | |
218 | : | |
219 | else | |
220 | as_candidate_shells= | |
ad6254c5 | 221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25fbec5b | 222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
ad6254c5 AK |
223 | do |
224 | IFS=$as_save_IFS | |
225 | test -z "$as_dir" && as_dir=. | |
7a197a62 | 226 | case $as_dir in |
ad6254c5 | 227 | /*) |
7a197a62 AK |
228 | for as_base in sh bash ksh sh5; do |
229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
230 | done;; | |
231 | esac | |
232 | done | |
233 | IFS=$as_save_IFS | |
234 | ||
235 | ||
236 | for as_shell in $as_candidate_shells $SHELL; do | |
237 | # Try only shells that exist, to save several forks. | |
238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
239 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
241 | emulate sh | |
242 | NULLCMD=: | |
5556819a | 243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
7a197a62 AK |
244 | # is contrary to our usage. Disable this feature. |
245 | alias -g '${1+"$@"}'='"$@"' | |
246 | setopt NO_GLOB_SUBST | |
247 | else | |
25fbec5b AK |
248 | case `(set -o) 2>/dev/null` in |
249 | *posix*) set -o posix ;; | |
250 | esac | |
251 | ||
7a197a62 | 252 | fi |
25fbec5b | 253 | |
7a197a62 AK |
254 | |
255 | : | |
256 | _ASEOF | |
257 | }; then | |
258 | CONFIG_SHELL=$as_shell | |
259 | as_have_required=yes | |
260 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
262 | emulate sh | |
263 | NULLCMD=: | |
5556819a | 264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
7a197a62 AK |
265 | # is contrary to our usage. Disable this feature. |
266 | alias -g '${1+"$@"}'='"$@"' | |
267 | setopt NO_GLOB_SUBST | |
268 | else | |
25fbec5b AK |
269 | case `(set -o) 2>/dev/null` in |
270 | *posix*) set -o posix ;; | |
271 | esac | |
272 | ||
7a197a62 | 273 | fi |
25fbec5b | 274 | |
7a197a62 AK |
275 | |
276 | : | |
277 | (as_func_return () { | |
278 | (exit $1) | |
279 | } | |
280 | as_func_success () { | |
281 | as_func_return 0 | |
282 | } | |
283 | as_func_failure () { | |
284 | as_func_return 1 | |
285 | } | |
286 | as_func_ret_success () { | |
287 | return 0 | |
288 | } | |
289 | as_func_ret_failure () { | |
290 | return 1 | |
291 | } | |
292 | ||
293 | exitcode=0 | |
294 | if as_func_success; then | |
295 | : | |
296 | else | |
297 | exitcode=1 | |
298 | echo as_func_success failed. | |
299 | fi | |
300 | ||
301 | if as_func_failure; then | |
302 | exitcode=1 | |
303 | echo as_func_failure succeeded. | |
304 | fi | |
305 | ||
306 | if as_func_ret_success; then | |
307 | : | |
308 | else | |
309 | exitcode=1 | |
310 | echo as_func_ret_success failed. | |
311 | fi | |
312 | ||
313 | if as_func_ret_failure; then | |
314 | exitcode=1 | |
315 | echo as_func_ret_failure succeeded. | |
316 | fi | |
317 | ||
318 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
319 | : | |
320 | else | |
321 | exitcode=1 | |
322 | echo positional parameters were not saved. | |
323 | fi | |
324 | ||
325 | test $exitcode = 0) || { (exit 1); exit 1; } | |
326 | ||
327 | ( | |
ad6254c5 AK |
328 | as_lineno_1=$LINENO |
329 | as_lineno_2=$LINENO | |
ad6254c5 | 330 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 AK |
331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
332 | ||
333 | _ASEOF | |
334 | }; then | |
335 | break | |
336 | fi | |
337 | ||
338 | fi | |
339 | ||
340 | done | |
341 | ||
342 | if test "x$CONFIG_SHELL" != x; then | |
343 | for as_var in BASH_ENV ENV | |
5556819a AK |
344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
345 | done | |
346 | export CONFIG_SHELL | |
347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
7a197a62 AK |
348 | fi |
349 | ||
350 | ||
351 | if test $as_have_required = no; then | |
352 | echo This script requires a shell more modern than all the | |
353 | echo shells that I found on your system. Please install a | |
354 | echo modern shell, or manually run the script under such a | |
355 | echo shell if you do have one. | |
356 | { (exit 1); exit 1; } | |
357 | fi | |
358 | ||
359 | ||
360 | fi | |
361 | ||
362 | fi | |
363 | ||
364 | ||
365 | ||
366 | (eval "as_func_return () { | |
367 | (exit \$1) | |
368 | } | |
369 | as_func_success () { | |
370 | as_func_return 0 | |
371 | } | |
372 | as_func_failure () { | |
373 | as_func_return 1 | |
374 | } | |
375 | as_func_ret_success () { | |
376 | return 0 | |
377 | } | |
378 | as_func_ret_failure () { | |
379 | return 1 | |
380 | } | |
381 | ||
382 | exitcode=0 | |
383 | if as_func_success; then | |
384 | : | |
385 | else | |
386 | exitcode=1 | |
387 | echo as_func_success failed. | |
388 | fi | |
389 | ||
390 | if as_func_failure; then | |
391 | exitcode=1 | |
392 | echo as_func_failure succeeded. | |
393 | fi | |
394 | ||
395 | if as_func_ret_success; then | |
396 | : | |
397 | else | |
398 | exitcode=1 | |
399 | echo as_func_ret_success failed. | |
400 | fi | |
401 | ||
402 | if as_func_ret_failure; then | |
403 | exitcode=1 | |
404 | echo as_func_ret_failure succeeded. | |
405 | fi | |
406 | ||
407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
408 | : | |
409 | else | |
410 | exitcode=1 | |
411 | echo positional parameters were not saved. | |
412 | fi | |
413 | ||
414 | test \$exitcode = 0") || { | |
415 | echo No shell found that supports shell functions. | |
5556819a AK |
416 | echo Please tell autoconf@gnu.org about your system, |
417 | echo including any error possibly output before this | |
418 | echo message | |
7a197a62 AK |
419 | } |
420 | ||
421 | ||
422 | ||
423 | as_lineno_1=$LINENO | |
424 | as_lineno_2=$LINENO | |
425 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
ad6254c5 AK |
427 | |
428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
429 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
430 | # line-number line after each line using $LINENO; the second 'sed' |
431 | # does the real work. The second script uses 'N' to pair each | |
432 | # line-number line with the line containing $LINENO, and appends | |
433 | # trailing '-' during substitution so that $LINENO is not a special | |
434 | # case at line end. | |
ad6254c5 | 435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
436 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
437 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
438 | sed -n ' | |
439 | p | |
440 | /[$]LINENO/= | |
441 | ' <$as_myself | | |
ad6254c5 | 442 | sed ' |
7a197a62 AK |
443 | s/[$]LINENO.*/&-/ |
444 | t lineno | |
445 | b | |
446 | :lineno | |
ad6254c5 | 447 | N |
7a197a62 AK |
448 | :loop |
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 450 | t loop |
7a197a62 | 451 | s/-\n.*// |
ad6254c5 | 452 | ' >$as_me.lineno && |
7a197a62 | 453 | chmod +x "$as_me.lineno" || |
5556819a | 454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
455 | { (exit 1); exit 1; }; } |
456 | ||
457 | # Don't try to exec as it changes $[0], causing all sort of problems | |
458 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
459 | # original and so on. Autoconf is especially sensitive to this). |
460 | . "./$as_me.lineno" | |
ad6254c5 AK |
461 | # Exit status is that of the last command. |
462 | exit | |
463 | } | |
795ca3e5 | 464 | |
ad6254c5 | 465 | |
7a197a62 AK |
466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
467 | as_dirname=dirname | |
468 | else | |
469 | as_dirname=false | |
470 | fi | |
471 | ||
472 | ECHO_C= ECHO_N= ECHO_T= | |
473 | case `echo -n x` in | |
474 | -n*) | |
475 | case `echo 'x\c'` in | |
476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
477 | *) ECHO_C='\c';; | |
478 | esac;; | |
479 | *) | |
480 | ECHO_N='-n';; | |
ad6254c5 | 481 | esac |
5556819a | 482 | |
7a197a62 AK |
483 | if expr a : '\(a\)' >/dev/null 2>&1 && |
484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
485 | as_expr=expr |
486 | else | |
487 | as_expr=false | |
488 | fi | |
489 | ||
490 | rm -f conf$$ conf$$.exe conf$$.file | |
7a197a62 AK |
491 | if test -d conf$$.dir; then |
492 | rm -f conf$$.dir/conf$$.file | |
493 | else | |
494 | rm -f conf$$.dir | |
5556819a AK |
495 | mkdir conf$$.dir |
496 | fi | |
497 | echo >conf$$.file | |
498 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
499 | as_ln_s='ln -s' | |
500 | # ... but there are two gotchas: | |
501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
503 | # In both cases, we have to default to `cp -p'. | |
504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
ad6254c5 | 505 | as_ln_s='cp -p' |
5556819a AK |
506 | elif ln conf$$.file conf$$ 2>/dev/null; then |
507 | as_ln_s=ln | |
ad6254c5 AK |
508 | else |
509 | as_ln_s='cp -p' | |
510 | fi | |
7a197a62 AK |
511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
512 | rmdir conf$$.dir 2>/dev/null | |
ad6254c5 AK |
513 | |
514 | if mkdir -p . 2>/dev/null; then | |
515 | as_mkdir_p=: | |
516 | else | |
8a2fc586 | 517 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
518 | as_mkdir_p=false |
519 | fi | |
520 | ||
25fbec5b AK |
521 | if test -x / >/dev/null 2>&1; then |
522 | as_test_x='test -x' | |
7a197a62 | 523 | else |
25fbec5b AK |
524 | if ls -dL / >/dev/null 2>&1; then |
525 | as_ls_L_option=L | |
526 | else | |
527 | as_ls_L_option= | |
528 | fi | |
529 | as_test_x=' | |
530 | eval sh -c '\'' | |
531 | if test -d "$1"; then | |
5556819a | 532 | test -d "$1/."; |
25fbec5b AK |
533 | else |
534 | case $1 in | |
5556819a | 535 | -*)set "./$1";; |
25fbec5b AK |
536 | esac; |
537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
538 | ???[sx]*):;;*)false;;esac;fi | |
539 | '\'' sh | |
540 | ' | |
7a197a62 | 541 | fi |
25fbec5b | 542 | as_executable_p=$as_test_x |
ad6254c5 AK |
543 | |
544 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
546 | |
547 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
549 | |
550 | ||
ad6254c5 | 551 | |
7a197a62 | 552 | exec 7<&0 </dev/null 6>&1 |
ad6254c5 AK |
553 | |
554 | # Name of the host. | |
555 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
556 | # so uname gets run too. | |
557 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
558 | ||
ad6254c5 AK |
559 | # |
560 | # Initializations. | |
561 | # | |
795ca3e5 | 562 | ac_default_prefix=/usr/local |
7a197a62 | 563 | ac_clean_files= |
ad6254c5 | 564 | ac_config_libobj_dir=. |
7a197a62 | 565 | LIBOBJS= |
ad6254c5 AK |
566 | cross_compiling=no |
567 | subdirs= | |
568 | MFLAGS= | |
569 | MAKEFLAGS= | |
570 | SHELL=${CONFIG_SHELL-/bin/sh} | |
571 | ||
ad6254c5 AK |
572 | # Identity of this package. |
573 | PACKAGE_NAME= | |
574 | PACKAGE_TARNAME= | |
575 | PACKAGE_VERSION= | |
576 | PACKAGE_STRING= | |
577 | PACKAGE_BUGREPORT= | |
578 | ||
579 | ac_unique_file="lib/device/dev-cache.h" | |
580 | # Factoring default headers for most tests. | |
581 | ac_includes_default="\ | |
582 | #include <stdio.h> | |
25fbec5b | 583 | #ifdef HAVE_SYS_TYPES_H |
ad6254c5 AK |
584 | # include <sys/types.h> |
585 | #endif | |
25fbec5b | 586 | #ifdef HAVE_SYS_STAT_H |
ad6254c5 AK |
587 | # include <sys/stat.h> |
588 | #endif | |
25fbec5b | 589 | #ifdef STDC_HEADERS |
ad6254c5 AK |
590 | # include <stdlib.h> |
591 | # include <stddef.h> | |
592 | #else | |
25fbec5b | 593 | # ifdef HAVE_STDLIB_H |
ad6254c5 AK |
594 | # include <stdlib.h> |
595 | # endif | |
596 | #endif | |
25fbec5b AK |
597 | #ifdef HAVE_STRING_H |
598 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
ad6254c5 AK |
599 | # include <memory.h> |
600 | # endif | |
601 | # include <string.h> | |
602 | #endif | |
25fbec5b | 603 | #ifdef HAVE_STRINGS_H |
ad6254c5 AK |
604 | # include <strings.h> |
605 | #endif | |
25fbec5b | 606 | #ifdef HAVE_INTTYPES_H |
ad6254c5 | 607 | # include <inttypes.h> |
ad6254c5 | 608 | #endif |
25fbec5b | 609 | #ifdef HAVE_STDINT_H |
7a197a62 AK |
610 | # include <stdint.h> |
611 | #endif | |
25fbec5b | 612 | #ifdef HAVE_UNISTD_H |
ad6254c5 AK |
613 | # include <unistd.h> |
614 | #endif" | |
615 | ||
795ca3e5 | 616 | ac_default_prefix=/usr |
7a197a62 AK |
617 | ac_subst_vars='SHELL |
618 | PATH_SEPARATOR | |
619 | PACKAGE_NAME | |
620 | PACKAGE_TARNAME | |
621 | PACKAGE_VERSION | |
622 | PACKAGE_STRING | |
623 | PACKAGE_BUGREPORT | |
624 | exec_prefix | |
625 | prefix | |
626 | program_transform_name | |
627 | bindir | |
628 | sbindir | |
629 | libexecdir | |
630 | datarootdir | |
631 | datadir | |
632 | sysconfdir | |
633 | sharedstatedir | |
634 | localstatedir | |
635 | includedir | |
636 | oldincludedir | |
637 | docdir | |
638 | infodir | |
639 | htmldir | |
640 | dvidir | |
641 | pdfdir | |
642 | psdir | |
643 | libdir | |
644 | localedir | |
645 | mandir | |
646 | DEFS | |
647 | ECHO_C | |
648 | ECHO_N | |
649 | ECHO_T | |
650 | LIBS | |
651 | build_alias | |
652 | host_alias | |
653 | target_alias | |
654 | build | |
655 | build_cpu | |
656 | build_vendor | |
657 | build_os | |
658 | host | |
659 | host_cpu | |
660 | host_vendor | |
661 | host_os | |
662 | target | |
663 | target_cpu | |
664 | target_vendor | |
665 | target_os | |
666 | AWK | |
667 | CC | |
668 | CFLAGS | |
669 | LDFLAGS | |
670 | CPPFLAGS | |
671 | ac_ct_CC | |
672 | EXEEXT | |
673 | OBJEXT | |
d0191583 JM |
674 | CPP |
675 | GREP | |
676 | EGREP | |
7a197a62 AK |
677 | INSTALL_PROGRAM |
678 | INSTALL_SCRIPT | |
679 | INSTALL_DATA | |
680 | LN_S | |
681 | SET_MAKE | |
682 | RANLIB | |
683 | CFLOW_CMD | |
684 | CSCOPE_CMD | |
7a197a62 AK |
685 | ALLOCA |
686 | LIBOBJS | |
687 | POW_LIB | |
fddafd51 ZK |
688 | LCOV |
689 | GENHTML | |
d179cc7a | 690 | LVM2CMD_LIB |
7a197a62 AK |
691 | MSGFMT |
692 | MODPROBE_CMD | |
d0191583 | 693 | BUILD_DMEVENTD |
7a197a62 | 694 | CLDFLAGS |
7a197a62 | 695 | CLDNOWHOLEARCHIVE |
d0191583 JM |
696 | CLDWHOLEARCHIVE |
697 | CLUSTER | |
698 | CLVMD | |
699 | CMDLIB | |
700 | COPTIMISE_FLAG | |
7a197a62 AK |
701 | DEBUG |
702 | DEVMAPPER | |
d0191583 JM |
703 | DMDIR |
704 | DMEVENTD | |
705 | DM_COMPAT | |
706 | DM_DEVICE_GID | |
707 | DM_DEVICE_MODE | |
708 | DM_DEVICE_UID | |
709 | DM_IOCTLS | |
710 | DM_LIB_VERSION | |
711 | FSADM | |
712 | GROUP | |
7a197a62 | 713 | HAVE_LIBDL |
7a197a62 | 714 | HAVE_REALTIME |
d0191583 JM |
715 | HAVE_SELINUX |
716 | INTL | |
717 | INTL_PACKAGE | |
718 | JOBS | |
719 | LDDEPS | |
720 | LIB_SUFFIX | |
7a197a62 | 721 | LOCALEDIR |
d0191583 JM |
722 | LVM1 |
723 | LVM1_FALLBACK | |
7a197a62 | 724 | CONFDIR |
d0191583 JM |
725 | LVM_VERSION |
726 | MIRRORS | |
727 | OWNER | |
728 | PKGCONFIG | |
729 | POOL | |
730 | SNAPSHOTS | |
7a197a62 | 731 | STATICDIR |
d0191583 | 732 | STATIC_LINK |
66e941e8 | 733 | LIB_PTHREAD |
7a197a62 | 734 | LTLIBOBJS' |
ad6254c5 | 735 | ac_subst_files='' |
7a197a62 AK |
736 | ac_precious_vars='build_alias |
737 | host_alias | |
738 | target_alias | |
739 | CC | |
740 | CFLAGS | |
741 | LDFLAGS | |
25fbec5b | 742 | LIBS |
7a197a62 AK |
743 | CPPFLAGS |
744 | CPP' | |
745 | ||
795ca3e5 AK |
746 | |
747 | # Initialize some variables set by options. | |
ad6254c5 AK |
748 | ac_init_help= |
749 | ac_init_version=false | |
795ca3e5 AK |
750 | # The variables have the same names as the options, with |
751 | # dashes changed to underlines. | |
ad6254c5 | 752 | cache_file=/dev/null |
795ca3e5 | 753 | exec_prefix=NONE |
795ca3e5 | 754 | no_create= |
795ca3e5 AK |
755 | no_recursion= |
756 | prefix=NONE | |
757 | program_prefix=NONE | |
758 | program_suffix=NONE | |
759 | program_transform_name=s,x,x, | |
760 | silent= | |
761 | site= | |
762 | srcdir= | |
795ca3e5 AK |
763 | verbose= |
764 | x_includes=NONE | |
765 | x_libraries=NONE | |
ad6254c5 AK |
766 | |
767 | # Installation directory options. | |
768 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
769 | # and all the variables that are supposed to be based on exec_prefix | |
770 | # by default will actually change. | |
771 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 772 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
773 | bindir='${exec_prefix}/bin' |
774 | sbindir='${exec_prefix}/sbin' | |
775 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
776 | datarootdir='${prefix}/share' |
777 | datadir='${datarootdir}' | |
795ca3e5 AK |
778 | sysconfdir='${prefix}/etc' |
779 | sharedstatedir='${prefix}/com' | |
780 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
781 | includedir='${prefix}/include' |
782 | oldincludedir='/usr/include' | |
7a197a62 AK |
783 | docdir='${datarootdir}/doc/${PACKAGE}' |
784 | infodir='${datarootdir}/info' | |
785 | htmldir='${docdir}' | |
786 | dvidir='${docdir}' | |
787 | pdfdir='${docdir}' | |
788 | psdir='${docdir}' | |
789 | libdir='${exec_prefix}/lib' | |
790 | localedir='${datarootdir}/locale' | |
791 | mandir='${datarootdir}/man' | |
795ca3e5 | 792 | |
795ca3e5 | 793 | ac_prev= |
7a197a62 | 794 | ac_dashdash= |
795ca3e5 AK |
795 | for ac_option |
796 | do | |
795ca3e5 AK |
797 | # If the previous option needs an argument, assign it. |
798 | if test -n "$ac_prev"; then | |
7a197a62 | 799 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
800 | ac_prev= |
801 | continue | |
802 | fi | |
803 | ||
7a197a62 AK |
804 | case $ac_option in |
805 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
806 | *) ac_optarg=yes ;; | |
807 | esac | |
795ca3e5 AK |
808 | |
809 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
810 | ||
7a197a62 AK |
811 | case $ac_dashdash$ac_option in |
812 | --) | |
813 | ac_dashdash=yes ;; | |
795ca3e5 AK |
814 | |
815 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
816 | ac_prev=bindir ;; | |
817 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 818 | bindir=$ac_optarg ;; |
795ca3e5 AK |
819 | |
820 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 821 | ac_prev=build_alias ;; |
795ca3e5 | 822 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 823 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
824 | |
825 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
826 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
827 | ac_prev=cache_file ;; | |
828 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
829 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
830 | cache_file=$ac_optarg ;; |
831 | ||
832 | --config-cache | -C) | |
833 | cache_file=config.cache ;; | |
795ca3e5 | 834 | |
7a197a62 | 835 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 836 | ac_prev=datadir ;; |
7a197a62 | 837 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 838 | datadir=$ac_optarg ;; |
795ca3e5 | 839 | |
7a197a62 AK |
840 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
841 | | --dataroo | --dataro | --datar) | |
842 | ac_prev=datarootdir ;; | |
843 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
844 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
845 | datarootdir=$ac_optarg ;; | |
846 | ||
795ca3e5 | 847 | -disable-* | --disable-*) |
5556819a | 848 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 849 | # Reject names that are not valid shell variable names. |
5556819a AK |
850 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
851 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
ad6254c5 | 852 | { (exit 1); exit 1; }; } |
5556819a AK |
853 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
854 | eval enable_$ac_feature=no ;; | |
7a197a62 AK |
855 | |
856 | -docdir | --docdir | --docdi | --doc | --do) | |
857 | ac_prev=docdir ;; | |
858 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
859 | docdir=$ac_optarg ;; | |
860 | ||
861 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
862 | ac_prev=dvidir ;; | |
863 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
864 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
865 | |
866 | -enable-* | --enable-*) | |
5556819a | 867 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 868 | # Reject names that are not valid shell variable names. |
5556819a AK |
869 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
870 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
ad6254c5 | 871 | { (exit 1); exit 1; }; } |
5556819a AK |
872 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
873 | eval enable_$ac_feature=\$ac_optarg ;; | |
795ca3e5 AK |
874 | |
875 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
876 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
877 | | --exec | --exe | --ex) | |
878 | ac_prev=exec_prefix ;; | |
879 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
880 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
881 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 882 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
883 | |
884 | -gas | --gas | --ga | --g) | |
885 | # Obsolete; use --with-gas. | |
886 | with_gas=yes ;; | |
887 | ||
ad6254c5 AK |
888 | -help | --help | --hel | --he | -h) |
889 | ac_init_help=long ;; | |
890 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
891 | ac_init_help=recursive ;; | |
892 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
893 | ac_init_help=short ;; | |
795ca3e5 AK |
894 | |
895 | -host | --host | --hos | --ho) | |
ad6254c5 | 896 | ac_prev=host_alias ;; |
795ca3e5 | 897 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 898 | host_alias=$ac_optarg ;; |
795ca3e5 | 899 | |
7a197a62 AK |
900 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
901 | ac_prev=htmldir ;; | |
902 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
903 | | --ht=*) | |
904 | htmldir=$ac_optarg ;; | |
905 | ||
795ca3e5 AK |
906 | -includedir | --includedir | --includedi | --included | --include \ |
907 | | --includ | --inclu | --incl | --inc) | |
908 | ac_prev=includedir ;; | |
909 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
910 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 911 | includedir=$ac_optarg ;; |
795ca3e5 AK |
912 | |
913 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
914 | ac_prev=infodir ;; | |
915 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 916 | infodir=$ac_optarg ;; |
795ca3e5 AK |
917 | |
918 | -libdir | --libdir | --libdi | --libd) | |
919 | ac_prev=libdir ;; | |
920 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 921 | libdir=$ac_optarg ;; |
795ca3e5 AK |
922 | |
923 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
924 | | --libexe | --libex | --libe) | |
925 | ac_prev=libexecdir ;; | |
926 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
927 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 928 | libexecdir=$ac_optarg ;; |
795ca3e5 | 929 | |
7a197a62 AK |
930 | -localedir | --localedir | --localedi | --localed | --locale) |
931 | ac_prev=localedir ;; | |
932 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
933 | localedir=$ac_optarg ;; | |
934 | ||
795ca3e5 | 935 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 936 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
937 | ac_prev=localstatedir ;; |
938 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 939 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 940 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
941 | |
942 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
943 | ac_prev=mandir ;; | |
944 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 945 | mandir=$ac_optarg ;; |
795ca3e5 AK |
946 | |
947 | -nfp | --nfp | --nf) | |
948 | # Obsolete; use --without-fp. | |
949 | with_fp=no ;; | |
950 | ||
951 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 952 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
953 | no_create=yes ;; |
954 | ||
955 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
956 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
957 | no_recursion=yes ;; | |
958 | ||
959 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
960 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
961 | | --oldin | --oldi | --old | --ol | --o) | |
962 | ac_prev=oldincludedir ;; | |
963 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
964 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
965 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 966 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
967 | |
968 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
969 | ac_prev=prefix ;; | |
970 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 971 | prefix=$ac_optarg ;; |
795ca3e5 AK |
972 | |
973 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
974 | | --program-pre | --program-pr | --program-p) | |
975 | ac_prev=program_prefix ;; | |
976 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
977 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 978 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
979 | |
980 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
981 | | --program-suf | --program-su | --program-s) | |
982 | ac_prev=program_suffix ;; | |
983 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
984 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 985 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
986 | |
987 | -program-transform-name | --program-transform-name \ | |
988 | | --program-transform-nam | --program-transform-na \ | |
989 | | --program-transform-n | --program-transform- \ | |
990 | | --program-transform | --program-transfor \ | |
991 | | --program-transfo | --program-transf \ | |
992 | | --program-trans | --program-tran \ | |
993 | | --progr-tra | --program-tr | --program-t) | |
994 | ac_prev=program_transform_name ;; | |
995 | -program-transform-name=* | --program-transform-name=* \ | |
996 | | --program-transform-nam=* | --program-transform-na=* \ | |
997 | | --program-transform-n=* | --program-transform-=* \ | |
998 | | --program-transform=* | --program-transfor=* \ | |
999 | | --program-transfo=* | --program-transf=* \ | |
1000 | | --program-trans=* | --program-tran=* \ | |
1001 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1002 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1003 | |
7a197a62 AK |
1004 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1005 | ac_prev=pdfdir ;; | |
1006 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1007 | pdfdir=$ac_optarg ;; | |
1008 | ||
1009 | -psdir | --psdir | --psdi | --psd | --ps) | |
1010 | ac_prev=psdir ;; | |
1011 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1012 | psdir=$ac_optarg ;; | |
1013 | ||
795ca3e5 AK |
1014 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1015 | | -silent | --silent | --silen | --sile | --sil) | |
1016 | silent=yes ;; | |
1017 | ||
1018 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1019 | ac_prev=sbindir ;; | |
1020 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1021 | | --sbi=* | --sb=*) | |
ad6254c5 | 1022 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1023 | |
1024 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1025 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1026 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1027 | | --sha | --sh) | |
1028 | ac_prev=sharedstatedir ;; | |
1029 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1030 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1031 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1032 | | --sha=* | --sh=*) | |
ad6254c5 | 1033 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1034 | |
1035 | -site | --site | --sit) | |
1036 | ac_prev=site ;; | |
1037 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1038 | site=$ac_optarg ;; |
795ca3e5 AK |
1039 | |
1040 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1041 | ac_prev=srcdir ;; | |
1042 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1043 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1044 | |
1045 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1046 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1047 | ac_prev=sysconfdir ;; | |
1048 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1049 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1050 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1051 | |
1052 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1053 | ac_prev=target_alias ;; |
795ca3e5 | 1054 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1055 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1056 | |
1057 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1058 | verbose=yes ;; | |
1059 | ||
ad6254c5 AK |
1060 | -version | --version | --versio | --versi | --vers | -V) |
1061 | ac_init_version=: ;; | |
795ca3e5 AK |
1062 | |
1063 | -with-* | --with-*) | |
5556819a | 1064 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1065 | # Reject names that are not valid shell variable names. |
5556819a AK |
1066 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1067 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
ad6254c5 | 1068 | { (exit 1); exit 1; }; } |
5556819a AK |
1069 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1070 | eval with_$ac_package=\$ac_optarg ;; | |
795ca3e5 AK |
1071 | |
1072 | -without-* | --without-*) | |
5556819a | 1073 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1074 | # Reject names that are not valid shell variable names. |
5556819a AK |
1075 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1076 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
ad6254c5 | 1077 | { (exit 1); exit 1; }; } |
5556819a AK |
1078 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1079 | eval with_$ac_package=no ;; | |
795ca3e5 AK |
1080 | |
1081 | --x) | |
1082 | # Obsolete; use --with-x. | |
1083 | with_x=yes ;; | |
1084 | ||
1085 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1086 | | --x-incl | --x-inc | --x-in | --x-i) | |
1087 | ac_prev=x_includes ;; | |
1088 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1089 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1090 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1091 | |
1092 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1093 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1094 | ac_prev=x_libraries ;; | |
1095 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1096 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1097 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1098 | |
5556819a | 1099 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1100 | Try \`$0 --help' for more information." >&2 |
1101 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1102 | ;; |
1103 | ||
ad6254c5 AK |
1104 | *=*) |
1105 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1106 | # Reject names that are not valid shell variable names. | |
1107 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
5556819a | 1108 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1109 | { (exit 1); exit 1; }; } |
7a197a62 | 1110 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1111 | export $ac_envvar ;; |
1112 | ||
795ca3e5 | 1113 | *) |
ad6254c5 | 1114 | # FIXME: should be removed in autoconf 3.0. |
5556819a | 1115 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1116 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5556819a | 1117 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1118 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1119 | ;; |
1120 | ||
1121 | esac | |
1122 | done | |
1123 | ||
1124 | if test -n "$ac_prev"; then | |
ad6254c5 | 1125 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
5556819a | 1126 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1127 | { (exit 1); exit 1; }; } |
795ca3e5 | 1128 | fi |
795ca3e5 | 1129 | |
5556819a | 1130 | # Be sure to have absolute directory names. |
7a197a62 AK |
1131 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1132 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1133 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1134 | libdir localedir mandir | |
795ca3e5 | 1135 | do |
7a197a62 | 1136 | eval ac_val=\$$ac_var |
ad6254c5 | 1137 | case $ac_val in |
7a197a62 AK |
1138 | [\\/$]* | ?:[\\/]* ) continue;; |
1139 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1140 | esac |
5556819a | 1141 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1142 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1143 | done |
1144 | ||
ad6254c5 AK |
1145 | # There might be people who depend on the old broken behavior: `$host' |
1146 | # used to hold the argument of --host etc. | |
1147 | # FIXME: To remove some day. | |
1148 | build=$build_alias | |
1149 | host=$host_alias | |
1150 | target=$target_alias | |
1151 | ||
1152 | # FIXME: To remove some day. | |
1153 | if test "x$host_alias" != x; then | |
1154 | if test "x$build_alias" = x; then | |
1155 | cross_compiling=maybe | |
5556819a | 1156 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1157 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1158 | elif test "x$build_alias" != "x$host_alias"; then | |
1159 | cross_compiling=yes | |
1160 | fi | |
1161 | fi | |
8106cdd5 | 1162 | |
ad6254c5 AK |
1163 | ac_tool_prefix= |
1164 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1165 | ||
1166 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1167 | |
795ca3e5 | 1168 | |
7a197a62 AK |
1169 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1170 | ac_ls_di=`ls -di .` && | |
1171 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
5556819a | 1172 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
7a197a62 AK |
1173 | { (exit 1); exit 1; }; } |
1174 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
5556819a | 1175 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1176 | { (exit 1); exit 1; }; } |
1177 | ||
1178 | ||
795ca3e5 AK |
1179 | # Find the source files, if location was not specified. |
1180 | if test -z "$srcdir"; then | |
1181 | ac_srcdir_defaulted=yes | |
7a197a62 | 1182 | # Try the directory containing this script, then the parent directory. |
5556819a AK |
1183 | ac_confdir=`$as_dirname -- "$0" || |
1184 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1185 | X"$0" : 'X\(//\)[^/]' \| \ | |
1186 | X"$0" : 'X\(//\)$' \| \ | |
1187 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
1188 | echo X"$0" | | |
7a197a62 AK |
1189 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1190 | s//\1/ | |
1191 | q | |
1192 | } | |
1193 | /^X\(\/\/\)[^/].*/{ | |
1194 | s//\1/ | |
1195 | q | |
1196 | } | |
1197 | /^X\(\/\/\)$/{ | |
1198 | s//\1/ | |
1199 | q | |
1200 | } | |
1201 | /^X\(\/\).*/{ | |
1202 | s//\1/ | |
1203 | q | |
1204 | } | |
1205 | s/.*/./; q'` | |
795ca3e5 | 1206 | srcdir=$ac_confdir |
7a197a62 | 1207 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1208 | srcdir=.. |
1209 | fi | |
1210 | else | |
1211 | ac_srcdir_defaulted=no | |
1212 | fi | |
7a197a62 AK |
1213 | if test ! -r "$srcdir/$ac_unique_file"; then |
1214 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
5556819a | 1215 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1216 | { (exit 1); exit 1; }; } |
795ca3e5 | 1217 | fi |
7a197a62 AK |
1218 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1219 | ac_abs_confdir=`( | |
5556819a | 1220 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1221 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1222 | pwd)` |
1223 | # When building in place, set srcdir=. | |
1224 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1225 | srcdir=. | |
1226 | fi | |
1227 | # Remove unnecessary trailing slashes from srcdir. | |
1228 | # Double slashes in file names in object file debugging info | |
1229 | # mess up M-x gdb in Emacs. | |
1230 | case $srcdir in | |
1231 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1232 | esac | |
1233 | for ac_var in $ac_precious_vars; do | |
1234 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1235 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1236 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1237 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1238 | done | |
ad6254c5 AK |
1239 | |
1240 | # | |
1241 | # Report the --help message. | |
1242 | # | |
1243 | if test "$ac_init_help" = "long"; then | |
1244 | # Omit some internal or obsolete options to make the list less imposing. | |
1245 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1246 | cat <<_ACEOF | |
1247 | \`configure' configures this package to adapt to many kinds of systems. | |
1248 | ||
1249 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1250 | ||
1251 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1252 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1253 | ||
1254 | Defaults for the options are specified in brackets. | |
1255 | ||
1256 | Configuration: | |
1257 | -h, --help display this help and exit | |
1258 | --help=short display options specific to this package | |
1259 | --help=recursive display the short help of all the included packages | |
1260 | -V, --version display version information and exit | |
1261 | -q, --quiet, --silent do not print \`checking...' messages | |
1262 | --cache-file=FILE cache test results in FILE [disabled] | |
1263 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1264 | -n, --no-create do not create output files | |
1265 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1266 | ||
ad6254c5 AK |
1267 | Installation directories: |
1268 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5556819a | 1269 | [$ac_default_prefix] |
ad6254c5 | 1270 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5556819a | 1271 | [PREFIX] |
ad6254c5 AK |
1272 | |
1273 | By default, \`make install' will install all the files in | |
1274 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1275 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1276 | for instance \`--prefix=\$HOME'. | |
1277 | ||
1278 | For better control, use the options below. | |
1279 | ||
1280 | Fine tuning of the installation directories: | |
5556819a AK |
1281 | --bindir=DIR user executables [EPREFIX/bin] |
1282 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1283 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1284 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1285 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1286 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1287 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1288 | --includedir=DIR C header files [PREFIX/include] | |
1289 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1290 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1291 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1292 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1293 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1294 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1295 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1296 | --htmldir=DIR html documentation [DOCDIR] | |
1297 | --dvidir=DIR dvi documentation [DOCDIR] | |
1298 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1299 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1300 | _ACEOF |
1301 | ||
1302 | cat <<\_ACEOF | |
1303 | ||
1304 | System types: | |
1305 | --build=BUILD configure for building on BUILD [guessed] | |
1306 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1307 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1308 | _ACEOF | |
1309 | fi | |
1310 | ||
1311 | if test -n "$ac_init_help"; then | |
1312 | ||
1313 | cat <<\_ACEOF | |
1314 | ||
1315 | Optional Features: | |
1316 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1317 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
ad6254c5 AK |
1318 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if |
1319 | device-mapper is missing from the kernel | |
1b523347 | 1320 | --disable-readline Disable readline support |
3d978351 | 1321 | --disable-realtime Disable realtime clock support |
ad6254c5 | 1322 | --enable-debug Enable debugging |
5556819a | 1323 | --enable-profiling Gather gcov profiling data |
ad6254c5 AK |
1324 | --disable-devmapper Disable device-mapper interaction |
1325 | --disable-o_direct Disable O_DIRECT | |
1326 | --enable-cmdlib Build shared command library | |
1327 | --enable-fsadm Enable fsadm | |
15d91f5a | 1328 | --enable-dmeventd Enable the device-mapper event daemon |
d0191583 JM |
1329 | --enable-static_link Use this to link the tools to their libraries |
1330 | statically. Default is dynamic linking | |
1331 | --disable-selinux Disable selinux support | |
ad6254c5 AK |
1332 | --enable-nls Enable Native Language Support |
1333 | ||
1334 | Optional Packages: | |
1335 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1336 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d0191583 JM |
1337 | --with-user=USER Set the owner of installed files [USER=root] |
1338 | --with-group=GROUP Set the group owner of installed files [GROUP=root] | |
ad6254c5 AK |
1339 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
1340 | TYPE=internal | |
1341 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
1342 | TYPE=internal | |
1343 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
1344 | TYPE=internal | |
1345 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
1346 | TYPE=internal | |
1347 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
1348 | TYPE=internal | |
5c7fc7c4 | 1349 | --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all |
a266258f | 1350 | TYPE=none |
d0191583 JM |
1351 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
1352 | --with-localedir=DIR Translation files in DIR [PREFIX/share/locale] | |
ad6254c5 AK |
1353 | --with-confdir=DIR Configuration files in DIR /etc |
1354 | --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin | |
33f732c5 | 1355 | --with-dmdir=DIR Build against device-mapper source tree in DIR |
ad6254c5 AK |
1356 | |
1357 | Some influential environment variables: | |
1358 | CC C compiler command | |
1359 | CFLAGS C compiler flags | |
1360 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1361 | nonstandard directory <lib dir> | |
25fbec5b | 1362 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1363 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1364 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 AK |
1365 | CPP C preprocessor |
1366 | ||
1367 | Use these variables to override the choices made by `configure' or to help | |
1368 | it to find libraries and programs with nonstandard names/locations. | |
1369 | ||
1370 | _ACEOF | |
7a197a62 | 1371 | ac_status=$? |
ad6254c5 AK |
1372 | fi |
1373 | ||
1374 | if test "$ac_init_help" = "recursive"; then | |
1375 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1376 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5556819a | 1377 | test -d "$ac_dir" || continue |
ad6254c5 AK |
1378 | ac_builddir=. |
1379 | ||
7a197a62 AK |
1380 | case "$ac_dir" in |
1381 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1382 | *) | |
5556819a | 1383 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7a197a62 | 1384 | # A ".." for each directory in $ac_dir_suffix. |
5556819a | 1385 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
7a197a62 AK |
1386 | case $ac_top_builddir_sub in |
1387 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1388 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1389 | esac ;; | |
1390 | esac | |
1391 | ac_abs_top_builddir=$ac_pwd | |
1392 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1393 | # for backward compatibility: | |
1394 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1395 | |
1396 | case $srcdir in | |
7a197a62 | 1397 | .) # We are building in place. |
ad6254c5 | 1398 | ac_srcdir=. |
7a197a62 AK |
1399 | ac_top_srcdir=$ac_top_builddir_sub |
1400 | ac_abs_top_srcdir=$ac_pwd ;; | |
1401 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1402 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1403 | ac_top_srcdir=$srcdir |
1404 | ac_abs_top_srcdir=$srcdir ;; | |
1405 | *) # Relative name. | |
1406 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1407 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1408 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1409 | esac |
7a197a62 AK |
1410 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1411 | ||
1412 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1413 | # Check for guested configure. | |
1414 | if test -f "$ac_srcdir/configure.gnu"; then | |
1415 | echo && | |
1416 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1417 | elif test -f "$ac_srcdir/configure"; then | |
1418 | echo && | |
1419 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1420 | else |
5556819a | 1421 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1422 | fi || ac_status=$? |
1423 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1424 | done |
1425 | fi | |
1426 | ||
7a197a62 | 1427 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1428 | if $ac_init_version; then |
1429 | cat <<\_ACEOF | |
7a197a62 | 1430 | configure |
5556819a | 1431 | generated by GNU Autoconf 2.61 |
ad6254c5 | 1432 | |
7a197a62 | 1433 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
5556819a | 1434 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
ad6254c5 AK |
1435 | This configure script is free software; the Free Software Foundation |
1436 | gives unlimited permission to copy, distribute and modify it. | |
1437 | _ACEOF | |
7a197a62 | 1438 | exit |
ad6254c5 | 1439 | fi |
7a197a62 | 1440 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1441 | This file contains any messages produced by compilers while |
1442 | running configure, to aid debugging if configure makes a mistake. | |
1443 | ||
1444 | It was created by $as_me, which was | |
5556819a | 1445 | generated by GNU Autoconf 2.61. Invocation command line was |
ad6254c5 AK |
1446 | |
1447 | $ $0 $@ | |
1448 | ||
1449 | _ACEOF | |
7a197a62 | 1450 | exec 5>>config.log |
ad6254c5 AK |
1451 | { |
1452 | cat <<_ASUNAME | |
1453 | ## --------- ## | |
1454 | ## Platform. ## | |
1455 | ## --------- ## | |
1456 | ||
1457 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1458 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1459 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1460 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1461 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1462 | ||
1463 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1464 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1465 | ||
1466 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1467 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1468 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1469 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1470 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1471 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1472 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1473 | ||
1474 | _ASUNAME | |
1475 | ||
1476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1477 | for as_dir in $PATH | |
1478 | do | |
1479 | IFS=$as_save_IFS | |
1480 | test -z "$as_dir" && as_dir=. | |
5556819a | 1481 | echo "PATH: $as_dir" |
ad6254c5 | 1482 | done |
7a197a62 | 1483 | IFS=$as_save_IFS |
ad6254c5 AK |
1484 | |
1485 | } >&5 | |
1486 | ||
1487 | cat >&5 <<_ACEOF | |
1488 | ||
1489 | ||
1490 | ## ----------- ## | |
1491 | ## Core tests. ## | |
1492 | ## ----------- ## | |
1493 | ||
1494 | _ACEOF | |
1495 | ||
1496 | ||
1497 | # Keep a trace of the command line. | |
1498 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1499 | # Strip out --silent because we don't want to record it for future runs. | |
1500 | # Also quote any args containing shell meta-characters. | |
1501 | # Make two passes to allow for proper duplicate-argument suppression. | |
1502 | ac_configure_args= | |
1503 | ac_configure_args0= | |
1504 | ac_configure_args1= | |
ad6254c5 AK |
1505 | ac_must_keep_next=false |
1506 | for ac_pass in 1 2 | |
1507 | do | |
1508 | for ac_arg | |
1509 | do | |
1510 | case $ac_arg in | |
1511 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1512 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1513 | | -silent | --silent | --silen | --sile | --sil) | |
1514 | continue ;; | |
7a197a62 | 1515 | *\'*) |
5556819a | 1516 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1517 | esac |
1518 | case $ac_pass in | |
1519 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1520 | 2) | |
1521 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1522 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1523 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1524 | else |
8a2fc586 AK |
1525 | case $ac_arg in |
1526 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1527 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1528 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1529 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1530 | case "$ac_configure_args0 " in | |
1531 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1532 | esac | |
1533 | ;; | |
1534 | -* ) ac_must_keep_next=true ;; | |
1535 | esac | |
ad6254c5 | 1536 | fi |
7a197a62 | 1537 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1538 | ;; |
1539 | esac | |
1540 | done | |
1541 | done | |
1542 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1543 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1544 | ||
1545 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1546 | # config.log. We remove comments because anyway the quotes in there | |
1547 | # would cause problems or look ugly. | |
7a197a62 AK |
1548 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1549 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1550 | trap 'exit_status=$? |
1551 | # Save into config.log some information that might help in debugging. | |
1552 | { | |
1553 | echo | |
1554 | ||
1555 | cat <<\_ASBOX | |
1556 | ## ---------------- ## | |
1557 | ## Cache variables. ## | |
1558 | ## ---------------- ## | |
1559 | _ASBOX | |
1560 | echo | |
1561 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1562 | ( |
1563 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1564 | eval ac_val=\$$ac_var | |
1565 | case $ac_val in #( | |
1566 | *${as_nl}*) | |
1567 | case $ac_var in #( | |
5556819a AK |
1568 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1569 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
7a197a62 AK |
1570 | esac |
1571 | case $ac_var in #( | |
1572 | _ | IFS | as_nl) ;; #( | |
1573 | *) $as_unset $ac_var ;; | |
1574 | esac ;; | |
1575 | esac | |
1576 | done | |
ad6254c5 | 1577 | (set) 2>&1 | |
7a197a62 AK |
1578 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1579 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1580 | sed -n \ |
7a197a62 AK |
1581 | "s/'\''/'\''\\\\'\'''\''/g; |
1582 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1583 | ;; #( | |
ad6254c5 | 1584 | *) |
7a197a62 | 1585 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1586 | ;; |
7a197a62 AK |
1587 | esac | |
1588 | sort | |
1589 | ) | |
ad6254c5 AK |
1590 | echo |
1591 | ||
1592 | cat <<\_ASBOX | |
1593 | ## ----------------- ## | |
1594 | ## Output variables. ## | |
1595 | ## ----------------- ## | |
1596 | _ASBOX | |
1597 | echo | |
1598 | for ac_var in $ac_subst_vars | |
1599 | do | |
7a197a62 AK |
1600 | eval ac_val=\$$ac_var |
1601 | case $ac_val in | |
5556819a | 1602 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1603 | esac |
5556819a | 1604 | echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1605 | done | sort |
1606 | echo | |
1607 | ||
1608 | if test -n "$ac_subst_files"; then | |
1609 | cat <<\_ASBOX | |
7a197a62 AK |
1610 | ## ------------------- ## |
1611 | ## File substitutions. ## | |
1612 | ## ------------------- ## | |
ad6254c5 AK |
1613 | _ASBOX |
1614 | echo | |
1615 | for ac_var in $ac_subst_files | |
1616 | do | |
7a197a62 AK |
1617 | eval ac_val=\$$ac_var |
1618 | case $ac_val in | |
5556819a | 1619 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1620 | esac |
5556819a | 1621 | echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1622 | done | sort |
1623 | echo | |
1624 | fi | |
1625 | ||
1626 | if test -s confdefs.h; then | |
1627 | cat <<\_ASBOX | |
1628 | ## ----------- ## | |
1629 | ## confdefs.h. ## | |
1630 | ## ----------- ## | |
1631 | _ASBOX | |
1632 | echo | |
7a197a62 | 1633 | cat confdefs.h |
ad6254c5 AK |
1634 | echo |
1635 | fi | |
1636 | test "$ac_signal" != 0 && | |
5556819a AK |
1637 | echo "$as_me: caught signal $ac_signal" |
1638 | echo "$as_me: exit $exit_status" | |
ad6254c5 | 1639 | } >&5 |
7a197a62 AK |
1640 | rm -f core *.core core.conftest.* && |
1641 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1642 | exit $exit_status |
7a197a62 | 1643 | ' 0 |
ad6254c5 AK |
1644 | for ac_signal in 1 2 13 15; do |
1645 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1646 | done | |
1647 | ac_signal=0 | |
1648 | ||
1649 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1650 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1651 | |
1652 | # Predefined preprocessor variables. | |
1653 | ||
1654 | cat >>confdefs.h <<_ACEOF | |
1655 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1656 | _ACEOF | |
1657 | ||
1658 | ||
1659 | cat >>confdefs.h <<_ACEOF | |
1660 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1661 | _ACEOF | |
1662 | ||
1663 | ||
1664 | cat >>confdefs.h <<_ACEOF | |
1665 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1666 | _ACEOF | |
8106cdd5 | 1667 | |
ad6254c5 AK |
1668 | |
1669 | cat >>confdefs.h <<_ACEOF | |
1670 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1671 | _ACEOF | |
1672 | ||
1673 | ||
1674 | cat >>confdefs.h <<_ACEOF | |
1675 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1676 | _ACEOF | |
1677 | ||
1678 | ||
1679 | # Let the site file select an alternate cache file if it wants to. | |
5556819a | 1680 | # Prefer explicitly selected file to automatically selected ones. |
7a197a62 | 1681 | if test -n "$CONFIG_SITE"; then |
5556819a | 1682 | set x "$CONFIG_SITE" |
7a197a62 | 1683 | elif test "x$prefix" != xNONE; then |
5556819a | 1684 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
7a197a62 | 1685 | else |
5556819a AK |
1686 | set x "$ac_default_prefix/share/config.site" \ |
1687 | "$ac_default_prefix/etc/config.site" | |
795ca3e5 | 1688 | fi |
5556819a AK |
1689 | shift |
1690 | for ac_site_file | |
7a197a62 | 1691 | do |
795ca3e5 | 1692 | if test -r "$ac_site_file"; then |
5556819a AK |
1693 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1694 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1695 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1696 | . "$ac_site_file" |
1697 | fi | |
1698 | done | |
1699 | ||
1700 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1701 | # Some versions of bash will fail to source /dev/null (special |
1702 | # files actually), so we avoid doing that. | |
1703 | if test -f "$cache_file"; then | |
5556819a AK |
1704 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1705 | echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 1706 | case $cache_file in |
7a197a62 AK |
1707 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1708 | *) . "./$cache_file";; | |
ad6254c5 AK |
1709 | esac |
1710 | fi | |
795ca3e5 | 1711 | else |
5556819a AK |
1712 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1713 | echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
1714 | >$cache_file |
1715 | fi | |
1716 | ||
1717 | # Check that the precious variables saved in the cache have kept the same | |
1718 | # value. | |
1719 | ac_cache_corrupted=false | |
7a197a62 | 1720 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
1721 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1722 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
1723 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1724 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
1725 | case $ac_old_set,$ac_new_set in |
1726 | set,) | |
5556819a AK |
1727 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1728 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
1729 | ac_cache_corrupted=: ;; |
1730 | ,set) | |
5556819a AK |
1731 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1732 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
1733 | ac_cache_corrupted=: ;; |
1734 | ,);; | |
1735 | *) | |
1736 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5556819a AK |
1737 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1738 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1739 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1740 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1741 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1742 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1743 | ac_cache_corrupted=: | |
ad6254c5 AK |
1744 | fi;; |
1745 | esac | |
1746 | # Pass precious variables to config.status. | |
1747 | if test "$ac_new_set" = set; then | |
1748 | case $ac_new_val in | |
5556819a | 1749 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1750 | *) ac_arg=$ac_var=$ac_new_val ;; |
1751 | esac | |
1752 | case " $ac_configure_args " in | |
1753 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1754 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1755 | esac | |
1756 | fi | |
1757 | done | |
1758 | if $ac_cache_corrupted; then | |
5556819a AK |
1759 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1760 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1761 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1762 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 1763 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1764 | fi |
1765 | ||
ad6254c5 AK |
1766 | |
1767 | ||
1768 | ||
1769 | ||
1770 | ||
1771 | ||
1772 | ||
1773 | ||
1774 | ||
1775 | ||
1776 | ||
1777 | ||
1778 | ||
1779 | ||
1780 | ||
1781 | ||
7a197a62 AK |
1782 | ac_ext=c |
1783 | ac_cpp='$CPP $CPPFLAGS' | |
1784 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1785 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1786 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 1787 | |
795ca3e5 AK |
1788 | |
1789 | ||
7a197a62 | 1790 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
1791 | |
1792 | ||
80992638 | 1793 | ################################################################################ |
795ca3e5 | 1794 | ac_aux_dir= |
7a197a62 AK |
1795 | for ac_dir in autoconf "$srcdir"/autoconf; do |
1796 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
1797 | ac_aux_dir=$ac_dir |
1798 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1799 | break | |
7a197a62 | 1800 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
1801 | ac_aux_dir=$ac_dir |
1802 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1803 | break | |
7a197a62 | 1804 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
1805 | ac_aux_dir=$ac_dir |
1806 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1807 | break | |
795ca3e5 AK |
1808 | fi |
1809 | done | |
1810 | if test -z "$ac_aux_dir"; then | |
5556819a AK |
1811 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
1812 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 1813 | { (exit 1); exit 1; }; } |
795ca3e5 | 1814 | fi |
7a197a62 AK |
1815 | |
1816 | # These three variables are undocumented and unsupported, | |
1817 | # and are intended to be withdrawn in a future Autoconf release. | |
1818 | # They can cause serious problems if a builder's source tree is in a directory | |
1819 | # whose full name contains unusual characters. | |
1820 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1821 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1822 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1823 | ||
8ce0cbda AK |
1824 | |
1825 | ||
ad6254c5 | 1826 | ################################################################################ |
8ce0cbda | 1827 | # Make sure we can run config.sub. |
7a197a62 | 1828 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
5556819a AK |
1829 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
1830 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
1831 | { (exit 1); exit 1; }; } |
1832 | ||
5556819a AK |
1833 | { echo "$as_me:$LINENO: checking build system type" >&5 |
1834 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
ad6254c5 | 1835 | if test "${ac_cv_build+set}" = set; then |
5556819a | 1836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 1837 | else |
7a197a62 AK |
1838 | ac_build_alias=$build_alias |
1839 | test "x$ac_build_alias" = x && | |
1840 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
1841 | test "x$ac_build_alias" = x && | |
5556819a AK |
1842 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1843 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 1844 | { (exit 1); exit 1; }; } |
7a197a62 | 1845 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
5556819a AK |
1846 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
1847 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
1848 | { (exit 1); exit 1; }; } |
1849 | ||
1850 | fi | |
5556819a AK |
1851 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1852 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
7a197a62 AK |
1853 | case $ac_cv_build in |
1854 | *-*-*) ;; | |
5556819a AK |
1855 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
1856 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
1857 | { (exit 1); exit 1; }; };; |
1858 | esac | |
ad6254c5 | 1859 | build=$ac_cv_build |
7a197a62 AK |
1860 | ac_save_IFS=$IFS; IFS='-' |
1861 | set x $ac_cv_build | |
1862 | shift | |
1863 | build_cpu=$1 | |
1864 | build_vendor=$2 | |
1865 | shift; shift | |
1866 | # Remember, the first character of IFS is used to create $*, | |
1867 | # except with old shells: | |
1868 | build_os=$* | |
1869 | IFS=$ac_save_IFS | |
1870 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
1871 | |
1872 | ||
5556819a AK |
1873 | { echo "$as_me:$LINENO: checking host system type" >&5 |
1874 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
ad6254c5 | 1875 | if test "${ac_cv_host+set}" = set; then |
5556819a | 1876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 1877 | else |
7a197a62 AK |
1878 | if test "x$host_alias" = x; then |
1879 | ac_cv_host=$ac_cv_build | |
1880 | else | |
1881 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
5556819a AK |
1882 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
1883 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 1884 | { (exit 1); exit 1; }; } |
7a197a62 | 1885 | fi |
ad6254c5 AK |
1886 | |
1887 | fi | |
5556819a AK |
1888 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1889 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
7a197a62 AK |
1890 | case $ac_cv_host in |
1891 | *-*-*) ;; | |
5556819a AK |
1892 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
1893 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
1894 | { (exit 1); exit 1; }; };; |
1895 | esac | |
ad6254c5 | 1896 | host=$ac_cv_host |
7a197a62 AK |
1897 | ac_save_IFS=$IFS; IFS='-' |
1898 | set x $ac_cv_host | |
1899 | shift | |
1900 | host_cpu=$1 | |
1901 | host_vendor=$2 | |
1902 | shift; shift | |
1903 | # Remember, the first character of IFS is used to create $*, | |
1904 | # except with old shells: | |
1905 | host_os=$* | |
1906 | IFS=$ac_save_IFS | |
1907 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
1908 | |
1909 | ||
5556819a AK |
1910 | { echo "$as_me:$LINENO: checking target system type" >&5 |
1911 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } | |
ad6254c5 | 1912 | if test "${ac_cv_target+set}" = set; then |
5556819a | 1913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 1914 | else |
7a197a62 AK |
1915 | if test "x$target_alias" = x; then |
1916 | ac_cv_target=$ac_cv_host | |
1917 | else | |
1918 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
5556819a AK |
1919 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
1920 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 1921 | { (exit 1); exit 1; }; } |
7a197a62 | 1922 | fi |
8ce0cbda | 1923 | |
ad6254c5 | 1924 | fi |
5556819a AK |
1925 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
1926 | echo "${ECHO_T}$ac_cv_target" >&6; } | |
7a197a62 AK |
1927 | case $ac_cv_target in |
1928 | *-*-*) ;; | |
5556819a AK |
1929 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
1930 | echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
1931 | { (exit 1); exit 1; }; };; |
1932 | esac | |
ad6254c5 | 1933 | target=$ac_cv_target |
7a197a62 AK |
1934 | ac_save_IFS=$IFS; IFS='-' |
1935 | set x $ac_cv_target | |
1936 | shift | |
1937 | target_cpu=$1 | |
1938 | target_vendor=$2 | |
1939 | shift; shift | |
1940 | # Remember, the first character of IFS is used to create $*, | |
1941 | # except with old shells: | |
1942 | target_os=$* | |
1943 | IFS=$ac_save_IFS | |
1944 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 1945 | |
8ce0cbda | 1946 | |
ad6254c5 AK |
1947 | # The aliases save the names the user supplied, while $host etc. |
1948 | # will get canonicalized. | |
1949 | test -n "$target_alias" && | |
8ce0cbda AK |
1950 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1951 | NONENONEs,x,x, && | |
1952 | program_prefix=${target_alias}- | |
1953 | ||
8ce0cbda AK |
1954 | case "$host_os" in |
1955 | linux*) | |
8ce0cbda AK |
1956 | COPTIMISE_FLAG="-O2" |
1957 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
1958 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
1959 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
1960 | LDDEPS="$LDDEPS .export.sym" | |
1961 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 1962 | LIB_SUFFIX=so |
8ce0cbda AK |
1963 | DEVMAPPER=yes |
1964 | ODIRECT=yes | |
d0191583 | 1965 | DM_IOCTLS=yes |
8ce0cbda | 1966 | SELINUX=yes |
8b1a3214 | 1967 | REALTIME=yes |
8ce0cbda | 1968 | CLUSTER=internal |
d0191583 JM |
1969 | FSADM=no |
1970 | ;; | |
8ce0cbda AK |
1971 | darwin*) |
1972 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
1973 | COPTIMISE_FLAG="-O2" | |
1974 | CLDFLAGS="$CLDFLAGS" | |
1975 | CLDWHOLEARCHIVE="-all_load" | |
1976 | CLDNOWHOLEARCHIVE= | |
d0191583 | 1977 | LIB_SUFFIX=dylib |
a653923f | 1978 | DEVMAPPER=yes |
8ce0cbda | 1979 | ODIRECT=no |
d0191583 | 1980 | DM_IOCTLS=no |
8ce0cbda | 1981 | SELINUX=no |
8b1a3214 | 1982 | REALTIME=no |
8ce0cbda | 1983 | CLUSTER=none |
d0191583 JM |
1984 | FSADM=no |
1985 | ;; | |
8ce0cbda AK |
1986 | esac |
1987 | ||
80992638 | 1988 | ################################################################################ |
ad6254c5 | 1989 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 1990 | do |
ad6254c5 | 1991 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 1992 | set dummy $ac_prog; ac_word=$2 |
5556819a AK |
1993 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1994 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 1995 | if test "${ac_cv_prog_AWK+set}" = set; then |
5556819a | 1996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
1997 | else |
1998 | if test -n "$AWK"; then | |
1999 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2000 | else | |
ad6254c5 AK |
2001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2002 | for as_dir in $PATH | |
2003 | do | |
2004 | IFS=$as_save_IFS | |
2005 | test -z "$as_dir" && as_dir=. | |
2006 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2007 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2008 | ac_cv_prog_AWK="$ac_prog" |
5556819a | 2009 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2010 | break 2 |
2011 | fi | |
2012 | done | |
2013 | done | |
7a197a62 | 2014 | IFS=$as_save_IFS |
ad6254c5 | 2015 | |
795ca3e5 AK |
2016 | fi |
2017 | fi | |
ad6254c5 | 2018 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2019 | if test -n "$AWK"; then |
5556819a AK |
2020 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2021 | echo "${ECHO_T}$AWK" >&6; } | |
795ca3e5 | 2022 | else |
5556819a AK |
2023 | { echo "$as_me:$LINENO: result: no" >&5 |
2024 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2025 | fi |
2026 | ||
7a197a62 | 2027 | |
ad6254c5 AK |
2028 | test -n "$AWK" && break |
2029 | done | |
2030 | ||
2031 | ac_ext=c | |
2032 | ac_cpp='$CPP $CPPFLAGS' | |
2033 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2034 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2035 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2036 | if test -n "$ac_tool_prefix"; then | |
2037 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2038 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5556819a AK |
2039 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2040 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2041 | if test "${ac_cv_prog_CC+set}" = set; then |
5556819a | 2042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2043 | else |
2044 | if test -n "$CC"; then | |
2045 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2046 | else | |
2047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2048 | for as_dir in $PATH | |
2049 | do | |
2050 | IFS=$as_save_IFS | |
2051 | test -z "$as_dir" && as_dir=. | |
2052 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2053 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2054 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5556819a | 2055 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2056 | break 2 |
2057 | fi | |
2058 | done | |
8106cdd5 | 2059 | done |
7a197a62 | 2060 | IFS=$as_save_IFS |
8106cdd5 | 2061 | |
ad6254c5 AK |
2062 | fi |
2063 | fi | |
2064 | CC=$ac_cv_prog_CC | |
2065 | if test -n "$CC"; then | |
5556819a AK |
2066 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2067 | echo "${ECHO_T}$CC" >&6; } | |
ad6254c5 | 2068 | else |
5556819a AK |
2069 | { echo "$as_me:$LINENO: result: no" >&5 |
2070 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2071 | fi |
2072 | ||
7a197a62 | 2073 | |
ad6254c5 AK |
2074 | fi |
2075 | if test -z "$ac_cv_prog_CC"; then | |
2076 | ac_ct_CC=$CC | |
2077 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2078 | set dummy gcc; ac_word=$2 |
5556819a AK |
2079 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2080 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2081 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
5556819a | 2082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2083 | else |
2084 | if test -n "$ac_ct_CC"; then | |
2085 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2086 | else | |
2087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2088 | for as_dir in $PATH | |
2089 | do | |
2090 | IFS=$as_save_IFS | |
2091 | test -z "$as_dir" && as_dir=. | |
2092 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2093 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2094 | ac_cv_prog_ac_ct_CC="gcc" |
5556819a | 2095 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2096 | break 2 |
2097 | fi | |
2098 | done | |
2099 | done | |
7a197a62 | 2100 | IFS=$as_save_IFS |
ad6254c5 AK |
2101 | |
2102 | fi | |
2103 | fi | |
2104 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2105 | if test -n "$ac_ct_CC"; then | |
5556819a AK |
2106 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2107 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
ad6254c5 | 2108 | else |
5556819a AK |
2109 | { echo "$as_me:$LINENO: result: no" >&5 |
2110 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2111 | fi |
2112 | ||
7a197a62 AK |
2113 | if test "x$ac_ct_CC" = x; then |
2114 | CC="" | |
2115 | else | |
2116 | case $cross_compiling:$ac_tool_warned in | |
2117 | yes:) | |
5556819a | 2118 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2119 | whose name does not start with the host triplet. If you think this |
2120 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
5556819a | 2121 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2122 | whose name does not start with the host triplet. If you think this |
2123 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2124 | ac_tool_warned=yes ;; | |
2125 | esac | |
2126 | CC=$ac_ct_CC | |
2127 | fi | |
ad6254c5 AK |
2128 | else |
2129 | CC="$ac_cv_prog_CC" | |
2130 | fi | |
2131 | ||
2132 | if test -z "$CC"; then | |
7a197a62 AK |
2133 | if test -n "$ac_tool_prefix"; then |
2134 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2135 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5556819a AK |
2136 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2137 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2138 | if test "${ac_cv_prog_CC+set}" = set; then |
5556819a | 2139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 AK |
2140 | else |
2141 | if test -n "$CC"; then | |
2142 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2143 | else | |
ad6254c5 AK |
2144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2145 | for as_dir in $PATH | |
2146 | do | |
2147 | IFS=$as_save_IFS | |
2148 | test -z "$as_dir" && as_dir=. | |
2149 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2150 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2151 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5556819a | 2152 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2153 | break 2 |
2154 | fi | |
2155 | done | |
2156 | done | |
7a197a62 | 2157 | IFS=$as_save_IFS |
ad6254c5 | 2158 | |
8106cdd5 AK |
2159 | fi |
2160 | fi | |
ad6254c5 | 2161 | CC=$ac_cv_prog_CC |
8106cdd5 | 2162 | if test -n "$CC"; then |
5556819a AK |
2163 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2164 | echo "${ECHO_T}$CC" >&6; } | |
ad6254c5 | 2165 | else |
5556819a AK |
2166 | { echo "$as_me:$LINENO: result: no" >&5 |
2167 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2168 | fi |
2169 | ||
8106cdd5 | 2170 | |
7a197a62 | 2171 | fi |
ad6254c5 | 2172 | fi |
795ca3e5 AK |
2173 | if test -z "$CC"; then |
2174 | # Extract the first word of "cc", so it can be a program name with args. | |
2175 | set dummy cc; ac_word=$2 | |
5556819a AK |
2176 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2177 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2178 | if test "${ac_cv_prog_CC+set}" = set; then |
5556819a | 2179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
2180 | else |
2181 | if test -n "$CC"; then | |
2182 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2183 | else | |
795ca3e5 | 2184 | ac_prog_rejected=no |
ad6254c5 AK |
2185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2186 | for as_dir in $PATH | |
2187 | do | |
2188 | IFS=$as_save_IFS | |
2189 | test -z "$as_dir" && as_dir=. | |
2190 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2191 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2192 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2193 | ac_prog_rejected=yes | |
2194 | continue | |
2195 | fi | |
2196 | ac_cv_prog_CC="cc" | |
5556819a | 2197 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2198 | break 2 |
2199 | fi | |
2200 | done | |
2201 | done | |
7a197a62 | 2202 | IFS=$as_save_IFS |
ad6254c5 | 2203 | |
795ca3e5 AK |
2204 | if test $ac_prog_rejected = yes; then |
2205 | # We found a bogon in the path, so make sure we never use it. | |
2206 | set dummy $ac_cv_prog_CC | |
2207 | shift | |
ad6254c5 | 2208 | if test $# != 0; then |
795ca3e5 AK |
2209 | # We chose a different compiler from the bogus one. |
2210 | # However, it has the same basename, so the bogon will be chosen | |
2211 | # first if we set CC to just the basename; use the full file name. | |
2212 | shift | |
ad6254c5 | 2213 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2214 | fi |
2215 | fi | |
2216 | fi | |
2217 | fi | |
ad6254c5 | 2218 | CC=$ac_cv_prog_CC |
795ca3e5 | 2219 | if test -n "$CC"; then |
5556819a AK |
2220 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2221 | echo "${ECHO_T}$CC" >&6; } | |
795ca3e5 | 2222 | else |
5556819a AK |
2223 | { echo "$as_me:$LINENO: result: no" >&5 |
2224 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2225 | fi |
2226 | ||
7a197a62 | 2227 | |
ad6254c5 AK |
2228 | fi |
2229 | if test -z "$CC"; then | |
2230 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2231 | for ac_prog in cl.exe |
ad6254c5 AK |
2232 | do |
2233 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2234 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5556819a AK |
2235 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2236 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2237 | if test "${ac_cv_prog_CC+set}" = set; then |
5556819a | 2238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
2239 | else |
2240 | if test -n "$CC"; then | |
2241 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2242 | else | |
ad6254c5 AK |
2243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2244 | for as_dir in $PATH | |
2245 | do | |
2246 | IFS=$as_save_IFS | |
2247 | test -z "$as_dir" && as_dir=. | |
2248 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2249 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2250 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5556819a | 2251 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2252 | break 2 |
2253 | fi | |
2254 | done | |
2255 | done | |
7a197a62 | 2256 | IFS=$as_save_IFS |
ad6254c5 | 2257 | |
795ca3e5 AK |
2258 | fi |
2259 | fi | |
ad6254c5 | 2260 | CC=$ac_cv_prog_CC |
795ca3e5 | 2261 | if test -n "$CC"; then |
5556819a AK |
2262 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2263 | echo "${ECHO_T}$CC" >&6; } | |
795ca3e5 | 2264 | else |
5556819a AK |
2265 | { echo "$as_me:$LINENO: result: no" >&5 |
2266 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 | 2267 | fi |
ad6254c5 | 2268 | |
7a197a62 | 2269 | |
ad6254c5 AK |
2270 | test -n "$CC" && break |
2271 | done | |
2272 | fi | |
2273 | if test -z "$CC"; then | |
2274 | ac_ct_CC=$CC | |
7a197a62 | 2275 | for ac_prog in cl.exe |
ad6254c5 AK |
2276 | do |
2277 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2278 | set dummy $ac_prog; ac_word=$2 | |
5556819a AK |
2279 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2280 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2281 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
5556819a | 2282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2283 | else |
2284 | if test -n "$ac_ct_CC"; then | |
2285 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2286 | else | |
2287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2288 | for as_dir in $PATH | |
2289 | do | |
2290 | IFS=$as_save_IFS | |
2291 | test -z "$as_dir" && as_dir=. | |
2292 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2293 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2294 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5556819a | 2295 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2296 | break 2 |
795ca3e5 | 2297 | fi |
ad6254c5 AK |
2298 | done |
2299 | done | |
7a197a62 | 2300 | IFS=$as_save_IFS |
ad6254c5 AK |
2301 | |
2302 | fi | |
2303 | fi | |
2304 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2305 | if test -n "$ac_ct_CC"; then | |
5556819a AK |
2306 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2307 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
ad6254c5 | 2308 | else |
5556819a AK |
2309 | { echo "$as_me:$LINENO: result: no" >&5 |
2310 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2311 | fi |
2312 | ||
7a197a62 | 2313 | |
ad6254c5 AK |
2314 | test -n "$ac_ct_CC" && break |
2315 | done | |
795ca3e5 | 2316 | |
7a197a62 AK |
2317 | if test "x$ac_ct_CC" = x; then |
2318 | CC="" | |
2319 | else | |
2320 | case $cross_compiling:$ac_tool_warned in | |
2321 | yes:) | |
5556819a | 2322 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2323 | whose name does not start with the host triplet. If you think this |
2324 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
5556819a | 2325 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2326 | whose name does not start with the host triplet. If you think this |
2327 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2328 | ac_tool_warned=yes ;; | |
2329 | esac | |
2330 | CC=$ac_ct_CC | |
2331 | fi | |
ad6254c5 AK |
2332 | fi |
2333 | ||
2334 | fi | |
2335 | ||
2336 | ||
5556819a | 2337 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2338 | See \`config.log' for more details." >&5 |
5556819a | 2339 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 AK |
2340 | See \`config.log' for more details." >&2;} |
2341 | { (exit 1); exit 1; }; } | |
2342 | ||
2343 | # Provide some information about the compiler. | |
5556819a AK |
2344 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2345 | ac_compiler=`set X $ac_compile; echo $2` | |
7a197a62 AK |
2346 | { (ac_try="$ac_compiler --version >&5" |
2347 | case "(($ac_try" in | |
2348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2349 | *) ac_try_echo=$ac_try;; | |
2350 | esac | |
5556819a | 2351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2352 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2353 | ac_status=$? |
5556819a | 2354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2355 | (exit $ac_status); } |
7a197a62 AK |
2356 | { (ac_try="$ac_compiler -v >&5" |
2357 | case "(($ac_try" in | |
2358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2359 | *) ac_try_echo=$ac_try;; | |
2360 | esac | |
5556819a | 2361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2362 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2363 | ac_status=$? |
5556819a | 2364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2365 | (exit $ac_status); } |
7a197a62 AK |
2366 | { (ac_try="$ac_compiler -V >&5" |
2367 | case "(($ac_try" in | |
2368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2369 | *) ac_try_echo=$ac_try;; | |
2370 | esac | |
5556819a | 2371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2372 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2373 | ac_status=$? |
5556819a | 2374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2375 | (exit $ac_status); } |
2376 | ||
2377 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2378 | /* confdefs.h. */ |
2379 | _ACEOF | |
2380 | cat confdefs.h >>conftest.$ac_ext | |
2381 | cat >>conftest.$ac_ext <<_ACEOF | |
2382 | /* end confdefs.h. */ | |
2383 | ||
2384 | int | |
2385 | main () | |
2386 | { | |
2387 | ||
2388 | ; | |
2389 | return 0; | |
2390 | } | |
2391 | _ACEOF | |
2392 | ac_clean_files_save=$ac_clean_files | |
5556819a | 2393 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
ad6254c5 AK |
2394 | # Try to create an executable without -o first, disregard a.out. |
2395 | # It will help us diagnose broken compilers, and finding out an intuition | |
2396 | # of exeext. | |
5556819a AK |
2397 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2398 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
2399 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2400 | # | |
2401 | # List of possible output files, starting from the most likely. | |
2402 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2403 | # only as a last resort. b.out is created by i960 compilers. | |
2404 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2405 | # | |
2406 | # The IRIX 6 linker writes into existing files which may not be | |
2407 | # executable, retaining their permissions. Remove them first so a | |
2408 | # subsequent execution test works. | |
7a197a62 AK |
2409 | ac_rmfiles= |
2410 | for ac_file in $ac_files | |
2411 | do | |
2412 | case $ac_file in | |
5556819a | 2413 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
7a197a62 AK |
2414 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2415 | esac | |
2416 | done | |
2417 | rm -f $ac_rmfiles | |
2418 | ||
2419 | if { (ac_try="$ac_link_default" | |
2420 | case "(($ac_try" in | |
2421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2422 | *) ac_try_echo=$ac_try;; | |
2423 | esac | |
5556819a | 2424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2425 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2426 | ac_status=$? |
5556819a | 2427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2428 | (exit $ac_status); }; then |
7a197a62 AK |
2429 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2430 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2431 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2432 | # so that the user can short-circuit this test for compilers unknown to | |
2433 | # Autoconf. | |
25fbec5b | 2434 | for ac_file in $ac_files '' |
ad6254c5 AK |
2435 | do |
2436 | test -f "$ac_file" || continue | |
2437 | case $ac_file in | |
5556819a | 2438 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
8a2fc586 | 2439 | ;; |
ad6254c5 | 2440 | [ab].out ) |
8a2fc586 AK |
2441 | # We found the default executable, but exeext='' is most |
2442 | # certainly right. | |
2443 | break;; | |
ad6254c5 | 2444 | *.* ) |
7a197a62 AK |
2445 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2446 | then :; else | |
2447 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2448 | fi | |
2449 | # We set ac_cv_exeext here because the later test for it is not | |
2450 | # safe: cross compilers may not add the suffix if given an `-o' | |
2451 | # argument, so we may need to know it at that point already. | |
2452 | # Even if this section looks crufty: it has the advantage of | |
2453 | # actually working. | |
8a2fc586 | 2454 | break;; |
ad6254c5 | 2455 | * ) |
8a2fc586 | 2456 | break;; |
ad6254c5 AK |
2457 | esac |
2458 | done | |
7a197a62 AK |
2459 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2460 | ||
ad6254c5 | 2461 | else |
25fbec5b AK |
2462 | ac_file='' |
2463 | fi | |
2464 | ||
5556819a AK |
2465 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
2466 | echo "${ECHO_T}$ac_file" >&6; } | |
25fbec5b | 2467 | if test -z "$ac_file"; then |
5556819a | 2468 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2469 | sed 's/^/| /' conftest.$ac_ext >&5 |
2470 | ||
5556819a | 2471 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
ad6254c5 | 2472 | See \`config.log' for more details." >&5 |
5556819a | 2473 | echo "$as_me: error: C compiler cannot create executables |
ad6254c5 AK |
2474 | See \`config.log' for more details." >&2;} |
2475 | { (exit 77); exit 77; }; } | |
2476 | fi | |
2477 | ||
2478 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2479 | |
7a197a62 | 2480 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2481 | # the compiler is broken, or we cross compile. |
5556819a AK |
2482 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2483 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
ad6254c5 AK |
2484 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2485 | # If not cross compiling, check that we can run a simple program. | |
2486 | if test "$cross_compiling" != yes; then | |
2487 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2488 | { (case "(($ac_try" in |
2489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2490 | *) ac_try_echo=$ac_try;; | |
2491 | esac | |
5556819a | 2492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2493 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2494 | ac_status=$? |
5556819a | 2495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2496 | (exit $ac_status); }; }; then |
2497 | cross_compiling=no | |
795ca3e5 | 2498 | else |
ad6254c5 AK |
2499 | if test "$cross_compiling" = maybe; then |
2500 | cross_compiling=yes | |
2501 | else | |
5556819a | 2502 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
ad6254c5 AK |
2503 | If you meant to cross compile, use \`--host'. |
2504 | See \`config.log' for more details." >&5 | |
5556819a | 2505 | echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2506 | If you meant to cross compile, use \`--host'. |
2507 | See \`config.log' for more details." >&2;} | |
2508 | { (exit 1); exit 1; }; } | |
2509 | fi | |
795ca3e5 | 2510 | fi |
80992638 | 2511 | fi |
5556819a AK |
2512 | { echo "$as_me:$LINENO: result: yes" >&5 |
2513 | echo "${ECHO_T}yes" >&6; } | |
ad6254c5 | 2514 | |
5556819a | 2515 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2516 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2517 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2518 | # the compiler is broken, or we cross compile. |
5556819a AK |
2519 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2520 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2521 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2522 | echo "${ECHO_T}$cross_compiling" >&6; } | |
7a197a62 | 2523 | |
5556819a AK |
2524 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2525 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
7a197a62 AK |
2526 | if { (ac_try="$ac_link" |
2527 | case "(($ac_try" in | |
2528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2529 | *) ac_try_echo=$ac_try;; | |
2530 | esac | |
5556819a | 2531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2532 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2533 | ac_status=$? |
5556819a | 2534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2535 | (exit $ac_status); }; then |
2536 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2537 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2538 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2539 | # `rm'. | |
2540 | for ac_file in conftest.exe conftest conftest.*; do | |
2541 | test -f "$ac_file" || continue | |
2542 | case $ac_file in | |
5556819a | 2543 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
ad6254c5 | 2544 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2545 | break;; |
ad6254c5 AK |
2546 | * ) break;; |
2547 | esac | |
2548 | done | |
80992638 | 2549 | else |
5556819a | 2550 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2551 | See \`config.log' for more details." >&5 |
5556819a | 2552 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 AK |
2553 | See \`config.log' for more details." >&2;} |
2554 | { (exit 1); exit 1; }; } | |
2555 | fi | |
2556 | ||
2557 | rm -f conftest$ac_cv_exeext | |
5556819a AK |
2558 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2559 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2560 | |
2561 | rm -f conftest.$ac_ext | |
2562 | EXEEXT=$ac_cv_exeext | |
2563 | ac_exeext=$EXEEXT | |
5556819a AK |
2564 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2565 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
ad6254c5 | 2566 | if test "${ac_cv_objext+set}" = set; then |
5556819a | 2567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 2568 | else |
ad6254c5 | 2569 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2570 | /* confdefs.h. */ |
2571 | _ACEOF | |
2572 | cat confdefs.h >>conftest.$ac_ext | |
2573 | cat >>conftest.$ac_ext <<_ACEOF | |
2574 | /* end confdefs.h. */ | |
2575 | ||
2576 | int | |
2577 | main () | |
2578 | { | |
2579 | ||
2580 | ; | |
2581 | return 0; | |
2582 | } | |
2583 | _ACEOF | |
2584 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2585 | if { (ac_try="$ac_compile" |
2586 | case "(($ac_try" in | |
2587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2588 | *) ac_try_echo=$ac_try;; | |
2589 | esac | |
5556819a | 2590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2591 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2592 | ac_status=$? |
5556819a | 2593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2594 | (exit $ac_status); }; then |
7a197a62 AK |
2595 | for ac_file in conftest.o conftest.obj conftest.*; do |
2596 | test -f "$ac_file" || continue; | |
ad6254c5 | 2597 | case $ac_file in |
5556819a | 2598 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
ad6254c5 AK |
2599 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2600 | break;; | |
2601 | esac | |
2602 | done | |
2603 | else | |
5556819a | 2604 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2605 | sed 's/^/| /' conftest.$ac_ext >&5 |
2606 | ||
5556819a | 2607 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2608 | See \`config.log' for more details." >&5 |
5556819a | 2609 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 AK |
2610 | See \`config.log' for more details." >&2;} |
2611 | { (exit 1); exit 1; }; } | |
2612 | fi | |
2613 | ||
2614 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2615 | fi | |
5556819a AK |
2616 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2617 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2618 | OBJEXT=$ac_cv_objext |
2619 | ac_objext=$OBJEXT | |
5556819a AK |
2620 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2621 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
ad6254c5 | 2622 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
5556819a | 2623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2624 | else |
2625 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2626 | /* confdefs.h. */ |
2627 | _ACEOF | |
2628 | cat confdefs.h >>conftest.$ac_ext | |
2629 | cat >>conftest.$ac_ext <<_ACEOF | |
2630 | /* end confdefs.h. */ | |
2631 | ||
2632 | int | |
2633 | main () | |
2634 | { | |
2635 | #ifndef __GNUC__ | |
2636 | choke me | |
2637 | #endif | |
80992638 | 2638 | |
ad6254c5 AK |
2639 | ; |
2640 | return 0; | |
2641 | } | |
2642 | _ACEOF | |
2643 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2644 | if { (ac_try="$ac_compile" |
2645 | case "(($ac_try" in | |
2646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2647 | *) ac_try_echo=$ac_try;; | |
2648 | esac | |
5556819a | 2649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2650 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2651 | ac_status=$? |
8a2fc586 AK |
2652 | grep -v '^ *+' conftest.er1 >conftest.err |
2653 | rm -f conftest.er1 | |
2654 | cat conftest.err >&5 | |
5556819a | 2655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2656 | (exit $ac_status); } && { |
2657 | test -z "$ac_c_werror_flag" || | |
2658 | test ! -s conftest.err | |
2659 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 2660 | ac_compiler_gnu=yes |
80992638 | 2661 | else |
5556819a | 2662 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2663 | sed 's/^/| /' conftest.$ac_ext >&5 |
2664 | ||
7a197a62 | 2665 | ac_compiler_gnu=no |
8106cdd5 | 2666 | fi |
7a197a62 AK |
2667 | |
2668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2669 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 2670 | |
ad6254c5 | 2671 | fi |
5556819a AK |
2672 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2673 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
2674 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
ad6254c5 AK |
2675 | ac_test_CFLAGS=${CFLAGS+set} |
2676 | ac_save_CFLAGS=$CFLAGS | |
5556819a AK |
2677 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2678 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
ad6254c5 | 2679 | if test "${ac_cv_prog_cc_g+set}" = set; then |
5556819a | 2680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 2681 | else |
7a197a62 AK |
2682 | ac_save_c_werror_flag=$ac_c_werror_flag |
2683 | ac_c_werror_flag=yes | |
2684 | ac_cv_prog_cc_g=no | |
2685 | CFLAGS="-g" | |
2686 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2687 | /* confdefs.h. */ |
2688 | _ACEOF | |
2689 | cat confdefs.h >>conftest.$ac_ext | |
2690 | cat >>conftest.$ac_ext <<_ACEOF | |
2691 | /* end confdefs.h. */ | |
2692 | ||
2693 | int | |
2694 | main () | |
2695 | { | |
2696 | ||
2697 | ; | |
2698 | return 0; | |
2699 | } | |
2700 | _ACEOF | |
2701 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2702 | if { (ac_try="$ac_compile" |
2703 | case "(($ac_try" in | |
2704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2705 | *) ac_try_echo=$ac_try;; | |
2706 | esac | |
5556819a | 2707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2708 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2709 | ac_status=$? |
8a2fc586 AK |
2710 | grep -v '^ *+' conftest.er1 >conftest.err |
2711 | rm -f conftest.er1 | |
2712 | cat conftest.err >&5 | |
5556819a | 2713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2714 | (exit $ac_status); } && { |
2715 | test -z "$ac_c_werror_flag" || | |
2716 | test ! -s conftest.err | |
2717 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
2718 | ac_cv_prog_cc_g=yes |
2719 | else | |
5556819a | 2720 | echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2721 | sed 's/^/| /' conftest.$ac_ext >&5 |
2722 | ||
2723 | CFLAGS="" | |
2724 | cat >conftest.$ac_ext <<_ACEOF | |
2725 | /* confdefs.h. */ | |
2726 | _ACEOF | |
2727 | cat confdefs.h >>conftest.$ac_ext | |
2728 | cat >>conftest.$ac_ext <<_ACEOF | |
2729 | /* end confdefs.h. */ | |
2730 | ||
2731 | int | |
2732 | main () | |
2733 | { | |
2734 | ||
2735 | ; | |
2736 | return 0; | |
2737 | } | |
2738 | _ACEOF | |
2739 | rm -f conftest.$ac_objext | |
2740 | if { (ac_try="$ac_compile" | |
2741 | case "(($ac_try" in | |
2742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2743 | *) ac_try_echo=$ac_try;; | |
2744 | esac | |
5556819a | 2745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2746 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 2747 | ac_status=$? |
7a197a62 AK |
2748 | grep -v '^ *+' conftest.er1 >conftest.err |
2749 | rm -f conftest.er1 | |
2750 | cat conftest.err >&5 | |
5556819a | 2751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2752 | (exit $ac_status); } && { |
2753 | test -z "$ac_c_werror_flag" || | |
2754 | test ! -s conftest.err | |
2755 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
2756 | : |
2757 | else | |
5556819a | 2758 | echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2759 | sed 's/^/| /' conftest.$ac_ext >&5 |
2760 | ||
2761 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2762 | CFLAGS="-g" | |
2763 | cat >conftest.$ac_ext <<_ACEOF | |
2764 | /* confdefs.h. */ | |
2765 | _ACEOF | |
2766 | cat confdefs.h >>conftest.$ac_ext | |
2767 | cat >>conftest.$ac_ext <<_ACEOF | |
2768 | /* end confdefs.h. */ | |
2769 | ||
2770 | int | |
2771 | main () | |
2772 | { | |
2773 | ||
2774 | ; | |
2775 | return 0; | |
2776 | } | |
2777 | _ACEOF | |
2778 | rm -f conftest.$ac_objext | |
2779 | if { (ac_try="$ac_compile" | |
2780 | case "(($ac_try" in | |
2781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2782 | *) ac_try_echo=$ac_try;; | |
2783 | esac | |
5556819a | 2784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2785 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2786 | ac_status=$? |
7a197a62 AK |
2787 | grep -v '^ *+' conftest.er1 >conftest.err |
2788 | rm -f conftest.er1 | |
2789 | cat conftest.err >&5 | |
5556819a | 2790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2791 | (exit $ac_status); } && { |
2792 | test -z "$ac_c_werror_flag" || | |
2793 | test ! -s conftest.err | |
2794 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
2795 | ac_cv_prog_cc_g=yes |
2796 | else | |
5556819a | 2797 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 2798 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 2799 | |
7a197a62 AK |
2800 | |
2801 | fi | |
2802 | ||
2803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2804 | fi | |
2805 | ||
2806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 2807 | fi |
7a197a62 AK |
2808 | |
2809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2810 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 2811 | fi |
5556819a AK |
2812 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2813 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 2814 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 2815 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
2816 | elif test $ac_cv_prog_cc_g = yes; then |
2817 | if test "$GCC" = yes; then | |
2818 | CFLAGS="-g -O2" | |
2819 | else | |
2820 | CFLAGS="-g" | |
2821 | fi | |
2822 | else | |
2823 | if test "$GCC" = yes; then | |
2824 | CFLAGS="-O2" | |
2825 | else | |
2826 | CFLAGS= | |
2827 | fi | |
2828 | fi | |
5556819a AK |
2829 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2830 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
7a197a62 | 2831 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
5556819a | 2832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 2833 | else |
7a197a62 | 2834 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
2835 | ac_save_CC=$CC |
2836 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2837 | /* confdefs.h. */ |
2838 | _ACEOF | |
2839 | cat confdefs.h >>conftest.$ac_ext | |
2840 | cat >>conftest.$ac_ext <<_ACEOF | |
2841 | /* end confdefs.h. */ | |
2842 | #include <stdarg.h> | |
2843 | #include <stdio.h> | |
2844 | #include <sys/types.h> | |
2845 | #include <sys/stat.h> | |
2846 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2847 | struct buf { int x; }; | |
2848 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2849 | static char *e (p, i) | |
2850 | char **p; | |
2851 | int i; | |
2852 | { | |
2853 | return p[i]; | |
2854 | } | |
2855 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2856 | { | |
2857 | char *s; | |
2858 | va_list v; | |
2859 | va_start (v,p); | |
2860 | s = g (p, va_arg (v,int)); | |
2861 | va_end (v); | |
2862 | return s; | |
2863 | } | |
8a2fc586 AK |
2864 | |
2865 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2866 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2867 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 2868 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
2869 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2870 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 2871 | that's true only with -std. */ |
8a2fc586 AK |
2872 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2873 | ||
7a197a62 AK |
2874 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2875 | inside strings and character constants. */ | |
2876 | #define FOO(x) 'x' | |
2877 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2878 | ||
ad6254c5 AK |
2879 | int test (int i, double x); |
2880 | struct s1 {int (*f) (int a);}; | |
2881 | struct s2 {int (*f) (double a);}; | |
2882 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2883 | int argc; | |
2884 | char **argv; | |
2885 | int | |
2886 | main () | |
2887 | { | |
2888 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2889 | ; | |
2890 | return 0; | |
2891 | } | |
2892 | _ACEOF | |
7a197a62 AK |
2893 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2894 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
2895 | do |
2896 | CC="$ac_save_CC $ac_arg" | |
2897 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2898 | if { (ac_try="$ac_compile" |
2899 | case "(($ac_try" in | |
2900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2901 | *) ac_try_echo=$ac_try;; | |
2902 | esac | |
5556819a | 2903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2904 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2905 | ac_status=$? |
8a2fc586 AK |
2906 | grep -v '^ *+' conftest.er1 >conftest.err |
2907 | rm -f conftest.er1 | |
2908 | cat conftest.err >&5 | |
5556819a | 2909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2910 | (exit $ac_status); } && { |
2911 | test -z "$ac_c_werror_flag" || | |
2912 | test ! -s conftest.err | |
2913 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 2914 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 2915 | else |
5556819a | 2916 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2917 | sed 's/^/| /' conftest.$ac_ext >&5 |
2918 | ||
7a197a62 | 2919 | |
ad6254c5 | 2920 | fi |
7a197a62 AK |
2921 | |
2922 | rm -f core conftest.err conftest.$ac_objext | |
2923 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 2924 | done |
7a197a62 | 2925 | rm -f conftest.$ac_ext |
ad6254c5 AK |
2926 | CC=$ac_save_CC |
2927 | ||
2928 | fi | |
7a197a62 AK |
2929 | # AC_CACHE_VAL |
2930 | case "x$ac_cv_prog_cc_c89" in | |
2931 | x) | |
5556819a AK |
2932 | { echo "$as_me:$LINENO: result: none needed" >&5 |
2933 | echo "${ECHO_T}none needed" >&6; } ;; | |
7a197a62 | 2934 | xno) |
5556819a AK |
2935 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
2936 | echo "${ECHO_T}unsupported" >&6; } ;; | |
ad6254c5 | 2937 | *) |
7a197a62 | 2938 | CC="$CC $ac_cv_prog_cc_c89" |
5556819a AK |
2939 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
2940 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
2941 | esac |
2942 | ||
ad6254c5 | 2943 | |
ad6254c5 AK |
2944 | ac_ext=c |
2945 | ac_cpp='$CPP $CPPFLAGS' | |
2946 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2947 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2948 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 2949 | |
d0191583 JM |
2950 | |
2951 | ||
2952 | ac_ext=c | |
2953 | ac_cpp='$CPP $CPPFLAGS' | |
2954 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2955 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2956 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5556819a AK |
2957 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
2958 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
d0191583 JM |
2959 | # On Suns, sometimes $CPP names a directory. |
2960 | if test -n "$CPP" && test -d "$CPP"; then | |
2961 | CPP= | |
2962 | fi | |
2963 | if test -z "$CPP"; then | |
2964 | if test "${ac_cv_prog_CPP+set}" = set; then | |
5556819a | 2965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 2966 | else |
d0191583 JM |
2967 | # Double quotes because CPP needs to be expanded |
2968 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2969 | do | |
2970 | ac_preproc_ok=false | |
2971 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 2972 | do |
d0191583 JM |
2973 | # Use a header file that comes with gcc, so configuring glibc |
2974 | # with a fresh cross-compiler works. | |
2975 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2976 | # <limits.h> exists even on freestanding compilers. | |
2977 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2978 | # not just through cpp. "Syntax error" is here to catch this case. | |
2979 | cat >conftest.$ac_ext <<_ACEOF | |
2980 | /* confdefs.h. */ | |
2981 | _ACEOF | |
2982 | cat confdefs.h >>conftest.$ac_ext | |
2983 | cat >>conftest.$ac_ext <<_ACEOF | |
2984 | /* end confdefs.h. */ | |
2985 | #ifdef __STDC__ | |
2986 | # include <limits.h> | |
2987 | #else | |
2988 | # include <assert.h> | |
2989 | #endif | |
2990 | Syntax error | |
2991 | _ACEOF | |
2992 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
2993 | case "(($ac_try" in | |
2994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2995 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 2996 | esac |
5556819a | 2997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
2998 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
2999 | ac_status=$? | |
3000 | grep -v '^ *+' conftest.er1 >conftest.err | |
3001 | rm -f conftest.er1 | |
3002 | cat conftest.err >&5 | |
5556819a | 3003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3004 | (exit $ac_status); } >/dev/null && { |
3005 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3006 | test ! -s conftest.err | |
3007 | }; then | |
3008 | : | |
3009 | else | |
5556819a | 3010 | echo "$as_me: failed program was:" >&5 |
d0191583 | 3011 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3012 | |
d0191583 JM |
3013 | # Broken: fails on valid input. |
3014 | continue | |
795ca3e5 | 3015 | fi |
795ca3e5 | 3016 | |
d0191583 | 3017 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3018 | |
d0191583 JM |
3019 | # OK, works on sane cases. Now check whether nonexistent headers |
3020 | # can be detected and how. | |
3021 | cat >conftest.$ac_ext <<_ACEOF | |
3022 | /* confdefs.h. */ | |
3023 | _ACEOF | |
3024 | cat confdefs.h >>conftest.$ac_ext | |
3025 | cat >>conftest.$ac_ext <<_ACEOF | |
3026 | /* end confdefs.h. */ | |
3027 | #include <ac_nonexistent.h> | |
3028 | _ACEOF | |
3029 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3030 | case "(($ac_try" in | |
3031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3032 | *) ac_try_echo=$ac_try;; | |
3033 | esac | |
5556819a | 3034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3035 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3036 | ac_status=$? | |
3037 | grep -v '^ *+' conftest.er1 >conftest.err | |
3038 | rm -f conftest.er1 | |
3039 | cat conftest.err >&5 | |
5556819a | 3040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3041 | (exit $ac_status); } >/dev/null && { |
3042 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3043 | test ! -s conftest.err | |
3044 | }; then | |
3045 | # Broken: success on invalid input. | |
3046 | continue | |
3047 | else | |
5556819a | 3048 | echo "$as_me: failed program was:" >&5 |
d0191583 | 3049 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3050 | |
d0191583 JM |
3051 | # Passes both tests. |
3052 | ac_preproc_ok=: | |
3053 | break | |
3054 | fi | |
795ca3e5 | 3055 | |
d0191583 JM |
3056 | rm -f conftest.err conftest.$ac_ext |
3057 | ||
3058 | done | |
3059 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3060 | rm -f conftest.err conftest.$ac_ext | |
3061 | if $ac_preproc_ok; then | |
3062 | break | |
795ca3e5 AK |
3063 | fi |
3064 | ||
d0191583 JM |
3065 | done |
3066 | ac_cv_prog_CPP=$CPP | |
3067 | ||
3068 | fi | |
3069 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3070 | else |
d0191583 JM |
3071 | ac_cv_prog_CPP=$CPP |
3072 | fi | |
5556819a AK |
3073 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
3074 | echo "${ECHO_T}$CPP" >&6; } | |
d0191583 JM |
3075 | ac_preproc_ok=false |
3076 | for ac_c_preproc_warn_flag in '' yes | |
3077 | do | |
3078 | # Use a header file that comes with gcc, so configuring glibc | |
3079 | # with a fresh cross-compiler works. | |
3080 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3081 | # <limits.h> exists even on freestanding compilers. | |
3082 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3083 | # not just through cpp. "Syntax error" is here to catch this case. | |
3084 | cat >conftest.$ac_ext <<_ACEOF | |
3085 | /* confdefs.h. */ | |
ad6254c5 | 3086 | _ACEOF |
d0191583 JM |
3087 | cat confdefs.h >>conftest.$ac_ext |
3088 | cat >>conftest.$ac_ext <<_ACEOF | |
3089 | /* end confdefs.h. */ | |
3090 | #ifdef __STDC__ | |
3091 | # include <limits.h> | |
3092 | #else | |
3093 | # include <assert.h> | |
3094 | #endif | |
3095 | Syntax error | |
3096 | _ACEOF | |
3097 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3098 | case "(($ac_try" in | |
3099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3100 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3101 | esac |
5556819a | 3102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3103 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3104 | ac_status=$? | |
3105 | grep -v '^ *+' conftest.er1 >conftest.err | |
3106 | rm -f conftest.er1 | |
3107 | cat conftest.err >&5 | |
5556819a | 3108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3109 | (exit $ac_status); } >/dev/null && { |
3110 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3111 | test ! -s conftest.err | |
3112 | }; then | |
3113 | : | |
795ca3e5 | 3114 | else |
5556819a | 3115 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3116 | sed 's/^/| /' conftest.$ac_ext >&5 |
3117 | ||
3118 | # Broken: fails on valid input. | |
3119 | continue | |
795ca3e5 AK |
3120 | fi |
3121 | ||
d0191583 JM |
3122 | rm -f conftest.err conftest.$ac_ext |
3123 | ||
3124 | # OK, works on sane cases. Now check whether nonexistent headers | |
3125 | # can be detected and how. | |
3126 | cat >conftest.$ac_ext <<_ACEOF | |
3127 | /* confdefs.h. */ | |
3128 | _ACEOF | |
3129 | cat confdefs.h >>conftest.$ac_ext | |
3130 | cat >>conftest.$ac_ext <<_ACEOF | |
3131 | /* end confdefs.h. */ | |
3132 | #include <ac_nonexistent.h> | |
3133 | _ACEOF | |
3134 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3135 | case "(($ac_try" in | |
3136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3137 | *) ac_try_echo=$ac_try;; | |
3138 | esac | |
5556819a | 3139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3140 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3141 | ac_status=$? | |
3142 | grep -v '^ *+' conftest.er1 >conftest.err | |
3143 | rm -f conftest.er1 | |
3144 | cat conftest.err >&5 | |
5556819a | 3145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3146 | (exit $ac_status); } >/dev/null && { |
3147 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3148 | test ! -s conftest.err | |
3149 | }; then | |
3150 | # Broken: success on invalid input. | |
3151 | continue | |
795ca3e5 | 3152 | else |
5556819a | 3153 | echo "$as_me: failed program was:" >&5 |
d0191583 | 3154 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3155 | |
d0191583 JM |
3156 | # Passes both tests. |
3157 | ac_preproc_ok=: | |
3158 | break | |
795ca3e5 | 3159 | fi |
d0191583 JM |
3160 | |
3161 | rm -f conftest.err conftest.$ac_ext | |
3162 | ||
3163 | done | |
3164 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3165 | rm -f conftest.err conftest.$ac_ext | |
3166 | if $ac_preproc_ok; then | |
3167 | : | |
8106cdd5 | 3168 | else |
5556819a | 3169 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3170 | See \`config.log' for more details." >&5 |
5556819a | 3171 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 JM |
3172 | See \`config.log' for more details." >&2;} |
3173 | { (exit 1); exit 1; }; } | |
8106cdd5 AK |
3174 | fi |
3175 | ||
d0191583 JM |
3176 | ac_ext=c |
3177 | ac_cpp='$CPP $CPPFLAGS' | |
3178 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3179 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3180 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3181 | ||
7a197a62 | 3182 | |
5556819a AK |
3183 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3184 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
3185 | if test "${ac_cv_path_GREP+set}" = set; then | |
3186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3187 | else | |
3188 | # Extract the first word of "grep ggrep" to use in msg output | |
3189 | if test -z "$GREP"; then | |
3190 | set dummy grep ggrep; ac_prog_name=$2 | |
d0191583 | 3191 | if test "${ac_cv_path_GREP+set}" = set; then |
5556819a | 3192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3193 | else |
d0191583 | 3194 | ac_path_GREP_found=false |
5556819a AK |
3195 | # Loop through the user's path and test for each of PROGNAME-LIST |
3196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3197 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3198 | do |
3199 | IFS=$as_save_IFS | |
3200 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3201 | for ac_prog in grep ggrep; do |
5556819a AK |
3202 | for ac_exec_ext in '' $ac_executable_extensions; do |
3203 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3204 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3205 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3206 | # Check for GNU $ac_path_GREP |
3207 | case `"$ac_path_GREP" --version 2>&1` in | |
3208 | *GNU*) | |
3209 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3210 | *) | |
3211 | ac_count=0 | |
5556819a | 3212 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
d0191583 JM |
3213 | while : |
3214 | do | |
3215 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3216 | mv "conftest.tmp" "conftest.in" | |
3217 | cp "conftest.in" "conftest.nl" | |
5556819a | 3218 | echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3219 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3220 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3221 | ac_count=`expr $ac_count + 1` | |
3222 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3223 | # Best one so far, save it but keep looking for a better one | |
3224 | ac_cv_path_GREP="$ac_path_GREP" | |
3225 | ac_path_GREP_max=$ac_count | |
3226 | fi | |
3227 | # 10*(2^10) chars as input seems more than enough | |
3228 | test $ac_count -gt 10 && break | |
3229 | done | |
3230 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3231 | esac | |
3232 | ||
5556819a AK |
3233 | |
3234 | $ac_path_GREP_found && break 3 | |
d0191583 | 3235 | done |
ad6254c5 | 3236 | done |
5556819a AK |
3237 | |
3238 | done | |
7a197a62 | 3239 | IFS=$as_save_IFS |
5556819a AK |
3240 | |
3241 | ||
3242 | fi | |
3243 | ||
3244 | GREP="$ac_cv_path_GREP" | |
3245 | if test -z "$GREP"; then | |
3246 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3247 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3248 | { (exit 1); exit 1; }; } |
5556819a AK |
3249 | fi |
3250 | ||
80992638 | 3251 | else |
d0191583 | 3252 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3253 | fi |
8106cdd5 | 3254 | |
5556819a | 3255 | |
80992638 | 3256 | fi |
5556819a AK |
3257 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3258 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
d0191583 | 3259 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3260 | |
d0191583 | 3261 | |
5556819a AK |
3262 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
3263 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
d0191583 | 3264 | if test "${ac_cv_path_EGREP+set}" = set; then |
5556819a | 3265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8a2fc586 | 3266 | else |
d0191583 JM |
3267 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3268 | then ac_cv_path_EGREP="$GREP -E" | |
3269 | else | |
5556819a AK |
3270 | # Extract the first word of "egrep" to use in msg output |
3271 | if test -z "$EGREP"; then | |
3272 | set dummy egrep; ac_prog_name=$2 | |
3273 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3275 | else | |
d0191583 | 3276 | ac_path_EGREP_found=false |
5556819a AK |
3277 | # Loop through the user's path and test for each of PROGNAME-LIST |
3278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3279 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3280 | do |
3281 | IFS=$as_save_IFS | |
3282 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3283 | for ac_prog in egrep; do |
5556819a AK |
3284 | for ac_exec_ext in '' $ac_executable_extensions; do |
3285 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3286 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3287 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3288 | # Check for GNU $ac_path_EGREP |
3289 | case `"$ac_path_EGREP" --version 2>&1` in | |
3290 | *GNU*) | |
3291 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3292 | *) | |
3293 | ac_count=0 | |
5556819a | 3294 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
d0191583 JM |
3295 | while : |
3296 | do | |
3297 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3298 | mv "conftest.tmp" "conftest.in" | |
3299 | cp "conftest.in" "conftest.nl" | |
5556819a | 3300 | echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3301 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3302 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3303 | ac_count=`expr $ac_count + 1` | |
3304 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3305 | # Best one so far, save it but keep looking for a better one | |
3306 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3307 | ac_path_EGREP_max=$ac_count | |
3308 | fi | |
3309 | # 10*(2^10) chars as input seems more than enough | |
3310 | test $ac_count -gt 10 && break | |
3311 | done | |
3312 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3313 | esac |
8a2fc586 | 3314 | |
5556819a AK |
3315 | |
3316 | $ac_path_EGREP_found && break 3 | |
d0191583 | 3317 | done |
8a2fc586 | 3318 | done |
5556819a AK |
3319 | |
3320 | done | |
7a197a62 | 3321 | IFS=$as_save_IFS |
5556819a AK |
3322 | |
3323 | ||
3324 | fi | |
3325 | ||
3326 | EGREP="$ac_cv_path_EGREP" | |
3327 | if test -z "$EGREP"; then | |
3328 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3329 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3330 | { (exit 1); exit 1; }; } |
5556819a AK |
3331 | fi |
3332 | ||
d0191583 JM |
3333 | else |
3334 | ac_cv_path_EGREP=$EGREP | |
3335 | fi | |
ad6254c5 | 3336 | |
5556819a | 3337 | |
d0191583 JM |
3338 | fi |
3339 | fi | |
5556819a AK |
3340 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3341 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3342 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3343 | |
3344 | ||
d0191583 | 3345 | if test $ac_cv_c_compiler_gnu = yes; then |
5556819a AK |
3346 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3347 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } | |
d0191583 | 3348 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
5556819a | 3349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 | 3350 | else |
d0191583 | 3351 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3352 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3353 | /* confdefs.h. */ |
3354 | _ACEOF | |
3355 | cat confdefs.h >>conftest.$ac_ext | |
3356 | cat >>conftest.$ac_ext <<_ACEOF | |
3357 | /* end confdefs.h. */ | |
d0191583 JM |
3358 | #include <sgtty.h> |
3359 | Autoconf TIOCGETP | |
ad6254c5 | 3360 | _ACEOF |
d0191583 JM |
3361 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3362 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3363 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3364 | else |
d0191583 | 3365 | ac_cv_prog_gcc_traditional=no |
80992638 | 3366 | fi |
d0191583 | 3367 | rm -f conftest* |
ad6254c5 | 3368 | |
8106cdd5 | 3369 | |
d0191583 JM |
3370 | if test $ac_cv_prog_gcc_traditional = no; then |
3371 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3372 | /* confdefs.h. */ |
3373 | _ACEOF | |
3374 | cat confdefs.h >>conftest.$ac_ext | |
3375 | cat >>conftest.$ac_ext <<_ACEOF | |
3376 | /* end confdefs.h. */ | |
d0191583 JM |
3377 | #include <termio.h> |
3378 | Autoconf TCGETA | |
ad6254c5 | 3379 | _ACEOF |
d0191583 JM |
3380 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3381 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3382 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3383 | fi |
d0191583 | 3384 | rm -f conftest* |
795ca3e5 | 3385 | |
d0191583 | 3386 | fi |
795ca3e5 | 3387 | fi |
5556819a AK |
3388 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3389 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3390 | if test $ac_cv_prog_gcc_traditional = yes; then |
3391 | CC="$CC -traditional" | |
3392 | fi | |
795ca3e5 AK |
3393 | fi |
3394 | ||
d0191583 JM |
3395 | # Find a good install program. We prefer a C program (faster), |
3396 | # so one script is as good as another. But avoid the broken or | |
3397 | # incompatible versions: | |
3398 | # SysV /etc/install, /usr/sbin/install | |
3399 | # SunOS /usr/etc/install | |
3400 | # IRIX /sbin/install | |
3401 | # AIX /bin/install | |
3402 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3403 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3404 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3405 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3406 | # OS/2's system install, which has a completely different semantic | |
3407 | # ./install, which can be erroneously created by make from ./install.sh. | |
5556819a AK |
3408 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3409 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
d0191583 JM |
3410 | if test -z "$INSTALL"; then |
3411 | if test "${ac_cv_path_install+set}" = set; then | |
5556819a | 3412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3413 | else |
d0191583 JM |
3414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3415 | for as_dir in $PATH | |
3416 | do | |
3417 | IFS=$as_save_IFS | |
3418 | test -z "$as_dir" && as_dir=. | |
3419 | # Account for people who put trailing slashes in PATH elements. | |
3420 | case $as_dir/ in | |
3421 | ./ | .// | /cC/* | \ | |
3422 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3423 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3424 | /usr/ucb/* ) ;; | |
3425 | *) | |
3426 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3427 | # Don't use installbsd from OSF since it installs stuff as root | |
3428 | # by default. | |
3429 | for ac_prog in ginstall scoinst install; do | |
3430 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3431 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3432 | if test $ac_prog = install && | |
3433 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3434 | # AIX install. It has an incompatible calling convention. | |
3435 | : | |
3436 | elif test $ac_prog = install && | |
3437 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3438 | # program-specific install script used by HP pwplus--don't use. | |
3439 | : | |
3440 | else | |
5556819a AK |
3441 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
3442 | break 3 | |
d0191583 JM |
3443 | fi |
3444 | fi | |
3445 | done | |
3446 | done | |
3447 | ;; | |
3448 | esac | |
3449 | done | |
3450 | IFS=$as_save_IFS | |
80992638 | 3451 | |
d0191583 JM |
3452 | |
3453 | fi | |
3454 | if test "${ac_cv_path_install+set}" = set; then | |
3455 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3456 | else |
d0191583 JM |
3457 | # As a last resort, use the slow shell script. Don't cache a |
3458 | # value for INSTALL within a source directory, because that will | |
3459 | # break other packages using the cache if that directory is | |
3460 | # removed, or if the value is a relative name. | |
3461 | INSTALL=$ac_install_sh | |
7a197a62 | 3462 | fi |
d0191583 | 3463 | fi |
5556819a AK |
3464 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3465 | echo "${ECHO_T}$INSTALL" >&6; } | |
ad6254c5 | 3466 | |
d0191583 JM |
3467 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3468 | # It thinks the first close brace ends the variable substitution. | |
3469 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3470 | |
d0191583 | 3471 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3472 | |
d0191583 JM |
3473 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3474 | ||
5556819a AK |
3475 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3476 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
d0191583 JM |
3477 | LN_S=$as_ln_s |
3478 | if test "$LN_S" = "ln -s"; then | |
5556819a AK |
3479 | { echo "$as_me:$LINENO: result: yes" >&5 |
3480 | echo "${ECHO_T}yes" >&6; } | |
d0191583 | 3481 | else |
5556819a AK |
3482 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3483 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
795ca3e5 | 3484 | fi |
d0191583 | 3485 | |
5556819a AK |
3486 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3487 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
3488 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3489 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 3490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7a197a62 | 3491 | else |
d0191583 JM |
3492 | cat >conftest.make <<\_ACEOF |
3493 | SHELL = /bin/sh | |
3494 | all: | |
3495 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3496 | _ACEOF | |
3497 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3498 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3499 | *@@@%%%=?*=@@@%%%*) | |
3500 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3501 | *) | |
3502 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3503 | esac | |
3504 | rm -f conftest.make | |
ad6254c5 | 3505 | fi |
d0191583 | 3506 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
5556819a AK |
3507 | { echo "$as_me:$LINENO: result: yes" >&5 |
3508 | echo "${ECHO_T}yes" >&6; } | |
d0191583 JM |
3509 | SET_MAKE= |
3510 | else | |
5556819a AK |
3511 | { echo "$as_me:$LINENO: result: no" >&5 |
3512 | echo "${ECHO_T}no" >&6; } | |
d0191583 | 3513 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3514 | fi |
8106cdd5 | 3515 | |
5556819a AK |
3516 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3517 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } | |
3518 | if test -z "$MKDIR_P"; then | |
3519 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3521 | else | |
3522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3523 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3524 | do | |
3525 | IFS=$as_save_IFS | |
3526 | test -z "$as_dir" && as_dir=. | |
3527 | for ac_prog in mkdir gmkdir; do | |
3528 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3529 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3530 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3531 | 'mkdir (GNU coreutils) '* | \ | |
3532 | 'mkdir (coreutils) '* | \ | |
3533 | 'mkdir (fileutils) '4.1*) | |
3534 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3535 | break 3;; | |
3536 | esac | |
3537 | done | |
3538 | done | |
3539 | done | |
3540 | IFS=$as_save_IFS | |
3541 | ||
3542 | fi | |
3543 | ||
3544 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3545 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3546 | else | |
3547 | # As a last resort, use the slow shell script. Don't cache a | |
3548 | # value for MKDIR_P within a source directory, because that will | |
3549 | # break other packages using the cache if that directory is | |
3550 | # removed, or if the value is a relative name. | |
3551 | test -d ./--version && rmdir ./--version | |
3552 | MKDIR_P="$ac_install_sh -d" | |
3553 | fi | |
3554 | fi | |
3555 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 | |
3556 | echo "${ECHO_T}$MKDIR_P" >&6; } | |
3557 | ||
d0191583 JM |
3558 | if test -n "$ac_tool_prefix"; then |
3559 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3560 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5556819a AK |
3561 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3562 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
d0191583 | 3563 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
5556819a | 3564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
3565 | else |
3566 | if test -n "$RANLIB"; then | |
3567 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3568 | else | |
3569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3570 | for as_dir in $PATH | |
3571 | do | |
3572 | IFS=$as_save_IFS | |
3573 | test -z "$as_dir" && as_dir=. | |
3574 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3575 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3576 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5556819a | 3577 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3578 | break 2 |
3579 | fi | |
3580 | done | |
3581 | done | |
3582 | IFS=$as_save_IFS | |
8106cdd5 | 3583 | |
795ca3e5 | 3584 | fi |
d0191583 JM |
3585 | fi |
3586 | RANLIB=$ac_cv_prog_RANLIB | |
3587 | if test -n "$RANLIB"; then | |
5556819a AK |
3588 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3589 | echo "${ECHO_T}$RANLIB" >&6; } | |
d0191583 | 3590 | else |
5556819a AK |
3591 | { echo "$as_me:$LINENO: result: no" >&5 |
3592 | echo "${ECHO_T}no" >&6; } | |
d0191583 JM |
3593 | fi |
3594 | ||
8106cdd5 | 3595 | |
ad6254c5 | 3596 | fi |
d0191583 JM |
3597 | if test -z "$ac_cv_prog_RANLIB"; then |
3598 | ac_ct_RANLIB=$RANLIB | |
3599 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3600 | set dummy ranlib; ac_word=$2 | |
5556819a AK |
3601 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3602 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
d0191583 | 3603 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
5556819a | 3604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3605 | else |
d0191583 JM |
3606 | if test -n "$ac_ct_RANLIB"; then |
3607 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3608 | else | |
3609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3610 | for as_dir in $PATH | |
8106cdd5 | 3611 | do |
d0191583 JM |
3612 | IFS=$as_save_IFS |
3613 | test -z "$as_dir" && as_dir=. | |
3614 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3615 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3616 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5556819a | 3617 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3618 | break 2 |
3619 | fi | |
3620 | done | |
3621 | done | |
3622 | IFS=$as_save_IFS | |
3623 | ||
3624 | fi | |
3625 | fi | |
3626 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3627 | if test -n "$ac_ct_RANLIB"; then | |
5556819a AK |
3628 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3629 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 3630 | else |
5556819a AK |
3631 | { echo "$as_me:$LINENO: result: no" >&5 |
3632 | echo "${ECHO_T}no" >&6; } | |
d0191583 | 3633 | fi |
ad6254c5 | 3634 | |
d0191583 JM |
3635 | if test "x$ac_ct_RANLIB" = x; then |
3636 | RANLIB=":" | |
3637 | else | |
3638 | case $cross_compiling:$ac_tool_warned in | |
3639 | yes:) | |
5556819a | 3640 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
d0191583 JM |
3641 | whose name does not start with the host triplet. If you think this |
3642 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
5556819a | 3643 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
d0191583 JM |
3644 | whose name does not start with the host triplet. If you think this |
3645 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3646 | ac_tool_warned=yes ;; | |
3647 | esac | |
3648 | RANLIB=$ac_ct_RANLIB | |
3649 | fi | |
3650 | else | |
3651 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 3652 | fi |
7a197a62 | 3653 | |
d0191583 JM |
3654 | # Extract the first word of "cflow", so it can be a program name with args. |
3655 | set dummy cflow; ac_word=$2 | |
5556819a AK |
3656 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3657 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
d0191583 | 3658 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
5556819a | 3659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
3660 | else |
3661 | case $CFLOW_CMD in | |
3662 | [\\/]* | ?:[\\/]*) | |
3663 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
3664 | ;; | |
3665 | *) | |
3666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3667 | for as_dir in $PATH | |
3668 | do | |
3669 | IFS=$as_save_IFS | |
3670 | test -z "$as_dir" && as_dir=. | |
3671 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3672 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3673 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
5556819a | 3674 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3675 | break 2 |
3676 | fi | |
3677 | done | |
3678 | done | |
3679 | IFS=$as_save_IFS | |
ad6254c5 | 3680 | |
d0191583 | 3681 | ;; |
7a197a62 | 3682 | esac |
d0191583 JM |
3683 | fi |
3684 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
3685 | if test -n "$CFLOW_CMD"; then | |
5556819a AK |
3686 | { echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
3687 | echo "${ECHO_T}$CFLOW_CMD" >&6; } | |
80992638 | 3688 | else |
5556819a AK |
3689 | { echo "$as_me:$LINENO: result: no" >&5 |
3690 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 | 3691 | fi |
7a197a62 | 3692 | |
ad6254c5 | 3693 | |
d0191583 JM |
3694 | # Extract the first word of "cscope", so it can be a program name with args. |
3695 | set dummy cscope; ac_word=$2 | |
5556819a AK |
3696 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3697 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
d0191583 | 3698 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
5556819a | 3699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
3700 | else |
3701 | case $CSCOPE_CMD in | |
3702 | [\\/]* | ?:[\\/]*) | |
3703 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
3704 | ;; | |
3705 | *) | |
3706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3707 | for as_dir in $PATH | |
3708 | do | |
3709 | IFS=$as_save_IFS | |
3710 | test -z "$as_dir" && as_dir=. | |
3711 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3712 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3713 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
5556819a | 3714 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3715 | break 2 |
3716 | fi | |
795ca3e5 | 3717 | done |
d0191583 JM |
3718 | done |
3719 | IFS=$as_save_IFS | |
795ca3e5 | 3720 | |
d0191583 JM |
3721 | ;; |
3722 | esac | |
ad6254c5 | 3723 | fi |
d0191583 JM |
3724 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
3725 | if test -n "$CSCOPE_CMD"; then | |
5556819a AK |
3726 | { echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
3727 | echo "${ECHO_T}$CSCOPE_CMD" >&6; } | |
795ca3e5 | 3728 | else |
5556819a AK |
3729 | { echo "$as_me:$LINENO: result: no" >&5 |
3730 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 | 3731 | fi |
ad6254c5 | 3732 | |
7a197a62 | 3733 | |
ad6254c5 | 3734 | |
d0191583 JM |
3735 | ################################################################################ |
3736 | ||
3737 | ||
3738 | ||
3739 | ||
3740 | ||
3741 | ac_header_dirent=no | |
3742 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
5556819a AK |
3743 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
3744 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
3745 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } | |
d0191583 | 3746 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 3747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 | 3748 | else |
ad6254c5 | 3749 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3750 | /* confdefs.h. */ |
3751 | _ACEOF | |
3752 | cat confdefs.h >>conftest.$ac_ext | |
3753 | cat >>conftest.$ac_ext <<_ACEOF | |
3754 | /* end confdefs.h. */ | |
d0191583 JM |
3755 | #include <sys/types.h> |
3756 | #include <$ac_hdr> | |
3757 | ||
3758 | int | |
3759 | main () | |
3760 | { | |
3761 | if ((DIR *) 0) | |
3762 | return 0; | |
3763 | ; | |
3764 | return 0; | |
3765 | } | |
ad6254c5 | 3766 | _ACEOF |
d0191583 JM |
3767 | rm -f conftest.$ac_objext |
3768 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
3769 | case "(($ac_try" in |
3770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3771 | *) ac_try_echo=$ac_try;; | |
3772 | esac | |
5556819a | 3773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 | 3774 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
3775 | ac_status=$? |
3776 | grep -v '^ *+' conftest.er1 >conftest.err | |
3777 | rm -f conftest.er1 | |
3778 | cat conftest.err >&5 | |
5556819a | 3779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3780 | (exit $ac_status); } && { |
3781 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 3782 | test ! -s conftest.err |
d0191583 JM |
3783 | } && test -s conftest.$ac_objext; then |
3784 | eval "$as_ac_Header=yes" | |
ad6254c5 | 3785 | else |
5556819a | 3786 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3787 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 3788 | |
d0191583 | 3789 | eval "$as_ac_Header=no" |
795ca3e5 | 3790 | fi |
7a197a62 | 3791 | |
d0191583 | 3792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 3793 | fi |
5556819a AK |
3794 | ac_res=`eval echo '${'$as_ac_Header'}'` |
3795 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3796 | echo "${ECHO_T}$ac_res" >&6; } | |
3797 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
d0191583 | 3798 | cat >>confdefs.h <<_ACEOF |
5556819a | 3799 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 3800 | _ACEOF |
795ca3e5 | 3801 | |
d0191583 JM |
3802 | ac_header_dirent=$ac_hdr; break |
3803 | fi | |
ad6254c5 | 3804 | |
d0191583 JM |
3805 | done |
3806 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
3807 | if test $ac_header_dirent = dirent.h; then | |
5556819a AK |
3808 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3809 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | |
d0191583 | 3810 | if test "${ac_cv_search_opendir+set}" = set; then |
5556819a | 3811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3812 | else |
d0191583 JM |
3813 | ac_func_search_save_LIBS=$LIBS |
3814 | cat >conftest.$ac_ext <<_ACEOF | |
3815 | /* confdefs.h. */ | |
3816 | _ACEOF | |
3817 | cat confdefs.h >>conftest.$ac_ext | |
3818 | cat >>conftest.$ac_ext <<_ACEOF | |
3819 | /* end confdefs.h. */ | |
ad6254c5 | 3820 | |
d0191583 JM |
3821 | /* Override any GCC internal prototype to avoid an error. |
3822 | Use char because int might match the return type of a GCC | |
3823 | builtin and then its argument prototype would still apply. */ | |
3824 | #ifdef __cplusplus | |
3825 | extern "C" | |
3826 | #endif | |
3827 | char opendir (); | |
3828 | int | |
3829 | main () | |
3830 | { | |
3831 | return opendir (); | |
3832 | ; | |
3833 | return 0; | |
3834 | } | |
3835 | _ACEOF | |
3836 | for ac_lib in '' dir; do | |
3837 | if test -z "$ac_lib"; then | |
3838 | ac_res="none required" | |
3839 | else | |
3840 | ac_res=-l$ac_lib | |
3841 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3842 | fi | |
3843 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3844 | if { (ac_try="$ac_link" | |
3845 | case "(($ac_try" in | |
3846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3847 | *) ac_try_echo=$ac_try;; | |
3848 | esac | |
5556819a | 3849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3850 | (eval "$ac_link") 2>conftest.er1 |
3851 | ac_status=$? | |
3852 | grep -v '^ *+' conftest.er1 >conftest.err | |
3853 | rm -f conftest.er1 | |
3854 | cat conftest.err >&5 | |
5556819a | 3855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3856 | (exit $ac_status); } && { |
3857 | test -z "$ac_c_werror_flag" || | |
3858 | test ! -s conftest.err | |
5556819a AK |
3859 | } && test -s conftest$ac_exeext && |
3860 | $as_test_x conftest$ac_exeext; then | |
d0191583 JM |
3861 | ac_cv_search_opendir=$ac_res |
3862 | else | |
5556819a | 3863 | echo "$as_me: failed program was:" >&5 |
d0191583 | 3864 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3865 | |
ad6254c5 | 3866 | |
795ca3e5 | 3867 | fi |
ad6254c5 | 3868 | |
d0191583 JM |
3869 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3870 | conftest$ac_exeext | |
3871 | if test "${ac_cv_search_opendir+set}" = set; then | |
3872 | break | |
7a197a62 | 3873 | fi |
d0191583 JM |
3874 | done |
3875 | if test "${ac_cv_search_opendir+set}" = set; then | |
3876 | : | |
7a197a62 | 3877 | else |
d0191583 | 3878 | ac_cv_search_opendir=no |
7a197a62 | 3879 | fi |
d0191583 JM |
3880 | rm conftest.$ac_ext |
3881 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 3882 | fi |
5556819a AK |
3883 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3884 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
3885 | ac_res=$ac_cv_search_opendir |
3886 | if test "$ac_res" != no; then | |
3887 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 3888 | |
d0191583 | 3889 | fi |
7a197a62 | 3890 | |
7a197a62 | 3891 | else |
5556819a AK |
3892 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3893 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | |
d0191583 | 3894 | if test "${ac_cv_search_opendir+set}" = set; then |
5556819a | 3895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7a197a62 | 3896 | else |
d0191583 JM |
3897 | ac_func_search_save_LIBS=$LIBS |
3898 | cat >conftest.$ac_ext <<_ACEOF | |
3899 | /* confdefs.h. */ | |
3900 | _ACEOF | |
3901 | cat confdefs.h >>conftest.$ac_ext | |
3902 | cat >>conftest.$ac_ext <<_ACEOF | |
3903 | /* end confdefs.h. */ | |
7a197a62 | 3904 | |
d0191583 JM |
3905 | /* Override any GCC internal prototype to avoid an error. |
3906 | Use char because int might match the return type of a GCC | |
3907 | builtin and then its argument prototype would still apply. */ | |
3908 | #ifdef __cplusplus | |
3909 | extern "C" | |
3910 | #endif | |
3911 | char opendir (); | |
3912 | int | |
3913 | main () | |
3914 | { | |
3915 | return opendir (); | |
3916 | ; | |
3917 | return 0; | |
3918 | } | |
3919 | _ACEOF | |
3920 | for ac_lib in '' x; do | |
3921 | if test -z "$ac_lib"; then | |
3922 | ac_res="none required" | |
3923 | else | |
3924 | ac_res=-l$ac_lib | |
3925 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3926 | fi | |
3927 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3928 | if { (ac_try="$ac_link" | |
3929 | case "(($ac_try" in | |
3930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3931 | *) ac_try_echo=$ac_try;; | |
3932 | esac | |
5556819a | 3933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3934 | (eval "$ac_link") 2>conftest.er1 |
3935 | ac_status=$? | |
3936 | grep -v '^ *+' conftest.er1 >conftest.err | |
3937 | rm -f conftest.er1 | |
3938 | cat conftest.err >&5 | |
5556819a | 3939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3940 | (exit $ac_status); } && { |
3941 | test -z "$ac_c_werror_flag" || | |
3942 | test ! -s conftest.err | |
5556819a AK |
3943 | } && test -s conftest$ac_exeext && |
3944 | $as_test_x conftest$ac_exeext; then | |
d0191583 JM |
3945 | ac_cv_search_opendir=$ac_res |
3946 | else | |
5556819a | 3947 | echo "$as_me: failed program was:" >&5 |
d0191583 | 3948 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
3949 | |
3950 | ||
3951 | fi | |
3952 | ||
d0191583 JM |
3953 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3954 | conftest$ac_exeext | |
3955 | if test "${ac_cv_search_opendir+set}" = set; then | |
3956 | break | |
7a197a62 | 3957 | fi |
d0191583 JM |
3958 | done |
3959 | if test "${ac_cv_search_opendir+set}" = set; then | |
3960 | : | |
7a197a62 | 3961 | else |
d0191583 | 3962 | ac_cv_search_opendir=no |
7a197a62 | 3963 | fi |
d0191583 JM |
3964 | rm conftest.$ac_ext |
3965 | LIBS=$ac_func_search_save_LIBS | |
3966 | fi | |
5556819a AK |
3967 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3968 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
3969 | ac_res=$ac_cv_search_opendir |
3970 | if test "$ac_res" != no; then | |
3971 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 3972 | |
7a197a62 | 3973 | fi |
7a197a62 | 3974 | |
d0191583 | 3975 | fi |
7a197a62 | 3976 | |
5556819a AK |
3977 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3978 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
7a197a62 | 3979 | if test "${ac_cv_header_stdc+set}" = set; then |
5556819a | 3980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7a197a62 AK |
3981 | else |
3982 | cat >conftest.$ac_ext <<_ACEOF | |
3983 | /* confdefs.h. */ | |
3984 | _ACEOF | |
3985 | cat confdefs.h >>conftest.$ac_ext | |
3986 | cat >>conftest.$ac_ext <<_ACEOF | |
3987 | /* end confdefs.h. */ | |
3988 | #include <stdlib.h> | |
3989 | #include <stdarg.h> | |
3990 | #include <string.h> | |
3991 | #include <float.h> | |
3992 | ||
3993 | int | |
3994 | main () | |
3995 | { | |
3996 | ||
3997 | ; | |
3998 | return 0; | |
3999 | } | |
4000 | _ACEOF | |
4001 | rm -f conftest.$ac_objext | |
4002 | if { (ac_try="$ac_compile" | |
4003 | case "(($ac_try" in | |
4004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4005 | *) ac_try_echo=$ac_try;; | |
4006 | esac | |
5556819a | 4007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 AK |
4008 | (eval "$ac_compile") 2>conftest.er1 |
4009 | ac_status=$? | |
4010 | grep -v '^ *+' conftest.er1 >conftest.err | |
4011 | rm -f conftest.er1 | |
4012 | cat conftest.err >&5 | |
5556819a | 4013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4014 | (exit $ac_status); } && { |
4015 | test -z "$ac_c_werror_flag" || | |
4016 | test ! -s conftest.err | |
4017 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4018 | ac_cv_header_stdc=yes |
4019 | else | |
5556819a | 4020 | echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4021 | sed 's/^/| /' conftest.$ac_ext >&5 |
4022 | ||
4023 | ac_cv_header_stdc=no | |
4024 | fi | |
4025 | ||
4026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4027 | ||
4028 | if test $ac_cv_header_stdc = yes; then | |
4029 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4030 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4031 | /* confdefs.h. */ |
4032 | _ACEOF | |
4033 | cat confdefs.h >>conftest.$ac_ext | |
4034 | cat >>conftest.$ac_ext <<_ACEOF | |
4035 | /* end confdefs.h. */ | |
4036 | #include <string.h> | |
8106cdd5 | 4037 | |
ad6254c5 AK |
4038 | _ACEOF |
4039 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4040 | $EGREP "memchr" >/dev/null 2>&1; then | |
4041 | : | |
4042 | else | |
4043 | ac_cv_header_stdc=no | |
80992638 | 4044 | fi |
ad6254c5 | 4045 | rm -f conftest* |
795ca3e5 AK |
4046 | |
4047 | fi | |
4048 | ||
ad6254c5 AK |
4049 | if test $ac_cv_header_stdc = yes; then |
4050 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4051 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4052 | /* confdefs.h. */ |
4053 | _ACEOF | |
4054 | cat confdefs.h >>conftest.$ac_ext | |
4055 | cat >>conftest.$ac_ext <<_ACEOF | |
4056 | /* end confdefs.h. */ | |
80992638 | 4057 | #include <stdlib.h> |
ad6254c5 AK |
4058 | |
4059 | _ACEOF | |
80992638 | 4060 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4061 | $EGREP "free" >/dev/null 2>&1; then |
4062 | : | |
795ca3e5 | 4063 | else |
ad6254c5 | 4064 | ac_cv_header_stdc=no |
795ca3e5 | 4065 | fi |
80992638 | 4066 | rm -f conftest* |
8106cdd5 | 4067 | |
795ca3e5 AK |
4068 | fi |
4069 | ||
ad6254c5 AK |
4070 | if test $ac_cv_header_stdc = yes; then |
4071 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4072 | if test "$cross_compiling" = yes; then | |
4073 | : | |
795ca3e5 | 4074 | else |
ad6254c5 | 4075 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4076 | /* confdefs.h. */ |
4077 | _ACEOF | |
4078 | cat confdefs.h >>conftest.$ac_ext | |
4079 | cat >>conftest.$ac_ext <<_ACEOF | |
4080 | /* end confdefs.h. */ | |
4081 | #include <ctype.h> | |
7a197a62 | 4082 | #include <stdlib.h> |
ad6254c5 AK |
4083 | #if ((' ' & 0x0FF) == 0x020) |
4084 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4085 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4086 | #else | |
4087 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4088 | (('a' <= (c) && (c) <= 'i') \ |
4089 | || ('j' <= (c) && (c) <= 'r') \ | |
4090 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4091 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4092 | #endif |
ad6254c5 AK |
4093 | |
4094 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4095 | int | |
4096 | main () | |
4097 | { | |
4098 | int i; | |
4099 | for (i = 0; i < 256; i++) | |
4100 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4101 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4102 | return 2; |
4103 | return 0; | |
ad6254c5 AK |
4104 | } |
4105 | _ACEOF | |
4106 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4107 | if { (ac_try="$ac_link" |
4108 | case "(($ac_try" in | |
4109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4110 | *) ac_try_echo=$ac_try;; | |
4111 | esac | |
5556819a | 4112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4113 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4114 | ac_status=$? |
5556819a | 4115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4116 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4117 | { (case "(($ac_try" in |
4118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4119 | *) ac_try_echo=$ac_try;; | |
4120 | esac | |
5556819a | 4121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4122 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4123 | ac_status=$? |
5556819a | 4124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4125 | (exit $ac_status); }; }; then |
4126 | : | |
795ca3e5 | 4127 | else |
5556819a AK |
4128 | echo "$as_me: program exited with status $ac_status" >&5 |
4129 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4130 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4131 | |
ad6254c5 AK |
4132 | ( exit $ac_status ) |
4133 | ac_cv_header_stdc=no | |
80992638 | 4134 | fi |
7a197a62 | 4135 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4136 | fi |
7a197a62 AK |
4137 | |
4138 | ||
ad6254c5 AK |
4139 | fi |
4140 | fi | |
5556819a AK |
4141 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4142 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4143 | if test $ac_cv_header_stdc = yes; then |
4144 | ||
4145 | cat >>confdefs.h <<\_ACEOF | |
4146 | #define STDC_HEADERS 1 | |
4147 | _ACEOF | |
795ca3e5 AK |
4148 | |
4149 | fi | |
4150 | ||
5556819a AK |
4151 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4152 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } | |
ad6254c5 | 4153 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
5556819a | 4154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 | 4155 | else |
ad6254c5 | 4156 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4157 | /* confdefs.h. */ |
4158 | _ACEOF | |
4159 | cat confdefs.h >>conftest.$ac_ext | |
4160 | cat >>conftest.$ac_ext <<_ACEOF | |
4161 | /* end confdefs.h. */ | |
80992638 | 4162 | #include <sys/types.h> |
ad6254c5 AK |
4163 | #include <sys/wait.h> |
4164 | #ifndef WEXITSTATUS | |
7a197a62 | 4165 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
ad6254c5 AK |
4166 | #endif |
4167 | #ifndef WIFEXITED | |
4168 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4169 | #endif | |
4170 | ||
4171 | int | |
4172 | main () | |
4173 | { | |
4174 | int s; | |
4175 | wait (&s); | |
4176 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4177 | ; | |
4178 | return 0; | |
4179 | } | |
4180 | _ACEOF | |
4181 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4182 | if { (ac_try="$ac_compile" |
4183 | case "(($ac_try" in | |
4184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4185 | *) ac_try_echo=$ac_try;; | |
4186 | esac | |
5556819a | 4187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4188 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4189 | ac_status=$? |
8a2fc586 AK |
4190 | grep -v '^ *+' conftest.er1 >conftest.err |
4191 | rm -f conftest.er1 | |
4192 | cat conftest.err >&5 | |
5556819a | 4193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4194 | (exit $ac_status); } && { |
4195 | test -z "$ac_c_werror_flag" || | |
4196 | test ! -s conftest.err | |
4197 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4198 | ac_cv_header_sys_wait_h=yes |
4199 | else | |
5556819a | 4200 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4201 | sed 's/^/| /' conftest.$ac_ext >&5 |
4202 | ||
7a197a62 | 4203 | ac_cv_header_sys_wait_h=no |
8106cdd5 | 4204 | fi |
7a197a62 AK |
4205 | |
4206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4207 | fi |
5556819a AK |
4208 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
4209 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } | |
ad6254c5 | 4210 | if test $ac_cv_header_sys_wait_h = yes; then |
8106cdd5 | 4211 | |
ad6254c5 AK |
4212 | cat >>confdefs.h <<\_ACEOF |
4213 | #define HAVE_SYS_WAIT_H 1 | |
4214 | _ACEOF | |
795ca3e5 AK |
4215 | |
4216 | fi | |
4217 | ||
5556819a AK |
4218 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
4219 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } | |
ad6254c5 | 4220 | if test "${ac_cv_header_time+set}" = set; then |
5556819a | 4221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 4222 | else |
ad6254c5 | 4223 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4224 | /* confdefs.h. */ |
4225 | _ACEOF | |
4226 | cat confdefs.h >>conftest.$ac_ext | |
4227 | cat >>conftest.$ac_ext <<_ACEOF | |
4228 | /* end confdefs.h. */ | |
795ca3e5 AK |
4229 | #include <sys/types.h> |
4230 | #include <sys/time.h> | |
4231 | #include <time.h> | |
ad6254c5 AK |
4232 | |
4233 | int | |
4234 | main () | |
4235 | { | |
4236 | if ((struct tm *) 0) | |
4237 | return 0; | |
4238 | ; | |
4239 | return 0; | |
4240 | } | |
4241 | _ACEOF | |
4242 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4243 | if { (ac_try="$ac_compile" |
4244 | case "(($ac_try" in | |
4245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4246 | *) ac_try_echo=$ac_try;; | |
4247 | esac | |
5556819a | 4248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4249 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4250 | ac_status=$? |
8a2fc586 AK |
4251 | grep -v '^ *+' conftest.er1 >conftest.err |
4252 | rm -f conftest.er1 | |
4253 | cat conftest.err >&5 | |
5556819a | 4254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4255 | (exit $ac_status); } && { |
4256 | test -z "$ac_c_werror_flag" || | |
4257 | test ! -s conftest.err | |
4258 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
4259 | ac_cv_header_time=yes |
4260 | else | |
5556819a | 4261 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4262 | sed 's/^/| /' conftest.$ac_ext >&5 |
4263 | ||
7a197a62 | 4264 | ac_cv_header_time=no |
795ca3e5 | 4265 | fi |
7a197a62 AK |
4266 | |
4267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4268 | fi |
5556819a AK |
4269 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
4270 | echo "${ECHO_T}$ac_cv_header_time" >&6; } | |
80992638 | 4271 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
4272 | |
4273 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 4274 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 4275 | _ACEOF |
b896caa1 | 4276 | |
8106cdd5 | 4277 | fi |
b896caa1 | 4278 | |
b896caa1 | 4279 | |
d0191583 JM |
4280 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4281 | ||
4282 | ||
4283 | ||
4284 | ||
4285 | ||
4286 | ||
4287 | ||
4288 | ||
4289 | ||
4290 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4291 | inttypes.h stdint.h unistd.h | |
4292 | do | |
5556819a AK |
4293 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4294 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4295 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
d0191583 | 4296 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 4297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
4298 | else |
4299 | cat >conftest.$ac_ext <<_ACEOF | |
4300 | /* confdefs.h. */ | |
4301 | _ACEOF | |
4302 | cat confdefs.h >>conftest.$ac_ext | |
4303 | cat >>conftest.$ac_ext <<_ACEOF | |
4304 | /* end confdefs.h. */ | |
4305 | $ac_includes_default | |
4306 | ||
4307 | #include <$ac_header> | |
4308 | _ACEOF | |
4309 | rm -f conftest.$ac_objext | |
4310 | if { (ac_try="$ac_compile" | |
4311 | case "(($ac_try" in | |
4312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4313 | *) ac_try_echo=$ac_try;; | |
4314 | esac | |
5556819a | 4315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
4316 | (eval "$ac_compile") 2>conftest.er1 |
4317 | ac_status=$? | |
4318 | grep -v '^ *+' conftest.er1 >conftest.err | |
4319 | rm -f conftest.er1 | |
4320 | cat conftest.err >&5 | |
5556819a | 4321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4322 | (exit $ac_status); } && { |
4323 | test -z "$ac_c_werror_flag" || | |
4324 | test ! -s conftest.err | |
4325 | } && test -s conftest.$ac_objext; then | |
4326 | eval "$as_ac_Header=yes" | |
4327 | else | |
5556819a | 4328 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4329 | sed 's/^/| /' conftest.$ac_ext >&5 |
4330 | ||
4331 | eval "$as_ac_Header=no" | |
4332 | fi | |
4333 | ||
4334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4335 | fi | |
5556819a AK |
4336 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4337 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4338 | echo "${ECHO_T}$ac_res" >&6; } | |
4339 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
d0191583 | 4340 | cat >>confdefs.h <<_ACEOF |
5556819a | 4341 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d0191583 JM |
4342 | _ACEOF |
4343 | ||
4344 | fi | |
4345 | ||
4346 | done | |
4347 | ||
b896caa1 | 4348 | |
b896caa1 AK |
4349 | |
4350 | ||
795ca3e5 | 4351 | |
8106cdd5 | 4352 | |
80992638 | 4353 | |
795ca3e5 | 4354 | |
a38df97f | 4355 | |
80992638 | 4356 | |
d0191583 JM |
4357 | |
4358 | ||
4359 | ||
4360 | ||
4361 | ||
4362 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4363 | libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h | |
ad6254c5 | 4364 | do |
5556819a | 4365 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d0191583 | 4366 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
4367 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4368 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4369 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 4370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 | 4371 | fi |
5556819a AK |
4372 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4373 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4374 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 | 4375 | else |
d0191583 | 4376 | # Is the header compilable? |
5556819a AK |
4377 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4378 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
d0191583 | 4379 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4380 | /* confdefs.h. */ |
4381 | _ACEOF | |
4382 | cat confdefs.h >>conftest.$ac_ext | |
4383 | cat >>conftest.$ac_ext <<_ACEOF | |
4384 | /* end confdefs.h. */ | |
4385 | $ac_includes_default | |
ad6254c5 AK |
4386 | #include <$ac_header> |
4387 | _ACEOF | |
4388 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4389 | if { (ac_try="$ac_compile" |
4390 | case "(($ac_try" in | |
4391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4392 | *) ac_try_echo=$ac_try;; | |
4393 | esac | |
5556819a | 4394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4395 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4396 | ac_status=$? |
8a2fc586 AK |
4397 | grep -v '^ *+' conftest.er1 >conftest.err |
4398 | rm -f conftest.er1 | |
4399 | cat conftest.err >&5 | |
5556819a | 4400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4401 | (exit $ac_status); } && { |
4402 | test -z "$ac_c_werror_flag" || | |
4403 | test ! -s conftest.err | |
4404 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4405 | ac_header_compiler=yes |
ad6254c5 | 4406 | else |
5556819a | 4407 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4408 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4409 | |
d0191583 | 4410 | ac_header_compiler=no |
ad6254c5 | 4411 | fi |
7a197a62 AK |
4412 | |
4413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
4414 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4415 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
d0191583 JM |
4416 | |
4417 | # Is the header present? | |
5556819a AK |
4418 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4419 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
d0191583 JM |
4420 | cat >conftest.$ac_ext <<_ACEOF |
4421 | /* confdefs.h. */ | |
4422 | _ACEOF | |
4423 | cat confdefs.h >>conftest.$ac_ext | |
4424 | cat >>conftest.$ac_ext <<_ACEOF | |
4425 | /* end confdefs.h. */ | |
4426 | #include <$ac_header> | |
4427 | _ACEOF | |
4428 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4429 | case "(($ac_try" in | |
4430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4431 | *) ac_try_echo=$ac_try;; | |
4432 | esac | |
5556819a | 4433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
4434 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4435 | ac_status=$? | |
4436 | grep -v '^ *+' conftest.er1 >conftest.err | |
4437 | rm -f conftest.er1 | |
4438 | cat conftest.err >&5 | |
5556819a | 4439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4440 | (exit $ac_status); } >/dev/null && { |
4441 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4442 | test ! -s conftest.err | |
4443 | }; then | |
4444 | ac_header_preproc=yes | |
4445 | else | |
5556819a | 4446 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4447 | sed 's/^/| /' conftest.$ac_ext >&5 |
4448 | ||
4449 | ac_header_preproc=no | |
4450 | fi | |
4451 | ||
4452 | rm -f conftest.err conftest.$ac_ext | |
5556819a AK |
4453 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4454 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
d0191583 JM |
4455 | |
4456 | # So? What about this header? | |
4457 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4458 | yes:no: ) | |
5556819a AK |
4459 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4460 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4461 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4462 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4463 | ac_header_preproc=yes |
4464 | ;; | |
4465 | no:yes:* ) | |
5556819a AK |
4466 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4467 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4468 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4469 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4470 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4471 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4472 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4473 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4474 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4475 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4476 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4477 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4478 | |
4479 | ;; | |
4480 | esac | |
5556819a AK |
4481 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4482 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
d0191583 | 4483 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 4484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
4485 | else |
4486 | eval "$as_ac_Header=\$ac_header_preproc" | |
a38df97f | 4487 | fi |
5556819a AK |
4488 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4489 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4490 | echo "${ECHO_T}$ac_res" >&6; } | |
d0191583 JM |
4491 | |
4492 | fi | |
5556819a | 4493 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4494 | cat >>confdefs.h <<_ACEOF |
5556819a | 4495 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4496 | _ACEOF |
a38df97f | 4497 | |
d0191583 | 4498 | else |
5556819a AK |
4499 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4500 | echo "$as_me: error: bailing out" >&2;} | |
d0191583 | 4501 | { (exit 1); exit 1; }; } |
80992638 AK |
4502 | fi |
4503 | ||
ad6254c5 AK |
4504 | done |
4505 | ||
7d1552c9 | 4506 | |
d0191583 JM |
4507 | case "$host_os" in |
4508 | linux*) | |
7d1552c9 | 4509 | |
80992638 | 4510 | |
5a52dca9 | 4511 | |
d0191583 | 4512 | for ac_header in asm/byteorder.h linux/fs.h malloc.h |
ad6254c5 | 4513 | do |
5556819a | 4514 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4515 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
4516 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4517 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4518 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 4519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4520 | fi |
5556819a AK |
4521 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4522 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4523 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4524 | else |
4525 | # Is the header compilable? | |
5556819a AK |
4526 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4527 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4528 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4529 | /* confdefs.h. */ |
4530 | _ACEOF | |
4531 | cat confdefs.h >>conftest.$ac_ext | |
4532 | cat >>conftest.$ac_ext <<_ACEOF | |
4533 | /* end confdefs.h. */ | |
4534 | $ac_includes_default | |
4535 | #include <$ac_header> | |
4536 | _ACEOF | |
4537 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4538 | if { (ac_try="$ac_compile" |
4539 | case "(($ac_try" in | |
4540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4541 | *) ac_try_echo=$ac_try;; | |
4542 | esac | |
5556819a | 4543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4544 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4545 | ac_status=$? |
8a2fc586 AK |
4546 | grep -v '^ *+' conftest.er1 >conftest.err |
4547 | rm -f conftest.er1 | |
4548 | cat conftest.err >&5 | |
5556819a | 4549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4550 | (exit $ac_status); } && { |
4551 | test -z "$ac_c_werror_flag" || | |
4552 | test ! -s conftest.err | |
4553 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4554 | ac_header_compiler=yes |
4555 | else | |
5556819a | 4556 | echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4557 | sed 's/^/| /' conftest.$ac_ext >&5 |
4558 | ||
4559 | ac_header_compiler=no | |
4560 | fi | |
4561 | ||
4562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
4563 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4564 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4565 | |
4566 | # Is the header present? | |
5556819a AK |
4567 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4568 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4569 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4570 | /* confdefs.h. */ |
4571 | _ACEOF | |
4572 | cat confdefs.h >>conftest.$ac_ext | |
4573 | cat >>conftest.$ac_ext <<_ACEOF | |
4574 | /* end confdefs.h. */ | |
4575 | #include <$ac_header> | |
4576 | _ACEOF | |
7a197a62 AK |
4577 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4578 | case "(($ac_try" in | |
4579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4580 | *) ac_try_echo=$ac_try;; | |
4581 | esac | |
5556819a | 4582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4583 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4584 | ac_status=$? |
4585 | grep -v '^ *+' conftest.er1 >conftest.err | |
4586 | rm -f conftest.er1 | |
4587 | cat conftest.err >&5 | |
5556819a | 4588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4589 | (exit $ac_status); } >/dev/null && { |
4590 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4591 | test ! -s conftest.err | |
4592 | }; then | |
ad6254c5 AK |
4593 | ac_header_preproc=yes |
4594 | else | |
5556819a | 4595 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4596 | sed 's/^/| /' conftest.$ac_ext >&5 |
4597 | ||
4598 | ac_header_preproc=no | |
4599 | fi | |
7a197a62 | 4600 | |
ad6254c5 | 4601 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
4602 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4603 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4604 | |
4605 | # So? What about this header? | |
8a2fc586 AK |
4606 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4607 | yes:no: ) | |
5556819a AK |
4608 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4609 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4610 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4611 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4612 | ac_header_preproc=yes |
ad6254c5 | 4613 | ;; |
8a2fc586 | 4614 | no:yes:* ) |
5556819a AK |
4615 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4616 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4617 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4618 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4619 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4620 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4621 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4622 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4623 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4624 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4625 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4626 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4627 | |
ad6254c5 AK |
4628 | ;; |
4629 | esac | |
5556819a AK |
4630 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4631 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4632 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 4633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4634 | else |
8a2fc586 | 4635 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 4636 | fi |
5556819a AK |
4637 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4638 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4639 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4640 | |
4641 | fi | |
5556819a | 4642 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4643 | cat >>confdefs.h <<_ACEOF |
5556819a | 4644 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4645 | _ACEOF |
b896caa1 | 4646 | |
d8ac0fbc | 4647 | else |
5556819a AK |
4648 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4649 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4650 | { (exit 1); exit 1; }; } |
80992638 AK |
4651 | fi |
4652 | ||
ad6254c5 | 4653 | done |
d0191583 JM |
4654 | ;; |
4655 | darwin*) | |
d8ac0fbc | 4656 | |
d8ac0fbc | 4657 | |
d0191583 | 4658 | for ac_header in machine/endian.h sys/disk.h |
ad6254c5 | 4659 | do |
5556819a | 4660 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4661 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
4662 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4663 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4664 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 4665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4666 | fi |
5556819a AK |
4667 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4668 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4669 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4670 | else |
4671 | # Is the header compilable? | |
5556819a AK |
4672 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4673 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4674 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4675 | /* confdefs.h. */ |
4676 | _ACEOF | |
4677 | cat confdefs.h >>conftest.$ac_ext | |
4678 | cat >>conftest.$ac_ext <<_ACEOF | |
4679 | /* end confdefs.h. */ | |
4680 | $ac_includes_default | |
4681 | #include <$ac_header> | |
4682 | _ACEOF | |
4683 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4684 | if { (ac_try="$ac_compile" |
4685 | case "(($ac_try" in | |
4686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4687 | *) ac_try_echo=$ac_try;; | |
4688 | esac | |
5556819a | 4689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4690 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4691 | ac_status=$? |
8a2fc586 AK |
4692 | grep -v '^ *+' conftest.er1 >conftest.err |
4693 | rm -f conftest.er1 | |
4694 | cat conftest.err >&5 | |
5556819a | 4695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4696 | (exit $ac_status); } && { |
4697 | test -z "$ac_c_werror_flag" || | |
4698 | test ! -s conftest.err | |
4699 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4700 | ac_header_compiler=yes |
4701 | else | |
5556819a | 4702 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4703 | sed 's/^/| /' conftest.$ac_ext >&5 |
4704 | ||
7a197a62 | 4705 | ac_header_compiler=no |
ad6254c5 | 4706 | fi |
7a197a62 AK |
4707 | |
4708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
4709 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4710 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4711 | |
4712 | # Is the header present? | |
5556819a AK |
4713 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4714 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4715 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4716 | /* confdefs.h. */ |
4717 | _ACEOF | |
4718 | cat confdefs.h >>conftest.$ac_ext | |
4719 | cat >>conftest.$ac_ext <<_ACEOF | |
4720 | /* end confdefs.h. */ | |
4721 | #include <$ac_header> | |
4722 | _ACEOF | |
7a197a62 AK |
4723 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4724 | case "(($ac_try" in | |
4725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4726 | *) ac_try_echo=$ac_try;; | |
4727 | esac | |
5556819a | 4728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4729 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4730 | ac_status=$? |
4731 | grep -v '^ *+' conftest.er1 >conftest.err | |
4732 | rm -f conftest.er1 | |
4733 | cat conftest.err >&5 | |
5556819a | 4734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4735 | (exit $ac_status); } >/dev/null && { |
4736 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4737 | test ! -s conftest.err | |
4738 | }; then | |
ad6254c5 AK |
4739 | ac_header_preproc=yes |
4740 | else | |
5556819a | 4741 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4742 | sed 's/^/| /' conftest.$ac_ext >&5 |
4743 | ||
4744 | ac_header_preproc=no | |
4745 | fi | |
7a197a62 | 4746 | |
ad6254c5 | 4747 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
4748 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4749 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4750 | |
4751 | # So? What about this header? | |
8a2fc586 AK |
4752 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4753 | yes:no: ) | |
5556819a AK |
4754 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4755 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4756 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4757 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4758 | ac_header_preproc=yes |
ad6254c5 | 4759 | ;; |
8a2fc586 | 4760 | no:yes:* ) |
5556819a AK |
4761 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4762 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4763 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4764 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4765 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4766 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4767 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4768 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4769 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4770 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4771 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4772 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4773 | |
ad6254c5 AK |
4774 | ;; |
4775 | esac | |
5556819a AK |
4776 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4777 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4778 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 4779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4780 | else |
8a2fc586 | 4781 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 4782 | fi |
5556819a AK |
4783 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4784 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4785 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4786 | |
4787 | fi | |
5556819a | 4788 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4789 | cat >>confdefs.h <<_ACEOF |
5556819a | 4790 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4791 | _ACEOF |
4922197a | 4792 | |
4922197a | 4793 | else |
5556819a AK |
4794 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4795 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4796 | { (exit 1); exit 1; }; } |
80992638 AK |
4797 | fi |
4798 | ||
ad6254c5 | 4799 | done |
d0191583 JM |
4800 | ;; |
4801 | esac | |
4922197a | 4802 | |
4922197a | 4803 | |
4922197a | 4804 | |
ad6254c5 AK |
4805 | |
4806 | ||
d0191583 JM |
4807 | |
4808 | ||
4809 | ||
4810 | ||
4811 | ||
4812 | ||
4813 | ||
4814 | ||
4815 | ||
4816 | ||
4817 | ||
4818 | ||
4819 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
4820 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
4821 | sys/types.h unistd.h | |
ad6254c5 | 4822 | do |
5556819a | 4823 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4824 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
4825 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4826 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4827 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 4828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4829 | fi |
5556819a AK |
4830 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4831 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4832 | echo "${ECHO_T}$ac_res" >&6; } | |
795ca3e5 | 4833 | else |
ad6254c5 | 4834 | # Is the header compilable? |
5556819a AK |
4835 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4836 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4837 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4838 | /* confdefs.h. */ |
4839 | _ACEOF | |
4840 | cat confdefs.h >>conftest.$ac_ext | |
4841 | cat >>conftest.$ac_ext <<_ACEOF | |
4842 | /* end confdefs.h. */ | |
4843 | $ac_includes_default | |
4844 | #include <$ac_header> | |
4845 | _ACEOF | |
4846 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4847 | if { (ac_try="$ac_compile" |
4848 | case "(($ac_try" in | |
4849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4850 | *) ac_try_echo=$ac_try;; | |
4851 | esac | |
5556819a | 4852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4853 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4854 | ac_status=$? |
8a2fc586 AK |
4855 | grep -v '^ *+' conftest.er1 >conftest.err |
4856 | rm -f conftest.er1 | |
4857 | cat conftest.err >&5 | |
5556819a | 4858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4859 | (exit $ac_status); } && { |
4860 | test -z "$ac_c_werror_flag" || | |
4861 | test ! -s conftest.err | |
4862 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4863 | ac_header_compiler=yes |
4864 | else | |
5556819a | 4865 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4866 | sed 's/^/| /' conftest.$ac_ext >&5 |
4867 | ||
7a197a62 | 4868 | ac_header_compiler=no |
ad6254c5 | 4869 | fi |
7a197a62 AK |
4870 | |
4871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
4872 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4873 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4874 | |
4875 | # Is the header present? | |
5556819a AK |
4876 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4877 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4878 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4879 | /* confdefs.h. */ |
4880 | _ACEOF | |
4881 | cat confdefs.h >>conftest.$ac_ext | |
4882 | cat >>conftest.$ac_ext <<_ACEOF | |
4883 | /* end confdefs.h. */ | |
4884 | #include <$ac_header> | |
4885 | _ACEOF | |
7a197a62 AK |
4886 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4887 | case "(($ac_try" in | |
4888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4889 | *) ac_try_echo=$ac_try;; | |
4890 | esac | |
5556819a | 4891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4892 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4893 | ac_status=$? |
4894 | grep -v '^ *+' conftest.er1 >conftest.err | |
4895 | rm -f conftest.er1 | |
4896 | cat conftest.err >&5 | |
5556819a | 4897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4898 | (exit $ac_status); } >/dev/null && { |
4899 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4900 | test ! -s conftest.err | |
4901 | }; then | |
ad6254c5 AK |
4902 | ac_header_preproc=yes |
4903 | else | |
5556819a | 4904 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4905 | sed 's/^/| /' conftest.$ac_ext >&5 |
4906 | ||
4907 | ac_header_preproc=no | |
4908 | fi | |
7a197a62 | 4909 | |
ad6254c5 | 4910 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
4911 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4912 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4913 | |
4914 | # So? What about this header? | |
8a2fc586 AK |
4915 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4916 | yes:no: ) | |
5556819a AK |
4917 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4918 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4919 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4920 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4921 | ac_header_preproc=yes |
ad6254c5 | 4922 | ;; |
8a2fc586 | 4923 | no:yes:* ) |
5556819a AK |
4924 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4925 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4926 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4927 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4928 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4929 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4930 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4931 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4932 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4933 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4934 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4935 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4936 | |
ad6254c5 AK |
4937 | ;; |
4938 | esac | |
5556819a AK |
4939 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4940 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4941 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 4942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4943 | else |
8a2fc586 | 4944 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 4945 | fi |
5556819a AK |
4946 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4947 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4948 | echo "${ECHO_T}$ac_res" >&6; } | |
80992638 | 4949 | |
ad6254c5 | 4950 | fi |
5556819a | 4951 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4952 | cat >>confdefs.h <<_ACEOF |
5556819a | 4953 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4954 | _ACEOF |
795ca3e5 | 4955 | |
795ca3e5 | 4956 | else |
5556819a AK |
4957 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4958 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4959 | { (exit 1); exit 1; }; } |
80992638 AK |
4960 | fi |
4961 | ||
ad6254c5 | 4962 | done |
ad6254c5 | 4963 | |
795ca3e5 | 4964 | |
d0191583 JM |
4965 | |
4966 | for ac_header in termios.h sys/statvfs.h | |
ad6254c5 | 4967 | do |
5556819a | 4968 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4969 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
4970 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4971 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4972 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 4973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4974 | fi |
5556819a AK |
4975 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4976 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4977 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4978 | else |
4979 | # Is the header compilable? | |
5556819a AK |
4980 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4981 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4982 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4983 | /* confdefs.h. */ |
4984 | _ACEOF | |
4985 | cat confdefs.h >>conftest.$ac_ext | |
4986 | cat >>conftest.$ac_ext <<_ACEOF | |
4987 | /* end confdefs.h. */ | |
4988 | $ac_includes_default | |
4989 | #include <$ac_header> | |
4990 | _ACEOF | |
4991 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4992 | if { (ac_try="$ac_compile" |
4993 | case "(($ac_try" in | |
4994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4995 | *) ac_try_echo=$ac_try;; | |
4996 | esac | |
5556819a | 4997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4998 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4999 | ac_status=$? |
8a2fc586 AK |
5000 | grep -v '^ *+' conftest.er1 >conftest.err |
5001 | rm -f conftest.er1 | |
5002 | cat conftest.err >&5 | |
5556819a | 5003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5004 | (exit $ac_status); } && { |
5005 | test -z "$ac_c_werror_flag" || | |
5006 | test ! -s conftest.err | |
5007 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5008 | ac_header_compiler=yes |
5009 | else | |
5556819a | 5010 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5011 | sed 's/^/| /' conftest.$ac_ext >&5 |
5012 | ||
7a197a62 | 5013 | ac_header_compiler=no |
ad6254c5 | 5014 | fi |
7a197a62 AK |
5015 | |
5016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
5017 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5018 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5019 | |
5020 | # Is the header present? | |
5556819a AK |
5021 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5022 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 5023 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5024 | /* confdefs.h. */ |
5025 | _ACEOF | |
5026 | cat confdefs.h >>conftest.$ac_ext | |
5027 | cat >>conftest.$ac_ext <<_ACEOF | |
5028 | /* end confdefs.h. */ | |
5029 | #include <$ac_header> | |
5030 | _ACEOF | |
7a197a62 AK |
5031 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5032 | case "(($ac_try" in | |
5033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5034 | *) ac_try_echo=$ac_try;; | |
5035 | esac | |
5556819a | 5036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5037 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5038 | ac_status=$? |
5039 | grep -v '^ *+' conftest.er1 >conftest.err | |
5040 | rm -f conftest.er1 | |
5041 | cat conftest.err >&5 | |
5556819a | 5042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5043 | (exit $ac_status); } >/dev/null && { |
5044 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5045 | test ! -s conftest.err | |
5046 | }; then | |
ad6254c5 AK |
5047 | ac_header_preproc=yes |
5048 | else | |
5556819a | 5049 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5050 | sed 's/^/| /' conftest.$ac_ext >&5 |
5051 | ||
5052 | ac_header_preproc=no | |
5053 | fi | |
7a197a62 | 5054 | |
ad6254c5 | 5055 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
5056 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5057 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5058 | |
5059 | # So? What about this header? | |
8a2fc586 AK |
5060 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5061 | yes:no: ) | |
5556819a AK |
5062 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5063 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5064 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5065 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5066 | ac_header_preproc=yes |
ad6254c5 | 5067 | ;; |
8a2fc586 | 5068 | no:yes:* ) |
5556819a AK |
5069 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5070 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5071 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5072 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5073 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5074 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5075 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5076 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5077 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5078 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5079 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5080 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5081 | |
ad6254c5 AK |
5082 | ;; |
5083 | esac | |
5556819a AK |
5084 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5085 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 5086 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 5087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5088 | else |
8a2fc586 | 5089 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5090 | fi |
5556819a AK |
5091 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5092 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5093 | echo "${ECHO_T}$ac_res" >&6; } | |
b896caa1 | 5094 | |
ad6254c5 | 5095 | fi |
5556819a | 5096 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 5097 | cat >>confdefs.h <<_ACEOF |
5556819a | 5098 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
5099 | _ACEOF |
5100 | ||
80992638 AK |
5101 | fi |
5102 | ||
ad6254c5 | 5103 | done |
d0191583 | 5104 | |
d3c8211f | 5105 | |
80992638 | 5106 | ################################################################################ |
5556819a AK |
5107 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5108 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
ad6254c5 | 5109 | if test "${ac_cv_c_const+set}" = set; then |
5556819a | 5110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d3c8211f | 5111 | else |
ad6254c5 | 5112 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5113 | /* confdefs.h. */ |
5114 | _ACEOF | |
5115 | cat confdefs.h >>conftest.$ac_ext | |
5116 | cat >>conftest.$ac_ext <<_ACEOF | |
5117 | /* end confdefs.h. */ | |
5118 | ||
5119 | int | |
5120 | main () | |
5121 | { | |
5122 | /* FIXME: Include the comments suggested by Paul. */ | |
5123 | #ifndef __cplusplus | |
5124 | /* Ultrix mips cc rejects this. */ | |
5125 | typedef int charset[2]; | |
25fbec5b | 5126 | const charset cs; |
ad6254c5 | 5127 | /* SunOS 4.1.1 cc rejects this. */ |
25fbec5b AK |
5128 | char const *const *pcpcc; |
5129 | char **ppc; | |
ad6254c5 AK |
5130 | /* NEC SVR4.0.2 mips cc rejects this. */ |
5131 | struct point {int x, y;}; | |
5132 | static struct point const zero = {0,0}; | |
5133 | /* AIX XL C 1.02.0.0 rejects this. | |
5134 | It does not let you subtract one const X* pointer from another in | |
5135 | an arm of an if-expression whose if-part is not a constant | |
5136 | expression */ | |
5137 | const char *g = "string"; | |
25fbec5b | 5138 | pcpcc = &g + (g ? g-g : 0); |
ad6254c5 | 5139 | /* HPUX 7.0 cc rejects these. */ |
25fbec5b AK |
5140 | ++pcpcc; |
5141 | ppc = (char**) pcpcc; | |
5142 | pcpcc = (char const *const *) ppc; | |
ad6254c5 AK |
5143 | { /* SCO 3.2v4 cc rejects this. */ |
5144 | char *t; | |
5145 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5146 | ||
5147 | *t++ = 0; | |
7a197a62 | 5148 | if (s) return 0; |
ad6254c5 AK |
5149 | } |
5150 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5151 | int x[] = {25, 17}; | |
5152 | const int *foo = &x[0]; | |
5153 | ++foo; | |
5154 | } | |
5155 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5156 | typedef const int *iptr; | |
5157 | iptr p = 0; | |
5158 | ++p; | |
5159 | } | |
5160 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5161 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5162 | struct s { int j; const int *ap[3]; }; | |
5163 | struct s *b; b->j = 5; | |
5164 | } | |
5165 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5166 | const int foo = 10; | |
7a197a62 | 5167 | if (!foo) return 0; |
ad6254c5 | 5168 | } |
25fbec5b | 5169 | return !cs[0] && !zero.x; |
ad6254c5 AK |
5170 | #endif |
5171 | ||
5172 | ; | |
5173 | return 0; | |
5174 | } | |
5175 | _ACEOF | |
5176 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5177 | if { (ac_try="$ac_compile" |
5178 | case "(($ac_try" in | |
5179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5180 | *) ac_try_echo=$ac_try;; | |
5181 | esac | |
5556819a | 5182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5183 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5184 | ac_status=$? |
8a2fc586 AK |
5185 | grep -v '^ *+' conftest.er1 >conftest.err |
5186 | rm -f conftest.er1 | |
5187 | cat conftest.err >&5 | |
5556819a | 5188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5189 | (exit $ac_status); } && { |
5190 | test -z "$ac_c_werror_flag" || | |
5191 | test ! -s conftest.err | |
5192 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5193 | ac_cv_c_const=yes |
5194 | else | |
5556819a | 5195 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5196 | sed 's/^/| /' conftest.$ac_ext >&5 |
5197 | ||
7a197a62 | 5198 | ac_cv_c_const=no |
ad6254c5 | 5199 | fi |
7a197a62 AK |
5200 | |
5201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5202 | fi |
5556819a AK |
5203 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5204 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
ad6254c5 | 5205 | if test $ac_cv_c_const = no; then |
80992638 | 5206 | |
ad6254c5 | 5207 | cat >>confdefs.h <<\_ACEOF |
5556819a | 5208 | #define const |
ad6254c5 | 5209 | _ACEOF |
80992638 | 5210 | |
d3c8211f | 5211 | fi |
d3c8211f | 5212 | |
5556819a AK |
5213 | { echo "$as_me:$LINENO: checking for inline" >&5 |
5214 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
ad6254c5 | 5215 | if test "${ac_cv_c_inline+set}" = set; then |
5556819a | 5216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8ef2b021 | 5217 | else |
ad6254c5 AK |
5218 | ac_cv_c_inline=no |
5219 | for ac_kw in inline __inline__ __inline; do | |
5220 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5221 | /* confdefs.h. */ |
5222 | _ACEOF | |
5223 | cat confdefs.h >>conftest.$ac_ext | |
5224 | cat >>conftest.$ac_ext <<_ACEOF | |
5225 | /* end confdefs.h. */ | |
5226 | #ifndef __cplusplus | |
5227 | typedef int foo_t; | |
5228 | static $ac_kw foo_t static_foo () {return 0; } | |
5229 | $ac_kw foo_t foo () {return 0; } | |
5230 | #endif | |
80992638 | 5231 | |
ad6254c5 AK |
5232 | _ACEOF |
5233 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5234 | if { (ac_try="$ac_compile" |
5235 | case "(($ac_try" in | |
5236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5237 | *) ac_try_echo=$ac_try;; | |
5238 | esac | |
5556819a | 5239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5240 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5241 | ac_status=$? |
8a2fc586 AK |
5242 | grep -v '^ *+' conftest.er1 >conftest.err |
5243 | rm -f conftest.er1 | |
5244 | cat conftest.err >&5 | |
5556819a | 5245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5246 | (exit $ac_status); } && { |
5247 | test -z "$ac_c_werror_flag" || | |
5248 | test ! -s conftest.err | |
5249 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 5250 | ac_cv_c_inline=$ac_kw |
ad6254c5 | 5251 | else |
5556819a | 5252 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5253 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 5254 | |
7a197a62 | 5255 | |
8ce0cbda | 5256 | fi |
7a197a62 AK |
5257 | |
5258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5259 | test "$ac_cv_c_inline" != no && break | |
ad6254c5 | 5260 | done |
8ce0cbda | 5261 | |
8ce0cbda | 5262 | fi |
5556819a AK |
5263 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5264 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
8a2fc586 AK |
5265 | |
5266 | ||
ad6254c5 AK |
5267 | case $ac_cv_c_inline in |
5268 | inline | yes) ;; | |
8a2fc586 AK |
5269 | *) |
5270 | case $ac_cv_c_inline in | |
5271 | no) ac_val=;; | |
5272 | *) ac_val=$ac_cv_c_inline;; | |
5273 | esac | |
5274 | cat >>confdefs.h <<_ACEOF | |
5275 | #ifndef __cplusplus | |
5276 | #define inline $ac_val | |
5277 | #endif | |
c1c065a3 | 5278 | _ACEOF |
d0191583 JM |
5279 | ;; |
5280 | esac | |
5281 | ||
5556819a AK |
5282 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5283 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; } | |
d0191583 | 5284 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
5556819a | 5285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
5286 | else |
5287 | cat >conftest.$ac_ext <<_ACEOF | |
5288 | /* confdefs.h. */ | |
5289 | _ACEOF | |
5290 | cat confdefs.h >>conftest.$ac_ext | |
5291 | cat >>conftest.$ac_ext <<_ACEOF | |
5292 | /* end confdefs.h. */ | |
5293 | $ac_includes_default | |
5294 | int | |
5295 | main () | |
5296 | { | |
5297 | static struct stat ac_aggr; | |
5298 | if (ac_aggr.st_rdev) | |
5299 | return 0; | |
5300 | ; | |
5301 | return 0; | |
5302 | } | |
5303 | _ACEOF | |
5304 | rm -f conftest.$ac_objext | |
5305 | if { (ac_try="$ac_compile" | |
5306 | case "(($ac_try" in | |
5307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5308 | *) ac_try_echo=$ac_try;; | |
5309 | esac | |
5556819a | 5310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
5311 | (eval "$ac_compile") 2>conftest.er1 |
5312 | ac_status=$? | |
5313 | grep -v '^ *+' conftest.er1 >conftest.err | |
5314 | rm -f conftest.er1 | |
5315 | cat conftest.err >&5 | |
5556819a | 5316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5317 | (exit $ac_status); } && { |
5318 | test -z "$ac_c_werror_flag" || | |
5319 | test ! -s conftest.err | |
5320 | } && test -s conftest.$ac_objext; then | |
5321 | ac_cv_member_struct_stat_st_rdev=yes | |
5322 | else | |
5556819a | 5323 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5324 | sed 's/^/| /' conftest.$ac_ext >&5 |
5325 | ||
5326 | cat >conftest.$ac_ext <<_ACEOF | |
5327 | /* confdefs.h. */ | |
5328 | _ACEOF | |
5329 | cat confdefs.h >>conftest.$ac_ext | |
5330 | cat >>conftest.$ac_ext <<_ACEOF | |
5331 | /* end confdefs.h. */ | |
5332 | $ac_includes_default | |
5333 | int | |
5334 | main () | |
5335 | { | |
5336 | static struct stat ac_aggr; | |
5337 | if (sizeof ac_aggr.st_rdev) | |
5338 | return 0; | |
5339 | ; | |
5340 | return 0; | |
5341 | } | |
5342 | _ACEOF | |
5343 | rm -f conftest.$ac_objext | |
5344 | if { (ac_try="$ac_compile" | |
5345 | case "(($ac_try" in | |
5346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5347 | *) ac_try_echo=$ac_try;; | |
5348 | esac | |
5556819a | 5349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
5350 | (eval "$ac_compile") 2>conftest.er1 |
5351 | ac_status=$? | |
5352 | grep -v '^ *+' conftest.er1 >conftest.err | |
5353 | rm -f conftest.er1 | |
5354 | cat conftest.err >&5 | |
5556819a | 5355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5356 | (exit $ac_status); } && { |
5357 | test -z "$ac_c_werror_flag" || | |
5358 | test ! -s conftest.err | |
5359 | } && test -s conftest.$ac_objext; then | |
5360 | ac_cv_member_struct_stat_st_rdev=yes | |
5361 | else | |
5556819a | 5362 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5363 | sed 's/^/| /' conftest.$ac_ext >&5 |
5364 | ||
5365 | ac_cv_member_struct_stat_st_rdev=no | |
5366 | fi | |
5367 | ||
5368 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5369 | fi | |
5370 | ||
5371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5372 | fi | |
5556819a AK |
5373 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
5374 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } | |
d0191583 JM |
5375 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
5376 | ||
5377 | cat >>confdefs.h <<_ACEOF | |
5378 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5379 | _ACEOF | |
5380 | ||
5381 | ||
5382 | fi | |
8ce0cbda | 5383 | |
5556819a AK |
5384 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
5385 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } | |
ad6254c5 | 5386 | if test "${ac_cv_type_off_t+set}" = set; then |
5556819a | 5387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5388 | else |
fddafd51 ZK |
5389 | cat >conftest.$ac_ext <<_ACEOF |
5390 | /* confdefs.h. */ | |
5391 | _ACEOF | |
5392 | cat confdefs.h >>conftest.$ac_ext | |
5393 | cat >>conftest.$ac_ext <<_ACEOF | |
5394 | /* end confdefs.h. */ | |
5395 | $ac_includes_default | |
5556819a | 5396 | typedef off_t ac__type_new_; |
fddafd51 ZK |
5397 | int |
5398 | main () | |
5399 | { | |
5556819a AK |
5400 | if ((ac__type_new_ *) 0) |
5401 | return 0; | |
5402 | if (sizeof (ac__type_new_)) | |
5403 | return 0; | |
ad6254c5 AK |
5404 | ; |
5405 | return 0; | |
5406 | } | |
5407 | _ACEOF | |
5408 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5409 | if { (ac_try="$ac_compile" |
5410 | case "(($ac_try" in | |
5411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5412 | *) ac_try_echo=$ac_try;; | |
5413 | esac | |
5556819a | 5414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5415 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5416 | ac_status=$? |
8a2fc586 AK |
5417 | grep -v '^ *+' conftest.er1 >conftest.err |
5418 | rm -f conftest.er1 | |
5419 | cat conftest.err >&5 | |
5556819a | 5420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5421 | (exit $ac_status); } && { |
5422 | test -z "$ac_c_werror_flag" || | |
5423 | test ! -s conftest.err | |
5424 | } && test -s conftest.$ac_objext; then | |
5556819a | 5425 | ac_cv_type_off_t=yes |
ad6254c5 | 5426 | else |
5556819a | 5427 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5428 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ce0cbda | 5429 | |
5556819a | 5430 | ac_cv_type_off_t=no |
80992638 | 5431 | fi |
7a197a62 AK |
5432 | |
5433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5434 | fi |
5556819a AK |
5435 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
5436 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } | |
ad6254c5 AK |
5437 | if test $ac_cv_type_off_t = yes; then |
5438 | : | |
5439 | else | |
80992638 | 5440 | |
ad6254c5 | 5441 | cat >>confdefs.h <<_ACEOF |
7a197a62 | 5442 | #define off_t long int |
ad6254c5 | 5443 | _ACEOF |
199e490e | 5444 | |
b896caa1 AK |
5445 | fi |
5446 | ||
5556819a AK |
5447 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
5448 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | |
ad6254c5 | 5449 | if test "${ac_cv_type_pid_t+set}" = set; then |
5556819a | 5450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5451 | else |
fddafd51 ZK |
5452 | cat >conftest.$ac_ext <<_ACEOF |
5453 | /* confdefs.h. */ | |
5454 | _ACEOF | |
5455 | cat confdefs.h >>conftest.$ac_ext | |
5456 | cat >>conftest.$ac_ext <<_ACEOF | |
5457 | /* end confdefs.h. */ | |
5458 | $ac_includes_default | |
5556819a | 5459 | typedef pid_t ac__type_new_; |
fddafd51 ZK |
5460 | int |
5461 | main () | |
5462 | { | |
5556819a AK |
5463 | if ((ac__type_new_ *) 0) |
5464 | return 0; | |
5465 | if (sizeof (ac__type_new_)) | |
5466 | return 0; | |
ad6254c5 AK |
5467 | ; |
5468 | return 0; | |
5469 | } | |
5470 | _ACEOF | |
5471 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5472 | if { (ac_try="$ac_compile" |
5473 | case "(($ac_try" in | |
5474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5475 | *) ac_try_echo=$ac_try;; | |
5476 | esac | |
5556819a | 5477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5478 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5479 | ac_status=$? |
8a2fc586 AK |
5480 | grep -v '^ *+' conftest.er1 >conftest.err |
5481 | rm -f conftest.er1 | |
5482 | cat conftest.err >&5 | |
5556819a | 5483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5484 | (exit $ac_status); } && { |
5485 | test -z "$ac_c_werror_flag" || | |
5486 | test ! -s conftest.err | |
5487 | } && test -s conftest.$ac_objext; then | |
5556819a | 5488 | ac_cv_type_pid_t=yes |
ad6254c5 | 5489 | else |
5556819a | 5490 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5491 | sed 's/^/| /' conftest.$ac_ext >&5 |
5492 | ||
5556819a | 5493 | ac_cv_type_pid_t=no |
ad6254c5 | 5494 | fi |
7a197a62 AK |
5495 | |
5496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5497 | fi |
5556819a AK |
5498 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5499 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | |
ad6254c5 AK |
5500 | if test $ac_cv_type_pid_t = yes; then |
5501 | : | |
5502 | else | |
80992638 | 5503 | |
ad6254c5 AK |
5504 | cat >>confdefs.h <<_ACEOF |
5505 | #define pid_t int | |
5506 | _ACEOF | |
2dc95e1c | 5507 | |
2dc95e1c AK |
5508 | fi |
5509 | ||
5556819a AK |
5510 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
5511 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } | |
d0191583 | 5512 | if test "${ac_cv_type_signal+set}" = set; then |
5556819a | 5513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
5514 | else |
5515 | cat >conftest.$ac_ext <<_ACEOF | |
5516 | /* confdefs.h. */ | |
5517 | _ACEOF | |
5518 | cat confdefs.h >>conftest.$ac_ext | |
5519 | cat >>conftest.$ac_ext <<_ACEOF | |
5520 | /* end confdefs.h. */ | |
5521 | #include <sys/types.h> | |
5522 | #include <signal.h> | |
5523 | ||
5524 | int | |
5525 | main () | |
5526 | { | |
5527 | return *(signal (0, 0)) (0) == 1; | |
5528 | ; | |
5529 | return 0; | |
5530 | } | |
5531 | _ACEOF | |
5532 | rm -f conftest.$ac_objext | |
5533 | if { (ac_try="$ac_compile" | |
5534 | case "(($ac_try" in | |
5535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5536 | *) ac_try_echo=$ac_try;; | |
5537 | esac | |
5556819a | 5538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
5539 | (eval "$ac_compile") 2>conftest.er1 |
5540 | ac_status=$? | |
5541 | grep -v '^ *+' conftest.er1 >conftest.err | |
5542 | rm -f conftest.er1 | |
5543 | cat conftest.err >&5 | |
5556819a | 5544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5545 | (exit $ac_status); } && { |
5546 | test -z "$ac_c_werror_flag" || | |
5547 | test ! -s conftest.err | |
5548 | } && test -s conftest.$ac_objext; then | |
5549 | ac_cv_type_signal=int | |
5550 | else | |
5556819a | 5551 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5552 | sed 's/^/| /' conftest.$ac_ext >&5 |
5553 | ||
5554 | ac_cv_type_signal=void | |
5555 | fi | |
5556 | ||
5557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5558 | fi | |
5556819a AK |
5559 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
5560 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } | |
d0191583 JM |
5561 | |
5562 | cat >>confdefs.h <<_ACEOF | |
5563 | #define RETSIGTYPE $ac_cv_type_signal | |
5564 | _ACEOF | |
5565 | ||
5566 | ||
5556819a AK |
5567 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
5568 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
ad6254c5 | 5569 | if test "${ac_cv_type_size_t+set}" = set; then |
5556819a | 5570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 | 5571 | else |
fddafd51 ZK |
5572 | cat >conftest.$ac_ext <<_ACEOF |
5573 | /* confdefs.h. */ | |
5574 | _ACEOF | |
5575 | cat confdefs.h >>conftest.$ac_ext | |
5576 | cat >>conftest.$ac_ext <<_ACEOF | |
5577 | /* end confdefs.h. */ | |
5578 | $ac_includes_default | |
5556819a | 5579 | typedef size_t ac__type_new_; |
fddafd51 ZK |
5580 | int |
5581 | main () | |
5582 | { | |
5556819a AK |
5583 | if ((ac__type_new_ *) 0) |
5584 | return 0; | |
5585 | if (sizeof (ac__type_new_)) | |
5586 | return 0; | |
ad6254c5 AK |
5587 | ; |
5588 | return 0; | |
5589 | } | |
5590 | _ACEOF | |
5591 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5592 | if { (ac_try="$ac_compile" |
5593 | case "(($ac_try" in | |
5594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5595 | *) ac_try_echo=$ac_try;; | |
5596 | esac | |
5556819a | 5597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5598 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5599 | ac_status=$? |
8a2fc586 AK |
5600 | grep -v '^ *+' conftest.er1 >conftest.err |
5601 | rm -f conftest.er1 | |
5602 | cat conftest.err >&5 | |
5556819a | 5603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5604 | (exit $ac_status); } && { |
5605 | test -z "$ac_c_werror_flag" || | |
5606 | test ! -s conftest.err | |
5607 | } && test -s conftest.$ac_objext; then | |
5556819a | 5608 | ac_cv_type_size_t=yes |
ad6254c5 | 5609 | else |
5556819a | 5610 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5611 | sed 's/^/| /' conftest.$ac_ext >&5 |
5612 | ||
5556819a | 5613 | ac_cv_type_size_t=no |
80992638 | 5614 | fi |
7a197a62 AK |
5615 | |
5616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5617 | fi |
5556819a AK |
5618 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
5619 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
ad6254c5 AK |
5620 | if test $ac_cv_type_size_t = yes; then |
5621 | : | |
5622 | else | |
80992638 | 5623 | |
ad6254c5 | 5624 | cat >>confdefs.h <<_ACEOF |
7a197a62 | 5625 | #define size_t unsigned int |
ad6254c5 | 5626 | _ACEOF |
8106cdd5 | 5627 | |
8106cdd5 AK |
5628 | fi |
5629 | ||
5556819a AK |
5630 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
5631 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } | |
ad6254c5 | 5632 | if test "${ac_cv_type_mode_t+set}" = set; then |
5556819a | 5633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5634 | else |
fddafd51 ZK |
5635 | cat >conftest.$ac_ext <<_ACEOF |
5636 | /* confdefs.h. */ | |
5637 | _ACEOF | |
5638 | cat confdefs.h >>conftest.$ac_ext | |
5639 | cat >>conftest.$ac_ext <<_ACEOF | |
5640 | /* end confdefs.h. */ | |
5641 | $ac_includes_default | |
5556819a | 5642 | typedef mode_t ac__type_new_; |
fddafd51 ZK |
5643 | int |
5644 | main () | |
5645 | { | |
5556819a AK |
5646 | if ((ac__type_new_ *) 0) |
5647 | return 0; | |
5648 | if (sizeof (ac__type_new_)) | |
5649 | return 0; | |
ad6254c5 AK |
5650 | ; |
5651 | return 0; | |
5652 | } | |
5653 | _ACEOF | |
5654 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5655 | if { (ac_try="$ac_compile" |
5656 | case "(($ac_try" in | |
5657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5658 | *) ac_try_echo=$ac_try;; | |
5659 | esac | |
5556819a | 5660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5661 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5662 | ac_status=$? |
8a2fc586 AK |
5663 | grep -v '^ *+' conftest.er1 >conftest.err |
5664 | rm -f conftest.er1 | |
5665 | cat conftest.err >&5 | |
5556819a | 5666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5667 | (exit $ac_status); } && { |
5668 | test -z "$ac_c_werror_flag" || | |
5669 | test ! -s conftest.err | |
5670 | } && test -s conftest.$ac_objext; then | |
5556819a | 5671 | ac_cv_type_mode_t=yes |
fddafd51 | 5672 | else |
5556819a | 5673 | echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
5674 | sed 's/^/| /' conftest.$ac_ext >&5 |
5675 | ||
5556819a | 5676 | ac_cv_type_mode_t=no |
80992638 | 5677 | fi |
7a197a62 AK |
5678 | |
5679 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5680 | fi |
5556819a AK |
5681 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
5682 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } | |
ad6254c5 AK |
5683 | if test $ac_cv_type_mode_t = yes; then |
5684 | : | |
5685 | else | |
80992638 | 5686 | |
ad6254c5 AK |
5687 | cat >>confdefs.h <<_ACEOF |
5688 | #define mode_t int | |
5689 | _ACEOF | |
5690 | ||
5691 | fi | |
5692 | ||
5556819a AK |
5693 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5694 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; } | |
ad6254c5 | 5695 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
5556819a | 5696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5697 | else |
5698 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5699 | /* confdefs.h. */ |
5700 | _ACEOF | |
5701 | cat confdefs.h >>conftest.$ac_ext | |
5702 | cat >>conftest.$ac_ext <<_ACEOF | |
5703 | /* end confdefs.h. */ | |
5704 | $ac_includes_default | |
5705 | int | |
5706 | main () | |
5707 | { | |
5708 | static struct stat ac_aggr; | |
5709 | if (ac_aggr.st_rdev) | |
5710 | return 0; | |
5711 | ; | |
5712 | return 0; | |
5713 | } | |
5714 | _ACEOF | |
5715 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5716 | if { (ac_try="$ac_compile" |
5717 | case "(($ac_try" in | |
5718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5719 | *) ac_try_echo=$ac_try;; | |
5720 | esac | |
5556819a | 5721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5722 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5723 | ac_status=$? |
8a2fc586 AK |
5724 | grep -v '^ *+' conftest.er1 >conftest.err |
5725 | rm -f conftest.er1 | |
5726 | cat conftest.err >&5 | |
5556819a | 5727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5728 | (exit $ac_status); } && { |
5729 | test -z "$ac_c_werror_flag" || | |
5730 | test ! -s conftest.err | |
5731 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5732 | ac_cv_member_struct_stat_st_rdev=yes |
5733 | else | |
5556819a | 5734 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5735 | sed 's/^/| /' conftest.$ac_ext >&5 |
5736 | ||
7a197a62 | 5737 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5738 | /* confdefs.h. */ |
5739 | _ACEOF | |
5740 | cat confdefs.h >>conftest.$ac_ext | |
5741 | cat >>conftest.$ac_ext <<_ACEOF | |
5742 | /* end confdefs.h. */ | |
5743 | $ac_includes_default | |
5744 | int | |
5745 | main () | |
5746 | { | |
5747 | static struct stat ac_aggr; | |
5748 | if (sizeof ac_aggr.st_rdev) | |
5749 | return 0; | |
5750 | ; | |
5751 | return 0; | |
5752 | } | |
5753 | _ACEOF | |
5754 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5755 | if { (ac_try="$ac_compile" |
5756 | case "(($ac_try" in | |
5757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5758 | *) ac_try_echo=$ac_try;; | |
5759 | esac | |
5556819a | 5760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5761 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5762 | ac_status=$? |
8a2fc586 AK |
5763 | grep -v '^ *+' conftest.er1 >conftest.err |
5764 | rm -f conftest.er1 | |
5765 | cat conftest.err >&5 | |
5556819a | 5766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5767 | (exit $ac_status); } && { |
5768 | test -z "$ac_c_werror_flag" || | |
5769 | test ! -s conftest.err | |
5770 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5771 | ac_cv_member_struct_stat_st_rdev=yes |
5772 | else | |
5556819a | 5773 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5774 | sed 's/^/| /' conftest.$ac_ext >&5 |
5775 | ||
7a197a62 | 5776 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 5777 | fi |
7a197a62 AK |
5778 | |
5779 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5780 | fi |
7a197a62 AK |
5781 | |
5782 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5783 | fi |
5556819a AK |
5784 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
5785 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } | |
ad6254c5 AK |
5786 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
5787 | ||
5788 | cat >>confdefs.h <<_ACEOF | |
5789 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5790 | _ACEOF | |
5791 | ||
5792 | ||
ad6254c5 AK |
5793 | fi |
5794 | ||
5556819a AK |
5795 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
5796 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } | |
ad6254c5 | 5797 | if test "${ac_cv_struct_tm+set}" = set; then |
5556819a | 5798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5799 | else |
5800 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5801 | /* confdefs.h. */ |
5802 | _ACEOF | |
5803 | cat confdefs.h >>conftest.$ac_ext | |
5804 | cat >>conftest.$ac_ext <<_ACEOF | |
5805 | /* end confdefs.h. */ | |
5806 | #include <sys/types.h> | |
5807 | #include <time.h> | |
5808 | ||
5809 | int | |
5810 | main () | |
5811 | { | |
25fbec5b AK |
5812 | struct tm tm; |
5813 | int *p = &tm.tm_sec; | |
5556819a | 5814 | return !p; |
ad6254c5 AK |
5815 | ; |
5816 | return 0; | |
5817 | } | |
5818 | _ACEOF | |
5819 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5820 | if { (ac_try="$ac_compile" |
5821 | case "(($ac_try" in | |
5822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5823 | *) ac_try_echo=$ac_try;; | |
5824 | esac | |
5556819a | 5825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5826 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5827 | ac_status=$? |
8a2fc586 AK |
5828 | grep -v '^ *+' conftest.er1 >conftest.err |
5829 | rm -f conftest.er1 | |
5830 | cat conftest.err >&5 | |
5556819a | 5831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5832 | (exit $ac_status); } && { |
5833 | test -z "$ac_c_werror_flag" || | |
5834 | test ! -s conftest.err | |
5835 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5836 | ac_cv_struct_tm=time.h |
5837 | else | |
5556819a | 5838 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5839 | sed 's/^/| /' conftest.$ac_ext >&5 |
5840 | ||
7a197a62 | 5841 | ac_cv_struct_tm=sys/time.h |
ad6254c5 | 5842 | fi |
7a197a62 AK |
5843 | |
5844 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5845 | fi |
5556819a AK |
5846 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
5847 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } | |
ad6254c5 AK |
5848 | if test $ac_cv_struct_tm = sys/time.h; then |
5849 | ||
5850 | cat >>confdefs.h <<\_ACEOF | |
5851 | #define TM_IN_SYS_TIME 1 | |
5852 | _ACEOF | |
5853 | ||
5854 | fi | |
809fae91 | 5855 | |
795ca3e5 | 5856 | |
80992638 | 5857 | ################################################################################ |
ad6254c5 AK |
5858 | |
5859 | ||
5860 | ||
5861 | ||
5862 | ||
5863 | ||
5864 | ||
5865 | ||
5866 | ||
5867 | ||
5868 | ||
5869 | ||
5870 | ||
5871 | ||
d0191583 JM |
5872 | |
5873 | ||
5874 | ||
5875 | for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \ | |
5876 | strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \ | |
5877 | uname | |
ad6254c5 | 5878 | do |
5556819a AK |
5879 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5880 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5881 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 5882 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 5883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 5884 | else |
ad6254c5 | 5885 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5886 | /* confdefs.h. */ |
5887 | _ACEOF | |
5888 | cat confdefs.h >>conftest.$ac_ext | |
5889 | cat >>conftest.$ac_ext <<_ACEOF | |
5890 | /* end confdefs.h. */ | |
8a2fc586 AK |
5891 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5892 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5893 | #define $ac_func innocuous_$ac_func | |
5894 | ||
ad6254c5 AK |
5895 | /* System header to define __stub macros and hopefully few prototypes, |
5896 | which can conflict with char $ac_func (); below. | |
5897 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5898 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 5899 | |
ad6254c5 AK |
5900 | #ifdef __STDC__ |
5901 | # include <limits.h> | |
5902 | #else | |
5903 | # include <assert.h> | |
5904 | #endif | |
8a2fc586 AK |
5905 | |
5906 | #undef $ac_func | |
5907 | ||
7a197a62 AK |
5908 | /* Override any GCC internal prototype to avoid an error. |
5909 | Use char because int might match the return type of a GCC | |
5910 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
5911 | #ifdef __cplusplus |
5912 | extern "C" | |
ad6254c5 | 5913 | #endif |
ad6254c5 AK |
5914 | char $ac_func (); |
5915 | /* The GNU C library defines this for functions which it implements | |
5916 | to always fail with ENOSYS. Some functions are actually named | |
5917 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 5918 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 5919 | choke me |
ad6254c5 AK |
5920 | #endif |
5921 | ||
5922 | int | |
5923 | main () | |
5924 | { | |
7a197a62 | 5925 | return $ac_func (); |
ad6254c5 AK |
5926 | ; |
5927 | return 0; | |
5928 | } | |
5929 | _ACEOF | |
5930 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
5931 | if { (ac_try="$ac_link" |
5932 | case "(($ac_try" in | |
5933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5934 | *) ac_try_echo=$ac_try;; | |
5935 | esac | |
5556819a | 5936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5937 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 5938 | ac_status=$? |
8a2fc586 AK |
5939 | grep -v '^ *+' conftest.er1 >conftest.err |
5940 | rm -f conftest.er1 | |
5941 | cat conftest.err >&5 | |
5556819a | 5942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5943 | (exit $ac_status); } && { |
5944 | test -z "$ac_c_werror_flag" || | |
5945 | test ! -s conftest.err | |
5556819a AK |
5946 | } && test -s conftest$ac_exeext && |
5947 | $as_test_x conftest$ac_exeext; then | |
fc54be10 AK |
5948 | eval "$as_ac_var=yes" |
5949 | else | |
5556819a | 5950 | echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
5951 | sed 's/^/| /' conftest.$ac_ext >&5 |
5952 | ||
5953 | eval "$as_ac_var=no" | |
5954 | fi | |
5955 | ||
25fbec5b | 5956 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
5957 | conftest$ac_exeext conftest.$ac_ext |
5958 | fi | |
5556819a AK |
5959 | ac_res=`eval echo '${'$as_ac_var'}'` |
5960 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5961 | echo "${ECHO_T}$ac_res" >&6; } | |
5962 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 5963 | cat >>confdefs.h <<_ACEOF |
5556819a | 5964 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
5965 | _ACEOF |
5966 | ||
5967 | else | |
5556819a AK |
5968 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
5969 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
5970 | { (exit 1); exit 1; }; } |
5971 | fi | |
5972 | done | |
795ca3e5 | 5973 | |
ad6254c5 AK |
5974 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
5975 | # for constant arguments. Useless! | |
5556819a AK |
5976 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
5977 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
ad6254c5 | 5978 | if test "${ac_cv_working_alloca_h+set}" = set; then |
5556819a | 5979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5980 | else |
5981 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5982 | /* confdefs.h. */ |
5983 | _ACEOF | |
5984 | cat confdefs.h >>conftest.$ac_ext | |
5985 | cat >>conftest.$ac_ext <<_ACEOF | |
5986 | /* end confdefs.h. */ | |
5987 | #include <alloca.h> | |
5988 | int | |
5989 | main () | |
5990 | { | |
5991 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 5992 | if (p) return 0; |
ad6254c5 AK |
5993 | ; |
5994 | return 0; | |
5995 | } | |
5996 | _ACEOF | |
5997 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
5998 | if { (ac_try="$ac_link" |
5999 | case "(($ac_try" in | |
6000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6001 | *) ac_try_echo=$ac_try;; | |
6002 | esac | |
5556819a | 6003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6004 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6005 | ac_status=$? |
8a2fc586 AK |
6006 | grep -v '^ *+' conftest.er1 >conftest.err |
6007 | rm -f conftest.er1 | |
6008 | cat conftest.err >&5 | |
5556819a | 6009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6010 | (exit $ac_status); } && { |
6011 | test -z "$ac_c_werror_flag" || | |
6012 | test ! -s conftest.err | |
5556819a AK |
6013 | } && test -s conftest$ac_exeext && |
6014 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
6015 | ac_cv_working_alloca_h=yes |
6016 | else | |
5556819a | 6017 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 6018 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 6019 | |
7a197a62 | 6020 | ac_cv_working_alloca_h=no |
ad6254c5 | 6021 | fi |
7a197a62 | 6022 | |
25fbec5b | 6023 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6024 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6025 | fi |
5556819a AK |
6026 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
6027 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
6028 | if test $ac_cv_working_alloca_h = yes; then |
6029 | ||
6030 | cat >>confdefs.h <<\_ACEOF | |
6031 | #define HAVE_ALLOCA_H 1 | |
6032 | _ACEOF | |
6033 | ||
6034 | fi | |
6035 | ||
5556819a AK |
6036 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
6037 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
ad6254c5 | 6038 | if test "${ac_cv_func_alloca_works+set}" = set; then |
5556819a | 6039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6040 | else |
6041 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6042 | /* confdefs.h. */ |
6043 | _ACEOF | |
6044 | cat confdefs.h >>conftest.$ac_ext | |
6045 | cat >>conftest.$ac_ext <<_ACEOF | |
6046 | /* end confdefs.h. */ | |
6047 | #ifdef __GNUC__ | |
6048 | # define alloca __builtin_alloca | |
6049 | #else | |
6050 | # ifdef _MSC_VER | |
6051 | # include <malloc.h> | |
6052 | # define alloca _alloca | |
6053 | # else | |
25fbec5b | 6054 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
6055 | # include <alloca.h> |
6056 | # else | |
6057 | # ifdef _AIX | |
6058 | #pragma alloca | |
6059 | # else | |
6060 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6061 | char *alloca (); | |
6062 | # endif | |
6063 | # endif | |
6064 | # endif | |
6065 | # endif | |
6066 | #endif | |
6067 | ||
6068 | int | |
6069 | main () | |
6070 | { | |
6071 | char *p = (char *) alloca (1); | |
7a197a62 | 6072 | if (p) return 0; |
ad6254c5 AK |
6073 | ; |
6074 | return 0; | |
6075 | } | |
6076 | _ACEOF | |
6077 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6078 | if { (ac_try="$ac_link" |
6079 | case "(($ac_try" in | |
6080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6081 | *) ac_try_echo=$ac_try;; | |
6082 | esac | |
5556819a | 6083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6084 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6085 | ac_status=$? |
8a2fc586 AK |
6086 | grep -v '^ *+' conftest.er1 >conftest.err |
6087 | rm -f conftest.er1 | |
6088 | cat conftest.err >&5 | |
5556819a | 6089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6090 | (exit $ac_status); } && { |
6091 | test -z "$ac_c_werror_flag" || | |
6092 | test ! -s conftest.err | |
5556819a AK |
6093 | } && test -s conftest$ac_exeext && |
6094 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
6095 | ac_cv_func_alloca_works=yes |
6096 | else | |
5556819a | 6097 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6098 | sed 's/^/| /' conftest.$ac_ext >&5 |
6099 | ||
7a197a62 | 6100 | ac_cv_func_alloca_works=no |
ad6254c5 | 6101 | fi |
7a197a62 | 6102 | |
25fbec5b | 6103 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6104 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6105 | fi |
5556819a AK |
6106 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6107 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
6108 | |
6109 | if test $ac_cv_func_alloca_works = yes; then | |
6110 | ||
6111 | cat >>confdefs.h <<\_ACEOF | |
6112 | #define HAVE_ALLOCA 1 | |
6113 | _ACEOF | |
6114 | ||
6115 | else | |
6116 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6117 | # that cause trouble. Some versions do not even contain alloca or | |
6118 | # contain a buggy version. If you still want to use their alloca, | |
6119 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6120 | ||
7a197a62 | 6121 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
6122 | |
6123 | cat >>confdefs.h <<\_ACEOF | |
6124 | #define C_ALLOCA 1 | |
6125 | _ACEOF | |
6126 | ||
6127 | ||
5556819a AK |
6128 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6129 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
ad6254c5 | 6130 | if test "${ac_cv_os_cray+set}" = set; then |
5556819a | 6131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6132 | else |
6133 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6134 | /* confdefs.h. */ |
6135 | _ACEOF | |
6136 | cat confdefs.h >>conftest.$ac_ext | |
6137 | cat >>conftest.$ac_ext <<_ACEOF | |
6138 | /* end confdefs.h. */ | |
7a197a62 | 6139 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
6140 | webecray |
6141 | #else | |
6142 | wenotbecray | |
6143 | #endif | |
6144 | ||
6145 | _ACEOF | |
795ca3e5 | 6146 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
6147 | $EGREP "webecray" >/dev/null 2>&1; then |
6148 | ac_cv_os_cray=yes | |
6149 | else | |
6150 | ac_cv_os_cray=no | |
795ca3e5 AK |
6151 | fi |
6152 | rm -f conftest* | |
6153 | ||
795ca3e5 | 6154 | fi |
5556819a AK |
6155 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6156 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
6157 | if test $ac_cv_os_cray = yes; then |
6158 | for ac_func in _getb67 GETB67 getb67; do | |
5556819a AK |
6159 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6160 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6161 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 6162 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 6163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6164 | else |
6165 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6166 | /* confdefs.h. */ |
6167 | _ACEOF | |
6168 | cat confdefs.h >>conftest.$ac_ext | |
6169 | cat >>conftest.$ac_ext <<_ACEOF | |
6170 | /* end confdefs.h. */ | |
8a2fc586 AK |
6171 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6172 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6173 | #define $ac_func innocuous_$ac_func | |
6174 | ||
ad6254c5 AK |
6175 | /* System header to define __stub macros and hopefully few prototypes, |
6176 | which can conflict with char $ac_func (); below. | |
6177 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6178 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6179 | |
ad6254c5 AK |
6180 | #ifdef __STDC__ |
6181 | # include <limits.h> | |
6182 | #else | |
6183 | # include <assert.h> | |
6184 | #endif | |
8a2fc586 AK |
6185 | |
6186 | #undef $ac_func | |
6187 | ||
7a197a62 AK |
6188 | /* Override any GCC internal prototype to avoid an error. |
6189 | Use char because int might match the return type of a GCC | |
6190 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6191 | #ifdef __cplusplus |
6192 | extern "C" | |
ad6254c5 | 6193 | #endif |
ad6254c5 AK |
6194 | char $ac_func (); |
6195 | /* The GNU C library defines this for functions which it implements | |
6196 | to always fail with ENOSYS. Some functions are actually named | |
6197 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6198 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6199 | choke me |
ad6254c5 AK |
6200 | #endif |
6201 | ||
6202 | int | |
6203 | main () | |
6204 | { | |
7a197a62 | 6205 | return $ac_func (); |
ad6254c5 AK |
6206 | ; |
6207 | return 0; | |
6208 | } | |
6209 | _ACEOF | |
6210 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6211 | if { (ac_try="$ac_link" |
6212 | case "(($ac_try" in | |
6213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6214 | *) ac_try_echo=$ac_try;; | |
6215 | esac | |
5556819a | 6216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6217 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6218 | ac_status=$? |
8a2fc586 AK |
6219 | grep -v '^ *+' conftest.er1 >conftest.err |
6220 | rm -f conftest.er1 | |
6221 | cat conftest.err >&5 | |
5556819a | 6222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6223 | (exit $ac_status); } && { |
6224 | test -z "$ac_c_werror_flag" || | |
6225 | test ! -s conftest.err | |
5556819a AK |
6226 | } && test -s conftest$ac_exeext && |
6227 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
6228 | eval "$as_ac_var=yes" |
6229 | else | |
5556819a | 6230 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6231 | sed 's/^/| /' conftest.$ac_ext >&5 |
6232 | ||
7a197a62 | 6233 | eval "$as_ac_var=no" |
ad6254c5 | 6234 | fi |
7a197a62 | 6235 | |
25fbec5b | 6236 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6237 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6238 | fi |
5556819a AK |
6239 | ac_res=`eval echo '${'$as_ac_var'}'` |
6240 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6241 | echo "${ECHO_T}$ac_res" >&6; } | |
6242 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
80992638 | 6243 | |
ad6254c5 AK |
6244 | cat >>confdefs.h <<_ACEOF |
6245 | #define CRAY_STACKSEG_END $ac_func | |
6246 | _ACEOF | |
6247 | ||
6248 | break | |
6249 | fi | |
6250 | ||
6251 | done | |
6252 | fi | |
6253 | ||
5556819a AK |
6254 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6255 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
ad6254c5 | 6256 | if test "${ac_cv_c_stack_direction+set}" = set; then |
5556819a | 6257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6258 | else |
6259 | if test "$cross_compiling" = yes; then | |
6260 | ac_cv_c_stack_direction=0 | |
6261 | else | |
6262 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6263 | /* confdefs.h. */ |
6264 | _ACEOF | |
6265 | cat confdefs.h >>conftest.$ac_ext | |
6266 | cat >>conftest.$ac_ext <<_ACEOF | |
6267 | /* end confdefs.h. */ | |
7a197a62 | 6268 | $ac_includes_default |
ad6254c5 AK |
6269 | int |
6270 | find_stack_direction () | |
6271 | { | |
6272 | static char *addr = 0; | |
6273 | auto char dummy; | |
6274 | if (addr == 0) | |
6275 | { | |
6276 | addr = &dummy; | |
6277 | return find_stack_direction (); | |
6278 | } | |
6279 | else | |
6280 | return (&dummy > addr) ? 1 : -1; | |
6281 | } | |
6282 | ||
6283 | int | |
6284 | main () | |
6285 | { | |
7a197a62 | 6286 | return find_stack_direction () < 0; |
ad6254c5 AK |
6287 | } |
6288 | _ACEOF | |
6289 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6290 | if { (ac_try="$ac_link" |
6291 | case "(($ac_try" in | |
6292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6293 | *) ac_try_echo=$ac_try;; | |
6294 | esac | |
5556819a | 6295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6296 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6297 | ac_status=$? |
5556819a | 6298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6299 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6300 | { (case "(($ac_try" in |
6301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6302 | *) ac_try_echo=$ac_try;; | |
6303 | esac | |
5556819a | 6304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6305 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6306 | ac_status=$? |
5556819a | 6307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6308 | (exit $ac_status); }; }; then |
6309 | ac_cv_c_stack_direction=1 | |
6310 | else | |
5556819a AK |
6311 | echo "$as_me: program exited with status $ac_status" >&5 |
6312 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6313 | sed 's/^/| /' conftest.$ac_ext >&5 |
6314 | ||
6315 | ( exit $ac_status ) | |
6316 | ac_cv_c_stack_direction=-1 | |
6317 | fi | |
7a197a62 | 6318 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6319 | fi |
7a197a62 AK |
6320 | |
6321 | ||
ad6254c5 | 6322 | fi |
5556819a AK |
6323 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6324 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 AK |
6325 | |
6326 | cat >>confdefs.h <<_ACEOF | |
6327 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6328 | _ACEOF | |
6329 | ||
6330 | ||
6331 | fi | |
6332 | ||
5556819a AK |
6333 | { echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
6334 | echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; } | |
ad6254c5 | 6335 | if test "${ac_cv_func_closedir_void+set}" = set; then |
5556819a | 6336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6337 | else |
6338 | if test "$cross_compiling" = yes; then | |
6339 | ac_cv_func_closedir_void=yes | |
6340 | else | |
6341 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6342 | /* confdefs.h. */ |
6343 | _ACEOF | |
6344 | cat confdefs.h >>conftest.$ac_ext | |
6345 | cat >>conftest.$ac_ext <<_ACEOF | |
6346 | /* end confdefs.h. */ | |
6347 | $ac_includes_default | |
6348 | #include <$ac_header_dirent> | |
6349 | #ifndef __cplusplus | |
6350 | int closedir (); | |
6351 | #endif | |
6352 | ||
6353 | int | |
6354 | main () | |
6355 | { | |
7a197a62 | 6356 | return closedir (opendir (".")) != 0; |
ad6254c5 AK |
6357 | ; |
6358 | return 0; | |
6359 | } | |
6360 | _ACEOF | |
6361 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6362 | if { (ac_try="$ac_link" |
6363 | case "(($ac_try" in | |
6364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6365 | *) ac_try_echo=$ac_try;; | |
6366 | esac | |
5556819a | 6367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6368 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6369 | ac_status=$? |
5556819a | 6370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6371 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6372 | { (case "(($ac_try" in |
6373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6374 | *) ac_try_echo=$ac_try;; | |
6375 | esac | |
5556819a | 6376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6377 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6378 | ac_status=$? |
5556819a | 6379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6380 | (exit $ac_status); }; }; then |
6381 | ac_cv_func_closedir_void=no | |
6382 | else | |
5556819a AK |
6383 | echo "$as_me: program exited with status $ac_status" >&5 |
6384 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6385 | sed 's/^/| /' conftest.$ac_ext >&5 |
6386 | ||
6387 | ( exit $ac_status ) | |
6388 | ac_cv_func_closedir_void=yes | |
6389 | fi | |
7a197a62 | 6390 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6391 | fi |
7a197a62 AK |
6392 | |
6393 | ||
ad6254c5 | 6394 | fi |
5556819a AK |
6395 | { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
6396 | echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; } | |
ad6254c5 AK |
6397 | if test $ac_cv_func_closedir_void = yes; then |
6398 | ||
6399 | cat >>confdefs.h <<\_ACEOF | |
6400 | #define CLOSEDIR_VOID 1 | |
6401 | _ACEOF | |
6402 | ||
6403 | fi | |
6404 | ||
6405 | ||
7a197a62 | 6406 | for ac_header in vfork.h |
ad6254c5 | 6407 | do |
5556819a | 6408 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 6409 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
6410 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6411 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 6412 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 6413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 6414 | fi |
5556819a AK |
6415 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6416 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6417 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
6418 | else |
6419 | # Is the header compilable? | |
5556819a AK |
6420 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6421 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 6422 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6423 | /* confdefs.h. */ |
6424 | _ACEOF | |
6425 | cat confdefs.h >>conftest.$ac_ext | |
6426 | cat >>conftest.$ac_ext <<_ACEOF | |
6427 | /* end confdefs.h. */ | |
6428 | $ac_includes_default | |
6429 | #include <$ac_header> | |
6430 | _ACEOF | |
6431 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6432 | if { (ac_try="$ac_compile" |
6433 | case "(($ac_try" in | |
6434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6435 | *) ac_try_echo=$ac_try;; | |
6436 | esac | |
5556819a | 6437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6438 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6439 | ac_status=$? |
8a2fc586 AK |
6440 | grep -v '^ *+' conftest.er1 >conftest.err |
6441 | rm -f conftest.er1 | |
6442 | cat conftest.err >&5 | |
5556819a | 6443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6444 | (exit $ac_status); } && { |
6445 | test -z "$ac_c_werror_flag" || | |
6446 | test ! -s conftest.err | |
6447 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6448 | ac_header_compiler=yes |
6449 | else | |
5556819a | 6450 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6451 | sed 's/^/| /' conftest.$ac_ext >&5 |
6452 | ||
7a197a62 | 6453 | ac_header_compiler=no |
ad6254c5 | 6454 | fi |
7a197a62 AK |
6455 | |
6456 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
6457 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6458 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
6459 | |
6460 | # Is the header present? | |
5556819a AK |
6461 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6462 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 6463 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6464 | /* confdefs.h. */ |
6465 | _ACEOF | |
6466 | cat confdefs.h >>conftest.$ac_ext | |
6467 | cat >>conftest.$ac_ext <<_ACEOF | |
6468 | /* end confdefs.h. */ | |
6469 | #include <$ac_header> | |
6470 | _ACEOF | |
7a197a62 AK |
6471 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6472 | case "(($ac_try" in | |
6473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6474 | *) ac_try_echo=$ac_try;; | |
6475 | esac | |
5556819a | 6476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6477 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
6478 | ac_status=$? |
6479 | grep -v '^ *+' conftest.er1 >conftest.err | |
6480 | rm -f conftest.er1 | |
6481 | cat conftest.err >&5 | |
5556819a | 6482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6483 | (exit $ac_status); } >/dev/null && { |
6484 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6485 | test ! -s conftest.err | |
6486 | }; then | |
ad6254c5 AK |
6487 | ac_header_preproc=yes |
6488 | else | |
5556819a | 6489 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6490 | sed 's/^/| /' conftest.$ac_ext >&5 |
6491 | ||
6492 | ac_header_preproc=no | |
6493 | fi | |
7a197a62 | 6494 | |
ad6254c5 | 6495 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
6496 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6497 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
6498 | |
6499 | # So? What about this header? | |
8a2fc586 AK |
6500 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6501 | yes:no: ) | |
5556819a AK |
6502 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6503 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6504 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6505 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 6506 | ac_header_preproc=yes |
ad6254c5 | 6507 | ;; |
8a2fc586 | 6508 | no:yes:* ) |
5556819a AK |
6509 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6510 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6511 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6512 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6513 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6514 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6515 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6516 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6517 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6518 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6519 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6520 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 6521 | |
ad6254c5 AK |
6522 | ;; |
6523 | esac | |
5556819a AK |
6524 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6525 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 6526 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 6527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 6528 | else |
8a2fc586 | 6529 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 6530 | fi |
5556819a AK |
6531 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6532 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6533 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 | 6534 | |
795ca3e5 | 6535 | fi |
5556819a | 6536 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 6537 | cat >>confdefs.h <<_ACEOF |
5556819a | 6538 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
6539 | _ACEOF |
6540 | ||
6541 | fi | |
6542 | ||
6543 | done | |
795ca3e5 | 6544 | |
ad6254c5 AK |
6545 | |
6546 | ||
6547 | for ac_func in fork vfork | |
6548 | do | |
5556819a AK |
6549 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6550 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6551 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 6552 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 6553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 6554 | else |
ad6254c5 | 6555 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6556 | /* confdefs.h. */ |
6557 | _ACEOF | |
6558 | cat confdefs.h >>conftest.$ac_ext | |
6559 | cat >>conftest.$ac_ext <<_ACEOF | |
6560 | /* end confdefs.h. */ | |
8a2fc586 AK |
6561 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6562 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6563 | #define $ac_func innocuous_$ac_func | |
6564 | ||
ad6254c5 AK |
6565 | /* System header to define __stub macros and hopefully few prototypes, |
6566 | which can conflict with char $ac_func (); below. | |
6567 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6568 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6569 | |
ad6254c5 AK |
6570 | #ifdef __STDC__ |
6571 | # include <limits.h> | |
6572 | #else | |
6573 | # include <assert.h> | |
795ca3e5 | 6574 | #endif |
8a2fc586 AK |
6575 | |
6576 | #undef $ac_func | |
6577 | ||
7a197a62 AK |
6578 | /* Override any GCC internal prototype to avoid an error. |
6579 | Use char because int might match the return type of a GCC | |
6580 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 6581 | #ifdef __cplusplus |
ad6254c5 | 6582 | extern "C" |
ad6254c5 | 6583 | #endif |
ad6254c5 AK |
6584 | char $ac_func (); |
6585 | /* The GNU C library defines this for functions which it implements | |
6586 | to always fail with ENOSYS. Some functions are actually named | |
6587 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6588 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6589 | choke me |
795ca3e5 AK |
6590 | #endif |
6591 | ||
ad6254c5 AK |
6592 | int |
6593 | main () | |
6594 | { | |
7a197a62 | 6595 | return $ac_func (); |
ad6254c5 AK |
6596 | ; |
6597 | return 0; | |
6598 | } | |
6599 | _ACEOF | |
6600 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6601 | if { (ac_try="$ac_link" |
6602 | case "(($ac_try" in | |
6603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6604 | *) ac_try_echo=$ac_try;; | |
6605 | esac | |
5556819a | 6606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6607 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6608 | ac_status=$? |
8a2fc586 AK |
6609 | grep -v '^ *+' conftest.er1 >conftest.err |
6610 | rm -f conftest.er1 | |
6611 | cat conftest.err >&5 | |
5556819a | 6612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6613 | (exit $ac_status); } && { |
6614 | test -z "$ac_c_werror_flag" || | |
6615 | test ! -s conftest.err | |
5556819a AK |
6616 | } && test -s conftest$ac_exeext && |
6617 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 | 6618 | eval "$as_ac_var=yes" |
795ca3e5 | 6619 | else |
5556819a | 6620 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6621 | sed 's/^/| /' conftest.$ac_ext >&5 |
6622 | ||
7a197a62 | 6623 | eval "$as_ac_var=no" |
795ca3e5 | 6624 | fi |
7a197a62 | 6625 | |
25fbec5b | 6626 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6627 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6628 | fi |
5556819a AK |
6629 | ac_res=`eval echo '${'$as_ac_var'}'` |
6630 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6631 | echo "${ECHO_T}$ac_res" >&6; } | |
6632 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 6633 | cat >>confdefs.h <<_ACEOF |
5556819a | 6634 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6635 | _ACEOF |
6636 | ||
6637 | fi | |
6638 | done | |
6639 | ||
6640 | if test "x$ac_cv_func_fork" = xyes; then | |
5556819a AK |
6641 | { echo "$as_me:$LINENO: checking for working fork" >&5 |
6642 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6; } | |
ad6254c5 | 6643 | if test "${ac_cv_func_fork_works+set}" = set; then |
5556819a | 6644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6645 | else |
6646 | if test "$cross_compiling" = yes; then | |
6647 | ac_cv_func_fork_works=cross | |
6648 | else | |
6649 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
6650 | /* confdefs.h. */ |
6651 | _ACEOF | |
6652 | cat confdefs.h >>conftest.$ac_ext | |
6653 | cat >>conftest.$ac_ext <<_ACEOF | |
6654 | /* end confdefs.h. */ | |
6655 | $ac_includes_default | |
6656 | int | |
6657 | main () | |
6658 | { | |
6659 | ||
6660 | /* By Ruediger Kuhlmann. */ | |
6661 | return fork () < 0; | |
6662 | ||
6663 | ; | |
6664 | return 0; | |
6665 | } | |
ad6254c5 AK |
6666 | _ACEOF |
6667 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6668 | if { (ac_try="$ac_link" |
6669 | case "(($ac_try" in | |
6670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6671 | *) ac_try_echo=$ac_try;; | |
6672 | esac | |
5556819a | 6673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6674 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6675 | ac_status=$? |
5556819a | 6676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6677 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6678 | { (case "(($ac_try" in |
6679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6680 | *) ac_try_echo=$ac_try;; | |
6681 | esac | |
5556819a | 6682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6683 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6684 | ac_status=$? |
5556819a | 6685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6686 | (exit $ac_status); }; }; then |
6687 | ac_cv_func_fork_works=yes | |
6688 | else | |
5556819a AK |
6689 | echo "$as_me: program exited with status $ac_status" >&5 |
6690 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6691 | sed 's/^/| /' conftest.$ac_ext >&5 |
6692 | ||
6693 | ( exit $ac_status ) | |
6694 | ac_cv_func_fork_works=no | |
6695 | fi | |
7a197a62 | 6696 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6697 | fi |
7a197a62 AK |
6698 | |
6699 | ||
ad6254c5 | 6700 | fi |
5556819a AK |
6701 | { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
6702 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
6703 | |
6704 | else | |
6705 | ac_cv_func_fork_works=$ac_cv_func_fork | |
6706 | fi | |
6707 | if test "x$ac_cv_func_fork_works" = xcross; then | |
6708 | case $host in | |
6709 | *-*-amigaos* | *-*-msdosdjgpp*) | |
6710 | # Override, as these systems have only a dummy fork() stub | |
6711 | ac_cv_func_fork_works=no | |
6712 | ;; | |
6713 | *) | |
6714 | ac_cv_func_fork_works=yes | |
6715 | ;; | |
6716 | esac | |
5556819a AK |
6717 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
6718 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
6719 | fi |
6720 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
6721 | if test "x$ac_cv_func_vfork" = xyes; then | |
5556819a AK |
6722 | { echo "$as_me:$LINENO: checking for working vfork" >&5 |
6723 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; } | |
ad6254c5 | 6724 | if test "${ac_cv_func_vfork_works+set}" = set; then |
5556819a | 6725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6726 | else |
6727 | if test "$cross_compiling" = yes; then | |
6728 | ac_cv_func_vfork_works=cross | |
6729 | else | |
6730 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6731 | /* confdefs.h. */ |
6732 | _ACEOF | |
6733 | cat confdefs.h >>conftest.$ac_ext | |
6734 | cat >>conftest.$ac_ext <<_ACEOF | |
6735 | /* end confdefs.h. */ | |
6736 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 6737 | $ac_includes_default |
ad6254c5 | 6738 | #include <sys/wait.h> |
25fbec5b | 6739 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
6740 | # include <vfork.h> |
6741 | #endif | |
6742 | /* On some sparc systems, changes by the child to local and incoming | |
6743 | argument registers are propagated back to the parent. The compiler | |
6744 | is told about this with #include <vfork.h>, but some compilers | |
6745 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
6746 | static variable whose address is put into a register that is | |
6747 | clobbered by the vfork. */ | |
6748 | static void | |
6749 | #ifdef __cplusplus | |
6750 | sparc_address_test (int arg) | |
6751 | # else | |
6752 | sparc_address_test (arg) int arg; | |
6753 | #endif | |
6754 | { | |
6755 | static pid_t child; | |
6756 | if (!child) { | |
6757 | child = vfork (); | |
6758 | if (child < 0) { | |
6759 | perror ("vfork"); | |
6760 | _exit(2); | |
6761 | } | |
6762 | if (!child) { | |
6763 | arg = getpid(); | |
6764 | write(-1, "", 0); | |
6765 | _exit (arg); | |
6766 | } | |
6767 | } | |
6768 | } | |
6769 | ||
6770 | int | |
6771 | main () | |
6772 | { | |
6773 | pid_t parent = getpid (); | |
6774 | pid_t child; | |
6775 | ||
6776 | sparc_address_test (0); | |
6777 | ||
6778 | child = vfork (); | |
6779 | ||
6780 | if (child == 0) { | |
6781 | /* Here is another test for sparc vfork register problems. This | |
6782 | test uses lots of local variables, at least as many local | |
6783 | variables as main has allocated so far including compiler | |
6784 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
6785 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
6786 | reuse the register of parent for one of the local variables, | |
6787 | since it will think that parent can't possibly be used any more | |
6788 | in this routine. Assigning to the local variable will thus | |
6789 | munge parent in the parent process. */ | |
6790 | pid_t | |
6791 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
6792 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
6793 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
6794 | use the same hardware register for all 8 local variables. */ | |
6795 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
6796 | || p != p5 || p != p6 || p != p7) | |
6797 | _exit(1); | |
6798 | ||
6799 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
6800 | from child file descriptors. If the child closes a descriptor | |
6801 | before it execs or exits, this munges the parent's descriptor | |
6802 | as well. Test for this by closing stdout in the child. */ | |
6803 | _exit(close(fileno(stdout)) != 0); | |
6804 | } else { | |
6805 | int status; | |
6806 | struct stat st; | |
6807 | ||
6808 | while (wait(&status) != child) | |
6809 | ; | |
7a197a62 | 6810 | return ( |
ad6254c5 AK |
6811 | /* Was there some problem with vforking? */ |
6812 | child < 0 | |
6813 | ||
6814 | /* Did the child fail? (This shouldn't happen.) */ | |
6815 | || status | |
6816 | ||
6817 | /* Did the vfork/compiler bug occur? */ | |
6818 | || parent != getpid() | |
6819 | ||
6820 | /* Did the file descriptor bug occur? */ | |
6821 | || fstat(fileno(stdout), &st) != 0 | |
6822 | ); | |
6823 | } | |
6824 | } | |
6825 | _ACEOF | |
6826 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6827 | if { (ac_try="$ac_link" |
6828 | case "(($ac_try" in | |
6829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6830 | *) ac_try_echo=$ac_try;; | |
6831 | esac | |
5556819a | 6832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6833 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6834 | ac_status=$? |
5556819a | 6835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6836 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6837 | { (case "(($ac_try" in |
6838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6839 | *) ac_try_echo=$ac_try;; | |
6840 | esac | |
5556819a | 6841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6842 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6843 | ac_status=$? |
5556819a | 6844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6845 | (exit $ac_status); }; }; then |
6846 | ac_cv_func_vfork_works=yes | |
6847 | else | |
5556819a AK |
6848 | echo "$as_me: program exited with status $ac_status" >&5 |
6849 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6850 | sed 's/^/| /' conftest.$ac_ext >&5 |
6851 | ||
6852 | ( exit $ac_status ) | |
6853 | ac_cv_func_vfork_works=no | |
6854 | fi | |
7a197a62 | 6855 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6856 | fi |
7a197a62 AK |
6857 | |
6858 | ||
ad6254c5 | 6859 | fi |
5556819a AK |
6860 | { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
6861 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
6862 | |
6863 | fi; | |
6864 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 6865 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
5556819a AK |
6866 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
6867 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
6868 | fi |
6869 | ||
6870 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
6871 | ||
6872 | cat >>confdefs.h <<\_ACEOF | |
6873 | #define HAVE_WORKING_VFORK 1 | |
6874 | _ACEOF | |
6875 | ||
6876 | else | |
6877 | ||
6878 | cat >>confdefs.h <<\_ACEOF | |
6879 | #define vfork fork | |
6880 | _ACEOF | |
6881 | ||
6882 | fi | |
6883 | if test "x$ac_cv_func_fork_works" = xyes; then | |
6884 | ||
6885 | cat >>confdefs.h <<\_ACEOF | |
6886 | #define HAVE_WORKING_FORK 1 | |
6887 | _ACEOF | |
6888 | ||
6889 | fi | |
6890 | ||
5556819a AK |
6891 | { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
6892 | echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; } | |
ad6254c5 | 6893 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
5556819a | 6894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6895 | else |
6896 | rm -f conftest.sym conftest.file | |
6897 | echo >conftest.file | |
6898 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
6899 | if test "$cross_compiling" = yes; then | |
6900 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6901 | else | |
6902 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6903 | /* confdefs.h. */ |
6904 | _ACEOF | |
6905 | cat confdefs.h >>conftest.$ac_ext | |
6906 | cat >>conftest.$ac_ext <<_ACEOF | |
6907 | /* end confdefs.h. */ | |
6908 | $ac_includes_default | |
6909 | int | |
6910 | main () | |
6911 | { | |
6912 | struct stat sbuf; | |
6913 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
6914 | That is better in the sense that it means we will not |
6915 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 6916 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
6917 | ; |
6918 | return 0; | |
6919 | } | |
6920 | _ACEOF | |
6921 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6922 | if { (ac_try="$ac_link" |
6923 | case "(($ac_try" in | |
6924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6925 | *) ac_try_echo=$ac_try;; | |
6926 | esac | |
5556819a | 6927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6928 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6929 | ac_status=$? |
5556819a | 6930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6931 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6932 | { (case "(($ac_try" in |
6933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6934 | *) ac_try_echo=$ac_try;; | |
6935 | esac | |
5556819a | 6936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6937 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6938 | ac_status=$? |
5556819a | 6939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6940 | (exit $ac_status); }; }; then |
6941 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
6942 | else | |
5556819a AK |
6943 | echo "$as_me: program exited with status $ac_status" >&5 |
6944 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6945 | sed 's/^/| /' conftest.$ac_ext >&5 |
6946 | ||
6947 | ( exit $ac_status ) | |
6948 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6949 | fi | |
7a197a62 | 6950 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6951 | fi |
7a197a62 AK |
6952 | |
6953 | ||
ad6254c5 AK |
6954 | else |
6955 | # If the `ln -s' command failed, then we probably don't even | |
6956 | # have an lstat function. | |
6957 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6958 | fi | |
6959 | rm -f conftest.sym conftest.file | |
6960 | ||
6961 | fi | |
5556819a AK |
6962 | { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
6963 | echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
6964 | |
6965 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
6966 | ||
6967 | cat >>confdefs.h <<_ACEOF | |
6968 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
6969 | _ACEOF | |
6970 | ||
6971 | ||
6972 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 6973 | case " $LIBOBJS " in |
8a2fc586 | 6974 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
6975 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
6976 | ;; | |
8a2fc586 AK |
6977 | esac |
6978 | ||
ad6254c5 AK |
6979 | fi |
6980 | ||
5556819a AK |
6981 | { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
6982 | echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; } | |
ad6254c5 | 6983 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
5556819a | 6984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6985 | else |
6986 | if test "$cross_compiling" = yes; then | |
6987 | ac_cv_func_lstat_empty_string_bug=yes | |
6988 | else | |
6989 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6990 | /* confdefs.h. */ |
6991 | _ACEOF | |
6992 | cat confdefs.h >>conftest.$ac_ext | |
6993 | cat >>conftest.$ac_ext <<_ACEOF | |
6994 | /* end confdefs.h. */ | |
6995 | $ac_includes_default | |
6996 | int | |
6997 | main () | |
6998 | { | |
6999 | struct stat sbuf; | |
7a197a62 | 7000 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
7001 | ; |
7002 | return 0; | |
7003 | } | |
7004 | _ACEOF | |
7005 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7006 | if { (ac_try="$ac_link" |
7007 | case "(($ac_try" in | |
7008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7009 | *) ac_try_echo=$ac_try;; | |
7010 | esac | |
5556819a | 7011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7012 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7013 | ac_status=$? |
5556819a | 7014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7015 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7016 | { (case "(($ac_try" in |
7017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7018 | *) ac_try_echo=$ac_try;; | |
7019 | esac | |
5556819a | 7020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7021 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7022 | ac_status=$? |
5556819a | 7023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7024 | (exit $ac_status); }; }; then |
7a197a62 | 7025 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 7026 | else |
5556819a AK |
7027 | echo "$as_me: program exited with status $ac_status" >&5 |
7028 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7029 | sed 's/^/| /' conftest.$ac_ext >&5 |
7030 | ||
7031 | ( exit $ac_status ) | |
7a197a62 | 7032 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 7033 | fi |
7a197a62 | 7034 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7035 | fi |
7a197a62 AK |
7036 | |
7037 | ||
ad6254c5 | 7038 | fi |
5556819a AK |
7039 | { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
7040 | echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 7041 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 7042 | case " $LIBOBJS " in |
8a2fc586 | 7043 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7044 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7045 | ;; | |
8a2fc586 AK |
7046 | esac |
7047 | ||
ad6254c5 AK |
7048 | |
7049 | cat >>confdefs.h <<_ACEOF | |
7050 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
7051 | _ACEOF | |
7052 | ||
7053 | fi | |
7054 | ||
7055 | ||
7056 | for ac_header in stdlib.h | |
7057 | do | |
5556819a | 7058 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7059 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
7060 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7061 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7062 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 7063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7064 | fi |
5556819a AK |
7065 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7066 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7067 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7068 | else |
7069 | # Is the header compilable? | |
5556819a AK |
7070 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7071 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 7072 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7073 | /* confdefs.h. */ |
7074 | _ACEOF | |
7075 | cat confdefs.h >>conftest.$ac_ext | |
7076 | cat >>conftest.$ac_ext <<_ACEOF | |
7077 | /* end confdefs.h. */ | |
7078 | $ac_includes_default | |
7079 | #include <$ac_header> | |
7080 | _ACEOF | |
7081 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7082 | if { (ac_try="$ac_compile" |
7083 | case "(($ac_try" in | |
7084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7085 | *) ac_try_echo=$ac_try;; | |
7086 | esac | |
5556819a | 7087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7088 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7089 | ac_status=$? |
8a2fc586 AK |
7090 | grep -v '^ *+' conftest.er1 >conftest.err |
7091 | rm -f conftest.er1 | |
7092 | cat conftest.err >&5 | |
5556819a | 7093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7094 | (exit $ac_status); } && { |
7095 | test -z "$ac_c_werror_flag" || | |
7096 | test ! -s conftest.err | |
7097 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7098 | ac_header_compiler=yes |
7099 | else | |
5556819a | 7100 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7101 | sed 's/^/| /' conftest.$ac_ext >&5 |
7102 | ||
7a197a62 | 7103 | ac_header_compiler=no |
ad6254c5 | 7104 | fi |
7a197a62 AK |
7105 | |
7106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
7107 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7108 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7109 | |
7110 | # Is the header present? | |
5556819a AK |
7111 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7112 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 7113 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7114 | /* confdefs.h. */ |
7115 | _ACEOF | |
7116 | cat confdefs.h >>conftest.$ac_ext | |
7117 | cat >>conftest.$ac_ext <<_ACEOF | |
7118 | /* end confdefs.h. */ | |
7119 | #include <$ac_header> | |
7120 | _ACEOF | |
7a197a62 AK |
7121 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7122 | case "(($ac_try" in | |
7123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7124 | *) ac_try_echo=$ac_try;; | |
7125 | esac | |
5556819a | 7126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7127 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7128 | ac_status=$? |
7129 | grep -v '^ *+' conftest.er1 >conftest.err | |
7130 | rm -f conftest.er1 | |
7131 | cat conftest.err >&5 | |
5556819a | 7132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7133 | (exit $ac_status); } >/dev/null && { |
7134 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7135 | test ! -s conftest.err | |
7136 | }; then | |
ad6254c5 AK |
7137 | ac_header_preproc=yes |
7138 | else | |
5556819a | 7139 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7140 | sed 's/^/| /' conftest.$ac_ext >&5 |
7141 | ||
7142 | ac_header_preproc=no | |
7143 | fi | |
7a197a62 | 7144 | |
ad6254c5 | 7145 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
7146 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7147 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7148 | |
7149 | # So? What about this header? | |
8a2fc586 AK |
7150 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7151 | yes:no: ) | |
5556819a AK |
7152 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7153 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7154 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7155 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7156 | ac_header_preproc=yes |
ad6254c5 | 7157 | ;; |
8a2fc586 | 7158 | no:yes:* ) |
5556819a AK |
7159 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7160 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7161 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7162 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7163 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7164 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7165 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7166 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7167 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7168 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7169 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7170 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7171 | |
ad6254c5 AK |
7172 | ;; |
7173 | esac | |
5556819a AK |
7174 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7175 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7176 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 7177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7178 | else |
8a2fc586 | 7179 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7180 | fi |
5556819a AK |
7181 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7182 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7183 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7184 | |
7185 | fi | |
5556819a | 7186 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 7187 | cat >>confdefs.h <<_ACEOF |
5556819a | 7188 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7189 | _ACEOF |
7190 | ||
7191 | fi | |
7192 | ||
7193 | done | |
7194 | ||
5556819a AK |
7195 | { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
7196 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } | |
ad6254c5 | 7197 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
5556819a | 7198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7199 | else |
7200 | if test "$cross_compiling" = yes; then | |
7201 | ac_cv_func_malloc_0_nonnull=no | |
7202 | else | |
7203 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7204 | /* confdefs.h. */ |
7205 | _ACEOF | |
7206 | cat confdefs.h >>conftest.$ac_ext | |
7207 | cat >>conftest.$ac_ext <<_ACEOF | |
7208 | /* end confdefs.h. */ | |
25fbec5b | 7209 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
7210 | # include <stdlib.h> |
7211 | #else | |
7212 | char *malloc (); | |
7213 | #endif | |
7214 | ||
7215 | int | |
7216 | main () | |
7217 | { | |
7a197a62 | 7218 | return ! malloc (0); |
ad6254c5 AK |
7219 | ; |
7220 | return 0; | |
7221 | } | |
7222 | _ACEOF | |
7223 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7224 | if { (ac_try="$ac_link" |
7225 | case "(($ac_try" in | |
7226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7227 | *) ac_try_echo=$ac_try;; | |
7228 | esac | |
5556819a | 7229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7230 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7231 | ac_status=$? |
5556819a | 7232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7233 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7234 | { (case "(($ac_try" in |
7235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7236 | *) ac_try_echo=$ac_try;; | |
7237 | esac | |
5556819a | 7238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7239 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7240 | ac_status=$? |
5556819a | 7241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7242 | (exit $ac_status); }; }; then |
7243 | ac_cv_func_malloc_0_nonnull=yes | |
7244 | else | |
5556819a AK |
7245 | echo "$as_me: program exited with status $ac_status" >&5 |
7246 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7247 | sed 's/^/| /' conftest.$ac_ext >&5 |
7248 | ||
7249 | ( exit $ac_status ) | |
7250 | ac_cv_func_malloc_0_nonnull=no | |
7251 | fi | |
7a197a62 | 7252 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7253 | fi |
7a197a62 AK |
7254 | |
7255 | ||
ad6254c5 | 7256 | fi |
5556819a AK |
7257 | { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
7258 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
7259 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
7260 | ||
7261 | cat >>confdefs.h <<\_ACEOF | |
7262 | #define HAVE_MALLOC 1 | |
7263 | _ACEOF | |
7264 | ||
7265 | else | |
7266 | cat >>confdefs.h <<\_ACEOF | |
7267 | #define HAVE_MALLOC 0 | |
7268 | _ACEOF | |
7269 | ||
7a197a62 | 7270 | case " $LIBOBJS " in |
8a2fc586 | 7271 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
7272 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
7273 | ;; | |
8a2fc586 AK |
7274 | esac |
7275 | ||
ad6254c5 AK |
7276 | |
7277 | cat >>confdefs.h <<\_ACEOF | |
7278 | #define malloc rpl_malloc | |
7279 | _ACEOF | |
7280 | ||
7281 | fi | |
7282 | ||
7283 | ||
7284 | ||
5556819a AK |
7285 | { echo "$as_me:$LINENO: checking for working memcmp" >&5 |
7286 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; } | |
ad6254c5 | 7287 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
5556819a | 7288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7289 | else |
7290 | if test "$cross_compiling" = yes; then | |
7291 | ac_cv_func_memcmp_working=no | |
7292 | else | |
7293 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7294 | /* confdefs.h. */ |
7295 | _ACEOF | |
7296 | cat confdefs.h >>conftest.$ac_ext | |
7297 | cat >>conftest.$ac_ext <<_ACEOF | |
7298 | /* end confdefs.h. */ | |
8a2fc586 | 7299 | $ac_includes_default |
ad6254c5 AK |
7300 | int |
7301 | main () | |
7302 | { | |
7303 | ||
7304 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 7305 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 7306 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 7307 | return 1; |
ad6254c5 AK |
7308 | |
7309 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
7310 | or more and with at least one buffer not starting on a 4-byte boundary. | |
7311 | William Lewis provided this test program. */ | |
7312 | { | |
7313 | char foo[21]; | |
7314 | char bar[21]; | |
7315 | int i; | |
7316 | for (i = 0; i < 4; i++) | |
7317 | { | |
8a2fc586 AK |
7318 | char *a = foo + i; |
7319 | char *b = bar + i; | |
7320 | strcpy (a, "--------01111111"); | |
7321 | strcpy (b, "--------10000000"); | |
7322 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 7323 | return 1; |
ad6254c5 | 7324 | } |
7a197a62 | 7325 | return 0; |
ad6254c5 AK |
7326 | } |
7327 | ||
7328 | ; | |
7329 | return 0; | |
7330 | } | |
7331 | _ACEOF | |
7332 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7333 | if { (ac_try="$ac_link" |
7334 | case "(($ac_try" in | |
7335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7336 | *) ac_try_echo=$ac_try;; | |
7337 | esac | |
5556819a | 7338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7339 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7340 | ac_status=$? |
5556819a | 7341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7342 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7343 | { (case "(($ac_try" in |
7344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7345 | *) ac_try_echo=$ac_try;; | |
7346 | esac | |
5556819a | 7347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7348 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7349 | ac_status=$? |
5556819a | 7350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7351 | (exit $ac_status); }; }; then |
7352 | ac_cv_func_memcmp_working=yes | |
7353 | else | |
5556819a AK |
7354 | echo "$as_me: program exited with status $ac_status" >&5 |
7355 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7356 | sed 's/^/| /' conftest.$ac_ext >&5 |
7357 | ||
7358 | ( exit $ac_status ) | |
7359 | ac_cv_func_memcmp_working=no | |
7360 | fi | |
7a197a62 | 7361 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7362 | fi |
7a197a62 AK |
7363 | |
7364 | ||
ad6254c5 | 7365 | fi |
5556819a AK |
7366 | { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
7367 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 7368 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 7369 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
7370 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
7371 | ;; | |
8a2fc586 AK |
7372 | esac |
7373 | ||
ad6254c5 AK |
7374 | |
7375 | ||
7376 | ||
7377 | for ac_header in stdlib.h unistd.h | |
7378 | do | |
5556819a | 7379 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7380 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
7381 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7382 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7383 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 7384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7385 | fi |
5556819a AK |
7386 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7387 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7388 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7389 | else |
7390 | # Is the header compilable? | |
5556819a AK |
7391 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7392 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 7393 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7394 | /* confdefs.h. */ |
7395 | _ACEOF | |
7396 | cat confdefs.h >>conftest.$ac_ext | |
7397 | cat >>conftest.$ac_ext <<_ACEOF | |
7398 | /* end confdefs.h. */ | |
7399 | $ac_includes_default | |
7400 | #include <$ac_header> | |
7401 | _ACEOF | |
7402 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7403 | if { (ac_try="$ac_compile" |
7404 | case "(($ac_try" in | |
7405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7406 | *) ac_try_echo=$ac_try;; | |
7407 | esac | |
5556819a | 7408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7409 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7410 | ac_status=$? |
8a2fc586 AK |
7411 | grep -v '^ *+' conftest.er1 >conftest.err |
7412 | rm -f conftest.er1 | |
7413 | cat conftest.err >&5 | |
5556819a | 7414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7415 | (exit $ac_status); } && { |
7416 | test -z "$ac_c_werror_flag" || | |
7417 | test ! -s conftest.err | |
7418 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7419 | ac_header_compiler=yes |
7420 | else | |
5556819a | 7421 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7422 | sed 's/^/| /' conftest.$ac_ext >&5 |
7423 | ||
7a197a62 | 7424 | ac_header_compiler=no |
ad6254c5 | 7425 | fi |
7a197a62 AK |
7426 | |
7427 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
7428 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7429 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7430 | |
7431 | # Is the header present? | |
5556819a AK |
7432 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7433 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 7434 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7435 | /* confdefs.h. */ |
7436 | _ACEOF | |
7437 | cat confdefs.h >>conftest.$ac_ext | |
7438 | cat >>conftest.$ac_ext <<_ACEOF | |
7439 | /* end confdefs.h. */ | |
7440 | #include <$ac_header> | |
7441 | _ACEOF | |
7a197a62 AK |
7442 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7443 | case "(($ac_try" in | |
7444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7445 | *) ac_try_echo=$ac_try;; | |
7446 | esac | |
5556819a | 7447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7448 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7449 | ac_status=$? |
7450 | grep -v '^ *+' conftest.er1 >conftest.err | |
7451 | rm -f conftest.er1 | |
7452 | cat conftest.err >&5 | |
5556819a | 7453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7454 | (exit $ac_status); } >/dev/null && { |
7455 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7456 | test ! -s conftest.err | |
7457 | }; then | |
ad6254c5 AK |
7458 | ac_header_preproc=yes |
7459 | else | |
5556819a | 7460 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7461 | sed 's/^/| /' conftest.$ac_ext >&5 |
7462 | ||
7463 | ac_header_preproc=no | |
7464 | fi | |
7a197a62 | 7465 | |
ad6254c5 | 7466 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
7467 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7468 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7469 | |
7470 | # So? What about this header? | |
8a2fc586 AK |
7471 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7472 | yes:no: ) | |
5556819a AK |
7473 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7474 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7475 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7476 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7477 | ac_header_preproc=yes |
ad6254c5 | 7478 | ;; |
8a2fc586 | 7479 | no:yes:* ) |
5556819a AK |
7480 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7481 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7482 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7483 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7484 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7485 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7486 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7487 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7488 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7489 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7490 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7491 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7492 | |
ad6254c5 AK |
7493 | ;; |
7494 | esac | |
5556819a AK |
7495 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7496 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7497 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 7498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7499 | else |
8a2fc586 | 7500 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7501 | fi |
5556819a AK |
7502 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7503 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7504 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7505 | |
7506 | fi | |
5556819a | 7507 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 7508 | cat >>confdefs.h <<_ACEOF |
5556819a | 7509 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7510 | _ACEOF |
7511 | ||
7512 | fi | |
7513 | ||
7514 | done | |
7515 | ||
7516 | ||
7517 | for ac_func in getpagesize | |
7518 | do | |
5556819a AK |
7519 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7520 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7521 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 7522 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 7523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7524 | else |
7525 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7526 | /* confdefs.h. */ |
7527 | _ACEOF | |
7528 | cat confdefs.h >>conftest.$ac_ext | |
7529 | cat >>conftest.$ac_ext <<_ACEOF | |
7530 | /* end confdefs.h. */ | |
8a2fc586 AK |
7531 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7532 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7533 | #define $ac_func innocuous_$ac_func | |
7534 | ||
ad6254c5 AK |
7535 | /* System header to define __stub macros and hopefully few prototypes, |
7536 | which can conflict with char $ac_func (); below. | |
7537 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7538 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7539 | |
ad6254c5 AK |
7540 | #ifdef __STDC__ |
7541 | # include <limits.h> | |
7542 | #else | |
7543 | # include <assert.h> | |
7544 | #endif | |
8a2fc586 AK |
7545 | |
7546 | #undef $ac_func | |
7547 | ||
7a197a62 AK |
7548 | /* Override any GCC internal prototype to avoid an error. |
7549 | Use char because int might match the return type of a GCC | |
7550 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
7551 | #ifdef __cplusplus |
7552 | extern "C" | |
ad6254c5 | 7553 | #endif |
ad6254c5 AK |
7554 | char $ac_func (); |
7555 | /* The GNU C library defines this for functions which it implements | |
7556 | to always fail with ENOSYS. Some functions are actually named | |
7557 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7558 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 7559 | choke me |
ad6254c5 AK |
7560 | #endif |
7561 | ||
7562 | int | |
7563 | main () | |
7564 | { | |
7a197a62 | 7565 | return $ac_func (); |
ad6254c5 AK |
7566 | ; |
7567 | return 0; | |
7568 | } | |
7569 | _ACEOF | |
7570 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7571 | if { (ac_try="$ac_link" |
7572 | case "(($ac_try" in | |
7573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7574 | *) ac_try_echo=$ac_try;; | |
7575 | esac | |
5556819a | 7576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7577 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7578 | ac_status=$? |
8a2fc586 AK |
7579 | grep -v '^ *+' conftest.er1 >conftest.err |
7580 | rm -f conftest.er1 | |
7581 | cat conftest.err >&5 | |
5556819a | 7582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7583 | (exit $ac_status); } && { |
7584 | test -z "$ac_c_werror_flag" || | |
7585 | test ! -s conftest.err | |
5556819a AK |
7586 | } && test -s conftest$ac_exeext && |
7587 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
7588 | eval "$as_ac_var=yes" |
7589 | else | |
5556819a | 7590 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7591 | sed 's/^/| /' conftest.$ac_ext >&5 |
7592 | ||
7a197a62 | 7593 | eval "$as_ac_var=no" |
ad6254c5 | 7594 | fi |
7a197a62 | 7595 | |
25fbec5b | 7596 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 7597 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7598 | fi |
5556819a AK |
7599 | ac_res=`eval echo '${'$as_ac_var'}'` |
7600 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7601 | echo "${ECHO_T}$ac_res" >&6; } | |
7602 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 7603 | cat >>confdefs.h <<_ACEOF |
5556819a | 7604 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
7605 | _ACEOF |
7606 | ||
7607 | fi | |
7608 | done | |
7609 | ||
5556819a AK |
7610 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
7611 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } | |
ad6254c5 | 7612 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
5556819a | 7613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7614 | else |
7615 | if test "$cross_compiling" = yes; then | |
7616 | ac_cv_func_mmap_fixed_mapped=no | |
7617 | else | |
7618 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7619 | /* confdefs.h. */ |
7620 | _ACEOF | |
7621 | cat confdefs.h >>conftest.$ac_ext | |
7622 | cat >>conftest.$ac_ext <<_ACEOF | |
7623 | /* end confdefs.h. */ | |
7624 | $ac_includes_default | |
7625 | /* malloc might have been renamed as rpl_malloc. */ | |
7626 | #undef malloc | |
7627 | ||
7628 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
7629 | Here is a matrix of mmap possibilities: | |
7630 | mmap private not fixed | |
7631 | mmap private fixed at somewhere currently unmapped | |
7632 | mmap private fixed at somewhere already mapped | |
7633 | mmap shared not fixed | |
7634 | mmap shared fixed at somewhere currently unmapped | |
7635 | mmap shared fixed at somewhere already mapped | |
7636 | For private mappings, we should verify that changes cannot be read() | |
7637 | back from the file, nor mmap's back from the file at a different | |
7638 | address. (There have been systems where private was not correctly | |
7639 | implemented like the infamous i386 svr4.0, and systems where the | |
7640 | VM page cache was not coherent with the file system buffer cache | |
7641 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
7642 | For shared mappings, we should conversely verify that changes get | |
7643 | propagated back to all the places they're supposed to be. | |
7644 | ||
7645 | Grep wants private fixed already mapped. | |
7646 | The main things grep needs to know about mmap are: | |
7647 | * does it exist and is it safe to write into the mmap'd area | |
7648 | * how to use it (BSD variants) */ | |
7649 | ||
7650 | #include <fcntl.h> | |
7651 | #include <sys/mman.h> | |
7652 | ||
25fbec5b | 7653 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
7654 | char *malloc (); |
7655 | #endif | |
7656 | ||
7657 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 7658 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 7659 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 7660 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
7661 | # define HAVE_SYS_PARAM_H 1 |
7662 | # endif | |
7663 | ||
7664 | # ifdef _SC_PAGESIZE | |
7665 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
7666 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 7667 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
7668 | # include <sys/param.h> |
7669 | # ifdef EXEC_PAGESIZE | |
7670 | # define getpagesize() EXEC_PAGESIZE | |
7671 | # else /* no EXEC_PAGESIZE */ | |
7672 | # ifdef NBPG | |
7673 | # define getpagesize() NBPG * CLSIZE | |
7674 | # ifndef CLSIZE | |
7675 | # define CLSIZE 1 | |
7676 | # endif /* no CLSIZE */ | |
7677 | # else /* no NBPG */ | |
7678 | # ifdef NBPC | |
7679 | # define getpagesize() NBPC | |
7680 | # else /* no NBPC */ | |
7681 | # ifdef PAGESIZE | |
7682 | # define getpagesize() PAGESIZE | |
7683 | # endif /* PAGESIZE */ | |
7684 | # endif /* no NBPC */ | |
7685 | # endif /* no NBPG */ | |
7686 | # endif /* no EXEC_PAGESIZE */ | |
7687 | # else /* no HAVE_SYS_PARAM_H */ | |
7688 | # define getpagesize() 8192 /* punt totally */ | |
7689 | # endif /* no HAVE_SYS_PARAM_H */ | |
7690 | # endif /* no _SC_PAGESIZE */ | |
7691 | ||
7692 | #endif /* no HAVE_GETPAGESIZE */ | |
7693 | ||
7694 | int | |
7695 | main () | |
7696 | { | |
7697 | char *data, *data2, *data3; | |
7698 | int i, pagesize; | |
7699 | int fd; | |
7700 | ||
7701 | pagesize = getpagesize (); | |
7702 | ||
7703 | /* First, make a file with some known garbage in it. */ | |
7704 | data = (char *) malloc (pagesize); | |
7705 | if (!data) | |
7a197a62 | 7706 | return 1; |
ad6254c5 AK |
7707 | for (i = 0; i < pagesize; ++i) |
7708 | *(data + i) = rand (); | |
7709 | umask (0); | |
7710 | fd = creat ("conftest.mmap", 0600); | |
7711 | if (fd < 0) | |
7a197a62 | 7712 | return 1; |
ad6254c5 | 7713 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 7714 | return 1; |
ad6254c5 AK |
7715 | close (fd); |
7716 | ||
7717 | /* Next, try to mmap the file at a fixed address which already has | |
7718 | something else allocated at it. If we can, also make sure that | |
7719 | we see the same garbage. */ | |
7720 | fd = open ("conftest.mmap", O_RDWR); | |
7721 | if (fd < 0) | |
7a197a62 | 7722 | return 1; |
ad6254c5 AK |
7723 | data2 = (char *) malloc (2 * pagesize); |
7724 | if (!data2) | |
7a197a62 AK |
7725 | return 1; |
7726 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 7727 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 7728 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 7729 | return 1; |
ad6254c5 AK |
7730 | for (i = 0; i < pagesize; ++i) |
7731 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 7732 | return 1; |
ad6254c5 AK |
7733 | |
7734 | /* Finally, make sure that changes to the mapped area do not | |
7735 | percolate back to the file as seen by read(). (This is a bug on | |
7736 | some variants of i386 svr4.0.) */ | |
7737 | for (i = 0; i < pagesize; ++i) | |
7738 | *(data2 + i) = *(data2 + i) + 1; | |
7739 | data3 = (char *) malloc (pagesize); | |
7740 | if (!data3) | |
7a197a62 | 7741 | return 1; |
ad6254c5 | 7742 | if (read (fd, data3, pagesize) != pagesize) |
7a197a62 | 7743 | return 1; |
ad6254c5 AK |
7744 | for (i = 0; i < pagesize; ++i) |
7745 | if (*(data + i) != *(data3 + i)) | |
7a197a62 | 7746 | return 1; |
ad6254c5 | 7747 | close (fd); |
7a197a62 | 7748 | return 0; |
ad6254c5 AK |
7749 | } |
7750 | _ACEOF | |
7751 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7752 | if { (ac_try="$ac_link" |
7753 | case "(($ac_try" in | |
7754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7755 | *) ac_try_echo=$ac_try;; | |
7756 | esac | |
5556819a | 7757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7758 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7759 | ac_status=$? |
5556819a | 7760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7761 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7762 | { (case "(($ac_try" in |
7763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7764 | *) ac_try_echo=$ac_try;; | |
7765 | esac | |
5556819a | 7766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7767 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7768 | ac_status=$? |
5556819a | 7769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7770 | (exit $ac_status); }; }; then |
7771 | ac_cv_func_mmap_fixed_mapped=yes | |
7772 | else | |
5556819a AK |
7773 | echo "$as_me: program exited with status $ac_status" >&5 |
7774 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7775 | sed 's/^/| /' conftest.$ac_ext >&5 |
7776 | ||
7777 | ( exit $ac_status ) | |
7778 | ac_cv_func_mmap_fixed_mapped=no | |
7779 | fi | |
7a197a62 | 7780 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7781 | fi |
7a197a62 AK |
7782 | |
7783 | ||
ad6254c5 | 7784 | fi |
5556819a AK |
7785 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
7786 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } | |
ad6254c5 AK |
7787 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
7788 | ||
7789 | cat >>confdefs.h <<\_ACEOF | |
7790 | #define HAVE_MMAP 1 | |
7791 | _ACEOF | |
7792 | ||
7793 | fi | |
7794 | rm -f conftest.mmap | |
7795 | ||
5556819a AK |
7796 | { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
7797 | echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; } | |
ad6254c5 | 7798 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
5556819a | 7799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7800 | else |
7801 | if test "$cross_compiling" = yes; then | |
7802 | ac_cv_func_stat_empty_string_bug=yes | |
7803 | else | |
7804 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7805 | /* confdefs.h. */ |
7806 | _ACEOF | |
7807 | cat confdefs.h >>conftest.$ac_ext | |
7808 | cat >>conftest.$ac_ext <<_ACEOF | |
7809 | /* end confdefs.h. */ | |
7810 | $ac_includes_default | |
7811 | int | |
7812 | main () | |
7813 | { | |
7814 | struct stat sbuf; | |
7a197a62 | 7815 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
7816 | ; |
7817 | return 0; | |
7818 | } | |
7819 | _ACEOF | |
7820 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7821 | if { (ac_try="$ac_link" |
7822 | case "(($ac_try" in | |
7823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7824 | *) ac_try_echo=$ac_try;; | |
7825 | esac | |
5556819a | 7826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7827 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7828 | ac_status=$? |
5556819a | 7829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7830 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7831 | { (case "(($ac_try" in |
7832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7833 | *) ac_try_echo=$ac_try;; | |
7834 | esac | |
5556819a | 7835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7836 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7837 | ac_status=$? |
5556819a | 7838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7839 | (exit $ac_status); }; }; then |
7a197a62 | 7840 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 7841 | else |
5556819a AK |
7842 | echo "$as_me: program exited with status $ac_status" >&5 |
7843 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7844 | sed 's/^/| /' conftest.$ac_ext >&5 |
7845 | ||
7846 | ( exit $ac_status ) | |
7a197a62 | 7847 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 7848 | fi |
7a197a62 | 7849 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7850 | fi |
7a197a62 AK |
7851 | |
7852 | ||
ad6254c5 | 7853 | fi |
5556819a AK |
7854 | { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
7855 | echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 7856 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 7857 | case " $LIBOBJS " in |
8a2fc586 | 7858 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
7859 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
7860 | ;; | |
8a2fc586 AK |
7861 | esac |
7862 | ||
ad6254c5 AK |
7863 | |
7864 | cat >>confdefs.h <<_ACEOF | |
7865 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
7866 | _ACEOF | |
7867 | ||
7868 | fi | |
7869 | ||
5556819a AK |
7870 | { echo "$as_me:$LINENO: checking for working strtod" >&5 |
7871 | echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; } | |
ad6254c5 | 7872 | if test "${ac_cv_func_strtod+set}" = set; then |
5556819a | 7873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7874 | else |
7875 | if test "$cross_compiling" = yes; then | |
7876 | ac_cv_func_strtod=no | |
7877 | else | |
7878 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7879 | /* confdefs.h. */ |
7880 | _ACEOF | |
7881 | cat confdefs.h >>conftest.$ac_ext | |
7882 | cat >>conftest.$ac_ext <<_ACEOF | |
7883 | /* end confdefs.h. */ | |
7884 | ||
7a197a62 AK |
7885 | $ac_includes_default |
7886 | #ifndef strtod | |
ad6254c5 | 7887 | double strtod (); |
7a197a62 | 7888 | #endif |
ad6254c5 AK |
7889 | int |
7890 | main() | |
7891 | { | |
7892 | { | |
7893 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
7894 | char *string = " +69"; | |
7895 | char *term; | |
7896 | double value; | |
7897 | value = strtod (string, &term); | |
7898 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 7899 | return 1; |
ad6254c5 AK |
7900 | } |
7901 | ||
7902 | { | |
7903 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
7904 | terminating character under some conditions. */ | |
7905 | char *string = "NaN"; | |
7906 | char *term; | |
7907 | strtod (string, &term); | |
7908 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 7909 | return 1; |
ad6254c5 | 7910 | } |
7a197a62 | 7911 | return 0; |
ad6254c5 AK |
7912 | } |
7913 | ||
7914 | _ACEOF | |
7915 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7916 | if { (ac_try="$ac_link" |
7917 | case "(($ac_try" in | |
7918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7919 | *) ac_try_echo=$ac_try;; | |
7920 | esac | |
5556819a | 7921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7922 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7923 | ac_status=$? |
5556819a | 7924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7925 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7926 | { (case "(($ac_try" in |
7927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7928 | *) ac_try_echo=$ac_try;; | |
7929 | esac | |
5556819a | 7930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7931 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7932 | ac_status=$? |
5556819a | 7933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7934 | (exit $ac_status); }; }; then |
7935 | ac_cv_func_strtod=yes | |
7936 | else | |
5556819a AK |
7937 | echo "$as_me: program exited with status $ac_status" >&5 |
7938 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7939 | sed 's/^/| /' conftest.$ac_ext >&5 |
7940 | ||
7941 | ( exit $ac_status ) | |
7942 | ac_cv_func_strtod=no | |
7943 | fi | |
7a197a62 | 7944 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7945 | fi |
7a197a62 AK |
7946 | |
7947 | ||
ad6254c5 | 7948 | fi |
5556819a AK |
7949 | { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
7950 | echo "${ECHO_T}$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 7951 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 7952 | case " $LIBOBJS " in |
8a2fc586 | 7953 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
7954 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
7955 | ;; | |
8a2fc586 AK |
7956 | esac |
7957 | ||
5556819a AK |
7958 | { echo "$as_me:$LINENO: checking for pow" >&5 |
7959 | echo $ECHO_N "checking for pow... $ECHO_C" >&6; } | |
ad6254c5 | 7960 | if test "${ac_cv_func_pow+set}" = set; then |
5556819a | 7961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7962 | else |
7963 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7964 | /* confdefs.h. */ |
7965 | _ACEOF | |
7966 | cat confdefs.h >>conftest.$ac_ext | |
7967 | cat >>conftest.$ac_ext <<_ACEOF | |
7968 | /* end confdefs.h. */ | |
8a2fc586 AK |
7969 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
7970 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7971 | #define pow innocuous_pow | |
7972 | ||
ad6254c5 AK |
7973 | /* System header to define __stub macros and hopefully few prototypes, |
7974 | which can conflict with char pow (); below. | |
7975 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7976 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7977 | |
ad6254c5 AK |
7978 | #ifdef __STDC__ |
7979 | # include <limits.h> | |
7980 | #else | |
7981 | # include <assert.h> | |
7982 | #endif | |
8a2fc586 AK |
7983 | |
7984 | #undef pow | |
7985 | ||
7a197a62 AK |
7986 | /* Override any GCC internal prototype to avoid an error. |
7987 | Use char because int might match the return type of a GCC | |
7988 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
7989 | #ifdef __cplusplus |
7990 | extern "C" | |
ad6254c5 | 7991 | #endif |
ad6254c5 AK |
7992 | char pow (); |
7993 | /* The GNU C library defines this for functions which it implements | |
7994 | to always fail with ENOSYS. Some functions are actually named | |
7995 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7996 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 7997 | choke me |
ad6254c5 AK |
7998 | #endif |
7999 | ||
8000 | int | |
8001 | main () | |
8002 | { | |
7a197a62 | 8003 | return pow (); |
ad6254c5 AK |
8004 | ; |
8005 | return 0; | |
8006 | } | |
8007 | _ACEOF | |
8008 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8009 | if { (ac_try="$ac_link" |
8010 | case "(($ac_try" in | |
8011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8012 | *) ac_try_echo=$ac_try;; | |
8013 | esac | |
5556819a | 8014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8015 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8016 | ac_status=$? |
8a2fc586 AK |
8017 | grep -v '^ *+' conftest.er1 >conftest.err |
8018 | rm -f conftest.er1 | |
8019 | cat conftest.err >&5 | |
5556819a | 8020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8021 | (exit $ac_status); } && { |
8022 | test -z "$ac_c_werror_flag" || | |
8023 | test ! -s conftest.err | |
5556819a AK |
8024 | } && test -s conftest$ac_exeext && |
8025 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8026 | ac_cv_func_pow=yes |
8027 | else | |
5556819a | 8028 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8029 | sed 's/^/| /' conftest.$ac_ext >&5 |
8030 | ||
7a197a62 | 8031 | ac_cv_func_pow=no |
ad6254c5 | 8032 | fi |
7a197a62 | 8033 | |
25fbec5b | 8034 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8035 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8036 | fi |
5556819a AK |
8037 | { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
8038 | echo "${ECHO_T}$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
8039 | |
8040 | if test $ac_cv_func_pow = no; then | |
5556819a AK |
8041 | { echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
8042 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; } | |
ad6254c5 | 8043 | if test "${ac_cv_lib_m_pow+set}" = set; then |
5556819a | 8044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8045 | else |
8046 | ac_check_lib_save_LIBS=$LIBS | |
8047 | LIBS="-lm $LIBS" | |
8048 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8049 | /* confdefs.h. */ |
8050 | _ACEOF | |
8051 | cat confdefs.h >>conftest.$ac_ext | |
8052 | cat >>conftest.$ac_ext <<_ACEOF | |
8053 | /* end confdefs.h. */ | |
8054 | ||
7a197a62 AK |
8055 | /* Override any GCC internal prototype to avoid an error. |
8056 | Use char because int might match the return type of a GCC | |
8057 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8058 | #ifdef __cplusplus |
8059 | extern "C" | |
8060 | #endif | |
ad6254c5 AK |
8061 | char pow (); |
8062 | int | |
8063 | main () | |
8064 | { | |
7a197a62 | 8065 | return pow (); |
ad6254c5 AK |
8066 | ; |
8067 | return 0; | |
8068 | } | |
8069 | _ACEOF | |
8070 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8071 | if { (ac_try="$ac_link" |
8072 | case "(($ac_try" in | |
8073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8074 | *) ac_try_echo=$ac_try;; | |
8075 | esac | |
5556819a | 8076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8077 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8078 | ac_status=$? |
8a2fc586 AK |
8079 | grep -v '^ *+' conftest.er1 >conftest.err |
8080 | rm -f conftest.er1 | |
8081 | cat conftest.err >&5 | |
5556819a | 8082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8083 | (exit $ac_status); } && { |
8084 | test -z "$ac_c_werror_flag" || | |
8085 | test ! -s conftest.err | |
5556819a AK |
8086 | } && test -s conftest$ac_exeext && |
8087 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8088 | ac_cv_lib_m_pow=yes |
8089 | else | |
5556819a | 8090 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8091 | sed 's/^/| /' conftest.$ac_ext >&5 |
8092 | ||
7a197a62 | 8093 | ac_cv_lib_m_pow=no |
ad6254c5 | 8094 | fi |
7a197a62 | 8095 | |
25fbec5b | 8096 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8097 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8098 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 8099 | fi |
5556819a AK |
8100 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
8101 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; } | |
d0191583 JM |
8102 | if test $ac_cv_lib_m_pow = yes; then |
8103 | POW_LIB=-lm | |
8104 | else | |
5556819a AK |
8105 | { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
8106 | echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 8107 | fi |
72b2cb61 | 8108 | |
d0191583 | 8109 | fi |
72b2cb61 | 8110 | |
ad6254c5 AK |
8111 | fi |
8112 | ||
ad6254c5 | 8113 | |
d0191583 JM |
8114 | for ac_func in vprintf |
8115 | do | |
5556819a AK |
8116 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8117 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8118 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
d0191583 | 8119 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 8120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 8121 | else |
d0191583 JM |
8122 | cat >conftest.$ac_ext <<_ACEOF |
8123 | /* confdefs.h. */ | |
8124 | _ACEOF | |
8125 | cat confdefs.h >>conftest.$ac_ext | |
8126 | cat >>conftest.$ac_ext <<_ACEOF | |
8127 | /* end confdefs.h. */ | |
8128 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8129 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8130 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 8131 | |
d0191583 JM |
8132 | /* System header to define __stub macros and hopefully few prototypes, |
8133 | which can conflict with char $ac_func (); below. | |
8134 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8135 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8136 | |
d0191583 JM |
8137 | #ifdef __STDC__ |
8138 | # include <limits.h> | |
8139 | #else | |
8140 | # include <assert.h> | |
8141 | #endif | |
ad6254c5 | 8142 | |
d0191583 | 8143 | #undef $ac_func |
72b2cb61 | 8144 | |
d0191583 JM |
8145 | /* Override any GCC internal prototype to avoid an error. |
8146 | Use char because int might match the return type of a GCC | |
8147 | builtin and then its argument prototype would still apply. */ | |
8148 | #ifdef __cplusplus | |
8149 | extern "C" | |
8150 | #endif | |
8151 | char $ac_func (); | |
8152 | /* The GNU C library defines this for functions which it implements | |
8153 | to always fail with ENOSYS. Some functions are actually named | |
8154 | something starting with __ and the normal name is an alias. */ | |
8155 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8156 | choke me | |
8157 | #endif | |
8158 | ||
8159 | int | |
8160 | main () | |
8161 | { | |
8162 | return $ac_func (); | |
8163 | ; | |
8164 | return 0; | |
8165 | } | |
72b2cb61 | 8166 | _ACEOF |
d0191583 JM |
8167 | rm -f conftest.$ac_objext conftest$ac_exeext |
8168 | if { (ac_try="$ac_link" | |
8169 | case "(($ac_try" in | |
8170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8171 | *) ac_try_echo=$ac_try;; | |
8172 | esac | |
5556819a | 8173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
8174 | (eval "$ac_link") 2>conftest.er1 |
8175 | ac_status=$? | |
8176 | grep -v '^ *+' conftest.er1 >conftest.err | |
8177 | rm -f conftest.er1 | |
8178 | cat conftest.err >&5 | |
5556819a | 8179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8180 | (exit $ac_status); } && { |
8181 | test -z "$ac_c_werror_flag" || | |
8182 | test ! -s conftest.err | |
5556819a AK |
8183 | } && test -s conftest$ac_exeext && |
8184 | $as_test_x conftest$ac_exeext; then | |
d0191583 JM |
8185 | eval "$as_ac_var=yes" |
8186 | else | |
5556819a | 8187 | echo "$as_me: failed program was:" >&5 |
d0191583 | 8188 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8189 | |
d0191583 | 8190 | eval "$as_ac_var=no" |
ad6254c5 AK |
8191 | fi |
8192 | ||
d0191583 JM |
8193 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8194 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8195 | fi |
5556819a AK |
8196 | ac_res=`eval echo '${'$as_ac_var'}'` |
8197 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8198 | echo "${ECHO_T}$ac_res" >&6; } | |
8199 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
d0191583 | 8200 | cat >>confdefs.h <<_ACEOF |
5556819a | 8201 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 8202 | _ACEOF |
7a197a62 | 8203 | |
5556819a AK |
8204 | { echo "$as_me:$LINENO: checking for _doprnt" >&5 |
8205 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } | |
d0191583 | 8206 | if test "${ac_cv_func__doprnt+set}" = set; then |
5556819a | 8207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 8208 | else |
d0191583 JM |
8209 | cat >conftest.$ac_ext <<_ACEOF |
8210 | /* confdefs.h. */ | |
8211 | _ACEOF | |
8212 | cat confdefs.h >>conftest.$ac_ext | |
8213 | cat >>conftest.$ac_ext <<_ACEOF | |
8214 | /* end confdefs.h. */ | |
8215 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
8216 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8217 | #define _doprnt innocuous__doprnt | |
7a197a62 | 8218 | |
d0191583 JM |
8219 | /* System header to define __stub macros and hopefully few prototypes, |
8220 | which can conflict with char _doprnt (); below. | |
8221 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8222 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8223 | |
d0191583 JM |
8224 | #ifdef __STDC__ |
8225 | # include <limits.h> | |
8226 | #else | |
8227 | # include <assert.h> | |
8228 | #endif | |
72b2cb61 | 8229 | |
d0191583 JM |
8230 | #undef _doprnt |
8231 | ||
8232 | /* Override any GCC internal prototype to avoid an error. | |
8233 | Use char because int might match the return type of a GCC | |
8234 | builtin and then its argument prototype would still apply. */ | |
8235 | #ifdef __cplusplus | |
8236 | extern "C" | |
8237 | #endif | |
8238 | char _doprnt (); | |
8239 | /* The GNU C library defines this for functions which it implements | |
8240 | to always fail with ENOSYS. Some functions are actually named | |
8241 | something starting with __ and the normal name is an alias. */ | |
8242 | #if defined __stub__doprnt || defined __stub____doprnt | |
8243 | choke me | |
8244 | #endif | |
8245 | ||
8246 | int | |
8247 | main () | |
8248 | { | |
8249 | return _doprnt (); | |
8250 | ; | |
8251 | return 0; | |
8252 | } | |
72b2cb61 | 8253 | _ACEOF |
d0191583 JM |
8254 | rm -f conftest.$ac_objext conftest$ac_exeext |
8255 | if { (ac_try="$ac_link" | |
8256 | case "(($ac_try" in | |
8257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8258 | *) ac_try_echo=$ac_try;; | |
8259 | esac | |
5556819a | 8260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
8261 | (eval "$ac_link") 2>conftest.er1 |
8262 | ac_status=$? | |
8263 | grep -v '^ *+' conftest.er1 >conftest.err | |
8264 | rm -f conftest.er1 | |
8265 | cat conftest.err >&5 | |
5556819a | 8266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8267 | (exit $ac_status); } && { |
8268 | test -z "$ac_c_werror_flag" || | |
8269 | test ! -s conftest.err | |
5556819a AK |
8270 | } && test -s conftest$ac_exeext && |
8271 | $as_test_x conftest$ac_exeext; then | |
d0191583 JM |
8272 | ac_cv_func__doprnt=yes |
8273 | else | |
5556819a | 8274 | echo "$as_me: failed program was:" >&5 |
d0191583 | 8275 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8276 | |
d0191583 | 8277 | ac_cv_func__doprnt=no |
ad6254c5 AK |
8278 | fi |
8279 | ||
d0191583 JM |
8280 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8281 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8282 | fi |
5556819a AK |
8283 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
8284 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } | |
d0191583 | 8285 | if test $ac_cv_func__doprnt = yes; then |
7a197a62 | 8286 | |
d0191583 JM |
8287 | cat >>confdefs.h <<\_ACEOF |
8288 | #define HAVE_DOPRNT 1 | |
8289 | _ACEOF | |
ad6254c5 | 8290 | |
7a197a62 AK |
8291 | fi |
8292 | ||
d0191583 JM |
8293 | fi |
8294 | done | |
8b1a3214 | 8295 | |
ad6254c5 | 8296 | |
7a197a62 | 8297 | |
d0191583 | 8298 | ################################################################################ |
ad6254c5 | 8299 | |
ad6254c5 AK |
8300 | |
8301 | ################################################################################ | |
5556819a AK |
8302 | { echo "$as_me:$LINENO: checking file owner" >&5 |
8303 | echo $ECHO_N "checking file owner... $ECHO_C" >&6; } | |
d0191583 JM |
8304 | OWNER="root" |
8305 | ||
8306 | ||
8307 | # Check whether --with-user was given. | |
8308 | if test "${with_user+set}" = set; then | |
8309 | withval=$with_user; OWNER="$withval" | |
7a197a62 AK |
8310 | fi |
8311 | ||
5556819a AK |
8312 | { echo "$as_me:$LINENO: result: $OWNER" >&5 |
8313 | echo "${ECHO_T}$OWNER" >&6; } | |
ad6254c5 | 8314 | |
d0191583 JM |
8315 | if test x$OWNER != x; then |
8316 | OWNER="-o $OWNER" | |
ad6254c5 AK |
8317 | fi |
8318 | ||
8319 | ################################################################################ | |
5556819a AK |
8320 | { echo "$as_me:$LINENO: checking group owner" >&5 |
8321 | echo $ECHO_N "checking group owner... $ECHO_C" >&6; } | |
d0191583 | 8322 | GROUP="root" |
ad6254c5 | 8323 | |
d0191583 JM |
8324 | # Check whether --with-group was given. |
8325 | if test "${with_group+set}" = set; then | |
8326 | withval=$with_group; GROUP="$withval" | |
7a197a62 AK |
8327 | fi |
8328 | ||
5556819a AK |
8329 | { echo "$as_me:$LINENO: result: $GROUP" >&5 |
8330 | echo "${ECHO_T}$GROUP" >&6; } | |
d0191583 JM |
8331 | |
8332 | if test x$GROUP != x; then | |
8333 | GROUP="-g $GROUP" | |
8334 | fi | |
ad6254c5 AK |
8335 | |
8336 | ################################################################################ | |
5556819a AK |
8337 | { echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
8338 | echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6; } | |
d0191583 JM |
8339 | # Check whether --enable-lvm1_fallback was given. |
8340 | if test "${enable_lvm1_fallback+set}" = set; then | |
8341 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
8342 | else | |
8343 | LVM1_FALLBACK=no | |
7a197a62 AK |
8344 | fi |
8345 | ||
5556819a AK |
8346 | { echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
8347 | echo "${ECHO_T}$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 8348 | |
d0191583 | 8349 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
8350 | |
8351 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8352 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
8353 | _ACEOF |
8354 | ||
ad6254c5 AK |
8355 | fi |
8356 | ||
8357 | ################################################################################ | |
5556819a AK |
8358 | { echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
8359 | echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6; } | |
d0191583 JM |
8360 | |
8361 | # Check whether --with-lvm1 was given. | |
8362 | if test "${with_lvm1+set}" = set; then | |
8363 | withval=$with_lvm1; LVM1="$withval" | |
8364 | else | |
8365 | LVM1="internal" | |
7a197a62 AK |
8366 | fi |
8367 | ||
5556819a AK |
8368 | { echo "$as_me:$LINENO: result: $LVM1" >&5 |
8369 | echo "${ECHO_T}$LVM1" >&6; } | |
ad6254c5 | 8370 | |
d0191583 | 8371 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
5556819a | 8372 | then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 8373 | " >&5 |
5556819a | 8374 | echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
8375 | " >&2;} |
8376 | { (exit 1); exit 1; }; } | |
8377 | fi; | |
8378 | ||
8379 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
8380 | |
8381 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8382 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
8383 | _ACEOF |
8384 | ||
ad6254c5 AK |
8385 | fi |
8386 | ||
8387 | ################################################################################ | |
5556819a AK |
8388 | { echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
8389 | echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6; } | |
d0191583 JM |
8390 | |
8391 | # Check whether --with-pool was given. | |
8392 | if test "${with_pool+set}" = set; then | |
8393 | withval=$with_pool; POOL="$withval" | |
ad6254c5 | 8394 | else |
d0191583 | 8395 | POOL="internal" |
7a197a62 AK |
8396 | fi |
8397 | ||
5556819a AK |
8398 | { echo "$as_me:$LINENO: result: $POOL" >&5 |
8399 | echo "${ECHO_T}$POOL" >&6; } | |
ad6254c5 | 8400 | |
d0191583 | 8401 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
5556819a | 8402 | then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 8403 | " >&5 |
5556819a | 8404 | echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
8405 | " >&2;} |
8406 | { (exit 1); exit 1; }; } | |
8407 | fi; | |
7a197a62 | 8408 | |
d0191583 JM |
8409 | if test x$POOL = xinternal; then |
8410 | ||
8411 | cat >>confdefs.h <<\_ACEOF | |
8412 | #define POOL_INTERNAL 1 | |
8413 | _ACEOF | |
8414 | ||
8415 | fi | |
ad6254c5 | 8416 | |
06f62ad1 | 8417 | ################################################################################ |
5556819a AK |
8418 | { echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
8419 | echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6; } | |
d0191583 JM |
8420 | |
8421 | # Check whether --with-cluster was given. | |
8422 | if test "${with_cluster+set}" = set; then | |
8423 | withval=$with_cluster; CLUSTER="$withval" | |
7a197a62 AK |
8424 | fi |
8425 | ||
5556819a AK |
8426 | { echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
8427 | echo "${ECHO_T}$CLUSTER" >&6; } | |
06f62ad1 | 8428 | |
d0191583 | 8429 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
5556819a | 8430 | then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 8431 | " >&5 |
5556819a | 8432 | echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
8433 | " >&2;} |
8434 | { (exit 1); exit 1; }; } | |
d0191583 | 8435 | fi; |
06f62ad1 | 8436 | |
d0191583 | 8437 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
8438 | |
8439 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8440 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
8441 | _ACEOF |
8442 | ||
15d91f5a | 8443 | fi |
ad6254c5 AK |
8444 | |
8445 | ################################################################################ | |
5556819a AK |
8446 | { echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
8447 | echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6; } | |
ad6254c5 | 8448 | |
d0191583 JM |
8449 | # Check whether --with-snapshots was given. |
8450 | if test "${with_snapshots+set}" = set; then | |
8451 | withval=$with_snapshots; SNAPSHOTS="$withval" | |
8452 | else | |
8453 | SNAPSHOTS="internal" | |
ad6254c5 AK |
8454 | fi |
8455 | ||
5556819a AK |
8456 | { echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
8457 | echo "${ECHO_T}$SNAPSHOTS" >&6; } | |
ad6254c5 | 8458 | |
d0191583 | 8459 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
5556819a | 8460 | then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 8461 | " >&5 |
5556819a | 8462 | echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
8463 | " >&2;} |
8464 | { (exit 1); exit 1; }; } | |
8465 | fi; | |
8466 | ||
8467 | if test x$SNAPSHOTS = xinternal; then | |
8468 | ||
8469 | cat >>confdefs.h <<\_ACEOF | |
8470 | #define SNAPSHOT_INTERNAL 1 | |
8471 | _ACEOF | |
ad6254c5 | 8472 | |
ad6254c5 | 8473 | fi |
7a197a62 | 8474 | |
d0191583 | 8475 | ################################################################################ |
5556819a AK |
8476 | { echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
8477 | echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6; } | |
d0191583 JM |
8478 | |
8479 | # Check whether --with-mirrors was given. | |
8480 | if test "${with_mirrors+set}" = set; then | |
8481 | withval=$with_mirrors; MIRRORS="$withval" | |
8482 | else | |
8483 | MIRRORS="internal" | |
ad6254c5 | 8484 | fi |
ad6254c5 | 8485 | |
5556819a AK |
8486 | { echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
8487 | echo "${ECHO_T}$MIRRORS" >&6; } | |
ad6254c5 | 8488 | |
d0191583 | 8489 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
5556819a | 8490 | then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 8491 | " >&5 |
5556819a | 8492 | echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
8493 | " >&2;} |
8494 | { (exit 1); exit 1; }; } | |
8495 | fi; | |
ad6254c5 | 8496 | |
d0191583 | 8497 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 8498 | |
d0191583 JM |
8499 | cat >>confdefs.h <<\_ACEOF |
8500 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 8501 | _ACEOF |
8a2fc586 | 8502 | |
d0191583 | 8503 | fi |
8a2fc586 | 8504 | |
d0191583 | 8505 | ################################################################################ |
5556819a AK |
8506 | { echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
8507 | echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6; } | |
d0191583 JM |
8508 | # Check whether --enable-readline was given. |
8509 | if test "${enable_readline+set}" = set; then | |
8510 | enableval=$enable_readline; READLINE=$enableval | |
8511 | else | |
06e459df | 8512 | READLINE=maybe |
d0191583 | 8513 | fi |
8a2fc586 | 8514 | |
5556819a AK |
8515 | { echo "$as_me:$LINENO: result: $READLINE" >&5 |
8516 | echo "${ECHO_T}$READLINE" >&6; } | |
8a2fc586 | 8517 | |
d0191583 | 8518 | ################################################################################ |
5556819a AK |
8519 | { echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
8520 | echo $ECHO_N "checking whether to enable realtime support... $ECHO_C" >&6; } | |
d0191583 JM |
8521 | # Check whether --enable-realtime was given. |
8522 | if test "${enable_realtime+set}" = set; then | |
8523 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 8524 | fi |
ad6254c5 | 8525 | |
5556819a AK |
8526 | { echo "$as_me:$LINENO: result: $REALTIME" >&5 |
8527 | echo "${ECHO_T}$REALTIME" >&6; } | |
d0191583 JM |
8528 | |
8529 | ################################################################################ | |
5556819a AK |
8530 | { echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 |
8531 | echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6; } | |
d0191583 JM |
8532 | |
8533 | # Check whether --with-clvmd was given. | |
8534 | if test "${with_clvmd+set}" = set; then | |
8535 | withval=$with_clvmd; CLVMD="$withval" | |
ad6254c5 | 8536 | else |
d0191583 JM |
8537 | CLVMD="none" |
8538 | fi | |
8a2fc586 | 8539 | |
d0191583 JM |
8540 | if test x$CLVMD = xyes; then |
8541 | CLVMD=all | |
8542 | fi | |
5556819a AK |
8543 | { echo "$as_me:$LINENO: result: $CLVMD" >&5 |
8544 | echo "${ECHO_T}$CLVMD" >&6; } | |
8a2fc586 | 8545 | |
d0191583 JM |
8546 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
8547 | CLUSTER=internal | |
8548 | fi | |
8a2fc586 | 8549 | |
d0191583 | 8550 | ################################################################################ |
5556819a AK |
8551 | { echo "$as_me:$LINENO: checking whether to enable debugging" >&5 |
8552 | echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; } | |
d0191583 JM |
8553 | # Check whether --enable-debug was given. |
8554 | if test "${enable_debug+set}" = set; then | |
8555 | enableval=$enable_debug; DEBUG=$enableval | |
8556 | else | |
8557 | DEBUG=no | |
8558 | fi | |
8a2fc586 | 8559 | |
5556819a AK |
8560 | { echo "$as_me:$LINENO: result: $DEBUG" >&5 |
8561 | echo "${ECHO_T}$DEBUG" >&6; } | |
ad6254c5 | 8562 | |
d0191583 JM |
8563 | if test x$DEBUG = xyes; then |
8564 | COPTIMISE_FLAG= | |
fc54be10 | 8565 | else |
d0191583 JM |
8566 | CSCOPE_CMD= |
8567 | fi | |
fc54be10 | 8568 | |
d0191583 | 8569 | ################################################################################ |
5556819a AK |
8570 | { echo "$as_me:$LINENO: checking for C optimisation flag" >&5 |
8571 | echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6; } | |
d0191583 JM |
8572 | |
8573 | # Check whether --with-optimisation was given. | |
8574 | if test "${with_optimisation+set}" = set; then | |
8575 | withval=$with_optimisation; COPTIMISE_FLAG="$withval" | |
8576 | fi | |
8577 | ||
5556819a AK |
8578 | { echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 |
8579 | echo "${ECHO_T}$COPTIMISE_FLAG" >&6; } | |
fddafd51 ZK |
8580 | |
8581 | ################################################################################ | |
5556819a AK |
8582 | { echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 |
8583 | echo $ECHO_N "checking whether to gather gcov profiling data... $ECHO_C" >&6; } | |
fddafd51 ZK |
8584 | # Check whether --enable-profiling was given. |
8585 | if test "${enable_profiling+set}" = set; then | |
5556819a | 8586 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 8587 | else |
5556819a | 8588 | PROFILING=no |
fddafd51 ZK |
8589 | fi |
8590 | ||
5556819a AK |
8591 | { echo "$as_me:$LINENO: result: $PROFILING" >&5 |
8592 | echo "${ECHO_T}$PROFILING" >&6; } | |
8593 | ||
8594 | if test "x$PROFILING" = xyes; then | |
8595 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
8596 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 8597 | set dummy lcov; ac_word=$2 |
5556819a AK |
8598 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8599 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fddafd51 | 8600 | if test "${ac_cv_path_LCOV+set}" = set; then |
5556819a | 8601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fddafd51 ZK |
8602 | else |
8603 | case $LCOV in | |
8604 | [\\/]* | ?:[\\/]*) | |
8605 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
8606 | ;; | |
8607 | *) | |
8608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8609 | for as_dir in $PATH | |
8610 | do | |
8611 | IFS=$as_save_IFS | |
8612 | test -z "$as_dir" && as_dir=. | |
8613 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8614 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8615 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
5556819a | 8616 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
8617 | break 2 |
8618 | fi | |
8619 | done | |
8620 | done | |
8621 | IFS=$as_save_IFS | |
8622 | ||
8623 | ;; | |
8624 | esac | |
8625 | fi | |
8626 | LCOV=$ac_cv_path_LCOV | |
8627 | if test -n "$LCOV"; then | |
5556819a AK |
8628 | { echo "$as_me:$LINENO: result: $LCOV" >&5 |
8629 | echo "${ECHO_T}$LCOV" >&6; } | |
fddafd51 | 8630 | else |
5556819a AK |
8631 | { echo "$as_me:$LINENO: result: no" >&5 |
8632 | echo "${ECHO_T}no" >&6; } | |
fddafd51 ZK |
8633 | fi |
8634 | ||
8635 | ||
5556819a | 8636 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 8637 | set dummy genhtml; ac_word=$2 |
5556819a AK |
8638 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8639 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fddafd51 | 8640 | if test "${ac_cv_path_GENHTML+set}" = set; then |
5556819a | 8641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fddafd51 ZK |
8642 | else |
8643 | case $GENHTML in | |
8644 | [\\/]* | ?:[\\/]*) | |
8645 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
8646 | ;; | |
8647 | *) | |
8648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8649 | for as_dir in $PATH | |
8650 | do | |
8651 | IFS=$as_save_IFS | |
8652 | test -z "$as_dir" && as_dir=. | |
8653 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8654 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8655 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
5556819a | 8656 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
8657 | break 2 |
8658 | fi | |
8659 | done | |
8660 | done | |
8661 | IFS=$as_save_IFS | |
8662 | ||
8663 | ;; | |
8664 | esac | |
8665 | fi | |
8666 | GENHTML=$ac_cv_path_GENHTML | |
8667 | if test -n "$GENHTML"; then | |
5556819a AK |
8668 | { echo "$as_me:$LINENO: result: $GENHTML" >&5 |
8669 | echo "${ECHO_T}$GENHTML" >&6; } | |
fddafd51 | 8670 | else |
5556819a AK |
8671 | { echo "$as_me:$LINENO: result: no" >&5 |
8672 | echo "${ECHO_T}no" >&6; } | |
fddafd51 ZK |
8673 | fi |
8674 | ||
8675 | ||
5556819a | 8676 | fi |
d0191583 JM |
8677 | |
8678 | ################################################################################ | |
5556819a AK |
8679 | { echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
8680 | echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6; } | |
d0191583 JM |
8681 | # Check whether --enable-devmapper was given. |
8682 | if test "${enable_devmapper+set}" = set; then | |
8683 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
8684 | fi |
8685 | ||
5556819a AK |
8686 | { echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
8687 | echo "${ECHO_T}$DEVMAPPER" >&6; } | |
d0191583 JM |
8688 | |
8689 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
8690 | |
8691 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8692 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
8693 | _ACEOF |
8694 | ||
8695 | fi | |
8696 | ||
d0191583 | 8697 | ################################################################################ |
5556819a AK |
8698 | { echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
8699 | echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6; } | |
d0191583 JM |
8700 | # Check whether --enable-o_direct was given. |
8701 | if test "${enable_o_direct+set}" = set; then | |
8702 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 8703 | fi |
ad6254c5 | 8704 | |
5556819a AK |
8705 | { echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
8706 | echo "${ECHO_T}$ODIRECT" >&6; } | |
ad6254c5 | 8707 | |
d0191583 | 8708 | if test x$ODIRECT = xyes; then |
ad6254c5 | 8709 | |
d0191583 JM |
8710 | cat >>confdefs.h <<\_ACEOF |
8711 | #define O_DIRECT_SUPPORT 1 | |
8712 | _ACEOF | |
ad6254c5 | 8713 | |
d0191583 | 8714 | fi |
ad6254c5 | 8715 | |
d0191583 | 8716 | ################################################################################ |
5556819a AK |
8717 | { echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
8718 | echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6; } | |
d0191583 JM |
8719 | # Check whether --enable-cmdlib was given. |
8720 | if test "${enable_cmdlib+set}" = set; then | |
8721 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 8722 | else |
d0191583 JM |
8723 | CMDLIB=no |
8724 | fi | |
8a2fc586 | 8725 | |
5556819a AK |
8726 | { echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
8727 | echo "${ECHO_T}$CMDLIB" >&6; } | |
8a2fc586 | 8728 | |
2a9a80c9 | 8729 | test x$CMDLIB = xyes \ |
d179cc7a JM |
8730 | && LVM2CMD_LIB=-llvm2cmd \ |
8731 | || LVM2CMD_LIB= | |
8732 | ||
2a9a80c9 | 8733 | |
d0191583 | 8734 | ################################################################################ |
5556819a AK |
8735 | { echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
8736 | echo $ECHO_N "checking whether to install fsadm... $ECHO_C" >&6; } | |
d0191583 JM |
8737 | # Check whether --enable-fsadm was given. |
8738 | if test "${enable_fsadm+set}" = set; then | |
8739 | enableval=$enable_fsadm; FSADM=$enableval | |
8740 | fi | |
8a2fc586 | 8741 | |
5556819a AK |
8742 | { echo "$as_me:$LINENO: result: $FSADM" >&5 |
8743 | echo "${ECHO_T}$FSADM" >&6; } | |
8a2fc586 | 8744 | |
d0191583 | 8745 | ################################################################################ |
5556819a AK |
8746 | { echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
8747 | echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6; } | |
d0191583 JM |
8748 | # Check whether --enable-dmeventd was given. |
8749 | if test "${enable_dmeventd+set}" = set; then | |
8750 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
8751 | fi | |
ad6254c5 | 8752 | |
5556819a AK |
8753 | { echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
8754 | echo "${ECHO_T}$DMEVENTD" >&6; } | |
ad6254c5 | 8755 | |
2a9a80c9 PR |
8756 | if test x$DMEVENTD = xyes; then |
8757 | if test x$MIRRORS != xinternal; then | |
8758 | { { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal | |
8759 | " >&5 | |
5556819a | 8760 | echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 8761 | " >&2;} |
d0191583 | 8762 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
8763 | fi |
8764 | if test x$CMDLIB = xno; then | |
8765 | { { echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well | |
8766 | " >&5 | |
8767 | echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well | |
8768 | " >&2;} | |
8769 | { (exit 1); exit 1; }; } | |
8770 | fi | |
ad6254c5 | 8771 | fi |
7a197a62 | 8772 | |
d0191583 JM |
8773 | if test x$DMEVENTD = xyes; then |
8774 | ||
8775 | cat >>confdefs.h <<\_ACEOF | |
8776 | #define DMEVENTD 1 | |
ad6254c5 AK |
8777 | _ACEOF |
8778 | ||
ad6254c5 | 8779 | fi |
d0191583 JM |
8780 | ################################################################################ |
8781 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
8782 | then exec_prefix=""; | |
8783 | fi; | |
ad6254c5 AK |
8784 | |
8785 | ################################################################################ | |
06e459df | 8786 | if test x$READLINE != xno; then |
5556819a AK |
8787 | { echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
8788 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; } | |
ad6254c5 | 8789 | if test "${ac_cv_search_tgetent+set}" = set; then |
5556819a | 8790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8791 | else |
8792 | ac_func_search_save_LIBS=$LIBS | |
ad6254c5 | 8793 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8794 | /* confdefs.h. */ |
8795 | _ACEOF | |
8796 | cat confdefs.h >>conftest.$ac_ext | |
8797 | cat >>conftest.$ac_ext <<_ACEOF | |
8798 | /* end confdefs.h. */ | |
8799 | ||
7a197a62 AK |
8800 | /* Override any GCC internal prototype to avoid an error. |
8801 | Use char because int might match the return type of a GCC | |
8802 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8803 | #ifdef __cplusplus |
8804 | extern "C" | |
8805 | #endif | |
ad6254c5 AK |
8806 | char tgetent (); |
8807 | int | |
8808 | main () | |
8809 | { | |
7a197a62 | 8810 | return tgetent (); |
ad6254c5 AK |
8811 | ; |
8812 | return 0; | |
8813 | } | |
8814 | _ACEOF | |
7a197a62 AK |
8815 | for ac_lib in '' ncurses curses termcap termlib; do |
8816 | if test -z "$ac_lib"; then | |
8817 | ac_res="none required" | |
8818 | else | |
8819 | ac_res=-l$ac_lib | |
8820 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8821 | fi | |
8822 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8823 | if { (ac_try="$ac_link" | |
8824 | case "(($ac_try" in | |
8825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8826 | *) ac_try_echo=$ac_try;; | |
8827 | esac | |
5556819a | 8828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8829 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8830 | ac_status=$? |
8a2fc586 AK |
8831 | grep -v '^ *+' conftest.er1 >conftest.err |
8832 | rm -f conftest.er1 | |
8833 | cat conftest.err >&5 | |
5556819a | 8834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8835 | (exit $ac_status); } && { |
8836 | test -z "$ac_c_werror_flag" || | |
8837 | test ! -s conftest.err | |
5556819a AK |
8838 | } && test -s conftest$ac_exeext && |
8839 | $as_test_x conftest$ac_exeext; then | |
7a197a62 | 8840 | ac_cv_search_tgetent=$ac_res |
ad6254c5 | 8841 | else |
5556819a | 8842 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8843 | sed 's/^/| /' conftest.$ac_ext >&5 |
8844 | ||
ad6254c5 | 8845 | |
7a197a62 | 8846 | fi |
ad6254c5 | 8847 | |
25fbec5b | 8848 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7a197a62 AK |
8849 | conftest$ac_exeext |
8850 | if test "${ac_cv_search_tgetent+set}" = set; then | |
8851 | break | |
ad6254c5 | 8852 | fi |
7a197a62 AK |
8853 | done |
8854 | if test "${ac_cv_search_tgetent+set}" = set; then | |
8855 | : | |
8856 | else | |
8857 | ac_cv_search_tgetent=no | |
ad6254c5 | 8858 | fi |
7a197a62 | 8859 | rm conftest.$ac_ext |
ad6254c5 AK |
8860 | LIBS=$ac_func_search_save_LIBS |
8861 | fi | |
5556819a AK |
8862 | { echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
8863 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6; } | |
7a197a62 AK |
8864 | ac_res=$ac_cv_search_tgetent |
8865 | if test "$ac_res" != no; then | |
8866 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
06e459df | 8867 | tg_found=yes |
ad6254c5 | 8868 | else |
06e459df JM |
8869 | tg_found=no |
8870 | fi | |
8871 | ||
8872 | test x$READLINE:$tg_found = xyes:no && | |
8873 | { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the | |
ad6254c5 AK |
8874 | --enable-readline option (which is enabled by default). Either disable readline |
8875 | support with --disable-readline or download and install termcap from: | |
8876 | ftp.gnu.org/gnu/termcap | |
8877 | Note: if you are using precompiled packages you will also need the development | |
8878 | package as well (which may be called termcap-devel or something similar). | |
8879 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
8880 | not found either - but you could try installing that as well. | |
8881 | " >&5 | |
5556819a | 8882 | echo "$as_me: error: termcap could not be found which is required for the |
ad6254c5 AK |
8883 | --enable-readline option (which is enabled by default). Either disable readline |
8884 | support with --disable-readline or download and install termcap from: | |
8885 | ftp.gnu.org/gnu/termcap | |
8886 | Note: if you are using precompiled packages you will also need the development | |
8887 | package as well (which may be called termcap-devel or something similar). | |
8888 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
8889 | not found either - but you could try installing that as well. | |
8890 | " >&2;} | |
8891 | { (exit 1); exit 1; }; } | |
ad6254c5 AK |
8892 | fi |
8893 | ||
8894 | ################################################################################ | |
5556819a AK |
8895 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
8896 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
ad6254c5 | 8897 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
5556819a | 8898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8899 | else |
8900 | ac_check_lib_save_LIBS=$LIBS | |
8901 | LIBS="-ldl $LIBS" | |
8902 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8903 | /* confdefs.h. */ |
8904 | _ACEOF | |
8905 | cat confdefs.h >>conftest.$ac_ext | |
8906 | cat >>conftest.$ac_ext <<_ACEOF | |
8907 | /* end confdefs.h. */ | |
8908 | ||
7a197a62 AK |
8909 | /* Override any GCC internal prototype to avoid an error. |
8910 | Use char because int might match the return type of a GCC | |
8911 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8912 | #ifdef __cplusplus |
8913 | extern "C" | |
8914 | #endif | |
ad6254c5 AK |
8915 | char dlopen (); |
8916 | int | |
8917 | main () | |
8918 | { | |
7a197a62 | 8919 | return dlopen (); |
ad6254c5 AK |
8920 | ; |
8921 | return 0; | |
8922 | } | |
8923 | _ACEOF | |
8924 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8925 | if { (ac_try="$ac_link" |
8926 | case "(($ac_try" in | |
8927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8928 | *) ac_try_echo=$ac_try;; | |
8929 | esac | |
5556819a | 8930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8931 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8932 | ac_status=$? |
8a2fc586 AK |
8933 | grep -v '^ *+' conftest.er1 >conftest.err |
8934 | rm -f conftest.er1 | |
8935 | cat conftest.err >&5 | |
5556819a | 8936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8937 | (exit $ac_status); } && { |
8938 | test -z "$ac_c_werror_flag" || | |
8939 | test ! -s conftest.err | |
5556819a AK |
8940 | } && test -s conftest$ac_exeext && |
8941 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8942 | ac_cv_lib_dl_dlopen=yes |
8943 | else | |
5556819a | 8944 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8945 | sed 's/^/| /' conftest.$ac_ext >&5 |
8946 | ||
7a197a62 | 8947 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 8948 | fi |
7a197a62 | 8949 | |
25fbec5b | 8950 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8951 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
8952 | LIBS=$ac_check_lib_save_LIBS |
8953 | fi | |
5556819a AK |
8954 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
8955 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
ad6254c5 AK |
8956 | if test $ac_cv_lib_dl_dlopen = yes; then |
8957 | HAVE_LIBDL=yes | |
8958 | else | |
8959 | HAVE_LIBDL=no | |
8960 | fi | |
8961 | ||
8962 | ||
7e9e9502 | 8963 | if [ "x$HAVE_LIBDL" = xyes ]; then |
72b2cb61 AK |
8964 | |
8965 | cat >>confdefs.h <<\_ACEOF | |
8966 | #define HAVE_LIBDL 1 | |
8967 | _ACEOF | |
8968 | ||
ad6254c5 AK |
8969 | LIBS="-ldl $LIBS" |
8970 | else | |
8971 | HAVE_LIBDL=no | |
8972 | fi | |
8973 | ||
8974 | ################################################################################ | |
8975 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
8976 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
8977 | \) -a "x$STATIC_LINK" = xyes ]; | |
5556819a | 8978 | then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 8979 | " >&5 |
5556819a | 8980 | echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
8981 | " >&2;} |
8982 | { (exit 1); exit 1; }; } | |
8983 | fi | |
8984 | ||
d0191583 | 8985 | ################################################################################ |
5556819a AK |
8986 | { echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
8987 | echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6; } | |
d0191583 JM |
8988 | # Check whether --enable-static_link was given. |
8989 | if test "${enable_static_link+set}" = set; then | |
8990 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
8991 | else | |
8992 | STATIC_LINK=no | |
8993 | fi | |
8994 | ||
5556819a AK |
8995 | { echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
8996 | echo "${ECHO_T}$STATIC_LINK" >&6; } | |
d0191583 JM |
8997 | |
8998 | ################################################################################ | |
5556819a AK |
8999 | { echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
9000 | echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6; } | |
d0191583 JM |
9001 | # Check whether --enable-selinux was given. |
9002 | if test "${enable_selinux+set}" = set; then | |
9003 | enableval=$enable_selinux; SELINUX=$enableval | |
9004 | fi | |
9005 | ||
5556819a AK |
9006 | { echo "$as_me:$LINENO: result: $SELINUX" >&5 |
9007 | echo "${ECHO_T}$SELINUX" >&6; } | |
d0191583 | 9008 | |
ad6254c5 AK |
9009 | ################################################################################ |
9010 | if test x$SELINUX = xyes; then | |
5556819a AK |
9011 | { echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
9012 | echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6; } | |
8a2fc586 | 9013 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
5556819a | 9014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8a2fc586 AK |
9015 | else |
9016 | ac_check_lib_save_LIBS=$LIBS | |
9017 | LIBS="-lsepol $LIBS" | |
9018 | cat >conftest.$ac_ext <<_ACEOF | |
9019 | /* confdefs.h. */ | |
9020 | _ACEOF | |
9021 | cat confdefs.h >>conftest.$ac_ext | |
9022 | cat >>conftest.$ac_ext <<_ACEOF | |
9023 | /* end confdefs.h. */ | |
9024 | ||
7a197a62 AK |
9025 | /* Override any GCC internal prototype to avoid an error. |
9026 | Use char because int might match the return type of a GCC | |
9027 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
9028 | #ifdef __cplusplus |
9029 | extern "C" | |
9030 | #endif | |
8a2fc586 AK |
9031 | char sepol_check_context (); |
9032 | int | |
9033 | main () | |
9034 | { | |
7a197a62 | 9035 | return sepol_check_context (); |
8a2fc586 AK |
9036 | ; |
9037 | return 0; | |
9038 | } | |
9039 | _ACEOF | |
9040 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9041 | if { (ac_try="$ac_link" |
9042 | case "(($ac_try" in | |
9043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9044 | *) ac_try_echo=$ac_try;; | |
9045 | esac | |
5556819a | 9046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9047 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
9048 | ac_status=$? |
9049 | grep -v '^ *+' conftest.er1 >conftest.err | |
9050 | rm -f conftest.er1 | |
9051 | cat conftest.err >&5 | |
5556819a | 9052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9053 | (exit $ac_status); } && { |
9054 | test -z "$ac_c_werror_flag" || | |
9055 | test ! -s conftest.err | |
5556819a AK |
9056 | } && test -s conftest$ac_exeext && |
9057 | $as_test_x conftest$ac_exeext; then | |
8a2fc586 AK |
9058 | ac_cv_lib_sepol_sepol_check_context=yes |
9059 | else | |
5556819a | 9060 | echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
9061 | sed 's/^/| /' conftest.$ac_ext >&5 |
9062 | ||
7a197a62 | 9063 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 9064 | fi |
7a197a62 | 9065 | |
25fbec5b | 9066 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
9067 | conftest$ac_exeext conftest.$ac_ext |
9068 | LIBS=$ac_check_lib_save_LIBS | |
9069 | fi | |
5556819a AK |
9070 | { echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
9071 | echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
8a2fc586 AK |
9072 | if test $ac_cv_lib_sepol_sepol_check_context = yes; then |
9073 | HAVE_SEPOL=yes | |
9074 | else | |
9075 | HAVE_SEPOL=no | |
9076 | fi | |
9077 | ||
8a2fc586 AK |
9078 | |
9079 | if test x$HAVE_SEPOL = xyes; then | |
d0191583 JM |
9080 | |
9081 | cat >>confdefs.h <<\_ACEOF | |
9082 | #define HAVE_SEPOL 1 | |
9083 | _ACEOF | |
9084 | ||
8a2fc586 AK |
9085 | LIBS="-lsepol $LIBS" |
9086 | fi | |
9087 | ||
5556819a AK |
9088 | { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
9089 | echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; } | |
ad6254c5 | 9090 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
5556819a | 9091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9092 | else |
9093 | ac_check_lib_save_LIBS=$LIBS | |
9094 | LIBS="-lselinux $LIBS" | |
9095 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9096 | /* confdefs.h. */ |
9097 | _ACEOF | |
9098 | cat confdefs.h >>conftest.$ac_ext | |
9099 | cat >>conftest.$ac_ext <<_ACEOF | |
9100 | /* end confdefs.h. */ | |
9101 | ||
7a197a62 AK |
9102 | /* Override any GCC internal prototype to avoid an error. |
9103 | Use char because int might match the return type of a GCC | |
9104 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9105 | #ifdef __cplusplus |
9106 | extern "C" | |
9107 | #endif | |
ad6254c5 AK |
9108 | char is_selinux_enabled (); |
9109 | int | |
9110 | main () | |
9111 | { | |
7a197a62 | 9112 | return is_selinux_enabled (); |
ad6254c5 AK |
9113 | ; |
9114 | return 0; | |
9115 | } | |
9116 | _ACEOF | |
9117 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9118 | if { (ac_try="$ac_link" |
9119 | case "(($ac_try" in | |
9120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9121 | *) ac_try_echo=$ac_try;; | |
9122 | esac | |
5556819a | 9123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9124 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9125 | ac_status=$? |
8a2fc586 AK |
9126 | grep -v '^ *+' conftest.er1 >conftest.err |
9127 | rm -f conftest.er1 | |
9128 | cat conftest.err >&5 | |
5556819a | 9129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9130 | (exit $ac_status); } && { |
9131 | test -z "$ac_c_werror_flag" || | |
9132 | test ! -s conftest.err | |
5556819a AK |
9133 | } && test -s conftest$ac_exeext && |
9134 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
9135 | ac_cv_lib_selinux_is_selinux_enabled=yes |
9136 | else | |
5556819a | 9137 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9138 | sed 's/^/| /' conftest.$ac_ext >&5 |
9139 | ||
7a197a62 | 9140 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 9141 | fi |
7a197a62 | 9142 | |
25fbec5b | 9143 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9144 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
9145 | LIBS=$ac_check_lib_save_LIBS |
9146 | fi | |
5556819a AK |
9147 | { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
9148 | echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
ad6254c5 AK |
9149 | if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then |
9150 | HAVE_SELINUX=yes | |
9151 | else | |
9152 | HAVE_SELINUX=no | |
9153 | fi | |
9154 | ||
ad6254c5 AK |
9155 | |
9156 | if test x$HAVE_SELINUX = xyes; then | |
72b2cb61 AK |
9157 | |
9158 | cat >>confdefs.h <<\_ACEOF | |
9159 | #define HAVE_SELINUX 1 | |
9160 | _ACEOF | |
9161 | ||
ad6254c5 AK |
9162 | LIBS="-lselinux $LIBS" |
9163 | else | |
5556819a AK |
9164 | { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 |
9165 | echo "$as_me: WARNING: Disabling selinux" >&2;} | |
66e941e8 JM |
9166 | fi |
9167 | ||
d0191583 | 9168 | # With --enable-static_link and selinux enabled, linking |
66e941e8 JM |
9169 | # fails on at least Debian unstable due to unsatisfied references |
9170 | # to pthread_mutex_lock and _unlock. See if we need -lpthread. | |
9171 | if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then | |
9172 | lvm_saved_libs=$LIBS | |
9173 | LIBS="$LIBS -static" | |
5556819a AK |
9174 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
9175 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } | |
66e941e8 | 9176 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
5556819a | 9177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
66e941e8 JM |
9178 | else |
9179 | ac_func_search_save_LIBS=$LIBS | |
9180 | cat >conftest.$ac_ext <<_ACEOF | |
9181 | /* confdefs.h. */ | |
9182 | _ACEOF | |
9183 | cat confdefs.h >>conftest.$ac_ext | |
9184 | cat >>conftest.$ac_ext <<_ACEOF | |
9185 | /* end confdefs.h. */ | |
9186 | ||
9187 | /* Override any GCC internal prototype to avoid an error. | |
9188 | Use char because int might match the return type of a GCC | |
9189 | builtin and then its argument prototype would still apply. */ | |
9190 | #ifdef __cplusplus | |
9191 | extern "C" | |
9192 | #endif | |
9193 | char pthread_mutex_lock (); | |
9194 | int | |
9195 | main () | |
9196 | { | |
9197 | return pthread_mutex_lock (); | |
9198 | ; | |
9199 | return 0; | |
9200 | } | |
9201 | _ACEOF | |
9202 | for ac_lib in '' pthread; do | |
9203 | if test -z "$ac_lib"; then | |
9204 | ac_res="none required" | |
9205 | else | |
9206 | ac_res=-l$ac_lib | |
9207 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9208 | fi | |
9209 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9210 | if { (ac_try="$ac_link" | |
9211 | case "(($ac_try" in | |
9212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9213 | *) ac_try_echo=$ac_try;; | |
9214 | esac | |
5556819a | 9215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
66e941e8 JM |
9216 | (eval "$ac_link") 2>conftest.er1 |
9217 | ac_status=$? | |
9218 | grep -v '^ *+' conftest.er1 >conftest.err | |
9219 | rm -f conftest.er1 | |
9220 | cat conftest.err >&5 | |
5556819a | 9221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9222 | (exit $ac_status); } && { |
9223 | test -z "$ac_c_werror_flag" || | |
9224 | test ! -s conftest.err | |
5556819a AK |
9225 | } && test -s conftest$ac_exeext && |
9226 | $as_test_x conftest$ac_exeext; then | |
66e941e8 JM |
9227 | ac_cv_search_pthread_mutex_lock=$ac_res |
9228 | else | |
5556819a | 9229 | echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
9230 | sed 's/^/| /' conftest.$ac_ext >&5 |
9231 | ||
9232 | ||
9233 | fi | |
9234 | ||
25fbec5b | 9235 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
66e941e8 JM |
9236 | conftest$ac_exeext |
9237 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
9238 | break | |
9239 | fi | |
9240 | done | |
9241 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
9242 | : | |
9243 | else | |
9244 | ac_cv_search_pthread_mutex_lock=no | |
9245 | fi | |
9246 | rm conftest.$ac_ext | |
9247 | LIBS=$ac_func_search_save_LIBS | |
9248 | fi | |
5556819a AK |
9249 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
9250 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } | |
66e941e8 JM |
9251 | ac_res=$ac_cv_search_pthread_mutex_lock |
9252 | if test "$ac_res" != no; then | |
9253 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9254 | test "$ac_cv_search_pthread_mutex_lock" = "none required" || | |
9255 | LIB_PTHREAD=-lpthread | |
9256 | fi | |
9257 | ||
9258 | LIBS=$lvm_saved_libs | |
ad6254c5 AK |
9259 | fi |
9260 | fi | |
9261 | ||
8b1a3214 AK |
9262 | ################################################################################ |
9263 | if test x$REALTIME = xyes; then | |
5556819a AK |
9264 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
9265 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } | |
8b1a3214 | 9266 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
5556819a | 9267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8b1a3214 AK |
9268 | else |
9269 | ac_check_lib_save_LIBS=$LIBS | |
9270 | LIBS="-lrt $LIBS" | |
9271 | cat >conftest.$ac_ext <<_ACEOF | |
9272 | /* confdefs.h. */ | |
9273 | _ACEOF | |
9274 | cat confdefs.h >>conftest.$ac_ext | |
9275 | cat >>conftest.$ac_ext <<_ACEOF | |
9276 | /* end confdefs.h. */ | |
9277 | ||
7a197a62 AK |
9278 | /* Override any GCC internal prototype to avoid an error. |
9279 | Use char because int might match the return type of a GCC | |
9280 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
9281 | #ifdef __cplusplus |
9282 | extern "C" | |
9283 | #endif | |
8b1a3214 AK |
9284 | char clock_gettime (); |
9285 | int | |
9286 | main () | |
9287 | { | |
7a197a62 | 9288 | return clock_gettime (); |
8b1a3214 AK |
9289 | ; |
9290 | return 0; | |
9291 | } | |
9292 | _ACEOF | |
9293 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9294 | if { (ac_try="$ac_link" |
9295 | case "(($ac_try" in | |
9296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9297 | *) ac_try_echo=$ac_try;; | |
9298 | esac | |
5556819a | 9299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9300 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
9301 | ac_status=$? |
9302 | grep -v '^ *+' conftest.er1 >conftest.err | |
9303 | rm -f conftest.er1 | |
9304 | cat conftest.err >&5 | |
5556819a | 9305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9306 | (exit $ac_status); } && { |
9307 | test -z "$ac_c_werror_flag" || | |
9308 | test ! -s conftest.err | |
5556819a AK |
9309 | } && test -s conftest$ac_exeext && |
9310 | $as_test_x conftest$ac_exeext; then | |
8b1a3214 AK |
9311 | ac_cv_lib_rt_clock_gettime=yes |
9312 | else | |
5556819a | 9313 | echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
9314 | sed 's/^/| /' conftest.$ac_ext >&5 |
9315 | ||
7a197a62 | 9316 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 9317 | fi |
7a197a62 | 9318 | |
25fbec5b | 9319 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
9320 | conftest$ac_exeext conftest.$ac_ext |
9321 | LIBS=$ac_check_lib_save_LIBS | |
9322 | fi | |
5556819a AK |
9323 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
9324 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } | |
8b1a3214 AK |
9325 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
9326 | HAVE_REALTIME=yes | |
9327 | else | |
9328 | HAVE_REALTIME=no | |
9329 | fi | |
9330 | ||
8b1a3214 AK |
9331 | |
9332 | if test x$HAVE_REALTIME = xyes; then | |
9333 | ||
9334 | cat >>confdefs.h <<\_ACEOF | |
9335 | #define HAVE_REALTIME 1 | |
9336 | _ACEOF | |
9337 | ||
9338 | LIBS="-lrt $LIBS" | |
9339 | else | |
5556819a AK |
9340 | { echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
9341 | echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
9342 | fi |
9343 | fi | |
9344 | ||
ad6254c5 AK |
9345 | ################################################################################ |
9346 | ||
9347 | for ac_header in getopt.h | |
9348 | do | |
5556819a | 9349 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9350 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
9351 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9352 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9353 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 9354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9355 | fi |
5556819a AK |
9356 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9357 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9358 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9359 | else |
9360 | # Is the header compilable? | |
5556819a AK |
9361 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9362 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 9363 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9364 | /* confdefs.h. */ |
9365 | _ACEOF | |
9366 | cat confdefs.h >>conftest.$ac_ext | |
9367 | cat >>conftest.$ac_ext <<_ACEOF | |
9368 | /* end confdefs.h. */ | |
9369 | $ac_includes_default | |
9370 | #include <$ac_header> | |
9371 | _ACEOF | |
9372 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9373 | if { (ac_try="$ac_compile" |
9374 | case "(($ac_try" in | |
9375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9376 | *) ac_try_echo=$ac_try;; | |
9377 | esac | |
5556819a | 9378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9379 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9380 | ac_status=$? |
8a2fc586 AK |
9381 | grep -v '^ *+' conftest.er1 >conftest.err |
9382 | rm -f conftest.er1 | |
9383 | cat conftest.err >&5 | |
5556819a | 9384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9385 | (exit $ac_status); } && { |
9386 | test -z "$ac_c_werror_flag" || | |
9387 | test ! -s conftest.err | |
9388 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9389 | ac_header_compiler=yes |
9390 | else | |
5556819a | 9391 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9392 | sed 's/^/| /' conftest.$ac_ext >&5 |
9393 | ||
7a197a62 | 9394 | ac_header_compiler=no |
ad6254c5 | 9395 | fi |
7a197a62 AK |
9396 | |
9397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
9398 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9399 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9400 | |
9401 | # Is the header present? | |
5556819a AK |
9402 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9403 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 9404 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9405 | /* confdefs.h. */ |
9406 | _ACEOF | |
9407 | cat confdefs.h >>conftest.$ac_ext | |
9408 | cat >>conftest.$ac_ext <<_ACEOF | |
9409 | /* end confdefs.h. */ | |
9410 | #include <$ac_header> | |
9411 | _ACEOF | |
7a197a62 AK |
9412 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9413 | case "(($ac_try" in | |
9414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9415 | *) ac_try_echo=$ac_try;; | |
9416 | esac | |
5556819a | 9417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9418 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9419 | ac_status=$? |
9420 | grep -v '^ *+' conftest.er1 >conftest.err | |
9421 | rm -f conftest.er1 | |
9422 | cat conftest.err >&5 | |
5556819a | 9423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9424 | (exit $ac_status); } >/dev/null && { |
9425 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9426 | test ! -s conftest.err | |
9427 | }; then | |
ad6254c5 AK |
9428 | ac_header_preproc=yes |
9429 | else | |
5556819a | 9430 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9431 | sed 's/^/| /' conftest.$ac_ext >&5 |
9432 | ||
9433 | ac_header_preproc=no | |
9434 | fi | |
7a197a62 | 9435 | |
ad6254c5 | 9436 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
9437 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9438 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9439 | |
9440 | # So? What about this header? | |
8a2fc586 AK |
9441 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9442 | yes:no: ) | |
5556819a AK |
9443 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9444 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9445 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9446 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9447 | ac_header_preproc=yes |
ad6254c5 | 9448 | ;; |
8a2fc586 | 9449 | no:yes:* ) |
5556819a AK |
9450 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9451 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9452 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9453 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9454 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9455 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9456 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9457 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9458 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9459 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9460 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9461 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9462 | |
ad6254c5 AK |
9463 | ;; |
9464 | esac | |
5556819a AK |
9465 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9466 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9467 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 9468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9469 | else |
8a2fc586 | 9470 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9471 | fi |
5556819a AK |
9472 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9473 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9474 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9475 | |
9476 | fi | |
5556819a | 9477 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 9478 | cat >>confdefs.h <<_ACEOF |
5556819a | 9479 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 9480 | _ACEOF |
72b2cb61 AK |
9481 | |
9482 | cat >>confdefs.h <<\_ACEOF | |
9483 | #define HAVE_GETOPTLONG 1 | |
9484 | _ACEOF | |
9485 | ||
ad6254c5 AK |
9486 | fi |
9487 | ||
9488 | done | |
9489 | ||
9490 | ||
9491 | ################################################################################ | |
06e459df JM |
9492 | if test x$READLINE != xno; then |
9493 | { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 | |
5556819a | 9494 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; } |
ad6254c5 | 9495 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
5556819a | 9496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9497 | else |
9498 | ac_check_lib_save_LIBS=$LIBS | |
9499 | LIBS="-lreadline $LIBS" | |
9500 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9501 | /* confdefs.h. */ |
9502 | _ACEOF | |
9503 | cat confdefs.h >>conftest.$ac_ext | |
9504 | cat >>conftest.$ac_ext <<_ACEOF | |
9505 | /* end confdefs.h. */ | |
9506 | ||
7a197a62 AK |
9507 | /* Override any GCC internal prototype to avoid an error. |
9508 | Use char because int might match the return type of a GCC | |
9509 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9510 | #ifdef __cplusplus |
9511 | extern "C" | |
9512 | #endif | |
ad6254c5 AK |
9513 | char readline (); |
9514 | int | |
9515 | main () | |
9516 | { | |
7a197a62 | 9517 | return readline (); |
ad6254c5 AK |
9518 | ; |
9519 | return 0; | |
9520 | } | |
9521 | _ACEOF | |
9522 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9523 | if { (ac_try="$ac_link" |
9524 | case "(($ac_try" in | |
9525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9526 | *) ac_try_echo=$ac_try;; | |
9527 | esac | |
5556819a | 9528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9529 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9530 | ac_status=$? |
8a2fc586 AK |
9531 | grep -v '^ *+' conftest.er1 >conftest.err |
9532 | rm -f conftest.er1 | |
9533 | cat conftest.err >&5 | |
5556819a | 9534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9535 | (exit $ac_status); } && { |
9536 | test -z "$ac_c_werror_flag" || | |
9537 | test ! -s conftest.err | |
5556819a AK |
9538 | } && test -s conftest$ac_exeext && |
9539 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
9540 | ac_cv_lib_readline_readline=yes |
9541 | else | |
5556819a | 9542 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9543 | sed 's/^/| /' conftest.$ac_ext >&5 |
9544 | ||
7a197a62 | 9545 | ac_cv_lib_readline_readline=no |
ad6254c5 | 9546 | fi |
7a197a62 | 9547 | |
25fbec5b | 9548 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9549 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
9550 | LIBS=$ac_check_lib_save_LIBS |
9551 | fi | |
5556819a AK |
9552 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
9553 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; } | |
ad6254c5 | 9554 | if test $ac_cv_lib_readline_readline = yes; then |
06e459df | 9555 | rl_found=yes |
ad6254c5 | 9556 | else |
06e459df JM |
9557 | rl_found=no |
9558 | fi | |
9559 | ||
9560 | test x$READLINE:$rl_found = xyes:no && | |
9561 | { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the | |
ad6254c5 AK |
9562 | --enable-readline option (which is enabled by default). Either disable readline |
9563 | support with --disable-readline or download and install readline from: | |
9564 | ftp.gnu.org/gnu/readline | |
9565 | Note: if you are using precompiled packages you will also need the development | |
9566 | package as well (which may be called readline-devel or something similar). | |
9567 | " >&5 | |
5556819a | 9568 | echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
9569 | --enable-readline option (which is enabled by default). Either disable readline |
9570 | support with --disable-readline or download and install readline from: | |
9571 | ftp.gnu.org/gnu/readline | |
9572 | Note: if you are using precompiled packages you will also need the development | |
9573 | package as well (which may be called readline-devel or something similar). | |
9574 | " >&2;} | |
9575 | { (exit 1); exit 1; }; } | |
06e459df JM |
9576 | if test $rl_found = yes; then |
9577 | { echo "$as_me:$LINENO: checking for rl_completion_matches" >&5 | |
5556819a | 9578 | echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6; } |
ad6254c5 | 9579 | if test "${ac_cv_func_rl_completion_matches+set}" = set; then |
5556819a | 9580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9581 | else |
9582 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9583 | /* confdefs.h. */ |
9584 | _ACEOF | |
9585 | cat confdefs.h >>conftest.$ac_ext | |
9586 | cat >>conftest.$ac_ext <<_ACEOF | |
9587 | /* end confdefs.h. */ | |
8a2fc586 AK |
9588 | /* Define rl_completion_matches to an innocuous variant, in case <limits.h> declares rl_completion_matches. |
9589 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9590 | #define rl_completion_matches innocuous_rl_completion_matches | |
9591 | ||
ad6254c5 AK |
9592 | /* System header to define __stub macros and hopefully few prototypes, |
9593 | which can conflict with char rl_completion_matches (); below. | |
9594 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9595 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9596 | |
ad6254c5 AK |
9597 | #ifdef __STDC__ |
9598 | # include <limits.h> | |
9599 | #else | |
9600 | # include <assert.h> | |
9601 | #endif | |
8a2fc586 AK |
9602 | |
9603 | #undef rl_completion_matches | |
9604 | ||
7a197a62 AK |
9605 | /* Override any GCC internal prototype to avoid an error. |
9606 | Use char because int might match the return type of a GCC | |
9607 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9608 | #ifdef __cplusplus |
9609 | extern "C" | |
ad6254c5 | 9610 | #endif |
ad6254c5 AK |
9611 | char rl_completion_matches (); |
9612 | /* The GNU C library defines this for functions which it implements | |
9613 | to always fail with ENOSYS. Some functions are actually named | |
9614 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 9615 | #if defined __stub_rl_completion_matches || defined __stub___rl_completion_matches |
ad6254c5 | 9616 | choke me |
ad6254c5 AK |
9617 | #endif |
9618 | ||
9619 | int | |
9620 | main () | |
9621 | { | |
7a197a62 | 9622 | return rl_completion_matches (); |
ad6254c5 AK |
9623 | ; |
9624 | return 0; | |
9625 | } | |
9626 | _ACEOF | |
9627 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9628 | if { (ac_try="$ac_link" |
9629 | case "(($ac_try" in | |
9630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9631 | *) ac_try_echo=$ac_try;; | |
9632 | esac | |
5556819a | 9633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9634 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9635 | ac_status=$? |
8a2fc586 AK |
9636 | grep -v '^ *+' conftest.er1 >conftest.err |
9637 | rm -f conftest.er1 | |
9638 | cat conftest.err >&5 | |
5556819a | 9639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9640 | (exit $ac_status); } && { |
9641 | test -z "$ac_c_werror_flag" || | |
9642 | test ! -s conftest.err | |
5556819a AK |
9643 | } && test -s conftest$ac_exeext && |
9644 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
9645 | ac_cv_func_rl_completion_matches=yes |
9646 | else | |
5556819a | 9647 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9648 | sed 's/^/| /' conftest.$ac_ext >&5 |
9649 | ||
7a197a62 | 9650 | ac_cv_func_rl_completion_matches=no |
ad6254c5 | 9651 | fi |
7a197a62 | 9652 | |
25fbec5b | 9653 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9654 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 9655 | fi |
5556819a AK |
9656 | { echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5 |
9657 | echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6; } | |
ad6254c5 | 9658 | if test $ac_cv_func_rl_completion_matches = yes; then |
ad6254c5 | 9659 | |
72b2cb61 AK |
9660 | cat >>confdefs.h <<\_ACEOF |
9661 | #define HAVE_RL_COMPLETION_MATCHES 1 | |
9662 | _ACEOF | |
9663 | ||
9664 | fi | |
ad6254c5 | 9665 | |
d179cc7a JM |
9666 | |
9667 | cat >>confdefs.h <<\_ACEOF | |
9668 | #define READLINE_SUPPORT 1 | |
9669 | _ACEOF | |
9670 | ||
06e459df | 9671 | fi |
ad6254c5 AK |
9672 | fi |
9673 | ||
9674 | ################################################################################ | |
5556819a AK |
9675 | { echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
9676 | echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6; } | |
7a197a62 | 9677 | # Check whether --enable-nls was given. |
ad6254c5 | 9678 | if test "${enable_nls+set}" = set; then |
7a197a62 | 9679 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
9680 | else |
9681 | INTL=no | |
7a197a62 AK |
9682 | fi |
9683 | ||
5556819a AK |
9684 | { echo "$as_me:$LINENO: result: $INTL" >&5 |
9685 | echo "${ECHO_T}$INTL" >&6; } | |
ad6254c5 AK |
9686 | |
9687 | if test x$INTL = xyes; then | |
9688 | INTL_PACKAGE="lvm2" | |
9689 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
9690 | set dummy msgfmt; ac_word=$2 | |
5556819a AK |
9691 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9692 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 9693 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
5556819a | 9694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9695 | else |
9696 | case $MSGFMT in | |
9697 | [\\/]* | ?:[\\/]*) | |
9698 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
9699 | ;; | |
9700 | *) | |
9701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9702 | for as_dir in $PATH | |
9703 | do | |
9704 | IFS=$as_save_IFS | |
9705 | test -z "$as_dir" && as_dir=. | |
9706 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 9707 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 9708 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
5556819a | 9709 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
9710 | break 2 |
9711 | fi | |
9712 | done | |
9713 | done | |
7a197a62 | 9714 | IFS=$as_save_IFS |
ad6254c5 AK |
9715 | |
9716 | ;; | |
9717 | esac | |
9718 | fi | |
9719 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 9720 | if test -n "$MSGFMT"; then |
5556819a AK |
9721 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
9722 | echo "${ECHO_T}$MSGFMT" >&6; } | |
ad6254c5 | 9723 | else |
5556819a AK |
9724 | { echo "$as_me:$LINENO: result: no" >&5 |
9725 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
9726 | fi |
9727 | ||
7a197a62 | 9728 | |
ad6254c5 | 9729 | if [ "x$MSGFMT" == x ]; |
5556819a | 9730 | then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 9731 | " >&5 |
5556819a | 9732 | echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
9733 | " >&2;} |
9734 | { (exit 1); exit 1; }; } | |
9735 | fi; | |
9736 | ||
9737 | ||
7a197a62 | 9738 | # Check whether --with-localedir was given. |
ad6254c5 | 9739 | if test "${with_localedir+set}" = set; then |
7a197a62 | 9740 | withval=$with_localedir; LOCALEDIR="$withval" |
ad6254c5 AK |
9741 | else |
9742 | LOCALEDIR='${prefix}/share/locale' | |
7a197a62 AK |
9743 | fi |
9744 | ||
ad6254c5 AK |
9745 | fi |
9746 | ||
9747 | ################################################################################ | |
9748 | ||
7a197a62 | 9749 | # Check whether --with-confdir was given. |
ad6254c5 | 9750 | if test "${with_confdir+set}" = set; then |
7a197a62 | 9751 | withval=$with_confdir; CONFDIR="$withval" |
ad6254c5 AK |
9752 | else |
9753 | CONFDIR='/etc' | |
7a197a62 AK |
9754 | fi |
9755 | ||
ad6254c5 AK |
9756 | |
9757 | ||
7a197a62 | 9758 | # Check whether --with-staticdir was given. |
ad6254c5 | 9759 | if test "${with_staticdir+set}" = set; then |
7a197a62 | 9760 | withval=$with_staticdir; STATICDIR="$withval" |
ad6254c5 AK |
9761 | else |
9762 | STATICDIR='${exec_prefix}/sbin' | |
7a197a62 | 9763 | fi |
ad6254c5 | 9764 | |
33f732c5 | 9765 | |
7a197a62 AK |
9766 | |
9767 | # Check whether --with-dmdir was given. | |
33f732c5 | 9768 | if test "${with_dmdir+set}" = set; then |
7a197a62 | 9769 | withval=$with_dmdir; DMDIR="$withval" CPPFLAGS="$CPPFLAGS -I$DMDIR/include" |
33f732c5 AK |
9770 | else |
9771 | DMDIR= | |
7a197a62 AK |
9772 | fi |
9773 | ||
33f732c5 | 9774 | |
09339e2b | 9775 | # Convert a relative dir name to absolute. |
25fbec5b AK |
9776 | case $DMDIR in |
9777 | /*) ;; | |
9778 | *) DMDIR="`pwd`/$DMDIR" ;; | |
09339e2b JM |
9779 | esac |
9780 | ||
ad6254c5 AK |
9781 | ################################################################################ |
9782 | if test x$READLINE = xyes; then | |
9783 | ||
9784 | ||
9785 | for ac_header in readline/readline.h readline/history.h | |
9786 | do | |
5556819a | 9787 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9788 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
9789 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9790 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9791 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 9792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9793 | fi |
5556819a AK |
9794 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9795 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9796 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9797 | else |
9798 | # Is the header compilable? | |
5556819a AK |
9799 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9800 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 9801 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9802 | /* confdefs.h. */ |
9803 | _ACEOF | |
9804 | cat confdefs.h >>conftest.$ac_ext | |
9805 | cat >>conftest.$ac_ext <<_ACEOF | |
9806 | /* end confdefs.h. */ | |
9807 | $ac_includes_default | |
9808 | #include <$ac_header> | |
9809 | _ACEOF | |
9810 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9811 | if { (ac_try="$ac_compile" |
9812 | case "(($ac_try" in | |
9813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9814 | *) ac_try_echo=$ac_try;; | |
9815 | esac | |
5556819a | 9816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9817 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9818 | ac_status=$? |
8a2fc586 AK |
9819 | grep -v '^ *+' conftest.er1 >conftest.err |
9820 | rm -f conftest.er1 | |
9821 | cat conftest.err >&5 | |
5556819a | 9822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9823 | (exit $ac_status); } && { |
9824 | test -z "$ac_c_werror_flag" || | |
9825 | test ! -s conftest.err | |
9826 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9827 | ac_header_compiler=yes |
9828 | else | |
5556819a | 9829 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9830 | sed 's/^/| /' conftest.$ac_ext >&5 |
9831 | ||
7a197a62 | 9832 | ac_header_compiler=no |
ad6254c5 | 9833 | fi |
7a197a62 AK |
9834 | |
9835 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
9836 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9837 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9838 | |
9839 | # Is the header present? | |
5556819a AK |
9840 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9841 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 9842 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9843 | /* confdefs.h. */ |
9844 | _ACEOF | |
9845 | cat confdefs.h >>conftest.$ac_ext | |
9846 | cat >>conftest.$ac_ext <<_ACEOF | |
9847 | /* end confdefs.h. */ | |
9848 | #include <$ac_header> | |
9849 | _ACEOF | |
7a197a62 AK |
9850 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9851 | case "(($ac_try" in | |
9852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9853 | *) ac_try_echo=$ac_try;; | |
9854 | esac | |
5556819a | 9855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9856 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9857 | ac_status=$? |
9858 | grep -v '^ *+' conftest.er1 >conftest.err | |
9859 | rm -f conftest.er1 | |
9860 | cat conftest.err >&5 | |
5556819a | 9861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9862 | (exit $ac_status); } >/dev/null && { |
9863 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9864 | test ! -s conftest.err | |
9865 | }; then | |
ad6254c5 AK |
9866 | ac_header_preproc=yes |
9867 | else | |
5556819a | 9868 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9869 | sed 's/^/| /' conftest.$ac_ext >&5 |
9870 | ||
9871 | ac_header_preproc=no | |
9872 | fi | |
7a197a62 | 9873 | |
ad6254c5 | 9874 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
9875 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9876 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9877 | |
9878 | # So? What about this header? | |
8a2fc586 AK |
9879 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9880 | yes:no: ) | |
5556819a AK |
9881 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9882 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9883 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9884 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9885 | ac_header_preproc=yes |
ad6254c5 | 9886 | ;; |
8a2fc586 | 9887 | no:yes:* ) |
5556819a AK |
9888 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9889 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9890 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9891 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9892 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9893 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9894 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9895 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9896 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9897 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9898 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9899 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9900 | |
ad6254c5 AK |
9901 | ;; |
9902 | esac | |
5556819a AK |
9903 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9904 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9905 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 9906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9907 | else |
8a2fc586 | 9908 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9909 | fi |
5556819a AK |
9910 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9911 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9912 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9913 | |
9914 | fi | |
5556819a | 9915 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 9916 | cat >>confdefs.h <<_ACEOF |
5556819a | 9917 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
9918 | _ACEOF |
9919 | ||
9920 | else | |
5556819a AK |
9921 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
9922 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
9923 | { (exit 1); exit 1; }; } |
9924 | fi | |
9925 | ||
9926 | done | |
9927 | ||
9928 | fi | |
9929 | ||
5c7fc7c4 | 9930 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
9931 | |
9932 | ||
9933 | ||
9934 | ||
9935 | ||
9936 | ||
9937 | ||
9938 | ||
9939 | ||
9940 | ||
9941 | 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 | |
9942 | do | |
5556819a | 9943 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9944 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
9945 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9946 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9947 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 9948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9949 | fi |
5556819a AK |
9950 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9951 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9952 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9953 | else |
9954 | # Is the header compilable? | |
5556819a AK |
9955 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9956 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 9957 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9958 | /* confdefs.h. */ |
9959 | _ACEOF | |
9960 | cat confdefs.h >>conftest.$ac_ext | |
9961 | cat >>conftest.$ac_ext <<_ACEOF | |
9962 | /* end confdefs.h. */ | |
9963 | $ac_includes_default | |
9964 | #include <$ac_header> | |
9965 | _ACEOF | |
9966 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9967 | if { (ac_try="$ac_compile" |
9968 | case "(($ac_try" in | |
9969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9970 | *) ac_try_echo=$ac_try;; | |
9971 | esac | |
5556819a | 9972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9973 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9974 | ac_status=$? |
8a2fc586 AK |
9975 | grep -v '^ *+' conftest.er1 >conftest.err |
9976 | rm -f conftest.er1 | |
9977 | cat conftest.err >&5 | |
5556819a | 9978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9979 | (exit $ac_status); } && { |
9980 | test -z "$ac_c_werror_flag" || | |
9981 | test ! -s conftest.err | |
9982 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9983 | ac_header_compiler=yes |
9984 | else | |
5556819a | 9985 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9986 | sed 's/^/| /' conftest.$ac_ext >&5 |
9987 | ||
7a197a62 | 9988 | ac_header_compiler=no |
ad6254c5 | 9989 | fi |
7a197a62 AK |
9990 | |
9991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
9992 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9993 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9994 | |
9995 | # Is the header present? | |
5556819a AK |
9996 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9997 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 9998 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9999 | /* confdefs.h. */ |
10000 | _ACEOF | |
10001 | cat confdefs.h >>conftest.$ac_ext | |
10002 | cat >>conftest.$ac_ext <<_ACEOF | |
10003 | /* end confdefs.h. */ | |
10004 | #include <$ac_header> | |
10005 | _ACEOF | |
7a197a62 AK |
10006 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10007 | case "(($ac_try" in | |
10008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10009 | *) ac_try_echo=$ac_try;; | |
10010 | esac | |
5556819a | 10011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10012 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10013 | ac_status=$? |
10014 | grep -v '^ *+' conftest.er1 >conftest.err | |
10015 | rm -f conftest.er1 | |
10016 | cat conftest.err >&5 | |
5556819a | 10017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10018 | (exit $ac_status); } >/dev/null && { |
10019 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10020 | test ! -s conftest.err | |
10021 | }; then | |
ad6254c5 AK |
10022 | ac_header_preproc=yes |
10023 | else | |
5556819a | 10024 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10025 | sed 's/^/| /' conftest.$ac_ext >&5 |
10026 | ||
10027 | ac_header_preproc=no | |
10028 | fi | |
7a197a62 | 10029 | |
ad6254c5 | 10030 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
10031 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10032 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10033 | |
10034 | # So? What about this header? | |
8a2fc586 AK |
10035 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10036 | yes:no: ) | |
5556819a AK |
10037 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10038 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10039 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10040 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10041 | ac_header_preproc=yes |
ad6254c5 | 10042 | ;; |
8a2fc586 | 10043 | no:yes:* ) |
5556819a AK |
10044 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10045 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10046 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10047 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10048 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10049 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10050 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10051 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10052 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10053 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10054 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10055 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10056 | |
ad6254c5 AK |
10057 | ;; |
10058 | esac | |
5556819a AK |
10059 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10060 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10061 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 10062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10063 | else |
8a2fc586 | 10064 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10065 | fi |
5556819a AK |
10066 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10067 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10068 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10069 | |
10070 | fi | |
5556819a | 10071 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10072 | cat >>confdefs.h <<_ACEOF |
5556819a | 10073 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10074 | _ACEOF |
10075 | ||
10076 | else | |
5556819a AK |
10077 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10078 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10079 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
10080 | fi |
10081 | ||
ad6254c5 AK |
10082 | done |
10083 | ||
10084 | ||
795ca3e5 | 10085 | |
8106cdd5 | 10086 | |
ad6254c5 AK |
10087 | |
10088 | ||
10089 | for ac_func in dup2 getmntent memmove select socket | |
10090 | do | |
5556819a AK |
10091 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10092 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10093 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 10094 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 10095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 10096 | else |
ad6254c5 | 10097 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10098 | /* confdefs.h. */ |
10099 | _ACEOF | |
10100 | cat confdefs.h >>conftest.$ac_ext | |
10101 | cat >>conftest.$ac_ext <<_ACEOF | |
10102 | /* end confdefs.h. */ | |
8a2fc586 AK |
10103 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10104 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10105 | #define $ac_func innocuous_$ac_func | |
10106 | ||
795ca3e5 | 10107 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
10108 | which can conflict with char $ac_func (); below. |
10109 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10110 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10111 | |
ad6254c5 AK |
10112 | #ifdef __STDC__ |
10113 | # include <limits.h> | |
10114 | #else | |
10115 | # include <assert.h> | |
10116 | #endif | |
8a2fc586 AK |
10117 | |
10118 | #undef $ac_func | |
10119 | ||
7a197a62 AK |
10120 | /* Override any GCC internal prototype to avoid an error. |
10121 | Use char because int might match the return type of a GCC | |
10122 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10123 | #ifdef __cplusplus |
10124 | extern "C" | |
ad6254c5 | 10125 | #endif |
ad6254c5 | 10126 | char $ac_func (); |
795ca3e5 AK |
10127 | /* The GNU C library defines this for functions which it implements |
10128 | to always fail with ENOSYS. Some functions are actually named | |
10129 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10130 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 10131 | choke me |
795ca3e5 AK |
10132 | #endif |
10133 | ||
ad6254c5 AK |
10134 | int |
10135 | main () | |
10136 | { | |
7a197a62 | 10137 | return $ac_func (); |
ad6254c5 AK |
10138 | ; |
10139 | return 0; | |
10140 | } | |
10141 | _ACEOF | |
10142 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10143 | if { (ac_try="$ac_link" |
10144 | case "(($ac_try" in | |
10145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10146 | *) ac_try_echo=$ac_try;; | |
10147 | esac | |
5556819a | 10148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10149 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10150 | ac_status=$? |
8a2fc586 AK |
10151 | grep -v '^ *+' conftest.er1 >conftest.err |
10152 | rm -f conftest.er1 | |
10153 | cat conftest.err >&5 | |
5556819a | 10154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10155 | (exit $ac_status); } && { |
10156 | test -z "$ac_c_werror_flag" || | |
10157 | test ! -s conftest.err | |
5556819a AK |
10158 | } && test -s conftest$ac_exeext && |
10159 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 | 10160 | eval "$as_ac_var=yes" |
795ca3e5 | 10161 | else |
5556819a | 10162 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10163 | sed 's/^/| /' conftest.$ac_ext >&5 |
10164 | ||
7a197a62 | 10165 | eval "$as_ac_var=no" |
80992638 | 10166 | fi |
7a197a62 | 10167 | |
25fbec5b | 10168 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10169 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 10170 | fi |
5556819a AK |
10171 | ac_res=`eval echo '${'$as_ac_var'}'` |
10172 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10173 | echo "${ECHO_T}$ac_res" >&6; } | |
10174 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 10175 | cat >>confdefs.h <<_ACEOF |
5556819a | 10176 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 10177 | _ACEOF |
80992638 AK |
10178 | |
10179 | else | |
5556819a AK |
10180 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10181 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10182 | { (exit 1); exit 1; }; } |
8106cdd5 | 10183 | fi |
ad6254c5 | 10184 | done |
795ca3e5 | 10185 | |
25fbec5b AK |
10186 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
10187 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
5556819a AK |
10188 | { echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
10189 | echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; } | |
25fbec5b | 10190 | if test "${ac_cv_search_getmntent+set}" = set; then |
5556819a | 10191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
25fbec5b AK |
10192 | else |
10193 | ac_func_search_save_LIBS=$LIBS | |
10194 | cat >conftest.$ac_ext <<_ACEOF | |
10195 | /* confdefs.h. */ | |
10196 | _ACEOF | |
10197 | cat confdefs.h >>conftest.$ac_ext | |
10198 | cat >>conftest.$ac_ext <<_ACEOF | |
10199 | /* end confdefs.h. */ | |
80992638 | 10200 | |
7a197a62 AK |
10201 | /* Override any GCC internal prototype to avoid an error. |
10202 | Use char because int might match the return type of a GCC | |
ad6254c5 | 10203 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
10204 | #ifdef __cplusplus |
10205 | extern "C" | |
10206 | #endif | |
25fbec5b | 10207 | char getmntent (); |
ad6254c5 AK |
10208 | int |
10209 | main () | |
10210 | { | |
25fbec5b | 10211 | return getmntent (); |
ad6254c5 AK |
10212 | ; |
10213 | return 0; | |
10214 | } | |
10215 | _ACEOF | |
25fbec5b AK |
10216 | for ac_lib in '' sun seq gen; do |
10217 | if test -z "$ac_lib"; then | |
10218 | ac_res="none required" | |
10219 | else | |
10220 | ac_res=-l$ac_lib | |
10221 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10222 | fi | |
10223 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10224 | if { (ac_try="$ac_link" |
10225 | case "(($ac_try" in | |
10226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10227 | *) ac_try_echo=$ac_try;; | |
10228 | esac | |
5556819a | 10229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10230 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10231 | ac_status=$? |
8a2fc586 AK |
10232 | grep -v '^ *+' conftest.er1 >conftest.err |
10233 | rm -f conftest.er1 | |
10234 | cat conftest.err >&5 | |
5556819a | 10235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10236 | (exit $ac_status); } && { |
10237 | test -z "$ac_c_werror_flag" || | |
10238 | test ! -s conftest.err | |
5556819a AK |
10239 | } && test -s conftest$ac_exeext && |
10240 | $as_test_x conftest$ac_exeext; then | |
25fbec5b | 10241 | ac_cv_search_getmntent=$ac_res |
80992638 | 10242 | else |
5556819a | 10243 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10244 | sed 's/^/| /' conftest.$ac_ext >&5 |
10245 | ||
25fbec5b | 10246 | |
795ca3e5 AK |
10247 | fi |
10248 | ||
25fbec5b AK |
10249 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10250 | conftest$ac_exeext | |
10251 | if test "${ac_cv_search_getmntent+set}" = set; then | |
10252 | break | |
795ca3e5 | 10253 | fi |
25fbec5b AK |
10254 | done |
10255 | if test "${ac_cv_search_getmntent+set}" = set; then | |
10256 | : | |
10257 | else | |
10258 | ac_cv_search_getmntent=no | |
10259 | fi | |
10260 | rm conftest.$ac_ext | |
10261 | LIBS=$ac_func_search_save_LIBS | |
10262 | fi | |
5556819a AK |
10263 | { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
10264 | echo "${ECHO_T}$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
10265 | ac_res=$ac_cv_search_getmntent |
10266 | if test "$ac_res" != no; then | |
10267 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
10268 | ac_cv_func_getmntent=yes | |
10269 | ||
10270 | cat >>confdefs.h <<\_ACEOF | |
2a9a80c9 | 10271 | #define HAVE_GETMNTENT 1 |
ad6254c5 | 10272 | _ACEOF |
795ca3e5 | 10273 | |
25fbec5b AK |
10274 | else |
10275 | ac_cv_func_getmntent=no | |
795ca3e5 | 10276 | fi |
795ca3e5 AK |
10277 | |
10278 | ||
ad6254c5 AK |
10279 | # AC_FUNC_REALLOC |
10280 | ||
10281 | ||
10282 | for ac_header in sys/select.h sys/socket.h | |
10283 | do | |
5556819a | 10284 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10285 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
10286 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10287 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10288 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 10289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10290 | fi |
5556819a AK |
10291 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10292 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10293 | echo "${ECHO_T}$ac_res" >&6; } | |
795ca3e5 | 10294 | else |
ad6254c5 | 10295 | # Is the header compilable? |
5556819a AK |
10296 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10297 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10298 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10299 | /* confdefs.h. */ |
10300 | _ACEOF | |
10301 | cat confdefs.h >>conftest.$ac_ext | |
10302 | cat >>conftest.$ac_ext <<_ACEOF | |
10303 | /* end confdefs.h. */ | |
10304 | $ac_includes_default | |
10305 | #include <$ac_header> | |
10306 | _ACEOF | |
10307 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10308 | if { (ac_try="$ac_compile" |
10309 | case "(($ac_try" in | |
10310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10311 | *) ac_try_echo=$ac_try;; | |
10312 | esac | |
5556819a | 10313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10314 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10315 | ac_status=$? |
8a2fc586 AK |
10316 | grep -v '^ *+' conftest.er1 >conftest.err |
10317 | rm -f conftest.er1 | |
10318 | cat conftest.err >&5 | |
5556819a | 10319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10320 | (exit $ac_status); } && { |
10321 | test -z "$ac_c_werror_flag" || | |
10322 | test ! -s conftest.err | |
10323 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 10324 | ac_header_compiler=yes |
80992638 | 10325 | else |
5556819a | 10326 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10327 | sed 's/^/| /' conftest.$ac_ext >&5 |
10328 | ||
7a197a62 | 10329 | ac_header_compiler=no |
ad6254c5 | 10330 | fi |
7a197a62 AK |
10331 | |
10332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
10333 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10334 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10335 | |
10336 | # Is the header present? | |
5556819a AK |
10337 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10338 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10339 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10340 | /* confdefs.h. */ |
10341 | _ACEOF | |
10342 | cat confdefs.h >>conftest.$ac_ext | |
10343 | cat >>conftest.$ac_ext <<_ACEOF | |
10344 | /* end confdefs.h. */ | |
10345 | #include <$ac_header> | |
10346 | _ACEOF | |
7a197a62 AK |
10347 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10348 | case "(($ac_try" in | |
10349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10350 | *) ac_try_echo=$ac_try;; | |
10351 | esac | |
5556819a | 10352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10353 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10354 | ac_status=$? |
10355 | grep -v '^ *+' conftest.er1 >conftest.err | |
10356 | rm -f conftest.er1 | |
10357 | cat conftest.err >&5 | |
5556819a | 10358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10359 | (exit $ac_status); } >/dev/null && { |
10360 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10361 | test ! -s conftest.err | |
10362 | }; then | |
ad6254c5 AK |
10363 | ac_header_preproc=yes |
10364 | else | |
5556819a | 10365 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10366 | sed 's/^/| /' conftest.$ac_ext >&5 |
10367 | ||
10368 | ac_header_preproc=no | |
10369 | fi | |
7a197a62 | 10370 | |
ad6254c5 | 10371 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
10372 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10373 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10374 | |
10375 | # So? What about this header? | |
8a2fc586 AK |
10376 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10377 | yes:no: ) | |
5556819a AK |
10378 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10379 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10380 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10381 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10382 | ac_header_preproc=yes |
ad6254c5 | 10383 | ;; |
8a2fc586 | 10384 | no:yes:* ) |
5556819a AK |
10385 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10386 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10387 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10388 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10389 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10390 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10391 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10392 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10393 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10394 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10395 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10396 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10397 | |
ad6254c5 AK |
10398 | ;; |
10399 | esac | |
5556819a AK |
10400 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10401 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10402 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 10403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10404 | else |
8a2fc586 | 10405 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 10406 | fi |
5556819a AK |
10407 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10408 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10409 | echo "${ECHO_T}$ac_res" >&6; } | |
8106cdd5 | 10410 | |
795ca3e5 | 10411 | fi |
5556819a | 10412 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10413 | cat >>confdefs.h <<_ACEOF |
5556819a | 10414 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10415 | _ACEOF |
10416 | ||
795ca3e5 AK |
10417 | fi |
10418 | ||
ad6254c5 AK |
10419 | done |
10420 | ||
5556819a AK |
10421 | { echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
10422 | echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; } | |
ad6254c5 | 10423 | if test "${ac_cv_func_select_args+set}" = set; then |
5556819a | 10424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
26e7f2e0 | 10425 | else |
ad6254c5 | 10426 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 10427 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
10428 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
10429 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10430 | /* confdefs.h. */ |
10431 | _ACEOF | |
10432 | cat confdefs.h >>conftest.$ac_ext | |
10433 | cat >>conftest.$ac_ext <<_ACEOF | |
10434 | /* end confdefs.h. */ | |
10435 | $ac_includes_default | |
25fbec5b | 10436 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
10437 | # include <sys/select.h> |
10438 | #endif | |
25fbec5b | 10439 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
10440 | # include <sys/socket.h> |
10441 | #endif | |
10442 | ||
10443 | int | |
10444 | main () | |
10445 | { | |
10446 | extern int select ($ac_arg1, | |
8a2fc586 AK |
10447 | $ac_arg234, $ac_arg234, $ac_arg234, |
10448 | $ac_arg5); | |
ad6254c5 AK |
10449 | ; |
10450 | return 0; | |
10451 | } | |
10452 | _ACEOF | |
10453 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10454 | if { (ac_try="$ac_compile" |
10455 | case "(($ac_try" in | |
10456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10457 | *) ac_try_echo=$ac_try;; | |
10458 | esac | |
5556819a | 10459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10460 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10461 | ac_status=$? |
8a2fc586 AK |
10462 | grep -v '^ *+' conftest.er1 >conftest.err |
10463 | rm -f conftest.er1 | |
10464 | cat conftest.err >&5 | |
5556819a | 10465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10466 | (exit $ac_status); } && { |
10467 | test -z "$ac_c_werror_flag" || | |
10468 | test ! -s conftest.err | |
10469 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10470 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
10471 | else | |
5556819a | 10472 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10473 | sed 's/^/| /' conftest.$ac_ext >&5 |
10474 | ||
7a197a62 | 10475 | |
ad6254c5 | 10476 | fi |
7a197a62 AK |
10477 | |
10478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
10479 | done |
10480 | done | |
10481 | done | |
10482 | # Provide a safe default value. | |
10483 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
10484 | ||
26e7f2e0 | 10485 | fi |
5556819a AK |
10486 | { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
10487 | echo "${ECHO_T}$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
10488 | ac_save_IFS=$IFS; IFS=',' |
10489 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
10490 | IFS=$ac_save_IFS | |
10491 | shift | |
10492 | ||
10493 | cat >>confdefs.h <<_ACEOF | |
10494 | #define SELECT_TYPE_ARG1 $1 | |
10495 | _ACEOF | |
10496 | ||
10497 | ||
10498 | cat >>confdefs.h <<_ACEOF | |
10499 | #define SELECT_TYPE_ARG234 ($2) | |
10500 | _ACEOF | |
10501 | ||
10502 | ||
10503 | cat >>confdefs.h <<_ACEOF | |
10504 | #define SELECT_TYPE_ARG5 ($3) | |
10505 | _ACEOF | |
10506 | ||
80992638 | 10507 | rm -f conftest* |
80992638 | 10508 | |
8106cdd5 | 10509 | fi |
ad6254c5 | 10510 | |
ad6254c5 AK |
10511 | if test x$CLUSTER != xnone; then |
10512 | ||
10513 | ||
10514 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 10515 | do |
5556819a | 10516 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10517 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
10518 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10519 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10520 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 10521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10522 | fi |
5556819a AK |
10523 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10524 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10525 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10526 | else |
10527 | # Is the header compilable? | |
5556819a AK |
10528 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10529 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10530 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10531 | /* confdefs.h. */ |
10532 | _ACEOF | |
10533 | cat confdefs.h >>conftest.$ac_ext | |
10534 | cat >>conftest.$ac_ext <<_ACEOF | |
10535 | /* end confdefs.h. */ | |
10536 | $ac_includes_default | |
10537 | #include <$ac_header> | |
10538 | _ACEOF | |
10539 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10540 | if { (ac_try="$ac_compile" |
10541 | case "(($ac_try" in | |
10542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10543 | *) ac_try_echo=$ac_try;; | |
10544 | esac | |
5556819a | 10545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10546 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10547 | ac_status=$? |
8a2fc586 AK |
10548 | grep -v '^ *+' conftest.er1 >conftest.err |
10549 | rm -f conftest.er1 | |
10550 | cat conftest.err >&5 | |
5556819a | 10551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10552 | (exit $ac_status); } && { |
10553 | test -z "$ac_c_werror_flag" || | |
10554 | test ! -s conftest.err | |
10555 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10556 | ac_header_compiler=yes |
10557 | else | |
5556819a | 10558 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10559 | sed 's/^/| /' conftest.$ac_ext >&5 |
10560 | ||
7a197a62 | 10561 | ac_header_compiler=no |
ad6254c5 | 10562 | fi |
7a197a62 AK |
10563 | |
10564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
10565 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10566 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10567 | |
10568 | # Is the header present? | |
5556819a AK |
10569 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10570 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10571 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10572 | /* confdefs.h. */ |
10573 | _ACEOF | |
10574 | cat confdefs.h >>conftest.$ac_ext | |
10575 | cat >>conftest.$ac_ext <<_ACEOF | |
10576 | /* end confdefs.h. */ | |
10577 | #include <$ac_header> | |
10578 | _ACEOF | |
7a197a62 AK |
10579 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10580 | case "(($ac_try" in | |
10581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10582 | *) ac_try_echo=$ac_try;; | |
10583 | esac | |
5556819a | 10584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10585 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10586 | ac_status=$? |
10587 | grep -v '^ *+' conftest.er1 >conftest.err | |
10588 | rm -f conftest.er1 | |
10589 | cat conftest.err >&5 | |
5556819a | 10590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10591 | (exit $ac_status); } >/dev/null && { |
10592 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10593 | test ! -s conftest.err | |
10594 | }; then | |
ad6254c5 AK |
10595 | ac_header_preproc=yes |
10596 | else | |
5556819a | 10597 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10598 | sed 's/^/| /' conftest.$ac_ext >&5 |
10599 | ||
10600 | ac_header_preproc=no | |
10601 | fi | |
7a197a62 | 10602 | |
ad6254c5 | 10603 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
10604 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10605 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10606 | |
10607 | # So? What about this header? | |
8a2fc586 AK |
10608 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10609 | yes:no: ) | |
5556819a AK |
10610 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10611 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10612 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10613 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10614 | ac_header_preproc=yes |
ad6254c5 | 10615 | ;; |
8a2fc586 | 10616 | no:yes:* ) |
5556819a AK |
10617 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10618 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10619 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10620 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10621 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10622 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10623 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10624 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10625 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10626 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10627 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10628 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10629 | |
ad6254c5 AK |
10630 | ;; |
10631 | esac | |
5556819a AK |
10632 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10633 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10634 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 10635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10636 | else |
8a2fc586 | 10637 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 10638 | fi |
5556819a AK |
10639 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10640 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10641 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10642 | |
10643 | fi | |
5556819a | 10644 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10645 | cat >>confdefs.h <<_ACEOF |
5556819a | 10646 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10647 | _ACEOF |
10648 | ||
80992638 | 10649 | else |
5556819a AK |
10650 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10651 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10652 | { (exit 1); exit 1; }; } |
b896caa1 | 10653 | fi |
ad6254c5 | 10654 | |
b896caa1 AK |
10655 | done |
10656 | ||
10657 | ||
ad6254c5 AK |
10658 | for ac_func in socket |
10659 | do | |
5556819a AK |
10660 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10661 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10662 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 10663 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 10664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 10665 | else |
ad6254c5 | 10666 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10667 | /* confdefs.h. */ |
10668 | _ACEOF | |
10669 | cat confdefs.h >>conftest.$ac_ext | |
10670 | cat >>conftest.$ac_ext <<_ACEOF | |
10671 | /* end confdefs.h. */ | |
8a2fc586 AK |
10672 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10673 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10674 | #define $ac_func innocuous_$ac_func | |
10675 | ||
ad6254c5 AK |
10676 | /* System header to define __stub macros and hopefully few prototypes, |
10677 | which can conflict with char $ac_func (); below. | |
10678 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10679 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10680 | |
ad6254c5 AK |
10681 | #ifdef __STDC__ |
10682 | # include <limits.h> | |
10683 | #else | |
10684 | # include <assert.h> | |
10685 | #endif | |
8a2fc586 AK |
10686 | |
10687 | #undef $ac_func | |
10688 | ||
7a197a62 AK |
10689 | /* Override any GCC internal prototype to avoid an error. |
10690 | Use char because int might match the return type of a GCC | |
10691 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10692 | #ifdef __cplusplus |
10693 | extern "C" | |
ad6254c5 | 10694 | #endif |
ad6254c5 AK |
10695 | char $ac_func (); |
10696 | /* The GNU C library defines this for functions which it implements | |
10697 | to always fail with ENOSYS. Some functions are actually named | |
10698 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10699 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 10700 | choke me |
ad6254c5 AK |
10701 | #endif |
10702 | ||
10703 | int | |
10704 | main () | |
10705 | { | |
7a197a62 | 10706 | return $ac_func (); |
ad6254c5 AK |
10707 | ; |
10708 | return 0; | |
10709 | } | |
10710 | _ACEOF | |
10711 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10712 | if { (ac_try="$ac_link" |
10713 | case "(($ac_try" in | |
10714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10715 | *) ac_try_echo=$ac_try;; | |
10716 | esac | |
5556819a | 10717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10718 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10719 | ac_status=$? |
8a2fc586 AK |
10720 | grep -v '^ *+' conftest.er1 >conftest.err |
10721 | rm -f conftest.er1 | |
10722 | cat conftest.err >&5 | |
5556819a | 10723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10724 | (exit $ac_status); } && { |
10725 | test -z "$ac_c_werror_flag" || | |
10726 | test ! -s conftest.err | |
5556819a AK |
10727 | } && test -s conftest$ac_exeext && |
10728 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
10729 | eval "$as_ac_var=yes" |
10730 | else | |
5556819a | 10731 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10732 | sed 's/^/| /' conftest.$ac_ext >&5 |
10733 | ||
7a197a62 | 10734 | eval "$as_ac_var=no" |
ad6254c5 | 10735 | fi |
7a197a62 | 10736 | |
25fbec5b | 10737 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10738 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10739 | fi |
5556819a AK |
10740 | ac_res=`eval echo '${'$as_ac_var'}'` |
10741 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10742 | echo "${ECHO_T}$ac_res" >&6; } | |
10743 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 10744 | cat >>confdefs.h <<_ACEOF |
5556819a | 10745 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
10746 | _ACEOF |
10747 | ||
10748 | else | |
5556819a AK |
10749 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10750 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
10751 | { (exit 1); exit 1; }; } |
10752 | fi | |
10753 | done | |
10754 | ||
10755 | fi | |
10756 | ||
10757 | if test x$HAVE_LIBDL = xyes; then | |
10758 | ||
10759 | for ac_header in dlfcn.h | |
10760 | do | |
5556819a | 10761 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10762 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
10763 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10764 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10765 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 10766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10767 | fi |
5556819a AK |
10768 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10769 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10770 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10771 | else |
10772 | # Is the header compilable? | |
5556819a AK |
10773 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10774 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10775 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10776 | /* confdefs.h. */ |
10777 | _ACEOF | |
10778 | cat confdefs.h >>conftest.$ac_ext | |
10779 | cat >>conftest.$ac_ext <<_ACEOF | |
10780 | /* end confdefs.h. */ | |
10781 | $ac_includes_default | |
10782 | #include <$ac_header> | |
10783 | _ACEOF | |
10784 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10785 | if { (ac_try="$ac_compile" |
10786 | case "(($ac_try" in | |
10787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10788 | *) ac_try_echo=$ac_try;; | |
10789 | esac | |
5556819a | 10790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10791 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10792 | ac_status=$? |
8a2fc586 AK |
10793 | grep -v '^ *+' conftest.er1 >conftest.err |
10794 | rm -f conftest.er1 | |
10795 | cat conftest.err >&5 | |
5556819a | 10796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10797 | (exit $ac_status); } && { |
10798 | test -z "$ac_c_werror_flag" || | |
10799 | test ! -s conftest.err | |
10800 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10801 | ac_header_compiler=yes |
10802 | else | |
5556819a | 10803 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10804 | sed 's/^/| /' conftest.$ac_ext >&5 |
10805 | ||
7a197a62 | 10806 | ac_header_compiler=no |
ad6254c5 | 10807 | fi |
7a197a62 AK |
10808 | |
10809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
10810 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10811 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10812 | |
10813 | # Is the header present? | |
5556819a AK |
10814 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10815 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10816 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10817 | /* confdefs.h. */ |
10818 | _ACEOF | |
10819 | cat confdefs.h >>conftest.$ac_ext | |
10820 | cat >>conftest.$ac_ext <<_ACEOF | |
10821 | /* end confdefs.h. */ | |
10822 | #include <$ac_header> | |
10823 | _ACEOF | |
7a197a62 AK |
10824 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10825 | case "(($ac_try" in | |
10826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10827 | *) ac_try_echo=$ac_try;; | |
10828 | esac | |
5556819a | 10829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10830 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10831 | ac_status=$? |
10832 | grep -v '^ *+' conftest.er1 >conftest.err | |
10833 | rm -f conftest.er1 | |
10834 | cat conftest.err >&5 | |
5556819a | 10835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10836 | (exit $ac_status); } >/dev/null && { |
10837 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10838 | test ! -s conftest.err | |
10839 | }; then | |
ad6254c5 AK |
10840 | ac_header_preproc=yes |
10841 | else | |
5556819a | 10842 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10843 | sed 's/^/| /' conftest.$ac_ext >&5 |
10844 | ||
10845 | ac_header_preproc=no | |
10846 | fi | |
7a197a62 | 10847 | |
ad6254c5 | 10848 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
10849 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10850 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10851 | |
10852 | # So? What about this header? | |
8a2fc586 AK |
10853 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10854 | yes:no: ) | |
5556819a AK |
10855 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10856 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10857 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10858 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10859 | ac_header_preproc=yes |
ad6254c5 | 10860 | ;; |
8a2fc586 | 10861 | no:yes:* ) |
5556819a AK |
10862 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10863 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10864 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10865 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10866 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10867 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10868 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10869 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10870 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10871 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10872 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10873 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10874 | |
ad6254c5 AK |
10875 | ;; |
10876 | esac | |
5556819a AK |
10877 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10878 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10879 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 10880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10881 | else |
8a2fc586 | 10882 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 10883 | fi |
5556819a AK |
10884 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10885 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10886 | echo "${ECHO_T}$ac_res" >&6; } | |
80992638 | 10887 | |
8106cdd5 | 10888 | fi |
5556819a | 10889 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10890 | cat >>confdefs.h <<_ACEOF |
5556819a | 10891 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 10892 | _ACEOF |
795ca3e5 AK |
10893 | |
10894 | else | |
5556819a AK |
10895 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10896 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10897 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
10898 | fi |
10899 | ||
ad6254c5 | 10900 | done |
80992638 | 10901 | |
ad6254c5 | 10902 | fi |
80992638 | 10903 | |
ad6254c5 | 10904 | if test x$INTL = xyes; then |
83912faa | 10905 | |
ad6254c5 AK |
10906 | for ac_header in libintl.h |
10907 | do | |
5556819a | 10908 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10909 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
10910 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10911 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10912 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 10913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10914 | fi |
5556819a AK |
10915 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10916 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10917 | echo "${ECHO_T}$ac_res" >&6; } | |
83912faa | 10918 | else |
ad6254c5 | 10919 | # Is the header compilable? |
5556819a AK |
10920 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10921 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10922 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10923 | /* confdefs.h. */ |
10924 | _ACEOF | |
10925 | cat confdefs.h >>conftest.$ac_ext | |
10926 | cat >>conftest.$ac_ext <<_ACEOF | |
10927 | /* end confdefs.h. */ | |
10928 | $ac_includes_default | |
10929 | #include <$ac_header> | |
10930 | _ACEOF | |
10931 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10932 | if { (ac_try="$ac_compile" |
10933 | case "(($ac_try" in | |
10934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10935 | *) ac_try_echo=$ac_try;; | |
10936 | esac | |
5556819a | 10937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10938 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10939 | ac_status=$? |
8a2fc586 AK |
10940 | grep -v '^ *+' conftest.er1 >conftest.err |
10941 | rm -f conftest.er1 | |
10942 | cat conftest.err >&5 | |
5556819a | 10943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10944 | (exit $ac_status); } && { |
10945 | test -z "$ac_c_werror_flag" || | |
10946 | test ! -s conftest.err | |
10947 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10948 | ac_header_compiler=yes |
10949 | else | |
5556819a | 10950 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10951 | sed 's/^/| /' conftest.$ac_ext >&5 |
10952 | ||
7a197a62 | 10953 | ac_header_compiler=no |
ad6254c5 | 10954 | fi |
7a197a62 AK |
10955 | |
10956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
10957 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10958 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10959 | |
10960 | # Is the header present? | |
5556819a AK |
10961 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10962 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10963 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10964 | /* confdefs.h. */ |
10965 | _ACEOF | |
10966 | cat confdefs.h >>conftest.$ac_ext | |
10967 | cat >>conftest.$ac_ext <<_ACEOF | |
10968 | /* end confdefs.h. */ | |
10969 | #include <$ac_header> | |
10970 | _ACEOF | |
7a197a62 AK |
10971 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10972 | case "(($ac_try" in | |
10973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10974 | *) ac_try_echo=$ac_try;; | |
10975 | esac | |
5556819a | 10976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10977 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10978 | ac_status=$? |
10979 | grep -v '^ *+' conftest.er1 >conftest.err | |
10980 | rm -f conftest.er1 | |
10981 | cat conftest.err >&5 | |
5556819a | 10982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10983 | (exit $ac_status); } >/dev/null && { |
10984 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10985 | test ! -s conftest.err | |
10986 | }; then | |
ad6254c5 AK |
10987 | ac_header_preproc=yes |
10988 | else | |
5556819a | 10989 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10990 | sed 's/^/| /' conftest.$ac_ext >&5 |
10991 | ||
10992 | ac_header_preproc=no | |
10993 | fi | |
7a197a62 | 10994 | |
ad6254c5 | 10995 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
10996 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10997 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10998 | |
10999 | # So? What about this header? | |
8a2fc586 AK |
11000 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11001 | yes:no: ) | |
5556819a AK |
11002 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11003 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11004 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11005 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11006 | ac_header_preproc=yes |
ad6254c5 | 11007 | ;; |
8a2fc586 | 11008 | no:yes:* ) |
5556819a AK |
11009 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11010 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11011 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11012 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11013 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11014 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11015 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11016 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11017 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11018 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11019 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11020 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11021 | |
ad6254c5 AK |
11022 | ;; |
11023 | esac | |
5556819a AK |
11024 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11025 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11026 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 11027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
80992638 | 11028 | else |
8a2fc586 | 11029 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 11030 | fi |
5556819a AK |
11031 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11032 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11033 | echo "${ECHO_T}$ac_res" >&6; } | |
83912faa | 11034 | |
69792976 | 11035 | fi |
5556819a | 11036 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 11037 | cat >>confdefs.h <<_ACEOF |
5556819a | 11038 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11039 | _ACEOF |
69792976 | 11040 | |
69792976 | 11041 | else |
5556819a AK |
11042 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11043 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11044 | { (exit 1); exit 1; }; } |
80992638 AK |
11045 | fi |
11046 | ||
ad6254c5 | 11047 | done |
69792976 | 11048 | |
ad6254c5 AK |
11049 | fi |
11050 | ||
ad6254c5 AK |
11051 | |
11052 | for ac_header in libdevmapper.h | |
11053 | do | |
5556819a | 11054 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11055 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
11056 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11057 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11058 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 11059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11060 | fi |
5556819a AK |
11061 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11062 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11063 | echo "${ECHO_T}$ac_res" >&6; } | |
69792976 | 11064 | else |
ad6254c5 | 11065 | # Is the header compilable? |
5556819a AK |
11066 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11067 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 11068 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11069 | /* confdefs.h. */ |
11070 | _ACEOF | |
11071 | cat confdefs.h >>conftest.$ac_ext | |
11072 | cat >>conftest.$ac_ext <<_ACEOF | |
11073 | /* end confdefs.h. */ | |
11074 | $ac_includes_default | |
11075 | #include <$ac_header> | |
11076 | _ACEOF | |
11077 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11078 | if { (ac_try="$ac_compile" |
11079 | case "(($ac_try" in | |
11080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11081 | *) ac_try_echo=$ac_try;; | |
11082 | esac | |
5556819a | 11083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11084 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11085 | ac_status=$? |
8a2fc586 AK |
11086 | grep -v '^ *+' conftest.er1 >conftest.err |
11087 | rm -f conftest.er1 | |
11088 | cat conftest.err >&5 | |
5556819a | 11089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11090 | (exit $ac_status); } && { |
11091 | test -z "$ac_c_werror_flag" || | |
11092 | test ! -s conftest.err | |
11093 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11094 | ac_header_compiler=yes |
11095 | else | |
5556819a | 11096 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11097 | sed 's/^/| /' conftest.$ac_ext >&5 |
11098 | ||
7a197a62 | 11099 | ac_header_compiler=no |
ad6254c5 | 11100 | fi |
7a197a62 AK |
11101 | |
11102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
11103 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11104 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11105 | |
11106 | # Is the header present? | |
5556819a AK |
11107 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11108 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 11109 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11110 | /* confdefs.h. */ |
11111 | _ACEOF | |
11112 | cat confdefs.h >>conftest.$ac_ext | |
11113 | cat >>conftest.$ac_ext <<_ACEOF | |
11114 | /* end confdefs.h. */ | |
11115 | #include <$ac_header> | |
11116 | _ACEOF | |
7a197a62 AK |
11117 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11118 | case "(($ac_try" in | |
11119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11120 | *) ac_try_echo=$ac_try;; | |
11121 | esac | |
5556819a | 11122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11123 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11124 | ac_status=$? |
11125 | grep -v '^ *+' conftest.er1 >conftest.err | |
11126 | rm -f conftest.er1 | |
11127 | cat conftest.err >&5 | |
5556819a | 11128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11129 | (exit $ac_status); } >/dev/null && { |
11130 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11131 | test ! -s conftest.err | |
11132 | }; then | |
ad6254c5 AK |
11133 | ac_header_preproc=yes |
11134 | else | |
5556819a | 11135 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11136 | sed 's/^/| /' conftest.$ac_ext >&5 |
11137 | ||
11138 | ac_header_preproc=no | |
11139 | fi | |
7a197a62 | 11140 | |
ad6254c5 | 11141 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
11142 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11143 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11144 | |
11145 | # So? What about this header? | |
8a2fc586 AK |
11146 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11147 | yes:no: ) | |
5556819a AK |
11148 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11149 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11150 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11151 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11152 | ac_header_preproc=yes |
ad6254c5 | 11153 | ;; |
8a2fc586 | 11154 | no:yes:* ) |
5556819a AK |
11155 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11156 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11157 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11158 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11159 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11160 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11161 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11162 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11163 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11164 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11165 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11166 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11167 | |
ad6254c5 AK |
11168 | ;; |
11169 | esac | |
5556819a AK |
11170 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11171 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11172 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 11173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
69792976 | 11174 | else |
8a2fc586 | 11175 | eval "$as_ac_Header=\$ac_header_preproc" |
69792976 | 11176 | fi |
5556819a AK |
11177 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11178 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11179 | echo "${ECHO_T}$ac_res" >&6; } | |
69792976 | 11180 | |
ad6254c5 | 11181 | fi |
5556819a | 11182 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 11183 | cat >>confdefs.h <<_ACEOF |
5556819a | 11184 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11185 | _ACEOF |
69792976 | 11186 | |
69792976 | 11187 | else |
5556819a AK |
11188 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11189 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11190 | { (exit 1); exit 1; }; } |
83912faa AK |
11191 | fi |
11192 | ||
ad6254c5 AK |
11193 | done |
11194 | ||
4a7f3eb2 | 11195 | |
ad6254c5 AK |
11196 | if test x$HAVE_SELINUX = xyes; then |
11197 | ||
11198 | for ac_header in selinux/selinux.h | |
11199 | do | |
5556819a | 11200 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11201 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a AK |
11202 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11203 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11204 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 11205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11206 | fi |
5556819a AK |
11207 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11208 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11209 | echo "${ECHO_T}$ac_res" >&6; } | |
4a7f3eb2 | 11210 | else |
ad6254c5 | 11211 | # Is the header compilable? |
5556819a AK |
11212 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11213 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 11214 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11215 | /* confdefs.h. */ |
11216 | _ACEOF | |
11217 | cat confdefs.h >>conftest.$ac_ext | |
11218 | cat >>conftest.$ac_ext <<_ACEOF | |
11219 | /* end confdefs.h. */ | |
11220 | $ac_includes_default | |
11221 | #include <$ac_header> | |
11222 | _ACEOF | |
11223 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11224 | if { (ac_try="$ac_compile" |
11225 | case "(($ac_try" in | |
11226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11227 | *) ac_try_echo=$ac_try;; | |
11228 | esac | |
5556819a | 11229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11230 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11231 | ac_status=$? |
8a2fc586 AK |
11232 | grep -v '^ *+' conftest.er1 >conftest.err |
11233 | rm -f conftest.er1 | |
11234 | cat conftest.err >&5 | |
5556819a | 11235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11236 | (exit $ac_status); } && { |
11237 | test -z "$ac_c_werror_flag" || | |
11238 | test ! -s conftest.err | |
11239 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11240 | ac_header_compiler=yes |
11241 | else | |
5556819a | 11242 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11243 | sed 's/^/| /' conftest.$ac_ext >&5 |
11244 | ||
7a197a62 | 11245 | ac_header_compiler=no |
ad6254c5 | 11246 | fi |
7a197a62 AK |
11247 | |
11248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5556819a AK |
11249 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11250 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11251 | |
11252 | # Is the header present? | |
5556819a AK |
11253 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11254 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 11255 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11256 | /* confdefs.h. */ |
11257 | _ACEOF | |
11258 | cat confdefs.h >>conftest.$ac_ext | |
11259 | cat >>conftest.$ac_ext <<_ACEOF | |
11260 | /* end confdefs.h. */ | |
11261 | #include <$ac_header> | |
11262 | _ACEOF | |
7a197a62 AK |
11263 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11264 | case "(($ac_try" in | |
11265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11266 | *) ac_try_echo=$ac_try;; | |
11267 | esac | |
5556819a | 11268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11269 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11270 | ac_status=$? |
11271 | grep -v '^ *+' conftest.er1 >conftest.err | |
11272 | rm -f conftest.er1 | |
11273 | cat conftest.err >&5 | |
5556819a | 11274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11275 | (exit $ac_status); } >/dev/null && { |
11276 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11277 | test ! -s conftest.err | |
11278 | }; then | |
ad6254c5 AK |
11279 | ac_header_preproc=yes |
11280 | else | |
5556819a | 11281 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11282 | sed 's/^/| /' conftest.$ac_ext >&5 |
11283 | ||
11284 | ac_header_preproc=no | |
11285 | fi | |
7a197a62 | 11286 | |
ad6254c5 | 11287 | rm -f conftest.err conftest.$ac_ext |
5556819a AK |
11288 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11289 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11290 | |
11291 | # So? What about this header? | |
8a2fc586 AK |
11292 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11293 | yes:no: ) | |
5556819a AK |
11294 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11295 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11296 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11297 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11298 | ac_header_preproc=yes |
ad6254c5 | 11299 | ;; |
8a2fc586 | 11300 | no:yes:* ) |
5556819a AK |
11301 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11302 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11303 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11304 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11305 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11306 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11307 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11308 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11309 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11310 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11311 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11312 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11313 | |
ad6254c5 AK |
11314 | ;; |
11315 | esac | |
5556819a AK |
11316 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11317 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11318 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5556819a | 11319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11320 | else |
8a2fc586 | 11321 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 11322 | fi |
5556819a AK |
11323 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11324 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11325 | echo "${ECHO_T}$ac_res" >&6; } | |
4a7f3eb2 | 11326 | |
ad6254c5 | 11327 | fi |
5556819a | 11328 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 11329 | cat >>confdefs.h <<_ACEOF |
5556819a | 11330 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11331 | _ACEOF |
0a62c911 | 11332 | |
0a62c911 | 11333 | else |
5556819a AK |
11334 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11335 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11336 | { (exit 1); exit 1; }; } |
80992638 AK |
11337 | fi |
11338 | ||
ad6254c5 | 11339 | done |
0a62c911 | 11340 | |
ad6254c5 | 11341 | fi |
0a62c911 | 11342 | |
a653923f AK |
11343 | ################################################################################ |
11344 | # Extract the first word of "modprobe", so it can be a program name with args. | |
11345 | set dummy modprobe; ac_word=$2 | |
5556819a AK |
11346 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11347 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
72b2cb61 | 11348 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
5556819a | 11349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
72b2cb61 AK |
11350 | else |
11351 | case $MODPROBE_CMD in | |
11352 | [\\/]* | ?:[\\/]*) | |
11353 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
11354 | ;; | |
11355 | *) | |
11356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11357 | for as_dir in $PATH | |
11358 | do | |
11359 | IFS=$as_save_IFS | |
11360 | test -z "$as_dir" && as_dir=. | |
11361 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 11362 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 11363 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
5556819a | 11364 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
11365 | break 2 |
11366 | fi | |
11367 | done | |
11368 | done | |
7a197a62 | 11369 | IFS=$as_save_IFS |
72b2cb61 AK |
11370 | |
11371 | ;; | |
11372 | esac | |
11373 | fi | |
11374 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 11375 | if test -n "$MODPROBE_CMD"; then |
5556819a AK |
11376 | { echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
11377 | echo "${ECHO_T}$MODPROBE_CMD" >&6; } | |
72b2cb61 | 11378 | else |
5556819a AK |
11379 | { echo "$as_me:$LINENO: result: no" >&5 |
11380 | echo "${ECHO_T}no" >&6; } | |
72b2cb61 AK |
11381 | fi |
11382 | ||
a653923f | 11383 | |
7a197a62 | 11384 | |
a653923f | 11385 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
11386 | |
11387 | cat >>confdefs.h <<_ACEOF | |
11388 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
11389 | _ACEOF | |
11390 | ||
a653923f AK |
11391 | fi |
11392 | ||
80992638 | 11393 | ################################################################################ |
d0191583 | 11394 | LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 11395 | |
80992638 | 11396 | ################################################################################ |
fae0c576 | 11397 | |
83912faa | 11398 | |
795ca3e5 AK |
11399 | |
11400 | ||
11401 | ||
11402 | ||
11403 | ||
11404 | ||
5a52dca9 | 11405 | |
8ef2b021 | 11406 | |
199e490e | 11407 | |
69792976 AK |
11408 | |
11409 | ||
11410 | ||
d0191583 JM |
11411 | # FIXME: rename to LVM_USE_DMEVENTD |
11412 | ||
69792976 | 11413 | |
8106cdd5 AK |
11414 | |
11415 | ||
11416 | ||
11417 | ||
11418 | ||
d68a82ec | 11419 | |
036f273a | 11420 | |
7d1552c9 | 11421 | |
8106cdd5 | 11422 | |
0a62c911 | 11423 | |
8106cdd5 | 11424 | |
4a7f3eb2 | 11425 | |
4922197a AK |
11426 | |
11427 | ||
d8ac0fbc | 11428 | |
1a9ea74d | 11429 | |
8a2fc586 AK |
11430 | |
11431 | ||
d0191583 JM |
11432 | |
11433 | # FIXME: rename to LVM_CONF_DIR | |
11434 | ||
11435 | ||
11436 | ||
11437 | ||
11438 | ||
8a2fc586 | 11439 | |
8ce0cbda | 11440 | |
8b1a3214 | 11441 | |
33f732c5 | 11442 | |
66e941e8 | 11443 | |
d3c8211f AK |
11444 | |
11445 | ||
80992638 | 11446 | ################################################################################ |
d0191583 | 11447 | ac_config_files="$ac_config_files Makefile make.tmpl include/Makefile lib/Makefile man/Makefile po/Makefile dmeventd/Makefile daemons/Makefile daemons/clvmd/Makefile dmeventd/mirror/Makefile dmeventd/snapshot/Makefile doc/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile test/Makefile scripts/Makefile tools/Makefile tools/version.h" |
7a197a62 | 11448 | |
ad6254c5 | 11449 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
11450 | # This file is a shell script that caches the results of configure |
11451 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
11452 | # scripts and configure runs, see configure's option --config-cache. |
11453 | # It is not useful on other systems. If it contains results you don't | |
11454 | # want to keep, you may remove or edit it. | |
795ca3e5 | 11455 | # |
ad6254c5 AK |
11456 | # config.status only pays attention to the cache file if you give it |
11457 | # the --recheck option to rerun configure. | |
795ca3e5 | 11458 | # |
ad6254c5 AK |
11459 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
11460 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11461 | # following values. | |
11462 | ||
11463 | _ACEOF | |
11464 | ||
795ca3e5 AK |
11465 | # The following way of writing the cache mishandles newlines in values, |
11466 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 11467 | # So, we kill variables containing newlines. |
795ca3e5 AK |
11468 | # Ultrix sh set writes to stderr and can't be redirected directly, |
11469 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
11470 | ( |
11471 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
11472 | eval ac_val=\$$ac_var | |
11473 | case $ac_val in #( | |
11474 | *${as_nl}*) | |
11475 | case $ac_var in #( | |
5556819a AK |
11476 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
11477 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
7a197a62 AK |
11478 | esac |
11479 | case $ac_var in #( | |
11480 | _ | IFS | as_nl) ;; #( | |
11481 | *) $as_unset $ac_var ;; | |
11482 | esac ;; | |
11483 | esac | |
11484 | done | |
11485 | ||
ad6254c5 | 11486 | (set) 2>&1 | |
7a197a62 AK |
11487 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
11488 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
11489 | # `set' does not quote correctly, so add quotes (double-quote |
11490 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11491 | sed -n \ | |
8a2fc586 AK |
11492 | "s/'/'\\\\''/g; |
11493 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 11494 | ;; #( |
ad6254c5 AK |
11495 | *) |
11496 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 11497 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 11498 | ;; |
7a197a62 AK |
11499 | esac | |
11500 | sort | |
11501 | ) | | |
ad6254c5 | 11502 | sed ' |
7a197a62 | 11503 | /^ac_cv_env_/b end |
ad6254c5 | 11504 | t clear |
7a197a62 | 11505 | :clear |
ad6254c5 AK |
11506 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
11507 | t end | |
7a197a62 AK |
11508 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
11509 | :end' >>confcache | |
11510 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
11511 | if test -w "$cache_file"; then | |
11512 | test "x$cache_file" != "x/dev/null" && | |
5556819a AK |
11513 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
11514 | echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 11515 | cat confcache >$cache_file |
795ca3e5 | 11516 | else |
5556819a AK |
11517 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
11518 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
11519 | fi |
11520 | fi | |
11521 | rm -f confcache | |
11522 | ||
795ca3e5 AK |
11523 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
11524 | # Let make expand exec_prefix. | |
11525 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11526 | ||
72b2cb61 | 11527 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
11528 | |
11529 | ac_libobjs= | |
11530 | ac_ltlibobjs= | |
11531 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11532 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 11533 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
5556819a | 11534 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
11535 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
11536 | # will be set to the directory where LIBOBJS objects are built. | |
11537 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
11538 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
11539 | done |
11540 | LIBOBJS=$ac_libobjs | |
80992638 | 11541 | |
ad6254c5 AK |
11542 | LTLIBOBJS=$ac_ltlibobjs |
11543 | ||
11544 | ||
11545 | ||
11546 | : ${CONFIG_STATUS=./config.status} | |
11547 | ac_clean_files_save=$ac_clean_files | |
11548 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5556819a AK |
11549 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
11550 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
11551 | cat >$CONFIG_STATUS <<_ACEOF | |
ad6254c5 AK |
11552 | #! $SHELL |
11553 | # Generated by $as_me. | |
795ca3e5 | 11554 | # Run this file to recreate the current configuration. |
795ca3e5 | 11555 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
11556 | # configure, is in config.log if it exists. |
11557 | ||
11558 | debug=false | |
11559 | ac_cs_recheck=false | |
11560 | ac_cs_silent=false | |
11561 | SHELL=\${CONFIG_SHELL-$SHELL} | |
11562 | _ACEOF | |
11563 | ||
5556819a | 11564 | cat >>$CONFIG_STATUS <<\_ACEOF |
ad6254c5 AK |
11565 | ## --------------------- ## |
11566 | ## M4sh Initialization. ## | |
11567 | ## --------------------- ## | |
11568 | ||
25fbec5b AK |
11569 | # Be more Bourne compatible |
11570 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
11571 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
11572 | emulate sh | |
11573 | NULLCMD=: | |
5556819a | 11574 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
ad6254c5 AK |
11575 | # is contrary to our usage. Disable this feature. |
11576 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
11577 | setopt NO_GLOB_SUBST |
11578 | else | |
25fbec5b AK |
11579 | case `(set -o) 2>/dev/null` in |
11580 | *posix*) set -o posix ;; | |
11581 | esac | |
11582 | ||
7a197a62 | 11583 | fi |
25fbec5b AK |
11584 | |
11585 | ||
7a197a62 AK |
11586 | |
11587 | ||
11588 | # PATH needs CR | |
11589 | # Avoid depending upon Character Ranges. | |
11590 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
11591 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
11592 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
11593 | as_cr_digits='0123456789' | |
11594 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11595 | ||
fddafd51 ZK |
11596 | # The user is always right. |
11597 | if test "${PATH_SEPARATOR+set}" != set; then | |
5556819a AK |
11598 | echo "#! /bin/sh" >conf$$.sh |
11599 | echo "exit 0" >>conf$$.sh | |
11600 | chmod +x conf$$.sh | |
11601 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11602 | PATH_SEPARATOR=';' | |
11603 | else | |
11604 | PATH_SEPARATOR=: | |
11605 | fi | |
11606 | rm -f conf$$.sh | |
ad6254c5 AK |
11607 | fi |
11608 | ||
11609 | # Support unset when possible. | |
8a2fc586 | 11610 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
11611 | as_unset=unset |
11612 | else | |
11613 | as_unset=false | |
11614 | fi | |
8106cdd5 | 11615 | |
ad6254c5 | 11616 | |
7a197a62 AK |
11617 | # IFS |
11618 | # We need space, tab and new line, in precisely that order. Quoting is | |
11619 | # there to prevent editors from complaining about space-tab. | |
11620 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
11621 | # splitting by setting IFS to empty value.) | |
5556819a AK |
11622 | as_nl=' |
11623 | ' | |
7a197a62 AK |
11624 | IFS=" "" $as_nl" |
11625 | ||
11626 | # Find who we are. Look in the path if we contain no directory separator. | |
11627 | case $0 in | |
11628 | *[\\/]* ) as_myself=$0 ;; | |
11629 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11630 | for as_dir in $PATH | |
11631 | do | |
11632 | IFS=$as_save_IFS | |
11633 | test -z "$as_dir" && as_dir=. | |
11634 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
11635 | done | |
11636 | IFS=$as_save_IFS | |
11637 | ||
11638 | ;; | |
11639 | esac | |
11640 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
11641 | # in which case we are not to be found in the path. | |
11642 | if test "x$as_myself" = x; then | |
11643 | as_myself=$0 | |
11644 | fi | |
11645 | if test ! -f "$as_myself"; then | |
5556819a | 11646 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
11647 | { (exit 1); exit 1; } |
11648 | fi | |
11649 | ||
ad6254c5 | 11650 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
11651 | for as_var in ENV MAIL MAILPATH |
11652 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
11653 | done | |
ad6254c5 AK |
11654 | PS1='$ ' |
11655 | PS2='> ' | |
11656 | PS4='+ ' | |
11657 | ||
11658 | # NLS nuisances. | |
5556819a AK |
11659 | for as_var in \ |
11660 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
11661 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
11662 | LC_TELEPHONE LC_TIME | |
11663 | do | |
11664 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
11665 | eval $as_var=C; export $as_var | |
11666 | else | |
11667 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
11668 | fi | |
11669 | done | |
8106cdd5 | 11670 | |
ad6254c5 | 11671 | # Required to use basename. |
7a197a62 AK |
11672 | if expr a : '\(a\)' >/dev/null 2>&1 && |
11673 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
11674 | as_expr=expr |
11675 | else | |
11676 | as_expr=false | |
11677 | fi | |
8106cdd5 | 11678 | |
7a197a62 | 11679 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
11680 | as_basename=basename |
11681 | else | |
11682 | as_basename=false | |
11683 | fi | |
11684 | ||
11685 | ||
11686 | # Name of the executable. | |
7a197a62 | 11687 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
11688 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
11689 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 11690 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
5556819a | 11691 | echo X/"$0" | |
7a197a62 AK |
11692 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
11693 | s//\1/ | |
11694 | q | |
11695 | } | |
11696 | /^X\/\(\/\/\)$/{ | |
11697 | s//\1/ | |
11698 | q | |
11699 | } | |
11700 | /^X\/\(\/\).*/{ | |
11701 | s//\1/ | |
11702 | q | |
11703 | } | |
11704 | s/.*/./; q'` | |
ad6254c5 | 11705 | |
7a197a62 AK |
11706 | # CDPATH. |
11707 | $as_unset CDPATH | |
ad6254c5 AK |
11708 | |
11709 | ||
ad6254c5 | 11710 | |
ad6254c5 AK |
11711 | as_lineno_1=$LINENO |
11712 | as_lineno_2=$LINENO | |
ad6254c5 | 11713 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 11714 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 11715 | |
ad6254c5 AK |
11716 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
11717 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
11718 | # line-number line after each line using $LINENO; the second 'sed' |
11719 | # does the real work. The second script uses 'N' to pair each | |
11720 | # line-number line with the line containing $LINENO, and appends | |
11721 | # trailing '-' during substitution so that $LINENO is not a special | |
11722 | # case at line end. | |
ad6254c5 | 11723 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
11724 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
11725 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
11726 | sed -n ' | |
11727 | p | |
11728 | /[$]LINENO/= | |
11729 | ' <$as_myself | | |
ad6254c5 | 11730 | sed ' |
7a197a62 AK |
11731 | s/[$]LINENO.*/&-/ |
11732 | t lineno | |
11733 | b | |
11734 | :lineno | |
ad6254c5 | 11735 | N |
7a197a62 AK |
11736 | :loop |
11737 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 11738 | t loop |
7a197a62 | 11739 | s/-\n.*// |
ad6254c5 | 11740 | ' >$as_me.lineno && |
7a197a62 | 11741 | chmod +x "$as_me.lineno" || |
5556819a | 11742 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
11743 | { (exit 1); exit 1; }; } |
11744 | ||
11745 | # Don't try to exec as it changes $[0], causing all sort of problems | |
11746 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
11747 | # original and so on. Autoconf is especially sensitive to this). |
11748 | . "./$as_me.lineno" | |
ad6254c5 AK |
11749 | # Exit status is that of the last command. |
11750 | exit | |
11751 | } | |
11752 | ||
11753 | ||
7a197a62 AK |
11754 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
11755 | as_dirname=dirname | |
11756 | else | |
11757 | as_dirname=false | |
11758 | fi | |
11759 | ||
11760 | ECHO_C= ECHO_N= ECHO_T= | |
11761 | case `echo -n x` in | |
11762 | -n*) | |
11763 | case `echo 'x\c'` in | |
11764 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
11765 | *) ECHO_C='\c';; | |
11766 | esac;; | |
11767 | *) | |
11768 | ECHO_N='-n';; | |
ad6254c5 | 11769 | esac |
5556819a | 11770 | |
7a197a62 AK |
11771 | if expr a : '\(a\)' >/dev/null 2>&1 && |
11772 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
11773 | as_expr=expr |
11774 | else | |
11775 | as_expr=false | |
11776 | fi | |
80992638 | 11777 | |
ad6254c5 | 11778 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
11779 | if test -d conf$$.dir; then |
11780 | rm -f conf$$.dir/conf$$.file | |
11781 | else | |
11782 | rm -f conf$$.dir | |
5556819a AK |
11783 | mkdir conf$$.dir |
11784 | fi | |
11785 | echo >conf$$.file | |
11786 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
11787 | as_ln_s='ln -s' | |
11788 | # ... but there are two gotchas: | |
11789 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
11790 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
11791 | # In both cases, we have to default to `cp -p'. | |
11792 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
ad6254c5 | 11793 | as_ln_s='cp -p' |
5556819a AK |
11794 | elif ln conf$$.file conf$$ 2>/dev/null; then |
11795 | as_ln_s=ln | |
ad6254c5 AK |
11796 | else |
11797 | as_ln_s='cp -p' | |
11798 | fi | |
7a197a62 AK |
11799 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
11800 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 11801 | |
ad6254c5 AK |
11802 | if mkdir -p . 2>/dev/null; then |
11803 | as_mkdir_p=: | |
11804 | else | |
8a2fc586 | 11805 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
11806 | as_mkdir_p=false |
11807 | fi | |
11808 | ||
25fbec5b AK |
11809 | if test -x / >/dev/null 2>&1; then |
11810 | as_test_x='test -x' | |
7a197a62 | 11811 | else |
25fbec5b AK |
11812 | if ls -dL / >/dev/null 2>&1; then |
11813 | as_ls_L_option=L | |
11814 | else | |
11815 | as_ls_L_option= | |
11816 | fi | |
11817 | as_test_x=' | |
11818 | eval sh -c '\'' | |
11819 | if test -d "$1"; then | |
5556819a | 11820 | test -d "$1/."; |
25fbec5b AK |
11821 | else |
11822 | case $1 in | |
5556819a | 11823 | -*)set "./$1";; |
25fbec5b AK |
11824 | esac; |
11825 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
11826 | ???[sx]*):;;*)false;;esac;fi | |
11827 | '\'' sh | |
11828 | ' | |
7a197a62 | 11829 | fi |
25fbec5b | 11830 | as_executable_p=$as_test_x |
ad6254c5 AK |
11831 | |
11832 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 11833 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
11834 | |
11835 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 11836 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
11837 | |
11838 | ||
ad6254c5 AK |
11839 | exec 6>&1 |
11840 | ||
7a197a62 | 11841 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 11842 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
11843 | # values after options handling. |
11844 | ac_log=" | |
ad6254c5 | 11845 | This file was extended by $as_me, which was |
5556819a | 11846 | generated by GNU Autoconf 2.61. Invocation command line was |
ad6254c5 AK |
11847 | |
11848 | CONFIG_FILES = $CONFIG_FILES | |
11849 | CONFIG_HEADERS = $CONFIG_HEADERS | |
11850 | CONFIG_LINKS = $CONFIG_LINKS | |
11851 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
11852 | $ $0 $@ | |
11853 | ||
7a197a62 AK |
11854 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
11855 | " | |
11856 | ||
ad6254c5 AK |
11857 | _ACEOF |
11858 | ||
5556819a | 11859 | cat >>$CONFIG_STATUS <<_ACEOF |
ad6254c5 | 11860 | # Files that config.status was made for. |
7a197a62 AK |
11861 | config_files="$ac_config_files" |
11862 | config_headers="$ac_config_headers" | |
ad6254c5 | 11863 | |
7a197a62 | 11864 | _ACEOF |
ad6254c5 | 11865 | |
5556819a | 11866 | cat >>$CONFIG_STATUS <<\_ACEOF |
ad6254c5 AK |
11867 | ac_cs_usage="\ |
11868 | \`$as_me' instantiates files from templates according to the | |
11869 | current configuration. | |
11870 | ||
11871 | Usage: $0 [OPTIONS] [FILE]... | |
11872 | ||
11873 | -h, --help print this help, then exit | |
25fbec5b | 11874 | -V, --version print version number and configuration settings, then exit |
ad6254c5 AK |
11875 | -q, --quiet do not print progress messages |
11876 | -d, --debug don't remove temporary files | |
11877 | --recheck update $as_me by reconfiguring in the same conditions | |
11878 | --file=FILE[:TEMPLATE] | |
5556819a | 11879 | instantiate the configuration file FILE |
72b2cb61 | 11880 | --header=FILE[:TEMPLATE] |
5556819a | 11881 | instantiate the configuration header FILE |
ad6254c5 AK |
11882 | |
11883 | Configuration files: | |
11884 | $config_files | |
11885 | ||
72b2cb61 AK |
11886 | Configuration headers: |
11887 | $config_headers | |
11888 | ||
ad6254c5 | 11889 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 11890 | |
7a197a62 | 11891 | _ACEOF |
5556819a | 11892 | cat >>$CONFIG_STATUS <<_ACEOF |
ad6254c5 AK |
11893 | ac_cs_version="\\ |
11894 | config.status | |
5556819a AK |
11895 | configured by $0, generated by GNU Autoconf 2.61, |
11896 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 11897 | |
5556819a | 11898 | Copyright (C) 2006 Free Software Foundation, Inc. |
ad6254c5 AK |
11899 | This config.status script is free software; the Free Software Foundation |
11900 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
11901 | |
11902 | ac_pwd='$ac_pwd' | |
11903 | srcdir='$srcdir' | |
11904 | INSTALL='$INSTALL' | |
fddafd51 | 11905 | MKDIR_P='$MKDIR_P' |
ad6254c5 AK |
11906 | _ACEOF |
11907 | ||
5556819a AK |
11908 | cat >>$CONFIG_STATUS <<\_ACEOF |
11909 | # If no file are specified by the user, then we need to provide default | |
11910 | # value. By we need to know if files were specified by the user. | |
ad6254c5 AK |
11911 | ac_need_defaults=: |
11912 | while test $# != 0 | |
11913 | do | |
11914 | case $1 in | |
11915 | --*=*) | |
7a197a62 AK |
11916 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
11917 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
11918 | ac_shift=: |
11919 | ;; | |
7a197a62 | 11920 | *) |
ad6254c5 AK |
11921 | ac_option=$1 |
11922 | ac_optarg=$2 | |
11923 | ac_shift=shift | |
11924 | ;; | |
ad6254c5 AK |
11925 | esac |
11926 | ||
11927 | case $ac_option in | |
11928 | # Handling of the options. | |
ad6254c5 AK |
11929 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
11930 | ac_cs_recheck=: ;; | |
7a197a62 | 11931 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
5556819a | 11932 | echo "$ac_cs_version"; exit ;; |
7a197a62 | 11933 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
11934 | debug=: ;; |
11935 | --file | --fil | --fi | --f ) | |
11936 | $ac_shift | |
5556819a | 11937 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
ad6254c5 AK |
11938 | ac_need_defaults=false;; |
11939 | --header | --heade | --head | --hea ) | |
11940 | $ac_shift | |
5556819a | 11941 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
ad6254c5 | 11942 | ac_need_defaults=false;; |
7a197a62 AK |
11943 | --he | --h) |
11944 | # Conflict between --help and --header | |
5556819a | 11945 | { echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
11946 | Try \`$0 --help' for more information." >&2 |
11947 | { (exit 1); exit 1; }; };; | |
11948 | --help | --hel | -h ) | |
5556819a | 11949 | echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
11950 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
11951 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11952 | ac_cs_silent=: ;; | |
11953 | ||
11954 | # This is an error. | |
5556819a | 11955 | -*) { echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 11956 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
11957 | { (exit 1); exit 1; }; } ;; |
11958 | ||
7a197a62 AK |
11959 | *) ac_config_targets="$ac_config_targets $1" |
11960 | ac_need_defaults=false ;; | |
ad6254c5 AK |
11961 | |
11962 | esac | |
11963 | shift | |
11964 | done | |
11965 | ||
11966 | ac_configure_extra_args= | |
11967 | ||
11968 | if $ac_cs_silent; then | |
11969 | exec 6>/dev/null | |
11970 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
11971 | fi | |
11972 | ||
11973 | _ACEOF | |
5556819a | 11974 | cat >>$CONFIG_STATUS <<_ACEOF |
ad6254c5 | 11975 | if \$ac_cs_recheck; then |
5556819a AK |
11976 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
11977 | CONFIG_SHELL=$SHELL | |
7a197a62 | 11978 | export CONFIG_SHELL |
5556819a | 11979 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
ad6254c5 AK |
11980 | fi |
11981 | ||
11982 | _ACEOF | |
5556819a | 11983 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
11984 | exec 5>>config.log |
11985 | { | |
11986 | echo | |
11987 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
11988 | ## Running $as_me. ## | |
11989 | _ASBOX | |
5556819a | 11990 | echo "$ac_log" |
7a197a62 | 11991 | } >&5 |
ad6254c5 | 11992 | |
7a197a62 | 11993 | _ACEOF |
5556819a | 11994 | cat >>$CONFIG_STATUS <<_ACEOF |
7a197a62 | 11995 | _ACEOF |
ad6254c5 | 11996 | |
5556819a | 11997 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
11998 | |
11999 | # Handling of arguments. | |
ad6254c5 AK |
12000 | for ac_config_target in $ac_config_targets |
12001 | do | |
7a197a62 AK |
12002 | case $ac_config_target in |
12003 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
12004 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
12005 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
d0191583 JM |
12006 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
12007 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
12008 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
12009 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
12010 | "dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;; | |
7a197a62 AK |
12011 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; |
12012 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
7a197a62 | 12013 | "dmeventd/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;; |
d0191583 | 12014 | "dmeventd/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/snapshot/Makefile" ;; |
7a197a62 | 12015 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
7a197a62 AK |
12016 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
12017 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
12018 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
12019 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
12020 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; | |
09339e2b | 12021 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
7a197a62 AK |
12022 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
12023 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
12024 | "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;; | |
7a197a62 | 12025 | |
5556819a AK |
12026 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12027 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 12028 | { (exit 1); exit 1; }; };; |
80992638 | 12029 | esac |
ad6254c5 AK |
12030 | done |
12031 | ||
7a197a62 | 12032 | |
ad6254c5 AK |
12033 | # If the user did not use the arguments to specify the items to instantiate, |
12034 | # then the envvar interface is used. Set only those that are not. | |
12035 | # We use the long form for the default assignment because of an extremely | |
12036 | # bizarre bug on SunOS 4.1.3. | |
12037 | if $ac_need_defaults; then | |
12038 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 12039 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
12040 | fi |
12041 | ||
12042 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 12043 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 12044 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
12045 | # Hook for its removal unless debugging. |
12046 | # Note that there is a small window in which the directory will not be cleaned: | |
12047 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
12048 | $debug || |
12049 | { | |
7a197a62 AK |
12050 | tmp= |
12051 | trap 'exit_status=$? | |
12052 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
12053 | ' 0 | |
ad6254c5 AK |
12054 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
12055 | } | |
ad6254c5 AK |
12056 | # Create a (secure) tmp directory for tmp files. |
12057 | ||
12058 | { | |
7a197a62 | 12059 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
12060 | test -n "$tmp" && test -d "$tmp" |
12061 | } || | |
12062 | { | |
7a197a62 AK |
12063 | tmp=./conf$$-$RANDOM |
12064 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
12065 | } || |
12066 | { | |
5556819a | 12067 | echo "$me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
12068 | { (exit 1); exit 1; } |
12069 | } | |
12070 | ||
5556819a AK |
12071 | # |
12072 | # Set up the sed scripts for CONFIG_FILES section. | |
12073 | # | |
12074 | ||
12075 | # No need to generate the scripts if there are no CONFIG_FILES. | |
12076 | # This happens for instance when ./config.status config.h | |
1995c9ff | 12077 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 12078 | |
5556819a | 12079 | _ACEOF |
7a197a62 | 12080 | |
5556819a AK |
12081 | |
12082 | ||
12083 | ac_delim='%!_!# ' | |
12084 | for ac_last_try in false false false false false :; do | |
12085 | cat >conf$$subs.sed <<_ACEOF | |
12086 | SHELL!$SHELL$ac_delim | |
12087 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
12088 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
12089 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
12090 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
12091 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
12092 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
12093 | exec_prefix!$exec_prefix$ac_delim | |
12094 | prefix!$prefix$ac_delim | |
12095 | program_transform_name!$program_transform_name$ac_delim | |
12096 | bindir!$bindir$ac_delim | |
12097 | sbindir!$sbindir$ac_delim | |
12098 | libexecdir!$libexecdir$ac_delim | |
12099 | datarootdir!$datarootdir$ac_delim | |
12100 | datadir!$datadir$ac_delim | |
12101 | sysconfdir!$sysconfdir$ac_delim | |
12102 | sharedstatedir!$sharedstatedir$ac_delim | |
12103 | localstatedir!$localstatedir$ac_delim | |
12104 | includedir!$includedir$ac_delim | |
12105 | oldincludedir!$oldincludedir$ac_delim | |
12106 | docdir!$docdir$ac_delim | |
12107 | infodir!$infodir$ac_delim | |
12108 | htmldir!$htmldir$ac_delim | |
12109 | dvidir!$dvidir$ac_delim | |
12110 | pdfdir!$pdfdir$ac_delim | |
12111 | psdir!$psdir$ac_delim | |
12112 | libdir!$libdir$ac_delim | |
12113 | localedir!$localedir$ac_delim | |
12114 | mandir!$mandir$ac_delim | |
12115 | DEFS!$DEFS$ac_delim | |
12116 | ECHO_C!$ECHO_C$ac_delim | |
12117 | ECHO_N!$ECHO_N$ac_delim | |
12118 | ECHO_T!$ECHO_T$ac_delim | |
12119 | LIBS!$LIBS$ac_delim | |
12120 | build_alias!$build_alias$ac_delim | |
12121 | host_alias!$host_alias$ac_delim | |
12122 | target_alias!$target_alias$ac_delim | |
12123 | build!$build$ac_delim | |
12124 | build_cpu!$build_cpu$ac_delim | |
12125 | build_vendor!$build_vendor$ac_delim | |
12126 | build_os!$build_os$ac_delim | |
12127 | host!$host$ac_delim | |
12128 | host_cpu!$host_cpu$ac_delim | |
12129 | host_vendor!$host_vendor$ac_delim | |
12130 | host_os!$host_os$ac_delim | |
12131 | target!$target$ac_delim | |
12132 | target_cpu!$target_cpu$ac_delim | |
12133 | target_vendor!$target_vendor$ac_delim | |
12134 | target_os!$target_os$ac_delim | |
12135 | AWK!$AWK$ac_delim | |
12136 | CC!$CC$ac_delim | |
12137 | CFLAGS!$CFLAGS$ac_delim | |
12138 | LDFLAGS!$LDFLAGS$ac_delim | |
12139 | CPPFLAGS!$CPPFLAGS$ac_delim | |
12140 | ac_ct_CC!$ac_ct_CC$ac_delim | |
12141 | EXEEXT!$EXEEXT$ac_delim | |
12142 | OBJEXT!$OBJEXT$ac_delim | |
12143 | CPP!$CPP$ac_delim | |
12144 | GREP!$GREP$ac_delim | |
12145 | EGREP!$EGREP$ac_delim | |
12146 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
12147 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
12148 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
12149 | LN_S!$LN_S$ac_delim | |
12150 | SET_MAKE!$SET_MAKE$ac_delim | |
12151 | RANLIB!$RANLIB$ac_delim | |
12152 | CFLOW_CMD!$CFLOW_CMD$ac_delim | |
12153 | CSCOPE_CMD!$CSCOPE_CMD$ac_delim | |
12154 | ALLOCA!$ALLOCA$ac_delim | |
12155 | LIBOBJS!$LIBOBJS$ac_delim | |
12156 | POW_LIB!$POW_LIB$ac_delim | |
12157 | LCOV!$LCOV$ac_delim | |
12158 | GENHTML!$GENHTML$ac_delim | |
12159 | LVM2CMD_LIB!$LVM2CMD_LIB$ac_delim | |
12160 | MSGFMT!$MSGFMT$ac_delim | |
12161 | MODPROBE_CMD!$MODPROBE_CMD$ac_delim | |
12162 | BUILD_DMEVENTD!$BUILD_DMEVENTD$ac_delim | |
12163 | CLDFLAGS!$CLDFLAGS$ac_delim | |
12164 | CLDNOWHOLEARCHIVE!$CLDNOWHOLEARCHIVE$ac_delim | |
12165 | CLDWHOLEARCHIVE!$CLDWHOLEARCHIVE$ac_delim | |
12166 | CLUSTER!$CLUSTER$ac_delim | |
12167 | CLVMD!$CLVMD$ac_delim | |
12168 | CMDLIB!$CMDLIB$ac_delim | |
12169 | COPTIMISE_FLAG!$COPTIMISE_FLAG$ac_delim | |
12170 | DEBUG!$DEBUG$ac_delim | |
12171 | DEVMAPPER!$DEVMAPPER$ac_delim | |
12172 | DMDIR!$DMDIR$ac_delim | |
12173 | DMEVENTD!$DMEVENTD$ac_delim | |
12174 | DM_COMPAT!$DM_COMPAT$ac_delim | |
12175 | DM_DEVICE_GID!$DM_DEVICE_GID$ac_delim | |
12176 | DM_DEVICE_MODE!$DM_DEVICE_MODE$ac_delim | |
12177 | DM_DEVICE_UID!$DM_DEVICE_UID$ac_delim | |
12178 | DM_IOCTLS!$DM_IOCTLS$ac_delim | |
12179 | DM_LIB_VERSION!$DM_LIB_VERSION$ac_delim | |
12180 | FSADM!$FSADM$ac_delim | |
12181 | GROUP!$GROUP$ac_delim | |
12182 | HAVE_LIBDL!$HAVE_LIBDL$ac_delim | |
12183 | _ACEOF | |
12184 | ||
12185 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
12186 | break | |
12187 | elif $ac_last_try; then | |
12188 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
12189 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
12190 | { (exit 1); exit 1; }; } | |
12191 | else | |
12192 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12193 | fi | |
12194 | done | |
12195 | ||
12196 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
12197 | if test -n "$ac_eof"; then | |
12198 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
12199 | ac_eof=`expr $ac_eof + 1` | |
1995c9ff | 12200 | fi |
7a197a62 | 12201 | |
5556819a AK |
12202 | cat >>$CONFIG_STATUS <<_ACEOF |
12203 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
12204 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
12205 | _ACEOF | |
12206 | sed ' | |
12207 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
12208 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
12209 | :n | |
12210 | t n | |
12211 | s/'"$ac_delim"'$/,g/; t | |
12212 | s/$/\\/; p | |
12213 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
12214 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
12215 | rm -f conf$$subs.sed | |
12216 | cat >>$CONFIG_STATUS <<_ACEOF | |
12217 | CEOF$ac_eof | |
1995c9ff | 12218 | _ACEOF |
7a197a62 | 12219 | |
8106cdd5 | 12220 | |
1995c9ff AK |
12221 | ac_delim='%!_!# ' |
12222 | for ac_last_try in false false false false false :; do | |
5556819a AK |
12223 | cat >conf$$subs.sed <<_ACEOF |
12224 | HAVE_REALTIME!$HAVE_REALTIME$ac_delim | |
12225 | HAVE_SELINUX!$HAVE_SELINUX$ac_delim | |
12226 | INTL!$INTL$ac_delim | |
12227 | INTL_PACKAGE!$INTL_PACKAGE$ac_delim | |
12228 | JOBS!$JOBS$ac_delim | |
12229 | LDDEPS!$LDDEPS$ac_delim | |
12230 | LIB_SUFFIX!$LIB_SUFFIX$ac_delim | |
12231 | LOCALEDIR!$LOCALEDIR$ac_delim | |
12232 | LVM1!$LVM1$ac_delim | |
12233 | LVM1_FALLBACK!$LVM1_FALLBACK$ac_delim | |
12234 | CONFDIR!$CONFDIR$ac_delim | |
12235 | LVM_VERSION!$LVM_VERSION$ac_delim | |
12236 | MIRRORS!$MIRRORS$ac_delim | |
12237 | OWNER!$OWNER$ac_delim | |
12238 | PKGCONFIG!$PKGCONFIG$ac_delim | |
12239 | POOL!$POOL$ac_delim | |
12240 | SNAPSHOTS!$SNAPSHOTS$ac_delim | |
12241 | STATICDIR!$STATICDIR$ac_delim | |
12242 | STATIC_LINK!$STATIC_LINK$ac_delim | |
12243 | LIB_PTHREAD!$LIB_PTHREAD$ac_delim | |
12244 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
12245 | _ACEOF | |
12246 | ||
12247 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then | |
1995c9ff AK |
12248 | break |
12249 | elif $ac_last_try; then | |
5556819a AK |
12250 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12251 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
12252 | { (exit 1); exit 1; }; } |
12253 | else | |
12254 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12255 | fi | |
12256 | done | |
7a197a62 | 12257 | |
5556819a AK |
12258 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
12259 | if test -n "$ac_eof"; then | |
12260 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
12261 | ac_eof=`expr $ac_eof + 1` | |
12262 | fi | |
fddafd51 | 12263 | |
5556819a AK |
12264 | cat >>$CONFIG_STATUS <<_ACEOF |
12265 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
12266 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
1995c9ff | 12267 | _ACEOF |
5556819a AK |
12268 | sed ' |
12269 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
12270 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
12271 | :n | |
12272 | t n | |
12273 | s/'"$ac_delim"'$/,g/; t | |
12274 | s/$/\\/; p | |
12275 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
12276 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
12277 | rm -f conf$$subs.sed | |
12278 | cat >>$CONFIG_STATUS <<_ACEOF | |
12279 | :end | |
12280 | s/|#_!!_#|//g | |
12281 | CEOF$ac_eof | |
7a197a62 AK |
12282 | _ACEOF |
12283 | ||
5556819a | 12284 | |
7a197a62 AK |
12285 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
12286 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
12287 | # trailing colons and then remove the whole line if VPATH becomes empty | |
12288 | # (actually we leave an empty line to preserve line numbers). | |
12289 | if test "x$srcdir" = x.; then | |
12290 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
12291 | s/:*\$(srcdir):*/:/ | |
12292 | s/:*\${srcdir}:*/:/ | |
12293 | s/:*@srcdir@:*/:/ | |
12294 | s/^\([^=]*=[ ]*\):*/\1/ | |
12295 | s/:*$// | |
12296 | s/^[^=]*=[ ]*$// | |
12297 | }' | |
12298 | fi | |
12299 | ||
5556819a | 12300 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
12301 | fi # test -n "$CONFIG_FILES" |
12302 | ||
12303 | ||
5556819a | 12304 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
7a197a62 AK |
12305 | do |
12306 | case $ac_tag in | |
12307 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
12308 | esac | |
12309 | case $ac_mode$ac_tag in | |
12310 | :[FHL]*:*);; | |
5556819a AK |
12311 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
12312 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
7a197a62 AK |
12313 | { (exit 1); exit 1; }; };; |
12314 | :[FH]-) ac_tag=-:-;; | |
12315 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
12316 | esac | |
12317 | ac_save_IFS=$IFS | |
12318 | IFS=: | |
12319 | set x $ac_tag | |
12320 | IFS=$ac_save_IFS | |
12321 | shift | |
12322 | ac_file=$1 | |
12323 | shift | |
12324 | ||
12325 | case $ac_mode in | |
12326 | :L) ac_source=$1;; | |
12327 | :[FH]) | |
12328 | ac_file_inputs= | |
12329 | for ac_f | |
12330 | do | |
12331 | case $ac_f in | |
12332 | -) ac_f="$tmp/stdin";; | |
12333 | *) # Look for the file first in the build tree, then in the source tree | |
12334 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
12335 | # because $ac_f cannot contain `:'. | |
12336 | test -f "$ac_f" || | |
12337 | case $ac_f in | |
12338 | [\\/$]*) false;; | |
12339 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
12340 | esac || | |
5556819a AK |
12341 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
12342 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
12343 | { (exit 1); exit 1; }; };; |
12344 | esac | |
5556819a | 12345 | ac_file_inputs="$ac_file_inputs $ac_f" |
7a197a62 AK |
12346 | done |
12347 | ||
12348 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12349 | # use $as_me), people would be surprised to read: | |
12350 | # /* config.h. Generated by config.status. */ | |
5556819a AK |
12351 | configure_input="Generated from "`IFS=: |
12352 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
7a197a62 AK |
12353 | if test x"$ac_file" != x-; then |
12354 | configure_input="$ac_file. $configure_input" | |
5556819a AK |
12355 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
12356 | echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 AK |
12357 | fi |
12358 | ||
12359 | case $ac_tag in | |
5556819a | 12360 | *:-:* | *:-) cat >"$tmp/stdin";; |
7a197a62 AK |
12361 | esac |
12362 | ;; | |
80992638 | 12363 | esac |
8106cdd5 | 12364 | |
7a197a62 | 12365 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 12366 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
12367 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
12368 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 12369 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
5556819a | 12370 | echo X"$ac_file" | |
7a197a62 AK |
12371 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12372 | s//\1/ | |
12373 | q | |
12374 | } | |
12375 | /^X\(\/\/\)[^/].*/{ | |
12376 | s//\1/ | |
12377 | q | |
12378 | } | |
12379 | /^X\(\/\/\)$/{ | |
12380 | s//\1/ | |
12381 | q | |
12382 | } | |
12383 | /^X\(\/\).*/{ | |
12384 | s//\1/ | |
12385 | q | |
12386 | } | |
12387 | s/.*/./; q'` | |
12388 | { as_dir="$ac_dir" | |
12389 | case $as_dir in #( | |
12390 | -*) as_dir=./$as_dir;; | |
12391 | esac | |
12392 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 12393 | as_dirs= |
7a197a62 AK |
12394 | while :; do |
12395 | case $as_dir in #( | |
5556819a | 12396 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
7a197a62 AK |
12397 | *) as_qdir=$as_dir;; |
12398 | esac | |
12399 | as_dirs="'$as_qdir' $as_dirs" | |
12400 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 12401 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
12402 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
12403 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 12404 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
5556819a | 12405 | echo X"$as_dir" | |
7a197a62 AK |
12406 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12407 | s//\1/ | |
12408 | q | |
12409 | } | |
12410 | /^X\(\/\/\)[^/].*/{ | |
12411 | s//\1/ | |
12412 | q | |
12413 | } | |
12414 | /^X\(\/\/\)$/{ | |
12415 | s//\1/ | |
12416 | q | |
12417 | } | |
12418 | /^X\(\/\).*/{ | |
12419 | s//\1/ | |
12420 | q | |
12421 | } | |
12422 | s/.*/./; q'` | |
12423 | test -d "$as_dir" && break | |
ad6254c5 | 12424 | done |
7a197a62 | 12425 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
5556819a AK |
12426 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
12427 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 12428 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
12429 | ac_builddir=. |
12430 | ||
7a197a62 AK |
12431 | case "$ac_dir" in |
12432 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12433 | *) | |
5556819a | 12434 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7a197a62 | 12435 | # A ".." for each directory in $ac_dir_suffix. |
5556819a | 12436 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
7a197a62 AK |
12437 | case $ac_top_builddir_sub in |
12438 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12439 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
12440 | esac ;; | |
12441 | esac | |
12442 | ac_abs_top_builddir=$ac_pwd | |
12443 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
12444 | # for backward compatibility: | |
12445 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
12446 | |
12447 | case $srcdir in | |
7a197a62 | 12448 | .) # We are building in place. |
ad6254c5 | 12449 | ac_srcdir=. |
7a197a62 AK |
12450 | ac_top_srcdir=$ac_top_builddir_sub |
12451 | ac_abs_top_srcdir=$ac_pwd ;; | |
12452 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 12453 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
12454 | ac_top_srcdir=$srcdir |
12455 | ac_abs_top_srcdir=$srcdir ;; | |
12456 | *) # Relative name. | |
12457 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
12458 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
12459 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 12460 | esac |
7a197a62 | 12461 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 12462 | |
ad6254c5 | 12463 | |
7a197a62 AK |
12464 | case $ac_mode in |
12465 | :F) | |
12466 | # | |
12467 | # CONFIG_FILE | |
12468 | # | |
ad6254c5 AK |
12469 | |
12470 | case $INSTALL in | |
12471 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 12472 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 12473 | esac |
fddafd51 ZK |
12474 | ac_MKDIR_P=$MKDIR_P |
12475 | case $MKDIR_P in | |
12476 | [\\/$]* | ?:[\\/]* ) ;; | |
12477 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
12478 | esac | |
7a197a62 | 12479 | _ACEOF |
795ca3e5 | 12480 | |
5556819a | 12481 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
12482 | # If the template does not know about datarootdir, expand it. |
12483 | # FIXME: This hack should be removed a few years after 2.60. | |
12484 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
12485 | ||
5556819a | 12486 | case `sed -n '/datarootdir/ { |
7a197a62 AK |
12487 | p |
12488 | q | |
12489 | } | |
12490 | /@datadir@/p | |
12491 | /@docdir@/p | |
12492 | /@infodir@/p | |
12493 | /@localedir@/p | |
12494 | /@mandir@/p | |
5556819a | 12495 | ' $ac_file_inputs` in |
7a197a62 AK |
12496 | *datarootdir*) ac_datarootdir_seen=yes;; |
12497 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
5556819a AK |
12498 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
12499 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 12500 | _ACEOF |
5556819a | 12501 | cat >>$CONFIG_STATUS <<_ACEOF |
7a197a62 AK |
12502 | ac_datarootdir_hack=' |
12503 | s&@datadir@&$datadir&g | |
12504 | s&@docdir@&$docdir&g | |
12505 | s&@infodir@&$infodir&g | |
12506 | s&@localedir@&$localedir&g | |
12507 | s&@mandir@&$mandir&g | |
12508 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
12509 | esac | |
12510 | _ACEOF | |
12511 | ||
12512 | # Neutralize VPATH when `$srcdir' = `.'. | |
12513 | # Shell code in configure.ac might set extrasub. | |
12514 | # FIXME: do we really want to maintain this feature? | |
5556819a AK |
12515 | cat >>$CONFIG_STATUS <<_ACEOF |
12516 | sed "$ac_vpsub | |
ad6254c5 AK |
12517 | $extrasub |
12518 | _ACEOF | |
5556819a | 12519 | cat >>$CONFIG_STATUS <<\_ACEOF |
ad6254c5 AK |
12520 | :t |
12521 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5556819a | 12522 | s&@configure_input@&$configure_input&;t t |
7a197a62 AK |
12523 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
12524 | s&@srcdir@&$ac_srcdir&;t t | |
12525 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
12526 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
12527 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
12528 | s&@builddir@&$ac_builddir&;t t | |
12529 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
12530 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
12531 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 12532 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 12533 | $ac_datarootdir_hack |
5556819a | 12534 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
7a197a62 AK |
12535 | |
12536 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
12537 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
12538 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
5556819a | 12539 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 12540 | which seems to be undefined. Please make sure it is defined." >&5 |
5556819a | 12541 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
12542 | which seems to be undefined. Please make sure it is defined." >&2;} |
12543 | ||
12544 | rm -f "$tmp/stdin" | |
72b2cb61 | 12545 | case $ac_file in |
5556819a AK |
12546 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
12547 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
12548 | esac | |
7a197a62 AK |
12549 | ;; |
12550 | :H) | |
12551 | # | |
12552 | # CONFIG_HEADER | |
12553 | # | |
5556819a AK |
12554 | _ACEOF |
12555 | ||
12556 | # Transform confdefs.h into a sed script `conftest.defines', that | |
12557 | # substitutes the proper values into config.h.in to produce config.h. | |
12558 | rm -f conftest.defines conftest.tail | |
12559 | # First, append a space to every undef/define line, to ease matching. | |
12560 | echo 's/$/ /' >conftest.defines | |
12561 | # Then, protect against being on the right side of a sed subst, or in | |
12562 | # an unquoted here document, in config.status. If some macros were | |
12563 | # called several times there might be several #defines for the same | |
12564 | # symbol, which is useless. But do not sort them, since the last | |
12565 | # AC_DEFINE must be honored. | |
12566 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
12567 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
12568 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
12569 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
12570 | # just an empty string. | |
12571 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
12572 | ac_dB='\\)[ (].*,\\1define\\2' | |
12573 | ac_dC=' ' | |
12574 | ac_dD=' ,' | |
12575 | ||
12576 | uniq confdefs.h | | |
12577 | sed -n ' | |
12578 | t rset | |
12579 | :rset | |
12580 | s/^[ ]*#[ ]*define[ ][ ]*// | |
12581 | t ok | |
12582 | d | |
12583 | :ok | |
12584 | s/[\\&,]/\\&/g | |
12585 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
12586 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
12587 | ' >>conftest.defines | |
12588 | ||
12589 | # Remove the space that was appended to ease matching. | |
12590 | # Then replace #undef with comments. This is necessary, for | |
12591 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
12592 | # on some systems where configure will not decide to define it. | |
12593 | # (The regexp can be short, since the line contains either #define or #undef.) | |
12594 | echo 's/ $// | |
12595 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
12596 | ||
12597 | # Break up conftest.defines: | |
12598 | ac_max_sed_lines=50 | |
12599 | ||
12600 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
12601 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
12602 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
12603 | # et cetera. | |
12604 | ac_in='$ac_file_inputs' | |
12605 | ac_out='"$tmp/out1"' | |
12606 | ac_nxt='"$tmp/out2"' | |
12607 | ||
12608 | while : | |
12609 | do | |
12610 | # Write a here document: | |
12611 | cat >>$CONFIG_STATUS <<_ACEOF | |
12612 | # First, check the format of the line: | |
12613 | cat >"\$tmp/defines.sed" <<\\CEOF | |
12614 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
12615 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
12616 | b | |
12617 | :def | |
12618 | _ACEOF | |
12619 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
12620 | echo 'CEOF | |
12621 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | |
12622 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
12623 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
12624 | grep . conftest.tail >/dev/null || break | |
12625 | rm -f conftest.defines | |
12626 | mv conftest.tail conftest.defines | |
12627 | done | |
12628 | rm -f conftest.defines conftest.tail | |
12629 | ||
12630 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | |
12631 | cat >>$CONFIG_STATUS <<\_ACEOF | |
72b2cb61 | 12632 | if test x"$ac_file" != x-; then |
5556819a AK |
12633 | echo "/* $configure_input */" >"$tmp/config.h" |
12634 | cat "$ac_result" >>"$tmp/config.h" | |
12635 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
12636 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
12637 | echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 12638 | else |
5556819a AK |
12639 | rm -f $ac_file |
12640 | mv "$tmp/config.h" $ac_file | |
72b2cb61 AK |
12641 | fi |
12642 | else | |
5556819a AK |
12643 | echo "/* $configure_input */" |
12644 | cat "$ac_result" | |
72b2cb61 | 12645 | fi |
5556819a | 12646 | rm -f "$tmp/out12" |
7a197a62 AK |
12647 | ;; |
12648 | ||
12649 | ||
12650 | esac | |
12651 | ||
12652 | done # for ac_tag | |
795ca3e5 | 12653 | |
795ca3e5 | 12654 | |
ad6254c5 AK |
12655 | { (exit 0); exit 0; } |
12656 | _ACEOF | |
795ca3e5 | 12657 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
12658 | ac_clean_files=$ac_clean_files_save |
12659 | ||
12660 | ||
12661 | # configure is writing to config.log, and then calls config.status. | |
12662 | # config.status does its own redirection, appending to config.log. | |
12663 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
12664 | # by configure, so config.status won't be able to write to it; its | |
12665 | # output is simply discarded. So we exec the FD to /dev/null, | |
12666 | # effectively closing config.log, so it can be properly (re)opened and | |
12667 | # appended to by config.status. When coming back to configure, we | |
12668 | # need to make the FD available again. | |
12669 | if test "$no_create" != yes; then | |
12670 | ac_cs_success=: | |
12671 | ac_config_status_args= | |
12672 | test "$silent" = yes && | |
12673 | ac_config_status_args="$ac_config_status_args --quiet" | |
12674 | exec 5>/dev/null | |
12675 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
12676 | exec 5>>config.log | |
12677 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
12678 | # would make configure fail if this is the last instruction. | |
12679 | $ac_cs_success || { (exit 1); exit 1; } | |
12680 | fi | |
795ca3e5 | 12681 | |
2dc95e1c AK |
12682 | |
12683 | if test x$ODIRECT != xyes; then | |
5556819a AK |
12684 | { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
12685 | echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 12686 | fi |
809fae91 AK |
12687 | |
12688 | if test x$FSADM == xyes; then | |
5556819a AK |
12689 | { echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5 |
12690 | echo "$as_me: WARNING: fsadm support is untested" >&2;} | |
809fae91 | 12691 | fi |
06f62ad1 AK |
12692 | |
12693 | if test x$DMEVENTD == xyes; then | |
5556819a AK |
12694 | { echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5 |
12695 | echo "$as_me: WARNING: dmeventd support is untested" >&2;} | |
06f62ad1 | 12696 | fi |