]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
68f2de6d | 3 | # Generated by GNU Autoconf 2.61. |
795ca3e5 | 4 | # |
7a197a62 | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
68f2de6d | 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=: | |
68f2de6d | 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 | ||
b145d876 ZK |
40 | # The user is always right. |
41 | if test "${PATH_SEPARATOR+set}" != set; then | |
68f2de6d 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.) | |
68f2de6d 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 | |
68f2de6d | 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. | |
68f2de6d 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 || |
68f2de6d | 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 | ||
68f2de6d | 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=: | |
68f2de6d | 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=: | |
68f2de6d | 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 | |
68f2de6d 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. | |
68f2de6d 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" || |
68f2de6d | 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 |
68f2de6d | 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 | |
68f2de6d 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' |
68f2de6d 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 | |
68f2de6d | 532 | test -d "$1/."; |
25fbec5b AK |
533 | else |
534 | case $1 in | |
68f2de6d | 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 | |
5951ef33 | 666 | SED |
7a197a62 AK |
667 | AWK |
668 | CC | |
669 | CFLAGS | |
670 | LDFLAGS | |
671 | CPPFLAGS | |
672 | ac_ct_CC | |
673 | EXEEXT | |
674 | OBJEXT | |
d0191583 JM |
675 | CPP |
676 | GREP | |
677 | EGREP | |
7a197a62 AK |
678 | INSTALL_PROGRAM |
679 | INSTALL_SCRIPT | |
680 | INSTALL_DATA | |
681 | LN_S | |
682 | SET_MAKE | |
683 | RANLIB | |
684 | CFLOW_CMD | |
685 | CSCOPE_CMD | |
7a197a62 AK |
686 | ALLOCA |
687 | LIBOBJS | |
688 | POW_LIB | |
fddafd51 ZK |
689 | LCOV |
690 | GENHTML | |
d179cc7a | 691 | LVM2CMD_LIB |
7a197a62 AK |
692 | MSGFMT |
693 | MODPROBE_CMD | |
d0191583 | 694 | BUILD_DMEVENTD |
7a197a62 | 695 | CLDFLAGS |
7a197a62 | 696 | CLDNOWHOLEARCHIVE |
d0191583 JM |
697 | CLDWHOLEARCHIVE |
698 | CLUSTER | |
699 | CLVMD | |
700 | CMDLIB | |
701 | COPTIMISE_FLAG | |
7a197a62 AK |
702 | DEBUG |
703 | DEVMAPPER | |
d0191583 JM |
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 |
93bd259b AK |
734 | interface |
735 | kerneldir | |
736 | missingkernel | |
737 | kernelvsn | |
738 | tmpdir | |
68f2de6d AK |
739 | usrlibdir |
740 | usrsbindir | |
7a197a62 | 741 | LTLIBOBJS' |
ad6254c5 | 742 | ac_subst_files='' |
7a197a62 AK |
743 | ac_precious_vars='build_alias |
744 | host_alias | |
745 | target_alias | |
746 | CC | |
747 | CFLAGS | |
748 | LDFLAGS | |
25fbec5b | 749 | LIBS |
7a197a62 AK |
750 | CPPFLAGS |
751 | CPP' | |
752 | ||
795ca3e5 AK |
753 | |
754 | # Initialize some variables set by options. | |
ad6254c5 AK |
755 | ac_init_help= |
756 | ac_init_version=false | |
795ca3e5 AK |
757 | # The variables have the same names as the options, with |
758 | # dashes changed to underlines. | |
ad6254c5 | 759 | cache_file=/dev/null |
795ca3e5 | 760 | exec_prefix=NONE |
795ca3e5 | 761 | no_create= |
795ca3e5 AK |
762 | no_recursion= |
763 | prefix=NONE | |
764 | program_prefix=NONE | |
765 | program_suffix=NONE | |
766 | program_transform_name=s,x,x, | |
767 | silent= | |
768 | site= | |
769 | srcdir= | |
795ca3e5 AK |
770 | verbose= |
771 | x_includes=NONE | |
772 | x_libraries=NONE | |
ad6254c5 AK |
773 | |
774 | # Installation directory options. | |
775 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
776 | # and all the variables that are supposed to be based on exec_prefix | |
777 | # by default will actually change. | |
778 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 779 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
780 | bindir='${exec_prefix}/bin' |
781 | sbindir='${exec_prefix}/sbin' | |
782 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
783 | datarootdir='${prefix}/share' |
784 | datadir='${datarootdir}' | |
795ca3e5 AK |
785 | sysconfdir='${prefix}/etc' |
786 | sharedstatedir='${prefix}/com' | |
787 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
788 | includedir='${prefix}/include' |
789 | oldincludedir='/usr/include' | |
7a197a62 AK |
790 | docdir='${datarootdir}/doc/${PACKAGE}' |
791 | infodir='${datarootdir}/info' | |
792 | htmldir='${docdir}' | |
793 | dvidir='${docdir}' | |
794 | pdfdir='${docdir}' | |
795 | psdir='${docdir}' | |
796 | libdir='${exec_prefix}/lib' | |
797 | localedir='${datarootdir}/locale' | |
798 | mandir='${datarootdir}/man' | |
795ca3e5 | 799 | |
795ca3e5 | 800 | ac_prev= |
7a197a62 | 801 | ac_dashdash= |
795ca3e5 AK |
802 | for ac_option |
803 | do | |
795ca3e5 AK |
804 | # If the previous option needs an argument, assign it. |
805 | if test -n "$ac_prev"; then | |
7a197a62 | 806 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
807 | ac_prev= |
808 | continue | |
809 | fi | |
810 | ||
7a197a62 AK |
811 | case $ac_option in |
812 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
813 | *) ac_optarg=yes ;; | |
814 | esac | |
795ca3e5 AK |
815 | |
816 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
817 | ||
7a197a62 AK |
818 | case $ac_dashdash$ac_option in |
819 | --) | |
820 | ac_dashdash=yes ;; | |
795ca3e5 AK |
821 | |
822 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
823 | ac_prev=bindir ;; | |
824 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 825 | bindir=$ac_optarg ;; |
795ca3e5 AK |
826 | |
827 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 828 | ac_prev=build_alias ;; |
795ca3e5 | 829 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 830 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
831 | |
832 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
833 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
834 | ac_prev=cache_file ;; | |
835 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
836 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
837 | cache_file=$ac_optarg ;; |
838 | ||
839 | --config-cache | -C) | |
840 | cache_file=config.cache ;; | |
795ca3e5 | 841 | |
7a197a62 | 842 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 843 | ac_prev=datadir ;; |
7a197a62 | 844 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 845 | datadir=$ac_optarg ;; |
795ca3e5 | 846 | |
7a197a62 AK |
847 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
848 | | --dataroo | --dataro | --datar) | |
849 | ac_prev=datarootdir ;; | |
850 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
851 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
852 | datarootdir=$ac_optarg ;; | |
853 | ||
795ca3e5 | 854 | -disable-* | --disable-*) |
68f2de6d | 855 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 856 | # Reject names that are not valid shell variable names. |
68f2de6d AK |
857 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
858 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
ad6254c5 | 859 | { (exit 1); exit 1; }; } |
68f2de6d AK |
860 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
861 | eval enable_$ac_feature=no ;; | |
7a197a62 AK |
862 | |
863 | -docdir | --docdir | --docdi | --doc | --do) | |
864 | ac_prev=docdir ;; | |
865 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
866 | docdir=$ac_optarg ;; | |
867 | ||
868 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
869 | ac_prev=dvidir ;; | |
870 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
871 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
872 | |
873 | -enable-* | --enable-*) | |
68f2de6d | 874 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 875 | # Reject names that are not valid shell variable names. |
68f2de6d AK |
876 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
877 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
ad6254c5 | 878 | { (exit 1); exit 1; }; } |
68f2de6d AK |
879 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
880 | eval enable_$ac_feature=\$ac_optarg ;; | |
795ca3e5 AK |
881 | |
882 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
883 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
884 | | --exec | --exe | --ex) | |
885 | ac_prev=exec_prefix ;; | |
886 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
887 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
888 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 889 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
890 | |
891 | -gas | --gas | --ga | --g) | |
892 | # Obsolete; use --with-gas. | |
893 | with_gas=yes ;; | |
894 | ||
ad6254c5 AK |
895 | -help | --help | --hel | --he | -h) |
896 | ac_init_help=long ;; | |
897 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
898 | ac_init_help=recursive ;; | |
899 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
900 | ac_init_help=short ;; | |
795ca3e5 AK |
901 | |
902 | -host | --host | --hos | --ho) | |
ad6254c5 | 903 | ac_prev=host_alias ;; |
795ca3e5 | 904 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 905 | host_alias=$ac_optarg ;; |
795ca3e5 | 906 | |
7a197a62 AK |
907 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
908 | ac_prev=htmldir ;; | |
909 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
910 | | --ht=*) | |
911 | htmldir=$ac_optarg ;; | |
912 | ||
795ca3e5 AK |
913 | -includedir | --includedir | --includedi | --included | --include \ |
914 | | --includ | --inclu | --incl | --inc) | |
915 | ac_prev=includedir ;; | |
916 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
917 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 918 | includedir=$ac_optarg ;; |
795ca3e5 AK |
919 | |
920 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
921 | ac_prev=infodir ;; | |
922 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 923 | infodir=$ac_optarg ;; |
795ca3e5 AK |
924 | |
925 | -libdir | --libdir | --libdi | --libd) | |
926 | ac_prev=libdir ;; | |
927 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 928 | libdir=$ac_optarg ;; |
795ca3e5 AK |
929 | |
930 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
931 | | --libexe | --libex | --libe) | |
932 | ac_prev=libexecdir ;; | |
933 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
934 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 935 | libexecdir=$ac_optarg ;; |
795ca3e5 | 936 | |
7a197a62 AK |
937 | -localedir | --localedir | --localedi | --localed | --locale) |
938 | ac_prev=localedir ;; | |
939 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
940 | localedir=$ac_optarg ;; | |
941 | ||
795ca3e5 | 942 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 943 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
944 | ac_prev=localstatedir ;; |
945 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 946 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 947 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
948 | |
949 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
950 | ac_prev=mandir ;; | |
951 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 952 | mandir=$ac_optarg ;; |
795ca3e5 AK |
953 | |
954 | -nfp | --nfp | --nf) | |
955 | # Obsolete; use --without-fp. | |
956 | with_fp=no ;; | |
957 | ||
958 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 959 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
960 | no_create=yes ;; |
961 | ||
962 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
963 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
964 | no_recursion=yes ;; | |
965 | ||
966 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
967 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
968 | | --oldin | --oldi | --old | --ol | --o) | |
969 | ac_prev=oldincludedir ;; | |
970 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
971 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
972 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 973 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
974 | |
975 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
976 | ac_prev=prefix ;; | |
977 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 978 | prefix=$ac_optarg ;; |
795ca3e5 AK |
979 | |
980 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
981 | | --program-pre | --program-pr | --program-p) | |
982 | ac_prev=program_prefix ;; | |
983 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
984 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 985 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
986 | |
987 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
988 | | --program-suf | --program-su | --program-s) | |
989 | ac_prev=program_suffix ;; | |
990 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
991 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 992 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
993 | |
994 | -program-transform-name | --program-transform-name \ | |
995 | | --program-transform-nam | --program-transform-na \ | |
996 | | --program-transform-n | --program-transform- \ | |
997 | | --program-transform | --program-transfor \ | |
998 | | --program-transfo | --program-transf \ | |
999 | | --program-trans | --program-tran \ | |
1000 | | --progr-tra | --program-tr | --program-t) | |
1001 | ac_prev=program_transform_name ;; | |
1002 | -program-transform-name=* | --program-transform-name=* \ | |
1003 | | --program-transform-nam=* | --program-transform-na=* \ | |
1004 | | --program-transform-n=* | --program-transform-=* \ | |
1005 | | --program-transform=* | --program-transfor=* \ | |
1006 | | --program-transfo=* | --program-transf=* \ | |
1007 | | --program-trans=* | --program-tran=* \ | |
1008 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1009 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1010 | |
7a197a62 AK |
1011 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1012 | ac_prev=pdfdir ;; | |
1013 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1014 | pdfdir=$ac_optarg ;; | |
1015 | ||
1016 | -psdir | --psdir | --psdi | --psd | --ps) | |
1017 | ac_prev=psdir ;; | |
1018 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1019 | psdir=$ac_optarg ;; | |
1020 | ||
795ca3e5 AK |
1021 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1022 | | -silent | --silent | --silen | --sile | --sil) | |
1023 | silent=yes ;; | |
1024 | ||
1025 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1026 | ac_prev=sbindir ;; | |
1027 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1028 | | --sbi=* | --sb=*) | |
ad6254c5 | 1029 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1030 | |
1031 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1032 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1033 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1034 | | --sha | --sh) | |
1035 | ac_prev=sharedstatedir ;; | |
1036 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1037 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1038 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1039 | | --sha=* | --sh=*) | |
ad6254c5 | 1040 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1041 | |
1042 | -site | --site | --sit) | |
1043 | ac_prev=site ;; | |
1044 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1045 | site=$ac_optarg ;; |
795ca3e5 AK |
1046 | |
1047 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1048 | ac_prev=srcdir ;; | |
1049 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1050 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1051 | |
1052 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1053 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1054 | ac_prev=sysconfdir ;; | |
1055 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1056 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1057 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1058 | |
1059 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1060 | ac_prev=target_alias ;; |
795ca3e5 | 1061 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1062 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1063 | |
1064 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1065 | verbose=yes ;; | |
1066 | ||
ad6254c5 AK |
1067 | -version | --version | --versio | --versi | --vers | -V) |
1068 | ac_init_version=: ;; | |
795ca3e5 AK |
1069 | |
1070 | -with-* | --with-*) | |
68f2de6d | 1071 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1072 | # Reject names that are not valid shell variable names. |
68f2de6d AK |
1073 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1074 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
ad6254c5 | 1075 | { (exit 1); exit 1; }; } |
68f2de6d AK |
1076 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1077 | eval with_$ac_package=\$ac_optarg ;; | |
795ca3e5 AK |
1078 | |
1079 | -without-* | --without-*) | |
68f2de6d | 1080 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1081 | # Reject names that are not valid shell variable names. |
68f2de6d AK |
1082 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1083 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
ad6254c5 | 1084 | { (exit 1); exit 1; }; } |
68f2de6d AK |
1085 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1086 | eval with_$ac_package=no ;; | |
795ca3e5 AK |
1087 | |
1088 | --x) | |
1089 | # Obsolete; use --with-x. | |
1090 | with_x=yes ;; | |
1091 | ||
1092 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1093 | | --x-incl | --x-inc | --x-in | --x-i) | |
1094 | ac_prev=x_includes ;; | |
1095 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1096 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1097 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1098 | |
1099 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1100 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1101 | ac_prev=x_libraries ;; | |
1102 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1103 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1104 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1105 | |
68f2de6d | 1106 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1107 | Try \`$0 --help' for more information." >&2 |
1108 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1109 | ;; |
1110 | ||
ad6254c5 AK |
1111 | *=*) |
1112 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1113 | # Reject names that are not valid shell variable names. | |
1114 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
68f2de6d | 1115 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1116 | { (exit 1); exit 1; }; } |
7a197a62 | 1117 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1118 | export $ac_envvar ;; |
1119 | ||
795ca3e5 | 1120 | *) |
ad6254c5 | 1121 | # FIXME: should be removed in autoconf 3.0. |
68f2de6d | 1122 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1123 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
68f2de6d | 1124 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1125 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1126 | ;; |
1127 | ||
1128 | esac | |
1129 | done | |
1130 | ||
1131 | if test -n "$ac_prev"; then | |
ad6254c5 | 1132 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
68f2de6d | 1133 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1134 | { (exit 1); exit 1; }; } |
795ca3e5 | 1135 | fi |
795ca3e5 | 1136 | |
68f2de6d | 1137 | # Be sure to have absolute directory names. |
7a197a62 AK |
1138 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1139 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1140 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1141 | libdir localedir mandir | |
795ca3e5 | 1142 | do |
7a197a62 | 1143 | eval ac_val=\$$ac_var |
ad6254c5 | 1144 | case $ac_val in |
7a197a62 AK |
1145 | [\\/$]* | ?:[\\/]* ) continue;; |
1146 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1147 | esac |
68f2de6d | 1148 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1149 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1150 | done |
1151 | ||
ad6254c5 AK |
1152 | # There might be people who depend on the old broken behavior: `$host' |
1153 | # used to hold the argument of --host etc. | |
1154 | # FIXME: To remove some day. | |
1155 | build=$build_alias | |
1156 | host=$host_alias | |
1157 | target=$target_alias | |
1158 | ||
1159 | # FIXME: To remove some day. | |
1160 | if test "x$host_alias" != x; then | |
1161 | if test "x$build_alias" = x; then | |
1162 | cross_compiling=maybe | |
68f2de6d | 1163 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1164 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1165 | elif test "x$build_alias" != "x$host_alias"; then | |
1166 | cross_compiling=yes | |
1167 | fi | |
1168 | fi | |
8106cdd5 | 1169 | |
ad6254c5 AK |
1170 | ac_tool_prefix= |
1171 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1172 | ||
1173 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1174 | |
795ca3e5 | 1175 | |
7a197a62 AK |
1176 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1177 | ac_ls_di=`ls -di .` && | |
1178 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
68f2de6d | 1179 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
7a197a62 AK |
1180 | { (exit 1); exit 1; }; } |
1181 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
68f2de6d | 1182 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1183 | { (exit 1); exit 1; }; } |
1184 | ||
1185 | ||
795ca3e5 AK |
1186 | # Find the source files, if location was not specified. |
1187 | if test -z "$srcdir"; then | |
1188 | ac_srcdir_defaulted=yes | |
7a197a62 | 1189 | # Try the directory containing this script, then the parent directory. |
68f2de6d AK |
1190 | ac_confdir=`$as_dirname -- "$0" || |
1191 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1192 | X"$0" : 'X\(//\)[^/]' \| \ | |
1193 | X"$0" : 'X\(//\)$' \| \ | |
1194 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
1195 | echo X"$0" | | |
7a197a62 AK |
1196 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1197 | s//\1/ | |
1198 | q | |
1199 | } | |
1200 | /^X\(\/\/\)[^/].*/{ | |
1201 | s//\1/ | |
1202 | q | |
1203 | } | |
1204 | /^X\(\/\/\)$/{ | |
1205 | s//\1/ | |
1206 | q | |
1207 | } | |
1208 | /^X\(\/\).*/{ | |
1209 | s//\1/ | |
1210 | q | |
1211 | } | |
1212 | s/.*/./; q'` | |
795ca3e5 | 1213 | srcdir=$ac_confdir |
7a197a62 | 1214 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1215 | srcdir=.. |
1216 | fi | |
1217 | else | |
1218 | ac_srcdir_defaulted=no | |
1219 | fi | |
7a197a62 AK |
1220 | if test ! -r "$srcdir/$ac_unique_file"; then |
1221 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
68f2de6d | 1222 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1223 | { (exit 1); exit 1; }; } |
795ca3e5 | 1224 | fi |
7a197a62 AK |
1225 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1226 | ac_abs_confdir=`( | |
68f2de6d | 1227 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1228 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1229 | pwd)` |
1230 | # When building in place, set srcdir=. | |
1231 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1232 | srcdir=. | |
1233 | fi | |
1234 | # Remove unnecessary trailing slashes from srcdir. | |
1235 | # Double slashes in file names in object file debugging info | |
1236 | # mess up M-x gdb in Emacs. | |
1237 | case $srcdir in | |
1238 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1239 | esac | |
1240 | for ac_var in $ac_precious_vars; do | |
1241 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1242 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1243 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1244 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1245 | done | |
ad6254c5 AK |
1246 | |
1247 | # | |
1248 | # Report the --help message. | |
1249 | # | |
1250 | if test "$ac_init_help" = "long"; then | |
1251 | # Omit some internal or obsolete options to make the list less imposing. | |
1252 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1253 | cat <<_ACEOF | |
1254 | \`configure' configures this package to adapt to many kinds of systems. | |
1255 | ||
1256 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1257 | ||
1258 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1259 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1260 | ||
1261 | Defaults for the options are specified in brackets. | |
1262 | ||
1263 | Configuration: | |
1264 | -h, --help display this help and exit | |
1265 | --help=short display options specific to this package | |
1266 | --help=recursive display the short help of all the included packages | |
1267 | -V, --version display version information and exit | |
1268 | -q, --quiet, --silent do not print \`checking...' messages | |
1269 | --cache-file=FILE cache test results in FILE [disabled] | |
1270 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1271 | -n, --no-create do not create output files | |
1272 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1273 | ||
ad6254c5 AK |
1274 | Installation directories: |
1275 | --prefix=PREFIX install architecture-independent files in PREFIX | |
68f2de6d | 1276 | [$ac_default_prefix] |
ad6254c5 | 1277 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
68f2de6d | 1278 | [PREFIX] |
ad6254c5 AK |
1279 | |
1280 | By default, \`make install' will install all the files in | |
1281 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1282 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1283 | for instance \`--prefix=\$HOME'. | |
1284 | ||
1285 | For better control, use the options below. | |
1286 | ||
1287 | Fine tuning of the installation directories: | |
68f2de6d AK |
1288 | --bindir=DIR user executables [EPREFIX/bin] |
1289 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1290 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1291 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1292 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1293 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1294 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1295 | --includedir=DIR C header files [PREFIX/include] | |
1296 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1297 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1298 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1299 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1300 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1301 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1302 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1303 | --htmldir=DIR html documentation [DOCDIR] | |
1304 | --dvidir=DIR dvi documentation [DOCDIR] | |
1305 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1306 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1307 | _ACEOF |
1308 | ||
1309 | cat <<\_ACEOF | |
1310 | ||
1311 | System types: | |
1312 | --build=BUILD configure for building on BUILD [guessed] | |
1313 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1314 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1315 | _ACEOF | |
1316 | fi | |
1317 | ||
1318 | if test -n "$ac_init_help"; then | |
1319 | ||
1320 | cat <<\_ACEOF | |
1321 | ||
1322 | Optional Features: | |
1323 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1324 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
ad6254c5 AK |
1325 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if |
1326 | device-mapper is missing from the kernel | |
1b523347 | 1327 | --disable-readline Disable readline support |
3d978351 | 1328 | --disable-realtime Disable realtime clock support |
ad6254c5 | 1329 | --enable-debug Enable debugging |
5556819a | 1330 | --enable-profiling Gather gcov profiling data |
93bd259b AK |
1331 | --disable-devmapper Disable LVM2 device-mapper interaction |
1332 | --enable-compat Enable support for old device-mapper versions | |
1333 | --disable-driver Disable calls to device-mapper in the kernel | |
ad6254c5 AK |
1334 | --disable-o_direct Disable O_DIRECT |
1335 | --enable-cmdlib Build shared command library | |
93bd259b | 1336 | --enable-pkgconfig Install pkgconfig support |
ad6254c5 | 1337 | --enable-fsadm Enable fsadm |
15d91f5a | 1338 | --enable-dmeventd Enable the device-mapper event daemon |
d0191583 JM |
1339 | --enable-static_link Use this to link the tools to their libraries |
1340 | statically. Default is dynamic linking | |
1341 | --disable-selinux Disable selinux support | |
ad6254c5 AK |
1342 | --enable-nls Enable Native Language Support |
1343 | ||
1344 | Optional Packages: | |
1345 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1346 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d0191583 JM |
1347 | --with-user=USER Set the owner of installed files [USER=root] |
1348 | --with-group=GROUP Set the group owner of installed files [GROUP=root] | |
93bd259b | 1349 | --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600] |
ad6254c5 AK |
1350 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
1351 | TYPE=internal | |
1352 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
1353 | TYPE=internal | |
1354 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
1355 | TYPE=internal | |
1356 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
1357 | TYPE=internal | |
1358 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
1359 | TYPE=internal | |
5c7fc7c4 | 1360 | --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all |
a266258f | 1361 | TYPE=none |
d0191583 JM |
1362 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
1363 | --with-localedir=DIR Translation files in DIR [PREFIX/share/locale] | |
ad6254c5 AK |
1364 | --with-confdir=DIR Configuration files in DIR /etc |
1365 | --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin | |
68f2de6d AK |
1366 | --with-usrlibdir=DIR |
1367 | --with-usrsbindir=DIR | |
93bd259b AK |
1368 | --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid] |
1369 | --with-dmeventd-path=PATH dmeventd path [${exec_prefix}/sbin/dmeventd] | |
1370 | --with-interface=IFACE Choose kernel interface (ioctl) [ioctl] | |
ad6254c5 AK |
1371 | |
1372 | Some influential environment variables: | |
1373 | CC C compiler command | |
1374 | CFLAGS C compiler flags | |
1375 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1376 | nonstandard directory <lib dir> | |
25fbec5b | 1377 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1378 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1379 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 AK |
1380 | CPP C preprocessor |
1381 | ||
1382 | Use these variables to override the choices made by `configure' or to help | |
1383 | it to find libraries and programs with nonstandard names/locations. | |
1384 | ||
1385 | _ACEOF | |
7a197a62 | 1386 | ac_status=$? |
ad6254c5 AK |
1387 | fi |
1388 | ||
1389 | if test "$ac_init_help" = "recursive"; then | |
1390 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1391 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
68f2de6d | 1392 | test -d "$ac_dir" || continue |
ad6254c5 AK |
1393 | ac_builddir=. |
1394 | ||
7a197a62 AK |
1395 | case "$ac_dir" in |
1396 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1397 | *) | |
68f2de6d | 1398 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7a197a62 | 1399 | # A ".." for each directory in $ac_dir_suffix. |
68f2de6d | 1400 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
7a197a62 AK |
1401 | case $ac_top_builddir_sub in |
1402 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1403 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1404 | esac ;; | |
1405 | esac | |
1406 | ac_abs_top_builddir=$ac_pwd | |
1407 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1408 | # for backward compatibility: | |
1409 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1410 | |
1411 | case $srcdir in | |
7a197a62 | 1412 | .) # We are building in place. |
ad6254c5 | 1413 | ac_srcdir=. |
7a197a62 AK |
1414 | ac_top_srcdir=$ac_top_builddir_sub |
1415 | ac_abs_top_srcdir=$ac_pwd ;; | |
1416 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1417 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1418 | ac_top_srcdir=$srcdir |
1419 | ac_abs_top_srcdir=$srcdir ;; | |
1420 | *) # Relative name. | |
1421 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1422 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1423 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1424 | esac |
7a197a62 AK |
1425 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1426 | ||
1427 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1428 | # Check for guested configure. | |
1429 | if test -f "$ac_srcdir/configure.gnu"; then | |
1430 | echo && | |
1431 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1432 | elif test -f "$ac_srcdir/configure"; then | |
1433 | echo && | |
1434 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1435 | else |
68f2de6d | 1436 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1437 | fi || ac_status=$? |
1438 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1439 | done |
1440 | fi | |
1441 | ||
7a197a62 | 1442 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1443 | if $ac_init_version; then |
1444 | cat <<\_ACEOF | |
7a197a62 | 1445 | configure |
68f2de6d | 1446 | generated by GNU Autoconf 2.61 |
ad6254c5 | 1447 | |
7a197a62 | 1448 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
68f2de6d | 1449 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
ad6254c5 AK |
1450 | This configure script is free software; the Free Software Foundation |
1451 | gives unlimited permission to copy, distribute and modify it. | |
1452 | _ACEOF | |
7a197a62 | 1453 | exit |
ad6254c5 | 1454 | fi |
7a197a62 | 1455 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1456 | This file contains any messages produced by compilers while |
1457 | running configure, to aid debugging if configure makes a mistake. | |
1458 | ||
1459 | It was created by $as_me, which was | |
68f2de6d | 1460 | generated by GNU Autoconf 2.61. Invocation command line was |
ad6254c5 AK |
1461 | |
1462 | $ $0 $@ | |
1463 | ||
1464 | _ACEOF | |
7a197a62 | 1465 | exec 5>>config.log |
ad6254c5 AK |
1466 | { |
1467 | cat <<_ASUNAME | |
1468 | ## --------- ## | |
1469 | ## Platform. ## | |
1470 | ## --------- ## | |
1471 | ||
1472 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1473 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1474 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1475 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1476 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1477 | ||
1478 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1479 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1480 | ||
1481 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1482 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1483 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1484 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1485 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1486 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1487 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1488 | ||
1489 | _ASUNAME | |
1490 | ||
1491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1492 | for as_dir in $PATH | |
1493 | do | |
1494 | IFS=$as_save_IFS | |
1495 | test -z "$as_dir" && as_dir=. | |
68f2de6d | 1496 | echo "PATH: $as_dir" |
ad6254c5 | 1497 | done |
7a197a62 | 1498 | IFS=$as_save_IFS |
ad6254c5 AK |
1499 | |
1500 | } >&5 | |
1501 | ||
1502 | cat >&5 <<_ACEOF | |
1503 | ||
1504 | ||
1505 | ## ----------- ## | |
1506 | ## Core tests. ## | |
1507 | ## ----------- ## | |
1508 | ||
1509 | _ACEOF | |
1510 | ||
1511 | ||
1512 | # Keep a trace of the command line. | |
1513 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1514 | # Strip out --silent because we don't want to record it for future runs. | |
1515 | # Also quote any args containing shell meta-characters. | |
1516 | # Make two passes to allow for proper duplicate-argument suppression. | |
1517 | ac_configure_args= | |
1518 | ac_configure_args0= | |
1519 | ac_configure_args1= | |
ad6254c5 AK |
1520 | ac_must_keep_next=false |
1521 | for ac_pass in 1 2 | |
1522 | do | |
1523 | for ac_arg | |
1524 | do | |
1525 | case $ac_arg in | |
1526 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1527 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1528 | | -silent | --silent | --silen | --sile | --sil) | |
1529 | continue ;; | |
7a197a62 | 1530 | *\'*) |
68f2de6d | 1531 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1532 | esac |
1533 | case $ac_pass in | |
1534 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1535 | 2) | |
1536 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1537 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1538 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1539 | else |
8a2fc586 AK |
1540 | case $ac_arg in |
1541 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1542 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1543 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1544 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1545 | case "$ac_configure_args0 " in | |
1546 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1547 | esac | |
1548 | ;; | |
1549 | -* ) ac_must_keep_next=true ;; | |
1550 | esac | |
ad6254c5 | 1551 | fi |
7a197a62 | 1552 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1553 | ;; |
1554 | esac | |
1555 | done | |
1556 | done | |
1557 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1558 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1559 | ||
1560 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1561 | # config.log. We remove comments because anyway the quotes in there | |
1562 | # would cause problems or look ugly. | |
7a197a62 AK |
1563 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1564 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1565 | trap 'exit_status=$? |
1566 | # Save into config.log some information that might help in debugging. | |
1567 | { | |
1568 | echo | |
1569 | ||
1570 | cat <<\_ASBOX | |
1571 | ## ---------------- ## | |
1572 | ## Cache variables. ## | |
1573 | ## ---------------- ## | |
1574 | _ASBOX | |
1575 | echo | |
1576 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1577 | ( |
1578 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1579 | eval ac_val=\$$ac_var | |
1580 | case $ac_val in #( | |
1581 | *${as_nl}*) | |
1582 | case $ac_var in #( | |
68f2de6d AK |
1583 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1584 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
7a197a62 AK |
1585 | esac |
1586 | case $ac_var in #( | |
1587 | _ | IFS | as_nl) ;; #( | |
1588 | *) $as_unset $ac_var ;; | |
1589 | esac ;; | |
1590 | esac | |
1591 | done | |
ad6254c5 | 1592 | (set) 2>&1 | |
7a197a62 AK |
1593 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1594 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1595 | sed -n \ |
7a197a62 AK |
1596 | "s/'\''/'\''\\\\'\'''\''/g; |
1597 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1598 | ;; #( | |
ad6254c5 | 1599 | *) |
7a197a62 | 1600 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1601 | ;; |
7a197a62 AK |
1602 | esac | |
1603 | sort | |
1604 | ) | |
ad6254c5 AK |
1605 | echo |
1606 | ||
1607 | cat <<\_ASBOX | |
1608 | ## ----------------- ## | |
1609 | ## Output variables. ## | |
1610 | ## ----------------- ## | |
1611 | _ASBOX | |
1612 | echo | |
1613 | for ac_var in $ac_subst_vars | |
1614 | do | |
7a197a62 AK |
1615 | eval ac_val=\$$ac_var |
1616 | case $ac_val in | |
68f2de6d | 1617 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1618 | esac |
68f2de6d | 1619 | echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1620 | done | sort |
1621 | echo | |
1622 | ||
1623 | if test -n "$ac_subst_files"; then | |
1624 | cat <<\_ASBOX | |
7a197a62 AK |
1625 | ## ------------------- ## |
1626 | ## File substitutions. ## | |
1627 | ## ------------------- ## | |
ad6254c5 AK |
1628 | _ASBOX |
1629 | echo | |
1630 | for ac_var in $ac_subst_files | |
1631 | do | |
7a197a62 AK |
1632 | eval ac_val=\$$ac_var |
1633 | case $ac_val in | |
68f2de6d | 1634 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1635 | esac |
68f2de6d | 1636 | echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1637 | done | sort |
1638 | echo | |
1639 | fi | |
1640 | ||
1641 | if test -s confdefs.h; then | |
1642 | cat <<\_ASBOX | |
1643 | ## ----------- ## | |
1644 | ## confdefs.h. ## | |
1645 | ## ----------- ## | |
1646 | _ASBOX | |
1647 | echo | |
7a197a62 | 1648 | cat confdefs.h |
ad6254c5 AK |
1649 | echo |
1650 | fi | |
1651 | test "$ac_signal" != 0 && | |
68f2de6d AK |
1652 | echo "$as_me: caught signal $ac_signal" |
1653 | echo "$as_me: exit $exit_status" | |
ad6254c5 | 1654 | } >&5 |
7a197a62 AK |
1655 | rm -f core *.core core.conftest.* && |
1656 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1657 | exit $exit_status |
7a197a62 | 1658 | ' 0 |
ad6254c5 AK |
1659 | for ac_signal in 1 2 13 15; do |
1660 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1661 | done | |
1662 | ac_signal=0 | |
1663 | ||
1664 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1665 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1666 | |
1667 | # Predefined preprocessor variables. | |
1668 | ||
1669 | cat >>confdefs.h <<_ACEOF | |
1670 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1671 | _ACEOF | |
1672 | ||
1673 | ||
1674 | cat >>confdefs.h <<_ACEOF | |
1675 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1676 | _ACEOF | |
1677 | ||
1678 | ||
1679 | cat >>confdefs.h <<_ACEOF | |
1680 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1681 | _ACEOF | |
8106cdd5 | 1682 | |
ad6254c5 AK |
1683 | |
1684 | cat >>confdefs.h <<_ACEOF | |
1685 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1686 | _ACEOF | |
1687 | ||
1688 | ||
1689 | cat >>confdefs.h <<_ACEOF | |
1690 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1691 | _ACEOF | |
1692 | ||
1693 | ||
1694 | # Let the site file select an alternate cache file if it wants to. | |
68f2de6d | 1695 | # Prefer explicitly selected file to automatically selected ones. |
7a197a62 | 1696 | if test -n "$CONFIG_SITE"; then |
68f2de6d | 1697 | set x "$CONFIG_SITE" |
7a197a62 | 1698 | elif test "x$prefix" != xNONE; then |
68f2de6d | 1699 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
7a197a62 | 1700 | else |
68f2de6d AK |
1701 | set x "$ac_default_prefix/share/config.site" \ |
1702 | "$ac_default_prefix/etc/config.site" | |
795ca3e5 | 1703 | fi |
68f2de6d AK |
1704 | shift |
1705 | for ac_site_file | |
7a197a62 | 1706 | do |
795ca3e5 | 1707 | if test -r "$ac_site_file"; then |
68f2de6d AK |
1708 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1709 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1710 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1711 | . "$ac_site_file" |
1712 | fi | |
1713 | done | |
1714 | ||
1715 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1716 | # Some versions of bash will fail to source /dev/null (special |
1717 | # files actually), so we avoid doing that. | |
1718 | if test -f "$cache_file"; then | |
68f2de6d AK |
1719 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1720 | echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 1721 | case $cache_file in |
7a197a62 AK |
1722 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1723 | *) . "./$cache_file";; | |
ad6254c5 AK |
1724 | esac |
1725 | fi | |
795ca3e5 | 1726 | else |
68f2de6d AK |
1727 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1728 | echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
1729 | >$cache_file |
1730 | fi | |
1731 | ||
1732 | # Check that the precious variables saved in the cache have kept the same | |
1733 | # value. | |
1734 | ac_cache_corrupted=false | |
7a197a62 | 1735 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
1736 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1737 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
1738 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1739 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
1740 | case $ac_old_set,$ac_new_set in |
1741 | set,) | |
68f2de6d AK |
1742 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1743 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
1744 | ac_cache_corrupted=: ;; |
1745 | ,set) | |
68f2de6d AK |
1746 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1747 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
1748 | ac_cache_corrupted=: ;; |
1749 | ,);; | |
1750 | *) | |
1751 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
68f2de6d AK |
1752 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1753 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1754 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1755 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1756 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1757 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1758 | ac_cache_corrupted=: | |
ad6254c5 AK |
1759 | fi;; |
1760 | esac | |
1761 | # Pass precious variables to config.status. | |
1762 | if test "$ac_new_set" = set; then | |
1763 | case $ac_new_val in | |
68f2de6d | 1764 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1765 | *) ac_arg=$ac_var=$ac_new_val ;; |
1766 | esac | |
1767 | case " $ac_configure_args " in | |
1768 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1769 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1770 | esac | |
1771 | fi | |
1772 | done | |
1773 | if $ac_cache_corrupted; then | |
68f2de6d AK |
1774 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1775 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1776 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1777 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 1778 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1779 | fi |
1780 | ||
ad6254c5 AK |
1781 | |
1782 | ||
1783 | ||
1784 | ||
1785 | ||
1786 | ||
1787 | ||
1788 | ||
1789 | ||
1790 | ||
1791 | ||
1792 | ||
1793 | ||
1794 | ||
1795 | ||
1796 | ||
7a197a62 AK |
1797 | ac_ext=c |
1798 | ac_cpp='$CPP $CPPFLAGS' | |
1799 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1800 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1801 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 1802 | |
795ca3e5 AK |
1803 | |
1804 | ||
7a197a62 | 1805 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
1806 | |
1807 | ||
80992638 | 1808 | ################################################################################ |
795ca3e5 | 1809 | ac_aux_dir= |
7a197a62 AK |
1810 | for ac_dir in autoconf "$srcdir"/autoconf; do |
1811 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
1812 | ac_aux_dir=$ac_dir |
1813 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1814 | break | |
7a197a62 | 1815 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
1816 | ac_aux_dir=$ac_dir |
1817 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1818 | break | |
7a197a62 | 1819 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
1820 | ac_aux_dir=$ac_dir |
1821 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1822 | break | |
795ca3e5 AK |
1823 | fi |
1824 | done | |
1825 | if test -z "$ac_aux_dir"; then | |
68f2de6d AK |
1826 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
1827 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 1828 | { (exit 1); exit 1; }; } |
795ca3e5 | 1829 | fi |
7a197a62 AK |
1830 | |
1831 | # These three variables are undocumented and unsupported, | |
1832 | # and are intended to be withdrawn in a future Autoconf release. | |
1833 | # They can cause serious problems if a builder's source tree is in a directory | |
1834 | # whose full name contains unusual characters. | |
1835 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1836 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1837 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1838 | ||
8ce0cbda AK |
1839 | |
1840 | ||
ad6254c5 | 1841 | ################################################################################ |
8ce0cbda | 1842 | # Make sure we can run config.sub. |
7a197a62 | 1843 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
68f2de6d AK |
1844 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
1845 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
1846 | { (exit 1); exit 1; }; } |
1847 | ||
68f2de6d AK |
1848 | { echo "$as_me:$LINENO: checking build system type" >&5 |
1849 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
ad6254c5 | 1850 | if test "${ac_cv_build+set}" = set; then |
68f2de6d | 1851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 1852 | else |
7a197a62 AK |
1853 | ac_build_alias=$build_alias |
1854 | test "x$ac_build_alias" = x && | |
1855 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
1856 | test "x$ac_build_alias" = x && | |
68f2de6d AK |
1857 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1858 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 1859 | { (exit 1); exit 1; }; } |
7a197a62 | 1860 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
68f2de6d AK |
1861 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
1862 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
1863 | { (exit 1); exit 1; }; } |
1864 | ||
1865 | fi | |
68f2de6d AK |
1866 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1867 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
7a197a62 AK |
1868 | case $ac_cv_build in |
1869 | *-*-*) ;; | |
68f2de6d AK |
1870 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
1871 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
1872 | { (exit 1); exit 1; }; };; |
1873 | esac | |
ad6254c5 | 1874 | build=$ac_cv_build |
7a197a62 AK |
1875 | ac_save_IFS=$IFS; IFS='-' |
1876 | set x $ac_cv_build | |
1877 | shift | |
1878 | build_cpu=$1 | |
1879 | build_vendor=$2 | |
1880 | shift; shift | |
1881 | # Remember, the first character of IFS is used to create $*, | |
1882 | # except with old shells: | |
1883 | build_os=$* | |
1884 | IFS=$ac_save_IFS | |
1885 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
1886 | |
1887 | ||
68f2de6d AK |
1888 | { echo "$as_me:$LINENO: checking host system type" >&5 |
1889 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
ad6254c5 | 1890 | if test "${ac_cv_host+set}" = set; then |
68f2de6d | 1891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 1892 | else |
7a197a62 AK |
1893 | if test "x$host_alias" = x; then |
1894 | ac_cv_host=$ac_cv_build | |
1895 | else | |
1896 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
68f2de6d AK |
1897 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
1898 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 1899 | { (exit 1); exit 1; }; } |
7a197a62 | 1900 | fi |
ad6254c5 AK |
1901 | |
1902 | fi | |
68f2de6d AK |
1903 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1904 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
7a197a62 AK |
1905 | case $ac_cv_host in |
1906 | *-*-*) ;; | |
68f2de6d AK |
1907 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
1908 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
1909 | { (exit 1); exit 1; }; };; |
1910 | esac | |
ad6254c5 | 1911 | host=$ac_cv_host |
7a197a62 AK |
1912 | ac_save_IFS=$IFS; IFS='-' |
1913 | set x $ac_cv_host | |
1914 | shift | |
1915 | host_cpu=$1 | |
1916 | host_vendor=$2 | |
1917 | shift; shift | |
1918 | # Remember, the first character of IFS is used to create $*, | |
1919 | # except with old shells: | |
1920 | host_os=$* | |
1921 | IFS=$ac_save_IFS | |
1922 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
1923 | |
1924 | ||
68f2de6d AK |
1925 | { echo "$as_me:$LINENO: checking target system type" >&5 |
1926 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } | |
ad6254c5 | 1927 | if test "${ac_cv_target+set}" = set; then |
68f2de6d | 1928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 1929 | else |
7a197a62 AK |
1930 | if test "x$target_alias" = x; then |
1931 | ac_cv_target=$ac_cv_host | |
1932 | else | |
1933 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
68f2de6d AK |
1934 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
1935 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 1936 | { (exit 1); exit 1; }; } |
7a197a62 | 1937 | fi |
8ce0cbda | 1938 | |
ad6254c5 | 1939 | fi |
68f2de6d AK |
1940 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
1941 | echo "${ECHO_T}$ac_cv_target" >&6; } | |
7a197a62 AK |
1942 | case $ac_cv_target in |
1943 | *-*-*) ;; | |
68f2de6d AK |
1944 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
1945 | echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
1946 | { (exit 1); exit 1; }; };; |
1947 | esac | |
ad6254c5 | 1948 | target=$ac_cv_target |
7a197a62 AK |
1949 | ac_save_IFS=$IFS; IFS='-' |
1950 | set x $ac_cv_target | |
1951 | shift | |
1952 | target_cpu=$1 | |
1953 | target_vendor=$2 | |
1954 | shift; shift | |
1955 | # Remember, the first character of IFS is used to create $*, | |
1956 | # except with old shells: | |
1957 | target_os=$* | |
1958 | IFS=$ac_save_IFS | |
1959 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 1960 | |
8ce0cbda | 1961 | |
ad6254c5 AK |
1962 | # The aliases save the names the user supplied, while $host etc. |
1963 | # will get canonicalized. | |
1964 | test -n "$target_alias" && | |
8ce0cbda AK |
1965 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1966 | NONENONEs,x,x, && | |
1967 | program_prefix=${target_alias}- | |
1968 | ||
8ce0cbda AK |
1969 | case "$host_os" in |
1970 | linux*) | |
8ce0cbda AK |
1971 | COPTIMISE_FLAG="-O2" |
1972 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
1973 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
1974 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
1975 | LDDEPS="$LDDEPS .export.sym" | |
1976 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 1977 | LIB_SUFFIX=so |
8ce0cbda AK |
1978 | DEVMAPPER=yes |
1979 | ODIRECT=yes | |
d0191583 | 1980 | DM_IOCTLS=yes |
8ce0cbda | 1981 | SELINUX=yes |
8b1a3214 | 1982 | REALTIME=yes |
8ce0cbda | 1983 | CLUSTER=internal |
93bd259b | 1984 | FSADM=yes |
d0191583 | 1985 | ;; |
8ce0cbda AK |
1986 | darwin*) |
1987 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
1988 | COPTIMISE_FLAG="-O2" | |
1989 | CLDFLAGS="$CLDFLAGS" | |
1990 | CLDWHOLEARCHIVE="-all_load" | |
1991 | CLDNOWHOLEARCHIVE= | |
d0191583 | 1992 | LIB_SUFFIX=dylib |
a653923f | 1993 | DEVMAPPER=yes |
8ce0cbda | 1994 | ODIRECT=no |
d0191583 | 1995 | DM_IOCTLS=no |
8ce0cbda | 1996 | SELINUX=no |
8b1a3214 | 1997 | REALTIME=no |
8ce0cbda | 1998 | CLUSTER=none |
d0191583 JM |
1999 | FSADM=no |
2000 | ;; | |
8ce0cbda AK |
2001 | esac |
2002 | ||
80992638 | 2003 | ################################################################################ |
5951ef33 AK |
2004 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
2005 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } | |
2006 | if test "${ac_cv_path_SED+set}" = set; then | |
2007 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2008 | else | |
2009 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2010 | for ac_i in 1 2 3 4 5 6 7; do | |
2011 | ac_script="$ac_script$as_nl$ac_script" | |
2012 | done | |
2013 | echo "$ac_script" | sed 99q >conftest.sed | |
2014 | $as_unset ac_script || ac_script= | |
2015 | # Extract the first word of "sed gsed" to use in msg output | |
2016 | if test -z "$SED"; then | |
2017 | set dummy sed gsed; ac_prog_name=$2 | |
2018 | if test "${ac_cv_path_SED+set}" = set; then | |
2019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2020 | else | |
2021 | ac_path_SED_found=false | |
2022 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2024 | for as_dir in $PATH | |
2025 | do | |
2026 | IFS=$as_save_IFS | |
2027 | test -z "$as_dir" && as_dir=. | |
2028 | for ac_prog in sed gsed; do | |
2029 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2030 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2031 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2032 | # Check for GNU ac_path_SED and select it if it is found. | |
2033 | # Check for GNU $ac_path_SED | |
2034 | case `"$ac_path_SED" --version 2>&1` in | |
2035 | *GNU*) | |
2036 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2037 | *) | |
2038 | ac_count=0 | |
2039 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
2040 | while : | |
2041 | do | |
2042 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2043 | mv "conftest.tmp" "conftest.in" | |
2044 | cp "conftest.in" "conftest.nl" | |
2045 | echo '' >> "conftest.nl" | |
2046 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2047 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2048 | ac_count=`expr $ac_count + 1` | |
2049 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2050 | # Best one so far, save it but keep looking for a better one | |
2051 | ac_cv_path_SED="$ac_path_SED" | |
2052 | ac_path_SED_max=$ac_count | |
2053 | fi | |
2054 | # 10*(2^10) chars as input seems more than enough | |
2055 | test $ac_count -gt 10 && break | |
2056 | done | |
2057 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2058 | esac | |
2059 | ||
2060 | ||
2061 | $ac_path_SED_found && break 3 | |
2062 | done | |
2063 | done | |
2064 | ||
2065 | done | |
2066 | IFS=$as_save_IFS | |
2067 | ||
2068 | ||
2069 | fi | |
2070 | ||
2071 | SED="$ac_cv_path_SED" | |
2072 | if test -z "$SED"; then | |
2073 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5 | |
2074 | echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;} | |
2075 | { (exit 1); exit 1; }; } | |
2076 | fi | |
2077 | ||
2078 | else | |
2079 | ac_cv_path_SED=$SED | |
2080 | fi | |
2081 | ||
2082 | fi | |
2083 | { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 | |
2084 | echo "${ECHO_T}$ac_cv_path_SED" >&6; } | |
2085 | SED="$ac_cv_path_SED" | |
2086 | rm -f conftest.sed | |
2087 | ||
ad6254c5 | 2088 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2089 | do |
ad6254c5 | 2090 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2091 | set dummy $ac_prog; ac_word=$2 |
68f2de6d AK |
2092 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2093 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2094 | if test "${ac_cv_prog_AWK+set}" = set; then |
68f2de6d | 2095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
2096 | else |
2097 | if test -n "$AWK"; then | |
2098 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2099 | else | |
ad6254c5 AK |
2100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2101 | for as_dir in $PATH | |
2102 | do | |
2103 | IFS=$as_save_IFS | |
2104 | test -z "$as_dir" && as_dir=. | |
2105 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2106 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2107 | ac_cv_prog_AWK="$ac_prog" |
68f2de6d | 2108 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2109 | break 2 |
2110 | fi | |
2111 | done | |
2112 | done | |
7a197a62 | 2113 | IFS=$as_save_IFS |
ad6254c5 | 2114 | |
795ca3e5 AK |
2115 | fi |
2116 | fi | |
ad6254c5 | 2117 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2118 | if test -n "$AWK"; then |
68f2de6d AK |
2119 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2120 | echo "${ECHO_T}$AWK" >&6; } | |
795ca3e5 | 2121 | else |
68f2de6d AK |
2122 | { echo "$as_me:$LINENO: result: no" >&5 |
2123 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2124 | fi |
2125 | ||
7a197a62 | 2126 | |
ad6254c5 AK |
2127 | test -n "$AWK" && break |
2128 | done | |
2129 | ||
2130 | ac_ext=c | |
2131 | ac_cpp='$CPP $CPPFLAGS' | |
2132 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2133 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2134 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2135 | if test -n "$ac_tool_prefix"; then | |
2136 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2137 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
68f2de6d AK |
2138 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2139 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2140 | if test "${ac_cv_prog_CC+set}" = set; then |
68f2de6d | 2141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2142 | else |
2143 | if test -n "$CC"; then | |
2144 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2145 | else | |
2146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2147 | for as_dir in $PATH | |
2148 | do | |
2149 | IFS=$as_save_IFS | |
2150 | test -z "$as_dir" && as_dir=. | |
2151 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2152 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2153 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
68f2de6d | 2154 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2155 | break 2 |
2156 | fi | |
2157 | done | |
8106cdd5 | 2158 | done |
7a197a62 | 2159 | IFS=$as_save_IFS |
8106cdd5 | 2160 | |
ad6254c5 AK |
2161 | fi |
2162 | fi | |
2163 | CC=$ac_cv_prog_CC | |
2164 | if test -n "$CC"; then | |
68f2de6d AK |
2165 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2166 | echo "${ECHO_T}$CC" >&6; } | |
ad6254c5 | 2167 | else |
68f2de6d AK |
2168 | { echo "$as_me:$LINENO: result: no" >&5 |
2169 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2170 | fi |
2171 | ||
7a197a62 | 2172 | |
ad6254c5 AK |
2173 | fi |
2174 | if test -z "$ac_cv_prog_CC"; then | |
2175 | ac_ct_CC=$CC | |
2176 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2177 | set dummy gcc; ac_word=$2 |
68f2de6d AK |
2178 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2179 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2180 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
68f2de6d | 2181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2182 | else |
2183 | if test -n "$ac_ct_CC"; then | |
2184 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2185 | else | |
2186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2187 | for as_dir in $PATH | |
2188 | do | |
2189 | IFS=$as_save_IFS | |
2190 | test -z "$as_dir" && as_dir=. | |
2191 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2192 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2193 | ac_cv_prog_ac_ct_CC="gcc" |
68f2de6d | 2194 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2195 | break 2 |
2196 | fi | |
2197 | done | |
2198 | done | |
7a197a62 | 2199 | IFS=$as_save_IFS |
ad6254c5 AK |
2200 | |
2201 | fi | |
2202 | fi | |
2203 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2204 | if test -n "$ac_ct_CC"; then | |
68f2de6d AK |
2205 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2206 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
ad6254c5 | 2207 | else |
68f2de6d AK |
2208 | { echo "$as_me:$LINENO: result: no" >&5 |
2209 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2210 | fi |
2211 | ||
7a197a62 AK |
2212 | if test "x$ac_ct_CC" = x; then |
2213 | CC="" | |
2214 | else | |
2215 | case $cross_compiling:$ac_tool_warned in | |
2216 | yes:) | |
68f2de6d | 2217 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2218 | whose name does not start with the host triplet. If you think this |
2219 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
68f2de6d | 2220 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2221 | whose name does not start with the host triplet. If you think this |
2222 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2223 | ac_tool_warned=yes ;; | |
2224 | esac | |
2225 | CC=$ac_ct_CC | |
2226 | fi | |
ad6254c5 AK |
2227 | else |
2228 | CC="$ac_cv_prog_CC" | |
2229 | fi | |
2230 | ||
2231 | if test -z "$CC"; then | |
7a197a62 AK |
2232 | if test -n "$ac_tool_prefix"; then |
2233 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2234 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
68f2de6d 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 |
68f2de6d | 2238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 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}cc" |
68f2de6d | 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 | |
8106cdd5 AK |
2258 | fi |
2259 | fi | |
ad6254c5 | 2260 | CC=$ac_cv_prog_CC |
8106cdd5 | 2261 | if test -n "$CC"; then |
68f2de6d AK |
2262 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2263 | echo "${ECHO_T}$CC" >&6; } | |
ad6254c5 | 2264 | else |
68f2de6d AK |
2265 | { echo "$as_me:$LINENO: result: no" >&5 |
2266 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
2267 | fi |
2268 | ||
8106cdd5 | 2269 | |
7a197a62 | 2270 | fi |
ad6254c5 | 2271 | fi |
795ca3e5 AK |
2272 | if test -z "$CC"; then |
2273 | # Extract the first word of "cc", so it can be a program name with args. | |
2274 | set dummy cc; ac_word=$2 | |
68f2de6d AK |
2275 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2276 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2277 | if test "${ac_cv_prog_CC+set}" = set; then |
68f2de6d | 2278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
2279 | else |
2280 | if test -n "$CC"; then | |
2281 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2282 | else | |
795ca3e5 | 2283 | ac_prog_rejected=no |
ad6254c5 AK |
2284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2285 | for as_dir in $PATH | |
2286 | do | |
2287 | IFS=$as_save_IFS | |
2288 | test -z "$as_dir" && as_dir=. | |
2289 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2290 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2291 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2292 | ac_prog_rejected=yes | |
2293 | continue | |
2294 | fi | |
2295 | ac_cv_prog_CC="cc" | |
68f2de6d | 2296 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2297 | break 2 |
2298 | fi | |
2299 | done | |
2300 | done | |
7a197a62 | 2301 | IFS=$as_save_IFS |
ad6254c5 | 2302 | |
795ca3e5 AK |
2303 | if test $ac_prog_rejected = yes; then |
2304 | # We found a bogon in the path, so make sure we never use it. | |
2305 | set dummy $ac_cv_prog_CC | |
2306 | shift | |
ad6254c5 | 2307 | if test $# != 0; then |
795ca3e5 AK |
2308 | # We chose a different compiler from the bogus one. |
2309 | # However, it has the same basename, so the bogon will be chosen | |
2310 | # first if we set CC to just the basename; use the full file name. | |
2311 | shift | |
ad6254c5 | 2312 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2313 | fi |
2314 | fi | |
2315 | fi | |
2316 | fi | |
ad6254c5 | 2317 | CC=$ac_cv_prog_CC |
795ca3e5 | 2318 | if test -n "$CC"; then |
68f2de6d AK |
2319 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2320 | echo "${ECHO_T}$CC" >&6; } | |
795ca3e5 | 2321 | else |
68f2de6d AK |
2322 | { echo "$as_me:$LINENO: result: no" >&5 |
2323 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2324 | fi |
2325 | ||
7a197a62 | 2326 | |
ad6254c5 AK |
2327 | fi |
2328 | if test -z "$CC"; then | |
2329 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2330 | for ac_prog in cl.exe |
ad6254c5 AK |
2331 | do |
2332 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2333 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
68f2de6d AK |
2334 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2335 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2336 | if test "${ac_cv_prog_CC+set}" = set; then |
68f2de6d | 2337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 AK |
2338 | else |
2339 | if test -n "$CC"; then | |
2340 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2341 | else | |
ad6254c5 AK |
2342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2343 | for as_dir in $PATH | |
2344 | do | |
2345 | IFS=$as_save_IFS | |
2346 | test -z "$as_dir" && as_dir=. | |
2347 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2348 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2349 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
68f2de6d | 2350 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2351 | break 2 |
2352 | fi | |
2353 | done | |
2354 | done | |
7a197a62 | 2355 | IFS=$as_save_IFS |
ad6254c5 | 2356 | |
795ca3e5 AK |
2357 | fi |
2358 | fi | |
ad6254c5 | 2359 | CC=$ac_cv_prog_CC |
795ca3e5 | 2360 | if test -n "$CC"; then |
68f2de6d AK |
2361 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2362 | echo "${ECHO_T}$CC" >&6; } | |
795ca3e5 | 2363 | else |
68f2de6d AK |
2364 | { echo "$as_me:$LINENO: result: no" >&5 |
2365 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 | 2366 | fi |
ad6254c5 | 2367 | |
7a197a62 | 2368 | |
ad6254c5 AK |
2369 | test -n "$CC" && break |
2370 | done | |
2371 | fi | |
2372 | if test -z "$CC"; then | |
2373 | ac_ct_CC=$CC | |
7a197a62 | 2374 | for ac_prog in cl.exe |
ad6254c5 AK |
2375 | do |
2376 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2377 | set dummy $ac_prog; ac_word=$2 | |
68f2de6d AK |
2378 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2379 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 2380 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
68f2de6d | 2381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2382 | else |
2383 | if test -n "$ac_ct_CC"; then | |
2384 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2385 | else | |
2386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2387 | for as_dir in $PATH | |
2388 | do | |
2389 | IFS=$as_save_IFS | |
2390 | test -z "$as_dir" && as_dir=. | |
2391 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2392 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2393 | ac_cv_prog_ac_ct_CC="$ac_prog" |
68f2de6d | 2394 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2395 | break 2 |
795ca3e5 | 2396 | fi |
ad6254c5 AK |
2397 | done |
2398 | done | |
7a197a62 | 2399 | IFS=$as_save_IFS |
ad6254c5 AK |
2400 | |
2401 | fi | |
2402 | fi | |
2403 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2404 | if test -n "$ac_ct_CC"; then | |
68f2de6d AK |
2405 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2406 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
ad6254c5 | 2407 | else |
68f2de6d AK |
2408 | { echo "$as_me:$LINENO: result: no" >&5 |
2409 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 AK |
2410 | fi |
2411 | ||
7a197a62 | 2412 | |
ad6254c5 AK |
2413 | test -n "$ac_ct_CC" && break |
2414 | done | |
795ca3e5 | 2415 | |
7a197a62 AK |
2416 | if test "x$ac_ct_CC" = x; then |
2417 | CC="" | |
2418 | else | |
2419 | case $cross_compiling:$ac_tool_warned in | |
2420 | yes:) | |
68f2de6d | 2421 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2422 | whose name does not start with the host triplet. If you think this |
2423 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
68f2de6d | 2424 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7a197a62 AK |
2425 | whose name does not start with the host triplet. If you think this |
2426 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2427 | ac_tool_warned=yes ;; | |
2428 | esac | |
2429 | CC=$ac_ct_CC | |
2430 | fi | |
ad6254c5 AK |
2431 | fi |
2432 | ||
2433 | fi | |
2434 | ||
2435 | ||
68f2de6d | 2436 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2437 | See \`config.log' for more details." >&5 |
68f2de6d | 2438 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 AK |
2439 | See \`config.log' for more details." >&2;} |
2440 | { (exit 1); exit 1; }; } | |
2441 | ||
2442 | # Provide some information about the compiler. | |
68f2de6d AK |
2443 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2444 | ac_compiler=`set X $ac_compile; echo $2` | |
7a197a62 AK |
2445 | { (ac_try="$ac_compiler --version >&5" |
2446 | case "(($ac_try" in | |
2447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2448 | *) ac_try_echo=$ac_try;; | |
2449 | esac | |
68f2de6d | 2450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2451 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2452 | ac_status=$? |
68f2de6d | 2453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2454 | (exit $ac_status); } |
7a197a62 AK |
2455 | { (ac_try="$ac_compiler -v >&5" |
2456 | case "(($ac_try" in | |
2457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2458 | *) ac_try_echo=$ac_try;; | |
2459 | esac | |
68f2de6d | 2460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2461 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2462 | ac_status=$? |
68f2de6d | 2463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2464 | (exit $ac_status); } |
7a197a62 AK |
2465 | { (ac_try="$ac_compiler -V >&5" |
2466 | case "(($ac_try" in | |
2467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2468 | *) ac_try_echo=$ac_try;; | |
2469 | esac | |
68f2de6d | 2470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2471 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2472 | ac_status=$? |
68f2de6d | 2473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2474 | (exit $ac_status); } |
2475 | ||
2476 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2477 | /* confdefs.h. */ |
2478 | _ACEOF | |
2479 | cat confdefs.h >>conftest.$ac_ext | |
2480 | cat >>conftest.$ac_ext <<_ACEOF | |
2481 | /* end confdefs.h. */ | |
2482 | ||
2483 | int | |
2484 | main () | |
2485 | { | |
2486 | ||
2487 | ; | |
2488 | return 0; | |
2489 | } | |
2490 | _ACEOF | |
2491 | ac_clean_files_save=$ac_clean_files | |
68f2de6d | 2492 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
ad6254c5 AK |
2493 | # Try to create an executable without -o first, disregard a.out. |
2494 | # It will help us diagnose broken compilers, and finding out an intuition | |
2495 | # of exeext. | |
68f2de6d AK |
2496 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2497 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
2498 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2499 | # | |
2500 | # List of possible output files, starting from the most likely. | |
2501 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2502 | # only as a last resort. b.out is created by i960 compilers. | |
2503 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2504 | # | |
2505 | # The IRIX 6 linker writes into existing files which may not be | |
2506 | # executable, retaining their permissions. Remove them first so a | |
2507 | # subsequent execution test works. | |
7a197a62 AK |
2508 | ac_rmfiles= |
2509 | for ac_file in $ac_files | |
2510 | do | |
2511 | case $ac_file in | |
68f2de6d | 2512 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
7a197a62 AK |
2513 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2514 | esac | |
2515 | done | |
2516 | rm -f $ac_rmfiles | |
2517 | ||
2518 | if { (ac_try="$ac_link_default" | |
2519 | case "(($ac_try" in | |
2520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2521 | *) ac_try_echo=$ac_try;; | |
2522 | esac | |
68f2de6d | 2523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2524 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2525 | ac_status=$? |
68f2de6d | 2526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2527 | (exit $ac_status); }; then |
7a197a62 AK |
2528 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2529 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2530 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2531 | # so that the user can short-circuit this test for compilers unknown to | |
2532 | # Autoconf. | |
25fbec5b | 2533 | for ac_file in $ac_files '' |
ad6254c5 AK |
2534 | do |
2535 | test -f "$ac_file" || continue | |
2536 | case $ac_file in | |
68f2de6d | 2537 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
8a2fc586 | 2538 | ;; |
ad6254c5 | 2539 | [ab].out ) |
8a2fc586 AK |
2540 | # We found the default executable, but exeext='' is most |
2541 | # certainly right. | |
2542 | break;; | |
ad6254c5 | 2543 | *.* ) |
7a197a62 AK |
2544 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2545 | then :; else | |
2546 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2547 | fi | |
2548 | # We set ac_cv_exeext here because the later test for it is not | |
2549 | # safe: cross compilers may not add the suffix if given an `-o' | |
2550 | # argument, so we may need to know it at that point already. | |
2551 | # Even if this section looks crufty: it has the advantage of | |
2552 | # actually working. | |
8a2fc586 | 2553 | break;; |
ad6254c5 | 2554 | * ) |
8a2fc586 | 2555 | break;; |
ad6254c5 AK |
2556 | esac |
2557 | done | |
7a197a62 AK |
2558 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2559 | ||
ad6254c5 | 2560 | else |
25fbec5b AK |
2561 | ac_file='' |
2562 | fi | |
2563 | ||
68f2de6d AK |
2564 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
2565 | echo "${ECHO_T}$ac_file" >&6; } | |
25fbec5b | 2566 | if test -z "$ac_file"; then |
68f2de6d | 2567 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2568 | sed 's/^/| /' conftest.$ac_ext >&5 |
2569 | ||
68f2de6d | 2570 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
ad6254c5 | 2571 | See \`config.log' for more details." >&5 |
68f2de6d | 2572 | echo "$as_me: error: C compiler cannot create executables |
ad6254c5 AK |
2573 | See \`config.log' for more details." >&2;} |
2574 | { (exit 77); exit 77; }; } | |
2575 | fi | |
2576 | ||
2577 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2578 | |
7a197a62 | 2579 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2580 | # the compiler is broken, or we cross compile. |
68f2de6d AK |
2581 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2582 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
ad6254c5 AK |
2583 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2584 | # If not cross compiling, check that we can run a simple program. | |
2585 | if test "$cross_compiling" != yes; then | |
2586 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2587 | { (case "(($ac_try" in |
2588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2589 | *) ac_try_echo=$ac_try;; | |
2590 | esac | |
68f2de6d | 2591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2592 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2593 | ac_status=$? |
68f2de6d | 2594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2595 | (exit $ac_status); }; }; then |
2596 | cross_compiling=no | |
795ca3e5 | 2597 | else |
ad6254c5 AK |
2598 | if test "$cross_compiling" = maybe; then |
2599 | cross_compiling=yes | |
2600 | else | |
68f2de6d | 2601 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
ad6254c5 AK |
2602 | If you meant to cross compile, use \`--host'. |
2603 | See \`config.log' for more details." >&5 | |
68f2de6d | 2604 | echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2605 | If you meant to cross compile, use \`--host'. |
2606 | See \`config.log' for more details." >&2;} | |
2607 | { (exit 1); exit 1; }; } | |
2608 | fi | |
795ca3e5 | 2609 | fi |
80992638 | 2610 | fi |
68f2de6d AK |
2611 | { echo "$as_me:$LINENO: result: yes" >&5 |
2612 | echo "${ECHO_T}yes" >&6; } | |
ad6254c5 | 2613 | |
68f2de6d | 2614 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2615 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2616 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2617 | # the compiler is broken, or we cross compile. |
68f2de6d AK |
2618 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2619 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2620 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2621 | echo "${ECHO_T}$cross_compiling" >&6; } | |
7a197a62 | 2622 | |
68f2de6d AK |
2623 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2624 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
7a197a62 AK |
2625 | if { (ac_try="$ac_link" |
2626 | case "(($ac_try" in | |
2627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2628 | *) ac_try_echo=$ac_try;; | |
2629 | esac | |
68f2de6d | 2630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2631 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2632 | ac_status=$? |
68f2de6d | 2633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2634 | (exit $ac_status); }; then |
2635 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2636 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2637 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2638 | # `rm'. | |
2639 | for ac_file in conftest.exe conftest conftest.*; do | |
2640 | test -f "$ac_file" || continue | |
2641 | case $ac_file in | |
68f2de6d | 2642 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
ad6254c5 | 2643 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2644 | break;; |
ad6254c5 AK |
2645 | * ) break;; |
2646 | esac | |
2647 | done | |
80992638 | 2648 | else |
68f2de6d | 2649 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2650 | See \`config.log' for more details." >&5 |
68f2de6d | 2651 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 AK |
2652 | See \`config.log' for more details." >&2;} |
2653 | { (exit 1); exit 1; }; } | |
2654 | fi | |
2655 | ||
2656 | rm -f conftest$ac_cv_exeext | |
68f2de6d AK |
2657 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2658 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2659 | |
2660 | rm -f conftest.$ac_ext | |
2661 | EXEEXT=$ac_cv_exeext | |
2662 | ac_exeext=$EXEEXT | |
68f2de6d AK |
2663 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2664 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
ad6254c5 | 2665 | if test "${ac_cv_objext+set}" = set; then |
68f2de6d | 2666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 2667 | else |
ad6254c5 | 2668 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2669 | /* confdefs.h. */ |
2670 | _ACEOF | |
2671 | cat confdefs.h >>conftest.$ac_ext | |
2672 | cat >>conftest.$ac_ext <<_ACEOF | |
2673 | /* end confdefs.h. */ | |
2674 | ||
2675 | int | |
2676 | main () | |
2677 | { | |
2678 | ||
2679 | ; | |
2680 | return 0; | |
2681 | } | |
2682 | _ACEOF | |
2683 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2684 | if { (ac_try="$ac_compile" |
2685 | case "(($ac_try" in | |
2686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2687 | *) ac_try_echo=$ac_try;; | |
2688 | esac | |
68f2de6d | 2689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2690 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2691 | ac_status=$? |
68f2de6d | 2692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2693 | (exit $ac_status); }; then |
7a197a62 AK |
2694 | for ac_file in conftest.o conftest.obj conftest.*; do |
2695 | test -f "$ac_file" || continue; | |
ad6254c5 | 2696 | case $ac_file in |
68f2de6d | 2697 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
ad6254c5 AK |
2698 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2699 | break;; | |
2700 | esac | |
2701 | done | |
2702 | else | |
68f2de6d | 2703 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2704 | sed 's/^/| /' conftest.$ac_ext >&5 |
2705 | ||
68f2de6d | 2706 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2707 | See \`config.log' for more details." >&5 |
68f2de6d | 2708 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 AK |
2709 | See \`config.log' for more details." >&2;} |
2710 | { (exit 1); exit 1; }; } | |
2711 | fi | |
2712 | ||
2713 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2714 | fi | |
68f2de6d AK |
2715 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2716 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2717 | OBJEXT=$ac_cv_objext |
2718 | ac_objext=$OBJEXT | |
68f2de6d AK |
2719 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2720 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
ad6254c5 | 2721 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
68f2de6d | 2722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
2723 | else |
2724 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
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 | #ifndef __GNUC__ | |
2735 | choke me | |
2736 | #endif | |
80992638 | 2737 | |
ad6254c5 AK |
2738 | ; |
2739 | return 0; | |
2740 | } | |
2741 | _ACEOF | |
2742 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2743 | if { (ac_try="$ac_compile" |
2744 | case "(($ac_try" in | |
2745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2746 | *) ac_try_echo=$ac_try;; | |
2747 | esac | |
68f2de6d | 2748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2749 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2750 | ac_status=$? |
8a2fc586 AK |
2751 | grep -v '^ *+' conftest.er1 >conftest.err |
2752 | rm -f conftest.er1 | |
2753 | cat conftest.err >&5 | |
68f2de6d | 2754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2755 | (exit $ac_status); } && { |
2756 | test -z "$ac_c_werror_flag" || | |
2757 | test ! -s conftest.err | |
2758 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 2759 | ac_compiler_gnu=yes |
80992638 | 2760 | else |
68f2de6d | 2761 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2762 | sed 's/^/| /' conftest.$ac_ext >&5 |
2763 | ||
7a197a62 | 2764 | ac_compiler_gnu=no |
8106cdd5 | 2765 | fi |
7a197a62 AK |
2766 | |
2767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2768 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 2769 | |
ad6254c5 | 2770 | fi |
68f2de6d AK |
2771 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2772 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
2773 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
ad6254c5 AK |
2774 | ac_test_CFLAGS=${CFLAGS+set} |
2775 | ac_save_CFLAGS=$CFLAGS | |
68f2de6d AK |
2776 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2777 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
ad6254c5 | 2778 | if test "${ac_cv_prog_cc_g+set}" = set; then |
68f2de6d | 2779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 2780 | else |
7a197a62 AK |
2781 | ac_save_c_werror_flag=$ac_c_werror_flag |
2782 | ac_c_werror_flag=yes | |
2783 | ac_cv_prog_cc_g=no | |
2784 | CFLAGS="-g" | |
2785 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2786 | /* confdefs.h. */ |
2787 | _ACEOF | |
2788 | cat confdefs.h >>conftest.$ac_ext | |
2789 | cat >>conftest.$ac_ext <<_ACEOF | |
2790 | /* end confdefs.h. */ | |
2791 | ||
2792 | int | |
2793 | main () | |
2794 | { | |
2795 | ||
2796 | ; | |
2797 | return 0; | |
2798 | } | |
2799 | _ACEOF | |
2800 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2801 | if { (ac_try="$ac_compile" |
2802 | case "(($ac_try" in | |
2803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2804 | *) ac_try_echo=$ac_try;; | |
2805 | esac | |
68f2de6d | 2806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2807 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2808 | ac_status=$? |
8a2fc586 AK |
2809 | grep -v '^ *+' conftest.er1 >conftest.err |
2810 | rm -f conftest.er1 | |
2811 | cat conftest.err >&5 | |
68f2de6d | 2812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2813 | (exit $ac_status); } && { |
2814 | test -z "$ac_c_werror_flag" || | |
2815 | test ! -s conftest.err | |
2816 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
2817 | ac_cv_prog_cc_g=yes |
2818 | else | |
68f2de6d | 2819 | echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2820 | sed 's/^/| /' conftest.$ac_ext >&5 |
2821 | ||
2822 | CFLAGS="" | |
2823 | cat >conftest.$ac_ext <<_ACEOF | |
2824 | /* confdefs.h. */ | |
2825 | _ACEOF | |
2826 | cat confdefs.h >>conftest.$ac_ext | |
2827 | cat >>conftest.$ac_ext <<_ACEOF | |
2828 | /* end confdefs.h. */ | |
2829 | ||
2830 | int | |
2831 | main () | |
2832 | { | |
2833 | ||
2834 | ; | |
2835 | return 0; | |
2836 | } | |
2837 | _ACEOF | |
2838 | rm -f conftest.$ac_objext | |
2839 | if { (ac_try="$ac_compile" | |
2840 | case "(($ac_try" in | |
2841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2842 | *) ac_try_echo=$ac_try;; | |
2843 | esac | |
68f2de6d | 2844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2845 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 2846 | ac_status=$? |
7a197a62 AK |
2847 | grep -v '^ *+' conftest.er1 >conftest.err |
2848 | rm -f conftest.er1 | |
2849 | cat conftest.err >&5 | |
68f2de6d | 2850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2851 | (exit $ac_status); } && { |
2852 | test -z "$ac_c_werror_flag" || | |
2853 | test ! -s conftest.err | |
2854 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
2855 | : |
2856 | else | |
68f2de6d | 2857 | echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
2858 | sed 's/^/| /' conftest.$ac_ext >&5 |
2859 | ||
2860 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2861 | CFLAGS="-g" | |
2862 | cat >conftest.$ac_ext <<_ACEOF | |
2863 | /* confdefs.h. */ | |
2864 | _ACEOF | |
2865 | cat confdefs.h >>conftest.$ac_ext | |
2866 | cat >>conftest.$ac_ext <<_ACEOF | |
2867 | /* end confdefs.h. */ | |
2868 | ||
2869 | int | |
2870 | main () | |
2871 | { | |
2872 | ||
2873 | ; | |
2874 | return 0; | |
2875 | } | |
2876 | _ACEOF | |
2877 | rm -f conftest.$ac_objext | |
2878 | if { (ac_try="$ac_compile" | |
2879 | case "(($ac_try" in | |
2880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2881 | *) ac_try_echo=$ac_try;; | |
2882 | esac | |
68f2de6d | 2883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 2884 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2885 | ac_status=$? |
7a197a62 AK |
2886 | grep -v '^ *+' conftest.er1 >conftest.err |
2887 | rm -f conftest.er1 | |
2888 | cat conftest.err >&5 | |
68f2de6d | 2889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2890 | (exit $ac_status); } && { |
2891 | test -z "$ac_c_werror_flag" || | |
2892 | test ! -s conftest.err | |
2893 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
2894 | ac_cv_prog_cc_g=yes |
2895 | else | |
68f2de6d | 2896 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 2897 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 2898 | |
7a197a62 AK |
2899 | |
2900 | fi | |
2901 | ||
2902 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2903 | fi | |
2904 | ||
2905 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 2906 | fi |
7a197a62 AK |
2907 | |
2908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2909 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 2910 | fi |
68f2de6d AK |
2911 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2912 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 2913 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 2914 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
2915 | elif test $ac_cv_prog_cc_g = yes; then |
2916 | if test "$GCC" = yes; then | |
2917 | CFLAGS="-g -O2" | |
2918 | else | |
2919 | CFLAGS="-g" | |
2920 | fi | |
2921 | else | |
2922 | if test "$GCC" = yes; then | |
2923 | CFLAGS="-O2" | |
2924 | else | |
2925 | CFLAGS= | |
2926 | fi | |
2927 | fi | |
68f2de6d AK |
2928 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2929 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
7a197a62 | 2930 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
68f2de6d | 2931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 2932 | else |
7a197a62 | 2933 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
2934 | ac_save_CC=$CC |
2935 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2936 | /* confdefs.h. */ |
2937 | _ACEOF | |
2938 | cat confdefs.h >>conftest.$ac_ext | |
2939 | cat >>conftest.$ac_ext <<_ACEOF | |
2940 | /* end confdefs.h. */ | |
2941 | #include <stdarg.h> | |
2942 | #include <stdio.h> | |
2943 | #include <sys/types.h> | |
2944 | #include <sys/stat.h> | |
2945 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2946 | struct buf { int x; }; | |
2947 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2948 | static char *e (p, i) | |
2949 | char **p; | |
2950 | int i; | |
2951 | { | |
2952 | return p[i]; | |
2953 | } | |
2954 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2955 | { | |
2956 | char *s; | |
2957 | va_list v; | |
2958 | va_start (v,p); | |
2959 | s = g (p, va_arg (v,int)); | |
2960 | va_end (v); | |
2961 | return s; | |
2962 | } | |
8a2fc586 AK |
2963 | |
2964 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2965 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2966 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 2967 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
2968 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2969 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 2970 | that's true only with -std. */ |
8a2fc586 AK |
2971 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2972 | ||
7a197a62 AK |
2973 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2974 | inside strings and character constants. */ | |
2975 | #define FOO(x) 'x' | |
2976 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2977 | ||
ad6254c5 AK |
2978 | int test (int i, double x); |
2979 | struct s1 {int (*f) (int a);}; | |
2980 | struct s2 {int (*f) (double a);}; | |
2981 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2982 | int argc; | |
2983 | char **argv; | |
2984 | int | |
2985 | main () | |
2986 | { | |
2987 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2988 | ; | |
2989 | return 0; | |
2990 | } | |
2991 | _ACEOF | |
7a197a62 AK |
2992 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2993 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
2994 | do |
2995 | CC="$ac_save_CC $ac_arg" | |
2996 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2997 | if { (ac_try="$ac_compile" |
2998 | case "(($ac_try" in | |
2999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3000 | *) ac_try_echo=$ac_try;; | |
3001 | esac | |
68f2de6d | 3002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 3003 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3004 | ac_status=$? |
8a2fc586 AK |
3005 | grep -v '^ *+' conftest.er1 >conftest.err |
3006 | rm -f conftest.er1 | |
3007 | cat conftest.err >&5 | |
68f2de6d | 3008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3009 | (exit $ac_status); } && { |
3010 | test -z "$ac_c_werror_flag" || | |
3011 | test ! -s conftest.err | |
3012 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 3013 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 3014 | else |
68f2de6d | 3015 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3016 | sed 's/^/| /' conftest.$ac_ext >&5 |
3017 | ||
7a197a62 | 3018 | |
ad6254c5 | 3019 | fi |
7a197a62 AK |
3020 | |
3021 | rm -f core conftest.err conftest.$ac_objext | |
3022 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 3023 | done |
7a197a62 | 3024 | rm -f conftest.$ac_ext |
ad6254c5 AK |
3025 | CC=$ac_save_CC |
3026 | ||
3027 | fi | |
7a197a62 AK |
3028 | # AC_CACHE_VAL |
3029 | case "x$ac_cv_prog_cc_c89" in | |
3030 | x) | |
68f2de6d AK |
3031 | { echo "$as_me:$LINENO: result: none needed" >&5 |
3032 | echo "${ECHO_T}none needed" >&6; } ;; | |
7a197a62 | 3033 | xno) |
68f2de6d AK |
3034 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
3035 | echo "${ECHO_T}unsupported" >&6; } ;; | |
ad6254c5 | 3036 | *) |
7a197a62 | 3037 | CC="$CC $ac_cv_prog_cc_c89" |
68f2de6d AK |
3038 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3039 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
3040 | esac |
3041 | ||
ad6254c5 | 3042 | |
ad6254c5 AK |
3043 | ac_ext=c |
3044 | ac_cpp='$CPP $CPPFLAGS' | |
3045 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3046 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3047 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 3048 | |
d0191583 JM |
3049 | |
3050 | ||
3051 | ac_ext=c | |
3052 | ac_cpp='$CPP $CPPFLAGS' | |
3053 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3054 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3055 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
68f2de6d AK |
3056 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3057 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
d0191583 JM |
3058 | # On Suns, sometimes $CPP names a directory. |
3059 | if test -n "$CPP" && test -d "$CPP"; then | |
3060 | CPP= | |
3061 | fi | |
3062 | if test -z "$CPP"; then | |
3063 | if test "${ac_cv_prog_CPP+set}" = set; then | |
68f2de6d | 3064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3065 | else |
d0191583 JM |
3066 | # Double quotes because CPP needs to be expanded |
3067 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3068 | do | |
3069 | ac_preproc_ok=false | |
3070 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 3071 | do |
d0191583 JM |
3072 | # Use a header file that comes with gcc, so configuring glibc |
3073 | # with a fresh cross-compiler works. | |
3074 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3075 | # <limits.h> exists even on freestanding compilers. | |
3076 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3077 | # not just through cpp. "Syntax error" is here to catch this case. | |
3078 | cat >conftest.$ac_ext <<_ACEOF | |
3079 | /* confdefs.h. */ | |
3080 | _ACEOF | |
3081 | cat confdefs.h >>conftest.$ac_ext | |
3082 | cat >>conftest.$ac_ext <<_ACEOF | |
3083 | /* end confdefs.h. */ | |
3084 | #ifdef __STDC__ | |
3085 | # include <limits.h> | |
3086 | #else | |
3087 | # include <assert.h> | |
3088 | #endif | |
3089 | Syntax error | |
3090 | _ACEOF | |
3091 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3092 | case "(($ac_try" in | |
3093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3094 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 3095 | esac |
68f2de6d | 3096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3097 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3098 | ac_status=$? | |
3099 | grep -v '^ *+' conftest.er1 >conftest.err | |
3100 | rm -f conftest.er1 | |
3101 | cat conftest.err >&5 | |
68f2de6d | 3102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3103 | (exit $ac_status); } >/dev/null && { |
3104 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3105 | test ! -s conftest.err | |
3106 | }; then | |
3107 | : | |
3108 | else | |
68f2de6d | 3109 | echo "$as_me: failed program was:" >&5 |
d0191583 | 3110 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3111 | |
d0191583 JM |
3112 | # Broken: fails on valid input. |
3113 | continue | |
795ca3e5 | 3114 | fi |
795ca3e5 | 3115 | |
d0191583 | 3116 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3117 | |
d0191583 JM |
3118 | # OK, works on sane cases. Now check whether nonexistent headers |
3119 | # can be detected and how. | |
3120 | cat >conftest.$ac_ext <<_ACEOF | |
3121 | /* confdefs.h. */ | |
3122 | _ACEOF | |
3123 | cat confdefs.h >>conftest.$ac_ext | |
3124 | cat >>conftest.$ac_ext <<_ACEOF | |
3125 | /* end confdefs.h. */ | |
3126 | #include <ac_nonexistent.h> | |
3127 | _ACEOF | |
3128 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3129 | case "(($ac_try" in | |
3130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3131 | *) ac_try_echo=$ac_try;; | |
3132 | esac | |
68f2de6d | 3133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3134 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3135 | ac_status=$? | |
3136 | grep -v '^ *+' conftest.er1 >conftest.err | |
3137 | rm -f conftest.er1 | |
3138 | cat conftest.err >&5 | |
68f2de6d | 3139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3140 | (exit $ac_status); } >/dev/null && { |
3141 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3142 | test ! -s conftest.err | |
3143 | }; then | |
3144 | # Broken: success on invalid input. | |
3145 | continue | |
3146 | else | |
68f2de6d | 3147 | echo "$as_me: failed program was:" >&5 |
d0191583 | 3148 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3149 | |
d0191583 JM |
3150 | # Passes both tests. |
3151 | ac_preproc_ok=: | |
3152 | break | |
3153 | fi | |
795ca3e5 | 3154 | |
d0191583 JM |
3155 | rm -f conftest.err conftest.$ac_ext |
3156 | ||
3157 | done | |
3158 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3159 | rm -f conftest.err conftest.$ac_ext | |
3160 | if $ac_preproc_ok; then | |
3161 | break | |
795ca3e5 AK |
3162 | fi |
3163 | ||
d0191583 JM |
3164 | done |
3165 | ac_cv_prog_CPP=$CPP | |
3166 | ||
3167 | fi | |
3168 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3169 | else |
d0191583 JM |
3170 | ac_cv_prog_CPP=$CPP |
3171 | fi | |
68f2de6d AK |
3172 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
3173 | echo "${ECHO_T}$CPP" >&6; } | |
d0191583 JM |
3174 | ac_preproc_ok=false |
3175 | for ac_c_preproc_warn_flag in '' yes | |
3176 | do | |
3177 | # Use a header file that comes with gcc, so configuring glibc | |
3178 | # with a fresh cross-compiler works. | |
3179 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3180 | # <limits.h> exists even on freestanding compilers. | |
3181 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3182 | # not just through cpp. "Syntax error" is here to catch this case. | |
3183 | cat >conftest.$ac_ext <<_ACEOF | |
3184 | /* confdefs.h. */ | |
ad6254c5 | 3185 | _ACEOF |
d0191583 JM |
3186 | cat confdefs.h >>conftest.$ac_ext |
3187 | cat >>conftest.$ac_ext <<_ACEOF | |
3188 | /* end confdefs.h. */ | |
3189 | #ifdef __STDC__ | |
3190 | # include <limits.h> | |
3191 | #else | |
3192 | # include <assert.h> | |
3193 | #endif | |
3194 | Syntax error | |
3195 | _ACEOF | |
3196 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3197 | case "(($ac_try" in | |
3198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3199 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3200 | esac |
68f2de6d | 3201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3202 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3203 | ac_status=$? | |
3204 | grep -v '^ *+' conftest.er1 >conftest.err | |
3205 | rm -f conftest.er1 | |
3206 | cat conftest.err >&5 | |
68f2de6d | 3207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3208 | (exit $ac_status); } >/dev/null && { |
3209 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3210 | test ! -s conftest.err | |
3211 | }; then | |
3212 | : | |
795ca3e5 | 3213 | else |
68f2de6d | 3214 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3215 | sed 's/^/| /' conftest.$ac_ext >&5 |
3216 | ||
3217 | # Broken: fails on valid input. | |
3218 | continue | |
795ca3e5 AK |
3219 | fi |
3220 | ||
d0191583 JM |
3221 | rm -f conftest.err conftest.$ac_ext |
3222 | ||
3223 | # OK, works on sane cases. Now check whether nonexistent headers | |
3224 | # can be detected and how. | |
3225 | cat >conftest.$ac_ext <<_ACEOF | |
3226 | /* confdefs.h. */ | |
3227 | _ACEOF | |
3228 | cat confdefs.h >>conftest.$ac_ext | |
3229 | cat >>conftest.$ac_ext <<_ACEOF | |
3230 | /* end confdefs.h. */ | |
3231 | #include <ac_nonexistent.h> | |
3232 | _ACEOF | |
3233 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3234 | case "(($ac_try" in | |
3235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3236 | *) ac_try_echo=$ac_try;; | |
3237 | esac | |
68f2de6d | 3238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3239 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3240 | ac_status=$? | |
3241 | grep -v '^ *+' conftest.er1 >conftest.err | |
3242 | rm -f conftest.er1 | |
3243 | cat conftest.err >&5 | |
68f2de6d | 3244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3245 | (exit $ac_status); } >/dev/null && { |
3246 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3247 | test ! -s conftest.err | |
3248 | }; then | |
3249 | # Broken: success on invalid input. | |
3250 | continue | |
795ca3e5 | 3251 | else |
68f2de6d | 3252 | echo "$as_me: failed program was:" >&5 |
d0191583 | 3253 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3254 | |
d0191583 JM |
3255 | # Passes both tests. |
3256 | ac_preproc_ok=: | |
3257 | break | |
795ca3e5 | 3258 | fi |
d0191583 JM |
3259 | |
3260 | rm -f conftest.err conftest.$ac_ext | |
3261 | ||
3262 | done | |
3263 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3264 | rm -f conftest.err conftest.$ac_ext | |
3265 | if $ac_preproc_ok; then | |
3266 | : | |
8106cdd5 | 3267 | else |
68f2de6d | 3268 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3269 | See \`config.log' for more details." >&5 |
68f2de6d | 3270 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 JM |
3271 | See \`config.log' for more details." >&2;} |
3272 | { (exit 1); exit 1; }; } | |
8106cdd5 AK |
3273 | fi |
3274 | ||
d0191583 JM |
3275 | ac_ext=c |
3276 | ac_cpp='$CPP $CPPFLAGS' | |
3277 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3278 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3279 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3280 | ||
7a197a62 | 3281 | |
68f2de6d AK |
3282 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3283 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
3284 | if test "${ac_cv_path_GREP+set}" = set; then | |
3285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3286 | else | |
3287 | # Extract the first word of "grep ggrep" to use in msg output | |
3288 | if test -z "$GREP"; then | |
3289 | set dummy grep ggrep; ac_prog_name=$2 | |
5556819a | 3290 | if test "${ac_cv_path_GREP+set}" = set; then |
68f2de6d | 3291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3292 | else |
d0191583 | 3293 | ac_path_GREP_found=false |
68f2de6d AK |
3294 | # Loop through the user's path and test for each of PROGNAME-LIST |
3295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3296 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3297 | do |
3298 | IFS=$as_save_IFS | |
3299 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3300 | for ac_prog in grep ggrep; do |
68f2de6d AK |
3301 | for ac_exec_ext in '' $ac_executable_extensions; do |
3302 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3303 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3304 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3305 | # Check for GNU $ac_path_GREP |
3306 | case `"$ac_path_GREP" --version 2>&1` in | |
3307 | *GNU*) | |
3308 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3309 | *) | |
3310 | ac_count=0 | |
68f2de6d | 3311 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
d0191583 JM |
3312 | while : |
3313 | do | |
3314 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3315 | mv "conftest.tmp" "conftest.in" | |
3316 | cp "conftest.in" "conftest.nl" | |
68f2de6d | 3317 | echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3318 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3319 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3320 | ac_count=`expr $ac_count + 1` | |
3321 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3322 | # Best one so far, save it but keep looking for a better one | |
3323 | ac_cv_path_GREP="$ac_path_GREP" | |
3324 | ac_path_GREP_max=$ac_count | |
3325 | fi | |
3326 | # 10*(2^10) chars as input seems more than enough | |
3327 | test $ac_count -gt 10 && break | |
3328 | done | |
3329 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3330 | esac | |
3331 | ||
68f2de6d AK |
3332 | |
3333 | $ac_path_GREP_found && break 3 | |
d0191583 | 3334 | done |
ad6254c5 | 3335 | done |
68f2de6d AK |
3336 | |
3337 | done | |
7a197a62 | 3338 | IFS=$as_save_IFS |
68f2de6d AK |
3339 | |
3340 | ||
3341 | fi | |
3342 | ||
3343 | GREP="$ac_cv_path_GREP" | |
3344 | if test -z "$GREP"; then | |
3345 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3346 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3347 | { (exit 1); exit 1; }; } |
68f2de6d AK |
3348 | fi |
3349 | ||
80992638 | 3350 | else |
d0191583 | 3351 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3352 | fi |
8106cdd5 | 3353 | |
68f2de6d | 3354 | |
80992638 | 3355 | fi |
68f2de6d AK |
3356 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3357 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
d0191583 | 3358 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3359 | |
d0191583 | 3360 | |
68f2de6d AK |
3361 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
3362 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
d0191583 | 3363 | if test "${ac_cv_path_EGREP+set}" = set; then |
68f2de6d | 3364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8a2fc586 | 3365 | else |
d0191583 JM |
3366 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3367 | then ac_cv_path_EGREP="$GREP -E" | |
3368 | else | |
68f2de6d AK |
3369 | # Extract the first word of "egrep" to use in msg output |
3370 | if test -z "$EGREP"; then | |
3371 | set dummy egrep; ac_prog_name=$2 | |
3372 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3374 | else | |
d0191583 | 3375 | ac_path_EGREP_found=false |
68f2de6d AK |
3376 | # Loop through the user's path and test for each of PROGNAME-LIST |
3377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3378 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3379 | do |
3380 | IFS=$as_save_IFS | |
3381 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3382 | for ac_prog in egrep; do |
68f2de6d AK |
3383 | for ac_exec_ext in '' $ac_executable_extensions; do |
3384 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3385 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3386 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3387 | # Check for GNU $ac_path_EGREP |
3388 | case `"$ac_path_EGREP" --version 2>&1` in | |
3389 | *GNU*) | |
3390 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3391 | *) | |
3392 | ac_count=0 | |
68f2de6d | 3393 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
d0191583 JM |
3394 | while : |
3395 | do | |
3396 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3397 | mv "conftest.tmp" "conftest.in" | |
3398 | cp "conftest.in" "conftest.nl" | |
68f2de6d | 3399 | echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3400 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3401 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3402 | ac_count=`expr $ac_count + 1` | |
3403 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3404 | # Best one so far, save it but keep looking for a better one | |
3405 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3406 | ac_path_EGREP_max=$ac_count | |
3407 | fi | |
3408 | # 10*(2^10) chars as input seems more than enough | |
3409 | test $ac_count -gt 10 && break | |
3410 | done | |
3411 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3412 | esac |
8a2fc586 | 3413 | |
68f2de6d AK |
3414 | |
3415 | $ac_path_EGREP_found && break 3 | |
d0191583 | 3416 | done |
8a2fc586 | 3417 | done |
68f2de6d AK |
3418 | |
3419 | done | |
7a197a62 | 3420 | IFS=$as_save_IFS |
68f2de6d AK |
3421 | |
3422 | ||
3423 | fi | |
3424 | ||
3425 | EGREP="$ac_cv_path_EGREP" | |
3426 | if test -z "$EGREP"; then | |
3427 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3428 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3429 | { (exit 1); exit 1; }; } |
68f2de6d AK |
3430 | fi |
3431 | ||
d0191583 JM |
3432 | else |
3433 | ac_cv_path_EGREP=$EGREP | |
3434 | fi | |
ad6254c5 | 3435 | |
68f2de6d | 3436 | |
d0191583 JM |
3437 | fi |
3438 | fi | |
68f2de6d AK |
3439 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3440 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3441 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3442 | |
3443 | ||
d0191583 | 3444 | if test $ac_cv_c_compiler_gnu = yes; then |
68f2de6d AK |
3445 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3446 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } | |
d0191583 | 3447 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
68f2de6d | 3448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 | 3449 | else |
d0191583 | 3450 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3451 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3452 | /* confdefs.h. */ |
3453 | _ACEOF | |
3454 | cat confdefs.h >>conftest.$ac_ext | |
3455 | cat >>conftest.$ac_ext <<_ACEOF | |
3456 | /* end confdefs.h. */ | |
d0191583 JM |
3457 | #include <sgtty.h> |
3458 | Autoconf TIOCGETP | |
ad6254c5 | 3459 | _ACEOF |
d0191583 JM |
3460 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3461 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3462 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3463 | else |
d0191583 | 3464 | ac_cv_prog_gcc_traditional=no |
80992638 | 3465 | fi |
d0191583 | 3466 | rm -f conftest* |
ad6254c5 | 3467 | |
8106cdd5 | 3468 | |
d0191583 JM |
3469 | if test $ac_cv_prog_gcc_traditional = no; then |
3470 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3471 | /* confdefs.h. */ |
3472 | _ACEOF | |
3473 | cat confdefs.h >>conftest.$ac_ext | |
3474 | cat >>conftest.$ac_ext <<_ACEOF | |
3475 | /* end confdefs.h. */ | |
d0191583 JM |
3476 | #include <termio.h> |
3477 | Autoconf TCGETA | |
ad6254c5 | 3478 | _ACEOF |
d0191583 JM |
3479 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3480 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3481 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3482 | fi |
d0191583 | 3483 | rm -f conftest* |
795ca3e5 | 3484 | |
d0191583 | 3485 | fi |
795ca3e5 | 3486 | fi |
68f2de6d AK |
3487 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3488 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3489 | if test $ac_cv_prog_gcc_traditional = yes; then |
3490 | CC="$CC -traditional" | |
3491 | fi | |
795ca3e5 AK |
3492 | fi |
3493 | ||
d0191583 JM |
3494 | # Find a good install program. We prefer a C program (faster), |
3495 | # so one script is as good as another. But avoid the broken or | |
3496 | # incompatible versions: | |
3497 | # SysV /etc/install, /usr/sbin/install | |
3498 | # SunOS /usr/etc/install | |
3499 | # IRIX /sbin/install | |
3500 | # AIX /bin/install | |
3501 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3502 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3503 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3504 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3505 | # OS/2's system install, which has a completely different semantic | |
3506 | # ./install, which can be erroneously created by make from ./install.sh. | |
68f2de6d AK |
3507 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3508 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
d0191583 JM |
3509 | if test -z "$INSTALL"; then |
3510 | if test "${ac_cv_path_install+set}" = set; then | |
68f2de6d | 3511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3512 | else |
d0191583 JM |
3513 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3514 | for as_dir in $PATH | |
3515 | do | |
3516 | IFS=$as_save_IFS | |
3517 | test -z "$as_dir" && as_dir=. | |
3518 | # Account for people who put trailing slashes in PATH elements. | |
3519 | case $as_dir/ in | |
3520 | ./ | .// | /cC/* | \ | |
3521 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3522 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3523 | /usr/ucb/* ) ;; | |
3524 | *) | |
3525 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3526 | # Don't use installbsd from OSF since it installs stuff as root | |
3527 | # by default. | |
3528 | for ac_prog in ginstall scoinst install; do | |
3529 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3530 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3531 | if test $ac_prog = install && | |
3532 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3533 | # AIX install. It has an incompatible calling convention. | |
3534 | : | |
3535 | elif test $ac_prog = install && | |
3536 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3537 | # program-specific install script used by HP pwplus--don't use. | |
3538 | : | |
3539 | else | |
68f2de6d AK |
3540 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
3541 | break 3 | |
d0191583 JM |
3542 | fi |
3543 | fi | |
3544 | done | |
3545 | done | |
3546 | ;; | |
3547 | esac | |
3548 | done | |
3549 | IFS=$as_save_IFS | |
80992638 | 3550 | |
d0191583 JM |
3551 | |
3552 | fi | |
3553 | if test "${ac_cv_path_install+set}" = set; then | |
3554 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3555 | else |
d0191583 JM |
3556 | # As a last resort, use the slow shell script. Don't cache a |
3557 | # value for INSTALL within a source directory, because that will | |
3558 | # break other packages using the cache if that directory is | |
3559 | # removed, or if the value is a relative name. | |
3560 | INSTALL=$ac_install_sh | |
7a197a62 | 3561 | fi |
d0191583 | 3562 | fi |
68f2de6d AK |
3563 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3564 | echo "${ECHO_T}$INSTALL" >&6; } | |
ad6254c5 | 3565 | |
d0191583 JM |
3566 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3567 | # It thinks the first close brace ends the variable substitution. | |
3568 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3569 | |
d0191583 | 3570 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3571 | |
d0191583 JM |
3572 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3573 | ||
68f2de6d AK |
3574 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3575 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
d0191583 JM |
3576 | LN_S=$as_ln_s |
3577 | if test "$LN_S" = "ln -s"; then | |
68f2de6d AK |
3578 | { echo "$as_me:$LINENO: result: yes" >&5 |
3579 | echo "${ECHO_T}yes" >&6; } | |
d0191583 | 3580 | else |
68f2de6d AK |
3581 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3582 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
795ca3e5 | 3583 | fi |
d0191583 | 3584 | |
68f2de6d AK |
3585 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3586 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
3587 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3588 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 3589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7a197a62 | 3590 | else |
d0191583 JM |
3591 | cat >conftest.make <<\_ACEOF |
3592 | SHELL = /bin/sh | |
3593 | all: | |
3594 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3595 | _ACEOF | |
3596 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3597 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3598 | *@@@%%%=?*=@@@%%%*) | |
3599 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3600 | *) | |
3601 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3602 | esac | |
3603 | rm -f conftest.make | |
ad6254c5 | 3604 | fi |
d0191583 | 3605 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
68f2de6d AK |
3606 | { echo "$as_me:$LINENO: result: yes" >&5 |
3607 | echo "${ECHO_T}yes" >&6; } | |
d0191583 JM |
3608 | SET_MAKE= |
3609 | else | |
68f2de6d AK |
3610 | { echo "$as_me:$LINENO: result: no" >&5 |
3611 | echo "${ECHO_T}no" >&6; } | |
d0191583 | 3612 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3613 | fi |
8106cdd5 | 3614 | |
68f2de6d AK |
3615 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3616 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } | |
5556819a AK |
3617 | if test -z "$MKDIR_P"; then |
3618 | if test "${ac_cv_path_mkdir+set}" = set; then | |
68f2de6d | 3619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5556819a AK |
3620 | else |
3621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3622 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3623 | do | |
3624 | IFS=$as_save_IFS | |
3625 | test -z "$as_dir" && as_dir=. | |
3626 | for ac_prog in mkdir gmkdir; do | |
3627 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3628 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3629 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3630 | 'mkdir (GNU coreutils) '* | \ | |
3631 | 'mkdir (coreutils) '* | \ | |
3632 | 'mkdir (fileutils) '4.1*) | |
3633 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3634 | break 3;; | |
3635 | esac | |
3636 | done | |
3637 | done | |
3638 | done | |
3639 | IFS=$as_save_IFS | |
3640 | ||
3641 | fi | |
3642 | ||
3643 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3644 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3645 | else | |
3646 | # As a last resort, use the slow shell script. Don't cache a | |
3647 | # value for MKDIR_P within a source directory, because that will | |
3648 | # break other packages using the cache if that directory is | |
3649 | # removed, or if the value is a relative name. | |
3650 | test -d ./--version && rmdir ./--version | |
3651 | MKDIR_P="$ac_install_sh -d" | |
3652 | fi | |
3653 | fi | |
68f2de6d AK |
3654 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
3655 | echo "${ECHO_T}$MKDIR_P" >&6; } | |
5556819a | 3656 | |
d0191583 JM |
3657 | if test -n "$ac_tool_prefix"; then |
3658 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3659 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
68f2de6d AK |
3660 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3661 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
d0191583 | 3662 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
68f2de6d | 3663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
3664 | else |
3665 | if test -n "$RANLIB"; then | |
3666 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3667 | else | |
3668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3669 | for as_dir in $PATH | |
3670 | do | |
3671 | IFS=$as_save_IFS | |
3672 | test -z "$as_dir" && as_dir=. | |
3673 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3674 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3675 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
68f2de6d | 3676 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3677 | break 2 |
3678 | fi | |
3679 | done | |
3680 | done | |
3681 | IFS=$as_save_IFS | |
8106cdd5 | 3682 | |
795ca3e5 | 3683 | fi |
d0191583 JM |
3684 | fi |
3685 | RANLIB=$ac_cv_prog_RANLIB | |
3686 | if test -n "$RANLIB"; then | |
68f2de6d AK |
3687 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3688 | echo "${ECHO_T}$RANLIB" >&6; } | |
d0191583 | 3689 | else |
68f2de6d AK |
3690 | { echo "$as_me:$LINENO: result: no" >&5 |
3691 | echo "${ECHO_T}no" >&6; } | |
d0191583 JM |
3692 | fi |
3693 | ||
8106cdd5 | 3694 | |
ad6254c5 | 3695 | fi |
d0191583 JM |
3696 | if test -z "$ac_cv_prog_RANLIB"; then |
3697 | ac_ct_RANLIB=$RANLIB | |
3698 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3699 | set dummy ranlib; ac_word=$2 | |
68f2de6d AK |
3700 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3701 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
d0191583 | 3702 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
68f2de6d | 3703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3704 | else |
d0191583 JM |
3705 | if test -n "$ac_ct_RANLIB"; then |
3706 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3707 | else | |
3708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3709 | for as_dir in $PATH | |
8106cdd5 | 3710 | do |
d0191583 JM |
3711 | IFS=$as_save_IFS |
3712 | test -z "$as_dir" && as_dir=. | |
3713 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3714 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3715 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
68f2de6d | 3716 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3717 | break 2 |
3718 | fi | |
3719 | done | |
3720 | done | |
3721 | IFS=$as_save_IFS | |
3722 | ||
3723 | fi | |
3724 | fi | |
3725 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3726 | if test -n "$ac_ct_RANLIB"; then | |
68f2de6d AK |
3727 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3728 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 3729 | else |
68f2de6d AK |
3730 | { echo "$as_me:$LINENO: result: no" >&5 |
3731 | echo "${ECHO_T}no" >&6; } | |
d0191583 | 3732 | fi |
ad6254c5 | 3733 | |
d0191583 JM |
3734 | if test "x$ac_ct_RANLIB" = x; then |
3735 | RANLIB=":" | |
3736 | else | |
3737 | case $cross_compiling:$ac_tool_warned in | |
3738 | yes:) | |
68f2de6d | 3739 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
d0191583 JM |
3740 | whose name does not start with the host triplet. If you think this |
3741 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
68f2de6d | 3742 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
d0191583 JM |
3743 | whose name does not start with the host triplet. If you think this |
3744 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3745 | ac_tool_warned=yes ;; | |
3746 | esac | |
3747 | RANLIB=$ac_ct_RANLIB | |
3748 | fi | |
3749 | else | |
3750 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 3751 | fi |
7a197a62 | 3752 | |
d0191583 JM |
3753 | # Extract the first word of "cflow", so it can be a program name with args. |
3754 | set dummy cflow; ac_word=$2 | |
68f2de6d AK |
3755 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3756 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
d0191583 | 3757 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
68f2de6d | 3758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
3759 | else |
3760 | case $CFLOW_CMD in | |
3761 | [\\/]* | ?:[\\/]*) | |
3762 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
3763 | ;; | |
3764 | *) | |
3765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3766 | for as_dir in $PATH | |
3767 | do | |
3768 | IFS=$as_save_IFS | |
3769 | test -z "$as_dir" && as_dir=. | |
3770 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3771 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3772 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
68f2de6d | 3773 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3774 | break 2 |
3775 | fi | |
3776 | done | |
3777 | done | |
3778 | IFS=$as_save_IFS | |
ad6254c5 | 3779 | |
d0191583 | 3780 | ;; |
7a197a62 | 3781 | esac |
d0191583 JM |
3782 | fi |
3783 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
3784 | if test -n "$CFLOW_CMD"; then | |
68f2de6d AK |
3785 | { echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
3786 | echo "${ECHO_T}$CFLOW_CMD" >&6; } | |
80992638 | 3787 | else |
68f2de6d AK |
3788 | { echo "$as_me:$LINENO: result: no" >&5 |
3789 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 | 3790 | fi |
7a197a62 | 3791 | |
ad6254c5 | 3792 | |
d0191583 JM |
3793 | # Extract the first word of "cscope", so it can be a program name with args. |
3794 | set dummy cscope; ac_word=$2 | |
68f2de6d AK |
3795 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3796 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
d0191583 | 3797 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
68f2de6d | 3798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
3799 | else |
3800 | case $CSCOPE_CMD in | |
3801 | [\\/]* | ?:[\\/]*) | |
3802 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
3803 | ;; | |
3804 | *) | |
3805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3806 | for as_dir in $PATH | |
3807 | do | |
3808 | IFS=$as_save_IFS | |
3809 | test -z "$as_dir" && as_dir=. | |
3810 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3811 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3812 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
68f2de6d | 3813 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3814 | break 2 |
3815 | fi | |
795ca3e5 | 3816 | done |
d0191583 JM |
3817 | done |
3818 | IFS=$as_save_IFS | |
795ca3e5 | 3819 | |
d0191583 JM |
3820 | ;; |
3821 | esac | |
ad6254c5 | 3822 | fi |
d0191583 JM |
3823 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
3824 | if test -n "$CSCOPE_CMD"; then | |
68f2de6d AK |
3825 | { echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
3826 | echo "${ECHO_T}$CSCOPE_CMD" >&6; } | |
795ca3e5 | 3827 | else |
68f2de6d AK |
3828 | { echo "$as_me:$LINENO: result: no" >&5 |
3829 | echo "${ECHO_T}no" >&6; } | |
795ca3e5 | 3830 | fi |
ad6254c5 | 3831 | |
7a197a62 | 3832 | |
ad6254c5 | 3833 | |
d0191583 JM |
3834 | ################################################################################ |
3835 | ||
3836 | ||
3837 | ||
3838 | ||
3839 | ||
3840 | ac_header_dirent=no | |
3841 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
68f2de6d AK |
3842 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
3843 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
3844 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } | |
d0191583 | 3845 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 3846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 | 3847 | else |
ad6254c5 | 3848 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3849 | /* confdefs.h. */ |
3850 | _ACEOF | |
3851 | cat confdefs.h >>conftest.$ac_ext | |
3852 | cat >>conftest.$ac_ext <<_ACEOF | |
3853 | /* end confdefs.h. */ | |
d0191583 JM |
3854 | #include <sys/types.h> |
3855 | #include <$ac_hdr> | |
3856 | ||
3857 | int | |
3858 | main () | |
3859 | { | |
3860 | if ((DIR *) 0) | |
3861 | return 0; | |
3862 | ; | |
3863 | return 0; | |
3864 | } | |
ad6254c5 | 3865 | _ACEOF |
d0191583 JM |
3866 | rm -f conftest.$ac_objext |
3867 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
3868 | case "(($ac_try" in |
3869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3870 | *) ac_try_echo=$ac_try;; | |
3871 | esac | |
68f2de6d | 3872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 | 3873 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
3874 | ac_status=$? |
3875 | grep -v '^ *+' conftest.er1 >conftest.err | |
3876 | rm -f conftest.er1 | |
3877 | cat conftest.err >&5 | |
68f2de6d | 3878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3879 | (exit $ac_status); } && { |
3880 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 3881 | test ! -s conftest.err |
d0191583 JM |
3882 | } && test -s conftest.$ac_objext; then |
3883 | eval "$as_ac_Header=yes" | |
ad6254c5 | 3884 | else |
68f2de6d | 3885 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3886 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 3887 | |
d0191583 | 3888 | eval "$as_ac_Header=no" |
795ca3e5 | 3889 | fi |
7a197a62 | 3890 | |
d0191583 | 3891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 3892 | fi |
68f2de6d AK |
3893 | ac_res=`eval echo '${'$as_ac_Header'}'` |
3894 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3895 | echo "${ECHO_T}$ac_res" >&6; } | |
3896 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
d0191583 | 3897 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 3898 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 3899 | _ACEOF |
795ca3e5 | 3900 | |
d0191583 JM |
3901 | ac_header_dirent=$ac_hdr; break |
3902 | fi | |
ad6254c5 | 3903 | |
d0191583 JM |
3904 | done |
3905 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
3906 | if test $ac_header_dirent = dirent.h; then | |
68f2de6d AK |
3907 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3908 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | |
d0191583 | 3909 | if test "${ac_cv_search_opendir+set}" = set; then |
68f2de6d | 3910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 3911 | else |
d0191583 JM |
3912 | ac_func_search_save_LIBS=$LIBS |
3913 | cat >conftest.$ac_ext <<_ACEOF | |
3914 | /* confdefs.h. */ | |
3915 | _ACEOF | |
3916 | cat confdefs.h >>conftest.$ac_ext | |
3917 | cat >>conftest.$ac_ext <<_ACEOF | |
3918 | /* end confdefs.h. */ | |
ad6254c5 | 3919 | |
d0191583 JM |
3920 | /* Override any GCC internal prototype to avoid an error. |
3921 | Use char because int might match the return type of a GCC | |
3922 | builtin and then its argument prototype would still apply. */ | |
3923 | #ifdef __cplusplus | |
3924 | extern "C" | |
3925 | #endif | |
3926 | char opendir (); | |
3927 | int | |
3928 | main () | |
3929 | { | |
3930 | return opendir (); | |
3931 | ; | |
3932 | return 0; | |
3933 | } | |
3934 | _ACEOF | |
3935 | for ac_lib in '' dir; do | |
3936 | if test -z "$ac_lib"; then | |
3937 | ac_res="none required" | |
3938 | else | |
3939 | ac_res=-l$ac_lib | |
3940 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3941 | fi | |
3942 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3943 | if { (ac_try="$ac_link" | |
3944 | case "(($ac_try" in | |
3945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3946 | *) ac_try_echo=$ac_try;; | |
3947 | esac | |
68f2de6d | 3948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
3949 | (eval "$ac_link") 2>conftest.er1 |
3950 | ac_status=$? | |
3951 | grep -v '^ *+' conftest.er1 >conftest.err | |
3952 | rm -f conftest.er1 | |
3953 | cat conftest.err >&5 | |
68f2de6d | 3954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3955 | (exit $ac_status); } && { |
3956 | test -z "$ac_c_werror_flag" || | |
3957 | test ! -s conftest.err | |
68f2de6d AK |
3958 | } && test -s conftest$ac_exeext && |
3959 | $as_test_x conftest$ac_exeext; then | |
d0191583 JM |
3960 | ac_cv_search_opendir=$ac_res |
3961 | else | |
68f2de6d | 3962 | echo "$as_me: failed program was:" >&5 |
d0191583 | 3963 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3964 | |
ad6254c5 | 3965 | |
795ca3e5 | 3966 | fi |
ad6254c5 | 3967 | |
d0191583 JM |
3968 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3969 | conftest$ac_exeext | |
3970 | if test "${ac_cv_search_opendir+set}" = set; then | |
3971 | break | |
7a197a62 | 3972 | fi |
d0191583 JM |
3973 | done |
3974 | if test "${ac_cv_search_opendir+set}" = set; then | |
3975 | : | |
7a197a62 | 3976 | else |
d0191583 | 3977 | ac_cv_search_opendir=no |
7a197a62 | 3978 | fi |
d0191583 JM |
3979 | rm conftest.$ac_ext |
3980 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 3981 | fi |
68f2de6d AK |
3982 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3983 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
3984 | ac_res=$ac_cv_search_opendir |
3985 | if test "$ac_res" != no; then | |
3986 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 3987 | |
d0191583 | 3988 | fi |
7a197a62 | 3989 | |
7a197a62 | 3990 | else |
68f2de6d AK |
3991 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3992 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | |
d0191583 | 3993 | if test "${ac_cv_search_opendir+set}" = set; then |
68f2de6d | 3994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7a197a62 | 3995 | else |
d0191583 JM |
3996 | ac_func_search_save_LIBS=$LIBS |
3997 | cat >conftest.$ac_ext <<_ACEOF | |
3998 | /* confdefs.h. */ | |
3999 | _ACEOF | |
4000 | cat confdefs.h >>conftest.$ac_ext | |
4001 | cat >>conftest.$ac_ext <<_ACEOF | |
4002 | /* end confdefs.h. */ | |
7a197a62 | 4003 | |
d0191583 JM |
4004 | /* Override any GCC internal prototype to avoid an error. |
4005 | Use char because int might match the return type of a GCC | |
4006 | builtin and then its argument prototype would still apply. */ | |
4007 | #ifdef __cplusplus | |
4008 | extern "C" | |
4009 | #endif | |
4010 | char opendir (); | |
4011 | int | |
4012 | main () | |
4013 | { | |
4014 | return opendir (); | |
4015 | ; | |
4016 | return 0; | |
4017 | } | |
4018 | _ACEOF | |
4019 | for ac_lib in '' x; do | |
4020 | if test -z "$ac_lib"; then | |
4021 | ac_res="none required" | |
4022 | else | |
4023 | ac_res=-l$ac_lib | |
4024 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4025 | fi | |
4026 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4027 | if { (ac_try="$ac_link" | |
4028 | case "(($ac_try" in | |
4029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4030 | *) ac_try_echo=$ac_try;; | |
4031 | esac | |
68f2de6d | 4032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
4033 | (eval "$ac_link") 2>conftest.er1 |
4034 | ac_status=$? | |
4035 | grep -v '^ *+' conftest.er1 >conftest.err | |
4036 | rm -f conftest.er1 | |
4037 | cat conftest.err >&5 | |
68f2de6d | 4038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4039 | (exit $ac_status); } && { |
4040 | test -z "$ac_c_werror_flag" || | |
4041 | test ! -s conftest.err | |
68f2de6d AK |
4042 | } && test -s conftest$ac_exeext && |
4043 | $as_test_x conftest$ac_exeext; then | |
d0191583 JM |
4044 | ac_cv_search_opendir=$ac_res |
4045 | else | |
68f2de6d | 4046 | echo "$as_me: failed program was:" >&5 |
d0191583 | 4047 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
4048 | |
4049 | ||
4050 | fi | |
4051 | ||
d0191583 JM |
4052 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4053 | conftest$ac_exeext | |
4054 | if test "${ac_cv_search_opendir+set}" = set; then | |
4055 | break | |
7a197a62 | 4056 | fi |
d0191583 JM |
4057 | done |
4058 | if test "${ac_cv_search_opendir+set}" = set; then | |
4059 | : | |
7a197a62 | 4060 | else |
d0191583 | 4061 | ac_cv_search_opendir=no |
7a197a62 | 4062 | fi |
d0191583 JM |
4063 | rm conftest.$ac_ext |
4064 | LIBS=$ac_func_search_save_LIBS | |
4065 | fi | |
68f2de6d AK |
4066 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4067 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4068 | ac_res=$ac_cv_search_opendir |
4069 | if test "$ac_res" != no; then | |
4070 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4071 | |
7a197a62 | 4072 | fi |
7a197a62 | 4073 | |
d0191583 | 4074 | fi |
7a197a62 | 4075 | |
68f2de6d AK |
4076 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4077 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
7a197a62 | 4078 | if test "${ac_cv_header_stdc+set}" = set; then |
68f2de6d | 4079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7a197a62 AK |
4080 | else |
4081 | cat >conftest.$ac_ext <<_ACEOF | |
4082 | /* confdefs.h. */ | |
4083 | _ACEOF | |
4084 | cat confdefs.h >>conftest.$ac_ext | |
4085 | cat >>conftest.$ac_ext <<_ACEOF | |
4086 | /* end confdefs.h. */ | |
4087 | #include <stdlib.h> | |
4088 | #include <stdarg.h> | |
4089 | #include <string.h> | |
4090 | #include <float.h> | |
4091 | ||
4092 | int | |
4093 | main () | |
4094 | { | |
4095 | ||
4096 | ; | |
4097 | return 0; | |
4098 | } | |
4099 | _ACEOF | |
4100 | rm -f conftest.$ac_objext | |
4101 | if { (ac_try="$ac_compile" | |
4102 | case "(($ac_try" in | |
4103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4104 | *) ac_try_echo=$ac_try;; | |
4105 | esac | |
68f2de6d | 4106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 AK |
4107 | (eval "$ac_compile") 2>conftest.er1 |
4108 | ac_status=$? | |
4109 | grep -v '^ *+' conftest.er1 >conftest.err | |
4110 | rm -f conftest.er1 | |
4111 | cat conftest.err >&5 | |
68f2de6d | 4112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4113 | (exit $ac_status); } && { |
4114 | test -z "$ac_c_werror_flag" || | |
4115 | test ! -s conftest.err | |
4116 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4117 | ac_cv_header_stdc=yes |
4118 | else | |
68f2de6d | 4119 | echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4120 | sed 's/^/| /' conftest.$ac_ext >&5 |
4121 | ||
4122 | ac_cv_header_stdc=no | |
4123 | fi | |
4124 | ||
4125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4126 | ||
4127 | if test $ac_cv_header_stdc = yes; then | |
4128 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4129 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4130 | /* confdefs.h. */ |
4131 | _ACEOF | |
4132 | cat confdefs.h >>conftest.$ac_ext | |
4133 | cat >>conftest.$ac_ext <<_ACEOF | |
4134 | /* end confdefs.h. */ | |
4135 | #include <string.h> | |
8106cdd5 | 4136 | |
ad6254c5 AK |
4137 | _ACEOF |
4138 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4139 | $EGREP "memchr" >/dev/null 2>&1; then | |
4140 | : | |
4141 | else | |
4142 | ac_cv_header_stdc=no | |
80992638 | 4143 | fi |
ad6254c5 | 4144 | rm -f conftest* |
795ca3e5 AK |
4145 | |
4146 | fi | |
4147 | ||
ad6254c5 AK |
4148 | if test $ac_cv_header_stdc = yes; then |
4149 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4150 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4151 | /* confdefs.h. */ |
4152 | _ACEOF | |
4153 | cat confdefs.h >>conftest.$ac_ext | |
4154 | cat >>conftest.$ac_ext <<_ACEOF | |
4155 | /* end confdefs.h. */ | |
80992638 | 4156 | #include <stdlib.h> |
ad6254c5 AK |
4157 | |
4158 | _ACEOF | |
80992638 | 4159 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4160 | $EGREP "free" >/dev/null 2>&1; then |
4161 | : | |
795ca3e5 | 4162 | else |
ad6254c5 | 4163 | ac_cv_header_stdc=no |
795ca3e5 | 4164 | fi |
80992638 | 4165 | rm -f conftest* |
8106cdd5 | 4166 | |
795ca3e5 AK |
4167 | fi |
4168 | ||
ad6254c5 AK |
4169 | if test $ac_cv_header_stdc = yes; then |
4170 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4171 | if test "$cross_compiling" = yes; then | |
4172 | : | |
795ca3e5 | 4173 | else |
ad6254c5 | 4174 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4175 | /* confdefs.h. */ |
4176 | _ACEOF | |
4177 | cat confdefs.h >>conftest.$ac_ext | |
4178 | cat >>conftest.$ac_ext <<_ACEOF | |
4179 | /* end confdefs.h. */ | |
4180 | #include <ctype.h> | |
7a197a62 | 4181 | #include <stdlib.h> |
ad6254c5 AK |
4182 | #if ((' ' & 0x0FF) == 0x020) |
4183 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4184 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4185 | #else | |
4186 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4187 | (('a' <= (c) && (c) <= 'i') \ |
4188 | || ('j' <= (c) && (c) <= 'r') \ | |
4189 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4190 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4191 | #endif |
ad6254c5 AK |
4192 | |
4193 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4194 | int | |
4195 | main () | |
4196 | { | |
4197 | int i; | |
4198 | for (i = 0; i < 256; i++) | |
4199 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4200 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4201 | return 2; |
4202 | return 0; | |
ad6254c5 AK |
4203 | } |
4204 | _ACEOF | |
4205 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4206 | if { (ac_try="$ac_link" |
4207 | case "(($ac_try" in | |
4208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4209 | *) ac_try_echo=$ac_try;; | |
4210 | esac | |
68f2de6d | 4211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4212 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4213 | ac_status=$? |
68f2de6d | 4214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4215 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4216 | { (case "(($ac_try" in |
4217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4218 | *) ac_try_echo=$ac_try;; | |
4219 | esac | |
68f2de6d | 4220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4221 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4222 | ac_status=$? |
68f2de6d | 4223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4224 | (exit $ac_status); }; }; then |
4225 | : | |
795ca3e5 | 4226 | else |
68f2de6d AK |
4227 | echo "$as_me: program exited with status $ac_status" >&5 |
4228 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4229 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4230 | |
ad6254c5 AK |
4231 | ( exit $ac_status ) |
4232 | ac_cv_header_stdc=no | |
80992638 | 4233 | fi |
7a197a62 | 4234 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4235 | fi |
7a197a62 AK |
4236 | |
4237 | ||
ad6254c5 AK |
4238 | fi |
4239 | fi | |
68f2de6d AK |
4240 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4241 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4242 | if test $ac_cv_header_stdc = yes; then |
4243 | ||
4244 | cat >>confdefs.h <<\_ACEOF | |
4245 | #define STDC_HEADERS 1 | |
4246 | _ACEOF | |
795ca3e5 AK |
4247 | |
4248 | fi | |
4249 | ||
68f2de6d AK |
4250 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4251 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } | |
ad6254c5 | 4252 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
68f2de6d | 4253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 | 4254 | else |
ad6254c5 | 4255 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4256 | /* confdefs.h. */ |
4257 | _ACEOF | |
4258 | cat confdefs.h >>conftest.$ac_ext | |
4259 | cat >>conftest.$ac_ext <<_ACEOF | |
4260 | /* end confdefs.h. */ | |
80992638 | 4261 | #include <sys/types.h> |
ad6254c5 AK |
4262 | #include <sys/wait.h> |
4263 | #ifndef WEXITSTATUS | |
7a197a62 | 4264 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
ad6254c5 AK |
4265 | #endif |
4266 | #ifndef WIFEXITED | |
4267 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4268 | #endif | |
4269 | ||
4270 | int | |
4271 | main () | |
4272 | { | |
4273 | int s; | |
4274 | wait (&s); | |
4275 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4276 | ; | |
4277 | return 0; | |
4278 | } | |
4279 | _ACEOF | |
4280 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4281 | if { (ac_try="$ac_compile" |
4282 | case "(($ac_try" in | |
4283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4284 | *) ac_try_echo=$ac_try;; | |
4285 | esac | |
68f2de6d | 4286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4287 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4288 | ac_status=$? |
8a2fc586 AK |
4289 | grep -v '^ *+' conftest.er1 >conftest.err |
4290 | rm -f conftest.er1 | |
4291 | cat conftest.err >&5 | |
68f2de6d | 4292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4293 | (exit $ac_status); } && { |
4294 | test -z "$ac_c_werror_flag" || | |
4295 | test ! -s conftest.err | |
4296 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4297 | ac_cv_header_sys_wait_h=yes |
4298 | else | |
68f2de6d | 4299 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4300 | sed 's/^/| /' conftest.$ac_ext >&5 |
4301 | ||
7a197a62 | 4302 | ac_cv_header_sys_wait_h=no |
8106cdd5 | 4303 | fi |
7a197a62 AK |
4304 | |
4305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4306 | fi |
68f2de6d AK |
4307 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
4308 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } | |
ad6254c5 | 4309 | if test $ac_cv_header_sys_wait_h = yes; then |
8106cdd5 | 4310 | |
ad6254c5 AK |
4311 | cat >>confdefs.h <<\_ACEOF |
4312 | #define HAVE_SYS_WAIT_H 1 | |
4313 | _ACEOF | |
795ca3e5 AK |
4314 | |
4315 | fi | |
4316 | ||
68f2de6d AK |
4317 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
4318 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } | |
ad6254c5 | 4319 | if test "${ac_cv_header_time+set}" = set; then |
68f2de6d | 4320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 4321 | else |
ad6254c5 | 4322 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4323 | /* confdefs.h. */ |
4324 | _ACEOF | |
4325 | cat confdefs.h >>conftest.$ac_ext | |
4326 | cat >>conftest.$ac_ext <<_ACEOF | |
4327 | /* end confdefs.h. */ | |
795ca3e5 AK |
4328 | #include <sys/types.h> |
4329 | #include <sys/time.h> | |
4330 | #include <time.h> | |
ad6254c5 AK |
4331 | |
4332 | int | |
4333 | main () | |
4334 | { | |
4335 | if ((struct tm *) 0) | |
4336 | return 0; | |
4337 | ; | |
4338 | return 0; | |
4339 | } | |
4340 | _ACEOF | |
4341 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4342 | if { (ac_try="$ac_compile" |
4343 | case "(($ac_try" in | |
4344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4345 | *) ac_try_echo=$ac_try;; | |
4346 | esac | |
68f2de6d | 4347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4348 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4349 | ac_status=$? |
8a2fc586 AK |
4350 | grep -v '^ *+' conftest.er1 >conftest.err |
4351 | rm -f conftest.er1 | |
4352 | cat conftest.err >&5 | |
68f2de6d | 4353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4354 | (exit $ac_status); } && { |
4355 | test -z "$ac_c_werror_flag" || | |
4356 | test ! -s conftest.err | |
4357 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
4358 | ac_cv_header_time=yes |
4359 | else | |
68f2de6d | 4360 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4361 | sed 's/^/| /' conftest.$ac_ext >&5 |
4362 | ||
7a197a62 | 4363 | ac_cv_header_time=no |
795ca3e5 | 4364 | fi |
7a197a62 AK |
4365 | |
4366 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4367 | fi |
68f2de6d AK |
4368 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
4369 | echo "${ECHO_T}$ac_cv_header_time" >&6; } | |
80992638 | 4370 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
4371 | |
4372 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 4373 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 4374 | _ACEOF |
b896caa1 | 4375 | |
8106cdd5 | 4376 | fi |
b896caa1 | 4377 | |
b896caa1 | 4378 | |
d0191583 JM |
4379 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4380 | ||
4381 | ||
4382 | ||
4383 | ||
4384 | ||
4385 | ||
4386 | ||
4387 | ||
4388 | ||
4389 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4390 | inttypes.h stdint.h unistd.h | |
4391 | do | |
68f2de6d AK |
4392 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4393 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4394 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
d0191583 | 4395 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
4397 | else |
4398 | cat >conftest.$ac_ext <<_ACEOF | |
4399 | /* confdefs.h. */ | |
4400 | _ACEOF | |
4401 | cat confdefs.h >>conftest.$ac_ext | |
4402 | cat >>conftest.$ac_ext <<_ACEOF | |
4403 | /* end confdefs.h. */ | |
4404 | $ac_includes_default | |
4405 | ||
4406 | #include <$ac_header> | |
4407 | _ACEOF | |
4408 | rm -f conftest.$ac_objext | |
4409 | if { (ac_try="$ac_compile" | |
4410 | case "(($ac_try" in | |
4411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4412 | *) ac_try_echo=$ac_try;; | |
4413 | esac | |
68f2de6d | 4414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
4415 | (eval "$ac_compile") 2>conftest.er1 |
4416 | ac_status=$? | |
4417 | grep -v '^ *+' conftest.er1 >conftest.err | |
4418 | rm -f conftest.er1 | |
4419 | cat conftest.err >&5 | |
68f2de6d | 4420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4421 | (exit $ac_status); } && { |
4422 | test -z "$ac_c_werror_flag" || | |
4423 | test ! -s conftest.err | |
4424 | } && test -s conftest.$ac_objext; then | |
4425 | eval "$as_ac_Header=yes" | |
4426 | else | |
68f2de6d | 4427 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4428 | sed 's/^/| /' conftest.$ac_ext >&5 |
4429 | ||
4430 | eval "$as_ac_Header=no" | |
4431 | fi | |
4432 | ||
4433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4434 | fi | |
68f2de6d AK |
4435 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4436 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4437 | echo "${ECHO_T}$ac_res" >&6; } | |
4438 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
d0191583 | 4439 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 4440 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d0191583 JM |
4441 | _ACEOF |
4442 | ||
4443 | fi | |
4444 | ||
4445 | done | |
4446 | ||
b896caa1 | 4447 | |
b896caa1 AK |
4448 | |
4449 | ||
795ca3e5 | 4450 | |
8106cdd5 | 4451 | |
80992638 | 4452 | |
795ca3e5 | 4453 | |
a38df97f | 4454 | |
80992638 | 4455 | |
d0191583 JM |
4456 | |
4457 | ||
4458 | ||
4459 | ||
4460 | ||
4461 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4462 | libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h | |
ad6254c5 | 4463 | do |
68f2de6d | 4464 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d0191583 | 4465 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
4466 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4467 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4468 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 | 4470 | fi |
68f2de6d AK |
4471 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4472 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4473 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 | 4474 | else |
d0191583 | 4475 | # Is the header compilable? |
68f2de6d AK |
4476 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4477 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
d0191583 | 4478 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4479 | /* confdefs.h. */ |
4480 | _ACEOF | |
4481 | cat confdefs.h >>conftest.$ac_ext | |
4482 | cat >>conftest.$ac_ext <<_ACEOF | |
4483 | /* end confdefs.h. */ | |
4484 | $ac_includes_default | |
ad6254c5 AK |
4485 | #include <$ac_header> |
4486 | _ACEOF | |
4487 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4488 | if { (ac_try="$ac_compile" |
4489 | case "(($ac_try" in | |
4490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4491 | *) ac_try_echo=$ac_try;; | |
4492 | esac | |
68f2de6d | 4493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4494 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4495 | ac_status=$? |
8a2fc586 AK |
4496 | grep -v '^ *+' conftest.er1 >conftest.err |
4497 | rm -f conftest.er1 | |
4498 | cat conftest.err >&5 | |
68f2de6d | 4499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4500 | (exit $ac_status); } && { |
4501 | test -z "$ac_c_werror_flag" || | |
4502 | test ! -s conftest.err | |
4503 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4504 | ac_header_compiler=yes |
ad6254c5 | 4505 | else |
68f2de6d | 4506 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4507 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4508 | |
d0191583 | 4509 | ac_header_compiler=no |
ad6254c5 | 4510 | fi |
7a197a62 AK |
4511 | |
4512 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
4513 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4514 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
d0191583 JM |
4515 | |
4516 | # Is the header present? | |
68f2de6d AK |
4517 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4518 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
d0191583 JM |
4519 | cat >conftest.$ac_ext <<_ACEOF |
4520 | /* confdefs.h. */ | |
4521 | _ACEOF | |
4522 | cat confdefs.h >>conftest.$ac_ext | |
4523 | cat >>conftest.$ac_ext <<_ACEOF | |
4524 | /* end confdefs.h. */ | |
4525 | #include <$ac_header> | |
4526 | _ACEOF | |
4527 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4528 | case "(($ac_try" in | |
4529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4530 | *) ac_try_echo=$ac_try;; | |
4531 | esac | |
68f2de6d | 4532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
4533 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4534 | ac_status=$? | |
4535 | grep -v '^ *+' conftest.er1 >conftest.err | |
4536 | rm -f conftest.er1 | |
4537 | cat conftest.err >&5 | |
68f2de6d | 4538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4539 | (exit $ac_status); } >/dev/null && { |
4540 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4541 | test ! -s conftest.err | |
4542 | }; then | |
4543 | ac_header_preproc=yes | |
4544 | else | |
68f2de6d | 4545 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4546 | sed 's/^/| /' conftest.$ac_ext >&5 |
4547 | ||
4548 | ac_header_preproc=no | |
4549 | fi | |
4550 | ||
4551 | rm -f conftest.err conftest.$ac_ext | |
68f2de6d AK |
4552 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4553 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
d0191583 JM |
4554 | |
4555 | # So? What about this header? | |
4556 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4557 | yes:no: ) | |
68f2de6d AK |
4558 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4559 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4560 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4561 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4562 | ac_header_preproc=yes |
4563 | ;; | |
4564 | no:yes:* ) | |
68f2de6d AK |
4565 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4566 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4567 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4568 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4569 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4570 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4571 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4572 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4573 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4574 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4575 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4576 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4577 | |
4578 | ;; | |
4579 | esac | |
68f2de6d AK |
4580 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4581 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
d0191583 | 4582 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
4584 | else |
4585 | eval "$as_ac_Header=\$ac_header_preproc" | |
a38df97f | 4586 | fi |
68f2de6d AK |
4587 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4588 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4589 | echo "${ECHO_T}$ac_res" >&6; } | |
d0191583 JM |
4590 | |
4591 | fi | |
68f2de6d | 4592 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4593 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 4594 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4595 | _ACEOF |
a38df97f | 4596 | |
d0191583 | 4597 | else |
68f2de6d AK |
4598 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4599 | echo "$as_me: error: bailing out" >&2;} | |
d0191583 | 4600 | { (exit 1); exit 1; }; } |
80992638 AK |
4601 | fi |
4602 | ||
ad6254c5 AK |
4603 | done |
4604 | ||
7d1552c9 | 4605 | |
d0191583 JM |
4606 | case "$host_os" in |
4607 | linux*) | |
7d1552c9 | 4608 | |
80992638 | 4609 | |
5a52dca9 | 4610 | |
d0191583 | 4611 | for ac_header in asm/byteorder.h linux/fs.h malloc.h |
ad6254c5 | 4612 | do |
68f2de6d | 4613 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4614 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
4615 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4616 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4617 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4619 | fi |
68f2de6d AK |
4620 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4621 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4622 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4623 | else |
4624 | # Is the header compilable? | |
68f2de6d AK |
4625 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4626 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4627 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4628 | /* confdefs.h. */ |
4629 | _ACEOF | |
4630 | cat confdefs.h >>conftest.$ac_ext | |
4631 | cat >>conftest.$ac_ext <<_ACEOF | |
4632 | /* end confdefs.h. */ | |
4633 | $ac_includes_default | |
4634 | #include <$ac_header> | |
4635 | _ACEOF | |
4636 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4637 | if { (ac_try="$ac_compile" |
4638 | case "(($ac_try" in | |
4639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4640 | *) ac_try_echo=$ac_try;; | |
4641 | esac | |
68f2de6d | 4642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4643 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4644 | ac_status=$? |
8a2fc586 AK |
4645 | grep -v '^ *+' conftest.er1 >conftest.err |
4646 | rm -f conftest.er1 | |
4647 | cat conftest.err >&5 | |
68f2de6d | 4648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4649 | (exit $ac_status); } && { |
4650 | test -z "$ac_c_werror_flag" || | |
4651 | test ! -s conftest.err | |
4652 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4653 | ac_header_compiler=yes |
4654 | else | |
68f2de6d | 4655 | echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4656 | sed 's/^/| /' conftest.$ac_ext >&5 |
4657 | ||
4658 | ac_header_compiler=no | |
4659 | fi | |
4660 | ||
4661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
4662 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4663 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4664 | |
4665 | # Is the header present? | |
68f2de6d AK |
4666 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4667 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4668 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4669 | /* confdefs.h. */ |
4670 | _ACEOF | |
4671 | cat confdefs.h >>conftest.$ac_ext | |
4672 | cat >>conftest.$ac_ext <<_ACEOF | |
4673 | /* end confdefs.h. */ | |
4674 | #include <$ac_header> | |
4675 | _ACEOF | |
7a197a62 AK |
4676 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4677 | case "(($ac_try" in | |
4678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4679 | *) ac_try_echo=$ac_try;; | |
4680 | esac | |
68f2de6d | 4681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4682 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4683 | ac_status=$? |
4684 | grep -v '^ *+' conftest.er1 >conftest.err | |
4685 | rm -f conftest.er1 | |
4686 | cat conftest.err >&5 | |
68f2de6d | 4687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4688 | (exit $ac_status); } >/dev/null && { |
4689 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4690 | test ! -s conftest.err | |
4691 | }; then | |
ad6254c5 AK |
4692 | ac_header_preproc=yes |
4693 | else | |
68f2de6d | 4694 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4695 | sed 's/^/| /' conftest.$ac_ext >&5 |
4696 | ||
4697 | ac_header_preproc=no | |
4698 | fi | |
7a197a62 | 4699 | |
ad6254c5 | 4700 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
4701 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4702 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4703 | |
4704 | # So? What about this header? | |
8a2fc586 AK |
4705 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4706 | yes:no: ) | |
68f2de6d AK |
4707 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4708 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4709 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4710 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4711 | ac_header_preproc=yes |
ad6254c5 | 4712 | ;; |
8a2fc586 | 4713 | no:yes:* ) |
68f2de6d AK |
4714 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4715 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4716 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4717 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4718 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4719 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4720 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4721 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4722 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4723 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4724 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4725 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4726 | |
ad6254c5 AK |
4727 | ;; |
4728 | esac | |
68f2de6d AK |
4729 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4730 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4731 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4733 | else |
8a2fc586 | 4734 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 4735 | fi |
68f2de6d AK |
4736 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4737 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4738 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4739 | |
4740 | fi | |
68f2de6d | 4741 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4742 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 4743 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4744 | _ACEOF |
b896caa1 | 4745 | |
d8ac0fbc | 4746 | else |
68f2de6d AK |
4747 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4748 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4749 | { (exit 1); exit 1; }; } |
80992638 AK |
4750 | fi |
4751 | ||
ad6254c5 | 4752 | done |
d0191583 JM |
4753 | ;; |
4754 | darwin*) | |
d8ac0fbc | 4755 | |
d8ac0fbc | 4756 | |
d0191583 | 4757 | for ac_header in machine/endian.h sys/disk.h |
ad6254c5 | 4758 | do |
68f2de6d | 4759 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4760 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
4761 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4762 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4763 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4765 | fi |
68f2de6d AK |
4766 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4767 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4768 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4769 | else |
4770 | # Is the header compilable? | |
68f2de6d AK |
4771 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4772 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4773 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4774 | /* confdefs.h. */ |
4775 | _ACEOF | |
4776 | cat confdefs.h >>conftest.$ac_ext | |
4777 | cat >>conftest.$ac_ext <<_ACEOF | |
4778 | /* end confdefs.h. */ | |
4779 | $ac_includes_default | |
4780 | #include <$ac_header> | |
4781 | _ACEOF | |
4782 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4783 | if { (ac_try="$ac_compile" |
4784 | case "(($ac_try" in | |
4785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4786 | *) ac_try_echo=$ac_try;; | |
4787 | esac | |
68f2de6d | 4788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4789 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4790 | ac_status=$? |
8a2fc586 AK |
4791 | grep -v '^ *+' conftest.er1 >conftest.err |
4792 | rm -f conftest.er1 | |
4793 | cat conftest.err >&5 | |
68f2de6d | 4794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4795 | (exit $ac_status); } && { |
4796 | test -z "$ac_c_werror_flag" || | |
4797 | test ! -s conftest.err | |
4798 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4799 | ac_header_compiler=yes |
4800 | else | |
68f2de6d | 4801 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4802 | sed 's/^/| /' conftest.$ac_ext >&5 |
4803 | ||
7a197a62 | 4804 | ac_header_compiler=no |
ad6254c5 | 4805 | fi |
7a197a62 AK |
4806 | |
4807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
4808 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4809 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4810 | |
4811 | # Is the header present? | |
68f2de6d AK |
4812 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4813 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4814 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4815 | /* confdefs.h. */ |
4816 | _ACEOF | |
4817 | cat confdefs.h >>conftest.$ac_ext | |
4818 | cat >>conftest.$ac_ext <<_ACEOF | |
4819 | /* end confdefs.h. */ | |
4820 | #include <$ac_header> | |
4821 | _ACEOF | |
7a197a62 AK |
4822 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4823 | case "(($ac_try" in | |
4824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4825 | *) ac_try_echo=$ac_try;; | |
4826 | esac | |
68f2de6d | 4827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4828 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4829 | ac_status=$? |
4830 | grep -v '^ *+' conftest.er1 >conftest.err | |
4831 | rm -f conftest.er1 | |
4832 | cat conftest.err >&5 | |
68f2de6d | 4833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4834 | (exit $ac_status); } >/dev/null && { |
4835 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4836 | test ! -s conftest.err | |
4837 | }; then | |
ad6254c5 AK |
4838 | ac_header_preproc=yes |
4839 | else | |
68f2de6d | 4840 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4841 | sed 's/^/| /' conftest.$ac_ext >&5 |
4842 | ||
4843 | ac_header_preproc=no | |
4844 | fi | |
7a197a62 | 4845 | |
ad6254c5 | 4846 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
4847 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4848 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4849 | |
4850 | # So? What about this header? | |
8a2fc586 AK |
4851 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4852 | yes:no: ) | |
68f2de6d AK |
4853 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4854 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4855 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4856 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4857 | ac_header_preproc=yes |
ad6254c5 | 4858 | ;; |
8a2fc586 | 4859 | no:yes:* ) |
68f2de6d AK |
4860 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4861 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4862 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4863 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4864 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4865 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4866 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4867 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4868 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4869 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4870 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4871 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4872 | |
ad6254c5 AK |
4873 | ;; |
4874 | esac | |
68f2de6d AK |
4875 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4876 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4877 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4879 | else |
8a2fc586 | 4880 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 4881 | fi |
68f2de6d AK |
4882 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4883 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4884 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
4885 | |
4886 | fi | |
68f2de6d | 4887 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 4888 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 4889 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4890 | _ACEOF |
4922197a | 4891 | |
4922197a | 4892 | else |
68f2de6d AK |
4893 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
4894 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 4895 | { (exit 1); exit 1; }; } |
80992638 AK |
4896 | fi |
4897 | ||
ad6254c5 | 4898 | done |
d0191583 JM |
4899 | ;; |
4900 | esac | |
4922197a | 4901 | |
4922197a | 4902 | |
4922197a | 4903 | |
ad6254c5 AK |
4904 | |
4905 | ||
d0191583 JM |
4906 | |
4907 | ||
4908 | ||
4909 | ||
4910 | ||
4911 | ||
4912 | ||
4913 | ||
4914 | ||
4915 | ||
4916 | ||
4917 | ||
4918 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
4919 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
4920 | sys/types.h unistd.h | |
ad6254c5 | 4921 | do |
68f2de6d | 4922 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4923 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
4924 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4925 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 4926 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 4927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 4928 | fi |
68f2de6d AK |
4929 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4930 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4931 | echo "${ECHO_T}$ac_res" >&6; } | |
795ca3e5 | 4932 | else |
ad6254c5 | 4933 | # Is the header compilable? |
68f2de6d AK |
4934 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4935 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 4936 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4937 | /* confdefs.h. */ |
4938 | _ACEOF | |
4939 | cat confdefs.h >>conftest.$ac_ext | |
4940 | cat >>conftest.$ac_ext <<_ACEOF | |
4941 | /* end confdefs.h. */ | |
4942 | $ac_includes_default | |
4943 | #include <$ac_header> | |
4944 | _ACEOF | |
4945 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4946 | if { (ac_try="$ac_compile" |
4947 | case "(($ac_try" in | |
4948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4949 | *) ac_try_echo=$ac_try;; | |
4950 | esac | |
68f2de6d | 4951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4952 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4953 | ac_status=$? |
8a2fc586 AK |
4954 | grep -v '^ *+' conftest.er1 >conftest.err |
4955 | rm -f conftest.er1 | |
4956 | cat conftest.err >&5 | |
68f2de6d | 4957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4958 | (exit $ac_status); } && { |
4959 | test -z "$ac_c_werror_flag" || | |
4960 | test ! -s conftest.err | |
4961 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4962 | ac_header_compiler=yes |
4963 | else | |
68f2de6d | 4964 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4965 | sed 's/^/| /' conftest.$ac_ext >&5 |
4966 | ||
7a197a62 | 4967 | ac_header_compiler=no |
ad6254c5 | 4968 | fi |
7a197a62 AK |
4969 | |
4970 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
4971 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4972 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4973 | |
4974 | # Is the header present? | |
68f2de6d AK |
4975 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4976 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 4977 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4978 | /* confdefs.h. */ |
4979 | _ACEOF | |
4980 | cat confdefs.h >>conftest.$ac_ext | |
4981 | cat >>conftest.$ac_ext <<_ACEOF | |
4982 | /* end confdefs.h. */ | |
4983 | #include <$ac_header> | |
4984 | _ACEOF | |
7a197a62 AK |
4985 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4986 | case "(($ac_try" in | |
4987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4988 | *) ac_try_echo=$ac_try;; | |
4989 | esac | |
68f2de6d | 4990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 4991 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4992 | ac_status=$? |
4993 | grep -v '^ *+' conftest.er1 >conftest.err | |
4994 | rm -f conftest.er1 | |
4995 | cat conftest.err >&5 | |
68f2de6d | 4996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4997 | (exit $ac_status); } >/dev/null && { |
4998 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4999 | test ! -s conftest.err | |
5000 | }; then | |
ad6254c5 AK |
5001 | ac_header_preproc=yes |
5002 | else | |
68f2de6d | 5003 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5004 | sed 's/^/| /' conftest.$ac_ext >&5 |
5005 | ||
5006 | ac_header_preproc=no | |
5007 | fi | |
7a197a62 | 5008 | |
ad6254c5 | 5009 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
5010 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5011 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5012 | |
5013 | # So? What about this header? | |
8a2fc586 AK |
5014 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5015 | yes:no: ) | |
68f2de6d AK |
5016 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5017 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5018 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5019 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5020 | ac_header_preproc=yes |
ad6254c5 | 5021 | ;; |
8a2fc586 | 5022 | no:yes:* ) |
68f2de6d AK |
5023 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5024 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5025 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5026 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5027 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5028 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5029 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5030 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5031 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5032 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5033 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5034 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5035 | |
ad6254c5 AK |
5036 | ;; |
5037 | esac | |
68f2de6d AK |
5038 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5039 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 5040 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 5041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5042 | else |
8a2fc586 | 5043 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 5044 | fi |
68f2de6d AK |
5045 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5046 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5047 | echo "${ECHO_T}$ac_res" >&6; } | |
80992638 | 5048 | |
ad6254c5 | 5049 | fi |
68f2de6d | 5050 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 5051 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 5052 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5053 | _ACEOF |
795ca3e5 | 5054 | |
795ca3e5 | 5055 | else |
68f2de6d AK |
5056 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
5057 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5058 | { (exit 1); exit 1; }; } |
80992638 AK |
5059 | fi |
5060 | ||
ad6254c5 | 5061 | done |
ad6254c5 | 5062 | |
795ca3e5 | 5063 | |
d0191583 JM |
5064 | |
5065 | for ac_header in termios.h sys/statvfs.h | |
ad6254c5 | 5066 | do |
68f2de6d | 5067 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5068 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
5069 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5070 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 5071 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 5072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5073 | fi |
68f2de6d AK |
5074 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5075 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5076 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
5077 | else |
5078 | # Is the header compilable? | |
68f2de6d AK |
5079 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5080 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 5081 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5082 | /* confdefs.h. */ |
5083 | _ACEOF | |
5084 | cat confdefs.h >>conftest.$ac_ext | |
5085 | cat >>conftest.$ac_ext <<_ACEOF | |
5086 | /* end confdefs.h. */ | |
5087 | $ac_includes_default | |
5088 | #include <$ac_header> | |
5089 | _ACEOF | |
5090 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5091 | if { (ac_try="$ac_compile" |
5092 | case "(($ac_try" in | |
5093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5094 | *) ac_try_echo=$ac_try;; | |
5095 | esac | |
68f2de6d | 5096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5097 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5098 | ac_status=$? |
8a2fc586 AK |
5099 | grep -v '^ *+' conftest.er1 >conftest.err |
5100 | rm -f conftest.er1 | |
5101 | cat conftest.err >&5 | |
68f2de6d | 5102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5103 | (exit $ac_status); } && { |
5104 | test -z "$ac_c_werror_flag" || | |
5105 | test ! -s conftest.err | |
5106 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5107 | ac_header_compiler=yes |
5108 | else | |
68f2de6d | 5109 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5110 | sed 's/^/| /' conftest.$ac_ext >&5 |
5111 | ||
7a197a62 | 5112 | ac_header_compiler=no |
ad6254c5 | 5113 | fi |
7a197a62 AK |
5114 | |
5115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
5116 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5117 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5118 | |
5119 | # Is the header present? | |
68f2de6d AK |
5120 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5121 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 5122 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5123 | /* confdefs.h. */ |
5124 | _ACEOF | |
5125 | cat confdefs.h >>conftest.$ac_ext | |
5126 | cat >>conftest.$ac_ext <<_ACEOF | |
5127 | /* end confdefs.h. */ | |
5128 | #include <$ac_header> | |
5129 | _ACEOF | |
7a197a62 AK |
5130 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5131 | case "(($ac_try" in | |
5132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5133 | *) ac_try_echo=$ac_try;; | |
5134 | esac | |
68f2de6d | 5135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5136 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5137 | ac_status=$? |
5138 | grep -v '^ *+' conftest.er1 >conftest.err | |
5139 | rm -f conftest.er1 | |
5140 | cat conftest.err >&5 | |
68f2de6d | 5141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5142 | (exit $ac_status); } >/dev/null && { |
5143 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5144 | test ! -s conftest.err | |
5145 | }; then | |
ad6254c5 AK |
5146 | ac_header_preproc=yes |
5147 | else | |
68f2de6d | 5148 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5149 | sed 's/^/| /' conftest.$ac_ext >&5 |
5150 | ||
5151 | ac_header_preproc=no | |
5152 | fi | |
7a197a62 | 5153 | |
ad6254c5 | 5154 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
5155 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5156 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5157 | |
5158 | # So? What about this header? | |
8a2fc586 AK |
5159 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5160 | yes:no: ) | |
68f2de6d AK |
5161 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5162 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5163 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5164 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5165 | ac_header_preproc=yes |
ad6254c5 | 5166 | ;; |
8a2fc586 | 5167 | no:yes:* ) |
68f2de6d AK |
5168 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5169 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5170 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5171 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5172 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5173 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5174 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5175 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5176 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5177 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5178 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5179 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5180 | |
ad6254c5 AK |
5181 | ;; |
5182 | esac | |
68f2de6d AK |
5183 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5184 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 5185 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 5186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5187 | else |
8a2fc586 | 5188 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5189 | fi |
68f2de6d AK |
5190 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5191 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5192 | echo "${ECHO_T}$ac_res" >&6; } | |
b896caa1 | 5193 | |
ad6254c5 | 5194 | fi |
68f2de6d | 5195 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 5196 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 5197 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
5198 | _ACEOF |
5199 | ||
80992638 AK |
5200 | fi |
5201 | ||
ad6254c5 | 5202 | done |
d0191583 | 5203 | |
d3c8211f | 5204 | |
80992638 | 5205 | ################################################################################ |
68f2de6d AK |
5206 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5207 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
ad6254c5 | 5208 | if test "${ac_cv_c_const+set}" = set; then |
68f2de6d | 5209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d3c8211f | 5210 | else |
ad6254c5 | 5211 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5212 | /* confdefs.h. */ |
5213 | _ACEOF | |
5214 | cat confdefs.h >>conftest.$ac_ext | |
5215 | cat >>conftest.$ac_ext <<_ACEOF | |
5216 | /* end confdefs.h. */ | |
5217 | ||
5218 | int | |
5219 | main () | |
5220 | { | |
5221 | /* FIXME: Include the comments suggested by Paul. */ | |
5222 | #ifndef __cplusplus | |
5223 | /* Ultrix mips cc rejects this. */ | |
5224 | typedef int charset[2]; | |
25fbec5b | 5225 | const charset cs; |
ad6254c5 | 5226 | /* SunOS 4.1.1 cc rejects this. */ |
25fbec5b AK |
5227 | char const *const *pcpcc; |
5228 | char **ppc; | |
ad6254c5 AK |
5229 | /* NEC SVR4.0.2 mips cc rejects this. */ |
5230 | struct point {int x, y;}; | |
5231 | static struct point const zero = {0,0}; | |
5232 | /* AIX XL C 1.02.0.0 rejects this. | |
5233 | It does not let you subtract one const X* pointer from another in | |
5234 | an arm of an if-expression whose if-part is not a constant | |
5235 | expression */ | |
5236 | const char *g = "string"; | |
25fbec5b | 5237 | pcpcc = &g + (g ? g-g : 0); |
ad6254c5 | 5238 | /* HPUX 7.0 cc rejects these. */ |
25fbec5b AK |
5239 | ++pcpcc; |
5240 | ppc = (char**) pcpcc; | |
5241 | pcpcc = (char const *const *) ppc; | |
ad6254c5 AK |
5242 | { /* SCO 3.2v4 cc rejects this. */ |
5243 | char *t; | |
5244 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5245 | ||
5246 | *t++ = 0; | |
7a197a62 | 5247 | if (s) return 0; |
ad6254c5 AK |
5248 | } |
5249 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5250 | int x[] = {25, 17}; | |
5251 | const int *foo = &x[0]; | |
5252 | ++foo; | |
5253 | } | |
5254 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5255 | typedef const int *iptr; | |
5256 | iptr p = 0; | |
5257 | ++p; | |
5258 | } | |
5259 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5260 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5261 | struct s { int j; const int *ap[3]; }; | |
5262 | struct s *b; b->j = 5; | |
5263 | } | |
5264 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5265 | const int foo = 10; | |
7a197a62 | 5266 | if (!foo) return 0; |
ad6254c5 | 5267 | } |
25fbec5b | 5268 | return !cs[0] && !zero.x; |
ad6254c5 AK |
5269 | #endif |
5270 | ||
5271 | ; | |
5272 | return 0; | |
5273 | } | |
5274 | _ACEOF | |
5275 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5276 | if { (ac_try="$ac_compile" |
5277 | case "(($ac_try" in | |
5278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5279 | *) ac_try_echo=$ac_try;; | |
5280 | esac | |
68f2de6d | 5281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5282 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5283 | ac_status=$? |
8a2fc586 AK |
5284 | grep -v '^ *+' conftest.er1 >conftest.err |
5285 | rm -f conftest.er1 | |
5286 | cat conftest.err >&5 | |
68f2de6d | 5287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5288 | (exit $ac_status); } && { |
5289 | test -z "$ac_c_werror_flag" || | |
5290 | test ! -s conftest.err | |
5291 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5292 | ac_cv_c_const=yes |
5293 | else | |
68f2de6d | 5294 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5295 | sed 's/^/| /' conftest.$ac_ext >&5 |
5296 | ||
7a197a62 | 5297 | ac_cv_c_const=no |
ad6254c5 | 5298 | fi |
7a197a62 AK |
5299 | |
5300 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5301 | fi |
68f2de6d AK |
5302 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5303 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
ad6254c5 | 5304 | if test $ac_cv_c_const = no; then |
80992638 | 5305 | |
ad6254c5 | 5306 | cat >>confdefs.h <<\_ACEOF |
68f2de6d | 5307 | #define const |
ad6254c5 | 5308 | _ACEOF |
80992638 | 5309 | |
d3c8211f | 5310 | fi |
d3c8211f | 5311 | |
68f2de6d AK |
5312 | { echo "$as_me:$LINENO: checking for inline" >&5 |
5313 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
ad6254c5 | 5314 | if test "${ac_cv_c_inline+set}" = set; then |
68f2de6d | 5315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8ef2b021 | 5316 | else |
ad6254c5 AK |
5317 | ac_cv_c_inline=no |
5318 | for ac_kw in inline __inline__ __inline; do | |
5319 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5320 | /* confdefs.h. */ |
5321 | _ACEOF | |
5322 | cat confdefs.h >>conftest.$ac_ext | |
5323 | cat >>conftest.$ac_ext <<_ACEOF | |
5324 | /* end confdefs.h. */ | |
5325 | #ifndef __cplusplus | |
5326 | typedef int foo_t; | |
5327 | static $ac_kw foo_t static_foo () {return 0; } | |
5328 | $ac_kw foo_t foo () {return 0; } | |
5329 | #endif | |
80992638 | 5330 | |
ad6254c5 AK |
5331 | _ACEOF |
5332 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5333 | if { (ac_try="$ac_compile" |
5334 | case "(($ac_try" in | |
5335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5336 | *) ac_try_echo=$ac_try;; | |
5337 | esac | |
68f2de6d | 5338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5339 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5340 | ac_status=$? |
8a2fc586 AK |
5341 | grep -v '^ *+' conftest.er1 >conftest.err |
5342 | rm -f conftest.er1 | |
5343 | cat conftest.err >&5 | |
68f2de6d | 5344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5345 | (exit $ac_status); } && { |
5346 | test -z "$ac_c_werror_flag" || | |
5347 | test ! -s conftest.err | |
5348 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 5349 | ac_cv_c_inline=$ac_kw |
ad6254c5 | 5350 | else |
68f2de6d | 5351 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5352 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 5353 | |
7a197a62 | 5354 | |
8ce0cbda | 5355 | fi |
7a197a62 AK |
5356 | |
5357 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5358 | test "$ac_cv_c_inline" != no && break | |
ad6254c5 | 5359 | done |
8ce0cbda | 5360 | |
8ce0cbda | 5361 | fi |
68f2de6d AK |
5362 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5363 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
8a2fc586 AK |
5364 | |
5365 | ||
ad6254c5 AK |
5366 | case $ac_cv_c_inline in |
5367 | inline | yes) ;; | |
8a2fc586 AK |
5368 | *) |
5369 | case $ac_cv_c_inline in | |
5370 | no) ac_val=;; | |
5371 | *) ac_val=$ac_cv_c_inline;; | |
5372 | esac | |
5373 | cat >>confdefs.h <<_ACEOF | |
5374 | #ifndef __cplusplus | |
5375 | #define inline $ac_val | |
5376 | #endif | |
c1c065a3 | 5377 | _ACEOF |
d0191583 JM |
5378 | ;; |
5379 | esac | |
5380 | ||
68f2de6d AK |
5381 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5382 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; } | |
d0191583 | 5383 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
68f2de6d | 5384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
5385 | else |
5386 | cat >conftest.$ac_ext <<_ACEOF | |
5387 | /* confdefs.h. */ | |
5388 | _ACEOF | |
5389 | cat confdefs.h >>conftest.$ac_ext | |
5390 | cat >>conftest.$ac_ext <<_ACEOF | |
5391 | /* end confdefs.h. */ | |
5392 | $ac_includes_default | |
5393 | int | |
5394 | main () | |
5395 | { | |
5396 | static struct stat ac_aggr; | |
5397 | if (ac_aggr.st_rdev) | |
5398 | return 0; | |
5399 | ; | |
5400 | return 0; | |
5401 | } | |
5402 | _ACEOF | |
5403 | rm -f conftest.$ac_objext | |
5404 | if { (ac_try="$ac_compile" | |
5405 | case "(($ac_try" in | |
5406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5407 | *) ac_try_echo=$ac_try;; | |
5408 | esac | |
68f2de6d | 5409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
5410 | (eval "$ac_compile") 2>conftest.er1 |
5411 | ac_status=$? | |
5412 | grep -v '^ *+' conftest.er1 >conftest.err | |
5413 | rm -f conftest.er1 | |
5414 | cat conftest.err >&5 | |
68f2de6d | 5415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5416 | (exit $ac_status); } && { |
5417 | test -z "$ac_c_werror_flag" || | |
5418 | test ! -s conftest.err | |
5419 | } && test -s conftest.$ac_objext; then | |
5420 | ac_cv_member_struct_stat_st_rdev=yes | |
5421 | else | |
68f2de6d | 5422 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5423 | sed 's/^/| /' conftest.$ac_ext >&5 |
5424 | ||
5425 | cat >conftest.$ac_ext <<_ACEOF | |
5426 | /* confdefs.h. */ | |
5427 | _ACEOF | |
5428 | cat confdefs.h >>conftest.$ac_ext | |
5429 | cat >>conftest.$ac_ext <<_ACEOF | |
5430 | /* end confdefs.h. */ | |
5431 | $ac_includes_default | |
5432 | int | |
5433 | main () | |
5434 | { | |
5435 | static struct stat ac_aggr; | |
5436 | if (sizeof ac_aggr.st_rdev) | |
5437 | return 0; | |
5438 | ; | |
5439 | return 0; | |
5440 | } | |
5441 | _ACEOF | |
5442 | rm -f conftest.$ac_objext | |
5443 | if { (ac_try="$ac_compile" | |
5444 | case "(($ac_try" in | |
5445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5446 | *) ac_try_echo=$ac_try;; | |
5447 | esac | |
68f2de6d | 5448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
5449 | (eval "$ac_compile") 2>conftest.er1 |
5450 | ac_status=$? | |
5451 | grep -v '^ *+' conftest.er1 >conftest.err | |
5452 | rm -f conftest.er1 | |
5453 | cat conftest.err >&5 | |
68f2de6d | 5454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5455 | (exit $ac_status); } && { |
5456 | test -z "$ac_c_werror_flag" || | |
5457 | test ! -s conftest.err | |
5458 | } && test -s conftest.$ac_objext; then | |
5459 | ac_cv_member_struct_stat_st_rdev=yes | |
5460 | else | |
68f2de6d | 5461 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5462 | sed 's/^/| /' conftest.$ac_ext >&5 |
5463 | ||
5464 | ac_cv_member_struct_stat_st_rdev=no | |
5465 | fi | |
5466 | ||
5467 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5468 | fi | |
5469 | ||
5470 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5471 | fi | |
68f2de6d AK |
5472 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
5473 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } | |
d0191583 JM |
5474 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
5475 | ||
5476 | cat >>confdefs.h <<_ACEOF | |
5477 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5478 | _ACEOF | |
5479 | ||
5480 | ||
5481 | fi | |
8ce0cbda | 5482 | |
68f2de6d AK |
5483 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
5484 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } | |
ad6254c5 | 5485 | if test "${ac_cv_type_off_t+set}" = set; then |
68f2de6d | 5486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5487 | else |
b145d876 ZK |
5488 | cat >conftest.$ac_ext <<_ACEOF |
5489 | /* confdefs.h. */ | |
5490 | _ACEOF | |
5491 | cat confdefs.h >>conftest.$ac_ext | |
5492 | cat >>conftest.$ac_ext <<_ACEOF | |
5493 | /* end confdefs.h. */ | |
5494 | $ac_includes_default | |
68f2de6d | 5495 | typedef off_t ac__type_new_; |
b145d876 ZK |
5496 | int |
5497 | main () | |
5498 | { | |
68f2de6d AK |
5499 | if ((ac__type_new_ *) 0) |
5500 | return 0; | |
5501 | if (sizeof (ac__type_new_)) | |
5502 | return 0; | |
ad6254c5 AK |
5503 | ; |
5504 | return 0; | |
5505 | } | |
5506 | _ACEOF | |
5507 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5508 | if { (ac_try="$ac_compile" |
5509 | case "(($ac_try" in | |
5510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5511 | *) ac_try_echo=$ac_try;; | |
5512 | esac | |
68f2de6d | 5513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5514 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5515 | ac_status=$? |
8a2fc586 AK |
5516 | grep -v '^ *+' conftest.er1 >conftest.err |
5517 | rm -f conftest.er1 | |
5518 | cat conftest.err >&5 | |
68f2de6d | 5519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5520 | (exit $ac_status); } && { |
5521 | test -z "$ac_c_werror_flag" || | |
5522 | test ! -s conftest.err | |
5523 | } && test -s conftest.$ac_objext; then | |
68f2de6d | 5524 | ac_cv_type_off_t=yes |
b145d876 | 5525 | else |
68f2de6d | 5526 | echo "$as_me: failed program was:" >&5 |
b145d876 ZK |
5527 | sed 's/^/| /' conftest.$ac_ext >&5 |
5528 | ||
68f2de6d | 5529 | ac_cv_type_off_t=no |
ad6254c5 | 5530 | fi |
b145d876 ZK |
5531 | |
5532 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5533 | fi | |
68f2de6d AK |
5534 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
5535 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } | |
ad6254c5 AK |
5536 | if test $ac_cv_type_off_t = yes; then |
5537 | : | |
5538 | else | |
80992638 | 5539 | |
ad6254c5 | 5540 | cat >>confdefs.h <<_ACEOF |
7a197a62 | 5541 | #define off_t long int |
ad6254c5 | 5542 | _ACEOF |
199e490e | 5543 | |
b896caa1 AK |
5544 | fi |
5545 | ||
68f2de6d AK |
5546 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
5547 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | |
ad6254c5 | 5548 | if test "${ac_cv_type_pid_t+set}" = set; then |
68f2de6d | 5549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5550 | else |
b145d876 ZK |
5551 | cat >conftest.$ac_ext <<_ACEOF |
5552 | /* confdefs.h. */ | |
5553 | _ACEOF | |
5554 | cat confdefs.h >>conftest.$ac_ext | |
5555 | cat >>conftest.$ac_ext <<_ACEOF | |
5556 | /* end confdefs.h. */ | |
5557 | $ac_includes_default | |
68f2de6d | 5558 | typedef pid_t ac__type_new_; |
b145d876 ZK |
5559 | int |
5560 | main () | |
5561 | { | |
68f2de6d AK |
5562 | if ((ac__type_new_ *) 0) |
5563 | return 0; | |
5564 | if (sizeof (ac__type_new_)) | |
5565 | return 0; | |
ad6254c5 AK |
5566 | ; |
5567 | return 0; | |
5568 | } | |
5569 | _ACEOF | |
5570 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5571 | if { (ac_try="$ac_compile" |
5572 | case "(($ac_try" in | |
5573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5574 | *) ac_try_echo=$ac_try;; | |
5575 | esac | |
68f2de6d | 5576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5577 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5578 | ac_status=$? |
8a2fc586 AK |
5579 | grep -v '^ *+' conftest.er1 >conftest.err |
5580 | rm -f conftest.er1 | |
5581 | cat conftest.err >&5 | |
68f2de6d | 5582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5583 | (exit $ac_status); } && { |
5584 | test -z "$ac_c_werror_flag" || | |
5585 | test ! -s conftest.err | |
5586 | } && test -s conftest.$ac_objext; then | |
68f2de6d | 5587 | ac_cv_type_pid_t=yes |
ad6254c5 | 5588 | else |
68f2de6d | 5589 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5590 | sed 's/^/| /' conftest.$ac_ext >&5 |
5591 | ||
68f2de6d | 5592 | ac_cv_type_pid_t=no |
ad6254c5 | 5593 | fi |
7a197a62 AK |
5594 | |
5595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5596 | fi |
68f2de6d AK |
5597 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5598 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | |
ad6254c5 AK |
5599 | if test $ac_cv_type_pid_t = yes; then |
5600 | : | |
5601 | else | |
80992638 | 5602 | |
ad6254c5 AK |
5603 | cat >>confdefs.h <<_ACEOF |
5604 | #define pid_t int | |
5605 | _ACEOF | |
2dc95e1c | 5606 | |
2dc95e1c AK |
5607 | fi |
5608 | ||
68f2de6d AK |
5609 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
5610 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } | |
d0191583 | 5611 | if test "${ac_cv_type_signal+set}" = set; then |
68f2de6d | 5612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d0191583 JM |
5613 | else |
5614 | cat >conftest.$ac_ext <<_ACEOF | |
5615 | /* confdefs.h. */ | |
5616 | _ACEOF | |
5617 | cat confdefs.h >>conftest.$ac_ext | |
5618 | cat >>conftest.$ac_ext <<_ACEOF | |
5619 | /* end confdefs.h. */ | |
5620 | #include <sys/types.h> | |
5621 | #include <signal.h> | |
5622 | ||
5623 | int | |
5624 | main () | |
5625 | { | |
5626 | return *(signal (0, 0)) (0) == 1; | |
5627 | ; | |
5628 | return 0; | |
5629 | } | |
5630 | _ACEOF | |
5631 | rm -f conftest.$ac_objext | |
5632 | if { (ac_try="$ac_compile" | |
5633 | case "(($ac_try" in | |
5634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5635 | *) ac_try_echo=$ac_try;; | |
5636 | esac | |
68f2de6d | 5637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
5638 | (eval "$ac_compile") 2>conftest.er1 |
5639 | ac_status=$? | |
5640 | grep -v '^ *+' conftest.er1 >conftest.err | |
5641 | rm -f conftest.er1 | |
5642 | cat conftest.err >&5 | |
68f2de6d | 5643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5644 | (exit $ac_status); } && { |
5645 | test -z "$ac_c_werror_flag" || | |
5646 | test ! -s conftest.err | |
5647 | } && test -s conftest.$ac_objext; then | |
5648 | ac_cv_type_signal=int | |
5649 | else | |
68f2de6d | 5650 | echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5651 | sed 's/^/| /' conftest.$ac_ext >&5 |
5652 | ||
5653 | ac_cv_type_signal=void | |
5654 | fi | |
5655 | ||
5656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5657 | fi | |
68f2de6d AK |
5658 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
5659 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } | |
d0191583 JM |
5660 | |
5661 | cat >>confdefs.h <<_ACEOF | |
5662 | #define RETSIGTYPE $ac_cv_type_signal | |
5663 | _ACEOF | |
5664 | ||
5665 | ||
68f2de6d AK |
5666 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
5667 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
ad6254c5 | 5668 | if test "${ac_cv_type_size_t+set}" = set; then |
68f2de6d | 5669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8106cdd5 | 5670 | else |
b145d876 ZK |
5671 | cat >conftest.$ac_ext <<_ACEOF |
5672 | /* confdefs.h. */ | |
5673 | _ACEOF | |
5674 | cat confdefs.h >>conftest.$ac_ext | |
5675 | cat >>conftest.$ac_ext <<_ACEOF | |
5676 | /* end confdefs.h. */ | |
5677 | $ac_includes_default | |
68f2de6d | 5678 | typedef size_t ac__type_new_; |
b145d876 ZK |
5679 | int |
5680 | main () | |
5681 | { | |
68f2de6d AK |
5682 | if ((ac__type_new_ *) 0) |
5683 | return 0; | |
5684 | if (sizeof (ac__type_new_)) | |
5685 | return 0; | |
ad6254c5 AK |
5686 | ; |
5687 | return 0; | |
5688 | } | |
5689 | _ACEOF | |
5690 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5691 | if { (ac_try="$ac_compile" |
5692 | case "(($ac_try" in | |
5693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5694 | *) ac_try_echo=$ac_try;; | |
5695 | esac | |
68f2de6d | 5696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5697 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5698 | ac_status=$? |
8a2fc586 AK |
5699 | grep -v '^ *+' conftest.er1 >conftest.err |
5700 | rm -f conftest.er1 | |
5701 | cat conftest.err >&5 | |
68f2de6d | 5702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5703 | (exit $ac_status); } && { |
5704 | test -z "$ac_c_werror_flag" || | |
5705 | test ! -s conftest.err | |
5706 | } && test -s conftest.$ac_objext; then | |
68f2de6d | 5707 | ac_cv_type_size_t=yes |
b145d876 | 5708 | else |
68f2de6d | 5709 | echo "$as_me: failed program was:" >&5 |
b145d876 ZK |
5710 | sed 's/^/| /' conftest.$ac_ext >&5 |
5711 | ||
68f2de6d | 5712 | ac_cv_type_size_t=no |
ad6254c5 | 5713 | fi |
b145d876 ZK |
5714 | |
5715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5716 | fi | |
68f2de6d AK |
5717 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
5718 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
ad6254c5 AK |
5719 | if test $ac_cv_type_size_t = yes; then |
5720 | : | |
5721 | else | |
80992638 | 5722 | |
ad6254c5 | 5723 | cat >>confdefs.h <<_ACEOF |
7a197a62 | 5724 | #define size_t unsigned int |
ad6254c5 | 5725 | _ACEOF |
8106cdd5 | 5726 | |
8106cdd5 AK |
5727 | fi |
5728 | ||
68f2de6d AK |
5729 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
5730 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } | |
ad6254c5 | 5731 | if test "${ac_cv_type_mode_t+set}" = set; then |
68f2de6d | 5732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 5733 | else |
b145d876 ZK |
5734 | cat >conftest.$ac_ext <<_ACEOF |
5735 | /* confdefs.h. */ | |
5736 | _ACEOF | |
5737 | cat confdefs.h >>conftest.$ac_ext | |
5738 | cat >>conftest.$ac_ext <<_ACEOF | |
5739 | /* end confdefs.h. */ | |
5740 | $ac_includes_default | |
68f2de6d | 5741 | typedef mode_t ac__type_new_; |
b145d876 ZK |
5742 | int |
5743 | main () | |
5744 | { | |
68f2de6d AK |
5745 | if ((ac__type_new_ *) 0) |
5746 | return 0; | |
5747 | if (sizeof (ac__type_new_)) | |
5748 | return 0; | |
ad6254c5 AK |
5749 | ; |
5750 | return 0; | |
5751 | } | |
5752 | _ACEOF | |
5753 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5754 | if { (ac_try="$ac_compile" |
5755 | case "(($ac_try" in | |
5756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5757 | *) ac_try_echo=$ac_try;; | |
5758 | esac | |
68f2de6d | 5759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5760 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5761 | ac_status=$? |
8a2fc586 AK |
5762 | grep -v '^ *+' conftest.er1 >conftest.err |
5763 | rm -f conftest.er1 | |
5764 | cat conftest.err >&5 | |
68f2de6d | 5765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5766 | (exit $ac_status); } && { |
5767 | test -z "$ac_c_werror_flag" || | |
5768 | test ! -s conftest.err | |
5769 | } && test -s conftest.$ac_objext; then | |
68f2de6d | 5770 | ac_cv_type_mode_t=yes |
fddafd51 | 5771 | else |
68f2de6d | 5772 | echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
5773 | sed 's/^/| /' conftest.$ac_ext >&5 |
5774 | ||
68f2de6d | 5775 | ac_cv_type_mode_t=no |
80992638 | 5776 | fi |
7a197a62 AK |
5777 | |
5778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5779 | fi |
68f2de6d AK |
5780 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
5781 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } | |
ad6254c5 AK |
5782 | if test $ac_cv_type_mode_t = yes; then |
5783 | : | |
5784 | else | |
80992638 | 5785 | |
ad6254c5 AK |
5786 | cat >>confdefs.h <<_ACEOF |
5787 | #define mode_t int | |
5788 | _ACEOF | |
5789 | ||
5790 | fi | |
5791 | ||
68f2de6d AK |
5792 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5793 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; } | |
ad6254c5 | 5794 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
68f2de6d | 5795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5796 | else |
5797 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5798 | /* confdefs.h. */ |
5799 | _ACEOF | |
5800 | cat confdefs.h >>conftest.$ac_ext | |
5801 | cat >>conftest.$ac_ext <<_ACEOF | |
5802 | /* end confdefs.h. */ | |
5803 | $ac_includes_default | |
5804 | int | |
5805 | main () | |
5806 | { | |
5807 | static struct stat ac_aggr; | |
5808 | if (ac_aggr.st_rdev) | |
5809 | return 0; | |
5810 | ; | |
5811 | return 0; | |
5812 | } | |
5813 | _ACEOF | |
5814 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5815 | if { (ac_try="$ac_compile" |
5816 | case "(($ac_try" in | |
5817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5818 | *) ac_try_echo=$ac_try;; | |
5819 | esac | |
68f2de6d | 5820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5821 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5822 | ac_status=$? |
8a2fc586 AK |
5823 | grep -v '^ *+' conftest.er1 >conftest.err |
5824 | rm -f conftest.er1 | |
5825 | cat conftest.err >&5 | |
68f2de6d | 5826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5827 | (exit $ac_status); } && { |
5828 | test -z "$ac_c_werror_flag" || | |
5829 | test ! -s conftest.err | |
5830 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5831 | ac_cv_member_struct_stat_st_rdev=yes |
5832 | else | |
68f2de6d | 5833 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5834 | sed 's/^/| /' conftest.$ac_ext >&5 |
5835 | ||
7a197a62 | 5836 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5837 | /* confdefs.h. */ |
5838 | _ACEOF | |
5839 | cat confdefs.h >>conftest.$ac_ext | |
5840 | cat >>conftest.$ac_ext <<_ACEOF | |
5841 | /* end confdefs.h. */ | |
5842 | $ac_includes_default | |
5843 | int | |
5844 | main () | |
5845 | { | |
5846 | static struct stat ac_aggr; | |
5847 | if (sizeof ac_aggr.st_rdev) | |
5848 | return 0; | |
5849 | ; | |
5850 | return 0; | |
5851 | } | |
5852 | _ACEOF | |
5853 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5854 | if { (ac_try="$ac_compile" |
5855 | case "(($ac_try" in | |
5856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5857 | *) ac_try_echo=$ac_try;; | |
5858 | esac | |
68f2de6d | 5859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5860 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5861 | ac_status=$? |
8a2fc586 AK |
5862 | grep -v '^ *+' conftest.er1 >conftest.err |
5863 | rm -f conftest.er1 | |
5864 | cat conftest.err >&5 | |
68f2de6d | 5865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5866 | (exit $ac_status); } && { |
5867 | test -z "$ac_c_werror_flag" || | |
5868 | test ! -s conftest.err | |
5869 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5870 | ac_cv_member_struct_stat_st_rdev=yes |
5871 | else | |
68f2de6d | 5872 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5873 | sed 's/^/| /' conftest.$ac_ext >&5 |
5874 | ||
7a197a62 | 5875 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 5876 | fi |
7a197a62 AK |
5877 | |
5878 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5879 | fi |
7a197a62 AK |
5880 | |
5881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5882 | fi |
68f2de6d AK |
5883 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
5884 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } | |
ad6254c5 AK |
5885 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
5886 | ||
5887 | cat >>confdefs.h <<_ACEOF | |
5888 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5889 | _ACEOF | |
5890 | ||
5891 | ||
ad6254c5 AK |
5892 | fi |
5893 | ||
68f2de6d AK |
5894 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
5895 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } | |
ad6254c5 | 5896 | if test "${ac_cv_struct_tm+set}" = set; then |
68f2de6d | 5897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
5898 | else |
5899 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5900 | /* confdefs.h. */ |
5901 | _ACEOF | |
5902 | cat confdefs.h >>conftest.$ac_ext | |
5903 | cat >>conftest.$ac_ext <<_ACEOF | |
5904 | /* end confdefs.h. */ | |
5905 | #include <sys/types.h> | |
5906 | #include <time.h> | |
5907 | ||
5908 | int | |
5909 | main () | |
5910 | { | |
25fbec5b AK |
5911 | struct tm tm; |
5912 | int *p = &tm.tm_sec; | |
68f2de6d | 5913 | return !p; |
ad6254c5 AK |
5914 | ; |
5915 | return 0; | |
5916 | } | |
5917 | _ACEOF | |
5918 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5919 | if { (ac_try="$ac_compile" |
5920 | case "(($ac_try" in | |
5921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5922 | *) ac_try_echo=$ac_try;; | |
5923 | esac | |
68f2de6d | 5924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 5925 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5926 | ac_status=$? |
8a2fc586 AK |
5927 | grep -v '^ *+' conftest.er1 >conftest.err |
5928 | rm -f conftest.er1 | |
5929 | cat conftest.err >&5 | |
68f2de6d | 5930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5931 | (exit $ac_status); } && { |
5932 | test -z "$ac_c_werror_flag" || | |
5933 | test ! -s conftest.err | |
5934 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5935 | ac_cv_struct_tm=time.h |
5936 | else | |
68f2de6d | 5937 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5938 | sed 's/^/| /' conftest.$ac_ext >&5 |
5939 | ||
7a197a62 | 5940 | ac_cv_struct_tm=sys/time.h |
ad6254c5 | 5941 | fi |
7a197a62 AK |
5942 | |
5943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5944 | fi |
68f2de6d AK |
5945 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
5946 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } | |
ad6254c5 AK |
5947 | if test $ac_cv_struct_tm = sys/time.h; then |
5948 | ||
5949 | cat >>confdefs.h <<\_ACEOF | |
5950 | #define TM_IN_SYS_TIME 1 | |
5951 | _ACEOF | |
5952 | ||
5953 | fi | |
809fae91 | 5954 | |
795ca3e5 | 5955 | |
80992638 | 5956 | ################################################################################ |
ad6254c5 AK |
5957 | |
5958 | ||
5959 | ||
5960 | ||
5961 | ||
5962 | ||
5963 | ||
5964 | ||
5965 | ||
5966 | ||
5967 | ||
5968 | ||
5969 | ||
5970 | ||
d0191583 JM |
5971 | |
5972 | ||
5973 | ||
5974 | for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \ | |
5975 | strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \ | |
5976 | uname | |
ad6254c5 | 5977 | do |
68f2de6d AK |
5978 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5979 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5980 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 5981 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 5982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 5983 | else |
ad6254c5 | 5984 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5985 | /* confdefs.h. */ |
5986 | _ACEOF | |
5987 | cat confdefs.h >>conftest.$ac_ext | |
5988 | cat >>conftest.$ac_ext <<_ACEOF | |
5989 | /* end confdefs.h. */ | |
8a2fc586 AK |
5990 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5991 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5992 | #define $ac_func innocuous_$ac_func | |
5993 | ||
ad6254c5 AK |
5994 | /* System header to define __stub macros and hopefully few prototypes, |
5995 | which can conflict with char $ac_func (); below. | |
5996 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5997 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 5998 | |
ad6254c5 AK |
5999 | #ifdef __STDC__ |
6000 | # include <limits.h> | |
6001 | #else | |
6002 | # include <assert.h> | |
6003 | #endif | |
8a2fc586 AK |
6004 | |
6005 | #undef $ac_func | |
6006 | ||
7a197a62 AK |
6007 | /* Override any GCC internal prototype to avoid an error. |
6008 | Use char because int might match the return type of a GCC | |
6009 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6010 | #ifdef __cplusplus |
6011 | extern "C" | |
ad6254c5 | 6012 | #endif |
ad6254c5 AK |
6013 | char $ac_func (); |
6014 | /* The GNU C library defines this for functions which it implements | |
6015 | to always fail with ENOSYS. Some functions are actually named | |
6016 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6017 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6018 | choke me |
ad6254c5 AK |
6019 | #endif |
6020 | ||
6021 | int | |
6022 | main () | |
6023 | { | |
7a197a62 | 6024 | return $ac_func (); |
ad6254c5 AK |
6025 | ; |
6026 | return 0; | |
6027 | } | |
6028 | _ACEOF | |
6029 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6030 | if { (ac_try="$ac_link" |
6031 | case "(($ac_try" in | |
6032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6033 | *) ac_try_echo=$ac_try;; | |
6034 | esac | |
68f2de6d | 6035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6036 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6037 | ac_status=$? |
8a2fc586 AK |
6038 | grep -v '^ *+' conftest.er1 >conftest.err |
6039 | rm -f conftest.er1 | |
6040 | cat conftest.err >&5 | |
68f2de6d | 6041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6042 | (exit $ac_status); } && { |
6043 | test -z "$ac_c_werror_flag" || | |
6044 | test ! -s conftest.err | |
68f2de6d AK |
6045 | } && test -s conftest$ac_exeext && |
6046 | $as_test_x conftest$ac_exeext; then | |
fc54be10 AK |
6047 | eval "$as_ac_var=yes" |
6048 | else | |
68f2de6d | 6049 | echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
6050 | sed 's/^/| /' conftest.$ac_ext >&5 |
6051 | ||
6052 | eval "$as_ac_var=no" | |
6053 | fi | |
6054 | ||
25fbec5b | 6055 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
6056 | conftest$ac_exeext conftest.$ac_ext |
6057 | fi | |
68f2de6d AK |
6058 | ac_res=`eval echo '${'$as_ac_var'}'` |
6059 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6060 | echo "${ECHO_T}$ac_res" >&6; } | |
6061 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 6062 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 6063 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6064 | _ACEOF |
6065 | ||
6066 | else | |
68f2de6d AK |
6067 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
6068 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
6069 | { (exit 1); exit 1; }; } |
6070 | fi | |
6071 | done | |
795ca3e5 | 6072 | |
ad6254c5 AK |
6073 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
6074 | # for constant arguments. Useless! | |
68f2de6d AK |
6075 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6076 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
ad6254c5 | 6077 | if test "${ac_cv_working_alloca_h+set}" = set; then |
68f2de6d | 6078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6079 | else |
6080 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6081 | /* confdefs.h. */ |
6082 | _ACEOF | |
6083 | cat confdefs.h >>conftest.$ac_ext | |
6084 | cat >>conftest.$ac_ext <<_ACEOF | |
6085 | /* end confdefs.h. */ | |
6086 | #include <alloca.h> | |
6087 | int | |
6088 | main () | |
6089 | { | |
6090 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 6091 | if (p) return 0; |
ad6254c5 AK |
6092 | ; |
6093 | return 0; | |
6094 | } | |
6095 | _ACEOF | |
6096 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6097 | if { (ac_try="$ac_link" |
6098 | case "(($ac_try" in | |
6099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6100 | *) ac_try_echo=$ac_try;; | |
6101 | esac | |
68f2de6d | 6102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6103 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6104 | ac_status=$? |
8a2fc586 AK |
6105 | grep -v '^ *+' conftest.er1 >conftest.err |
6106 | rm -f conftest.er1 | |
6107 | cat conftest.err >&5 | |
68f2de6d | 6108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6109 | (exit $ac_status); } && { |
6110 | test -z "$ac_c_werror_flag" || | |
6111 | test ! -s conftest.err | |
68f2de6d AK |
6112 | } && test -s conftest$ac_exeext && |
6113 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
6114 | ac_cv_working_alloca_h=yes |
6115 | else | |
68f2de6d | 6116 | echo "$as_me: failed program was:" >&5 |
ad6254c5 | 6117 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 6118 | |
7a197a62 | 6119 | ac_cv_working_alloca_h=no |
ad6254c5 | 6120 | fi |
7a197a62 | 6121 | |
25fbec5b | 6122 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6123 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6124 | fi |
68f2de6d AK |
6125 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
6126 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
6127 | if test $ac_cv_working_alloca_h = yes; then |
6128 | ||
6129 | cat >>confdefs.h <<\_ACEOF | |
6130 | #define HAVE_ALLOCA_H 1 | |
6131 | _ACEOF | |
6132 | ||
6133 | fi | |
6134 | ||
68f2de6d AK |
6135 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
6136 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
ad6254c5 | 6137 | if test "${ac_cv_func_alloca_works+set}" = set; then |
68f2de6d | 6138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6139 | else |
6140 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6141 | /* confdefs.h. */ |
6142 | _ACEOF | |
6143 | cat confdefs.h >>conftest.$ac_ext | |
6144 | cat >>conftest.$ac_ext <<_ACEOF | |
6145 | /* end confdefs.h. */ | |
6146 | #ifdef __GNUC__ | |
6147 | # define alloca __builtin_alloca | |
6148 | #else | |
6149 | # ifdef _MSC_VER | |
6150 | # include <malloc.h> | |
6151 | # define alloca _alloca | |
6152 | # else | |
25fbec5b | 6153 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
6154 | # include <alloca.h> |
6155 | # else | |
6156 | # ifdef _AIX | |
6157 | #pragma alloca | |
6158 | # else | |
6159 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6160 | char *alloca (); | |
6161 | # endif | |
6162 | # endif | |
6163 | # endif | |
6164 | # endif | |
6165 | #endif | |
6166 | ||
6167 | int | |
6168 | main () | |
6169 | { | |
6170 | char *p = (char *) alloca (1); | |
7a197a62 | 6171 | if (p) return 0; |
ad6254c5 AK |
6172 | ; |
6173 | return 0; | |
6174 | } | |
6175 | _ACEOF | |
6176 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6177 | if { (ac_try="$ac_link" |
6178 | case "(($ac_try" in | |
6179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6180 | *) ac_try_echo=$ac_try;; | |
6181 | esac | |
68f2de6d | 6182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6183 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6184 | ac_status=$? |
8a2fc586 AK |
6185 | grep -v '^ *+' conftest.er1 >conftest.err |
6186 | rm -f conftest.er1 | |
6187 | cat conftest.err >&5 | |
68f2de6d | 6188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6189 | (exit $ac_status); } && { |
6190 | test -z "$ac_c_werror_flag" || | |
6191 | test ! -s conftest.err | |
68f2de6d AK |
6192 | } && test -s conftest$ac_exeext && |
6193 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
6194 | ac_cv_func_alloca_works=yes |
6195 | else | |
68f2de6d | 6196 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6197 | sed 's/^/| /' conftest.$ac_ext >&5 |
6198 | ||
7a197a62 | 6199 | ac_cv_func_alloca_works=no |
ad6254c5 | 6200 | fi |
7a197a62 | 6201 | |
25fbec5b | 6202 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6203 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6204 | fi |
68f2de6d AK |
6205 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6206 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
6207 | |
6208 | if test $ac_cv_func_alloca_works = yes; then | |
6209 | ||
6210 | cat >>confdefs.h <<\_ACEOF | |
6211 | #define HAVE_ALLOCA 1 | |
6212 | _ACEOF | |
6213 | ||
6214 | else | |
6215 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6216 | # that cause trouble. Some versions do not even contain alloca or | |
6217 | # contain a buggy version. If you still want to use their alloca, | |
6218 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6219 | ||
7a197a62 | 6220 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
6221 | |
6222 | cat >>confdefs.h <<\_ACEOF | |
6223 | #define C_ALLOCA 1 | |
6224 | _ACEOF | |
6225 | ||
6226 | ||
68f2de6d AK |
6227 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6228 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
ad6254c5 | 6229 | if test "${ac_cv_os_cray+set}" = set; then |
68f2de6d | 6230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6231 | else |
6232 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6233 | /* confdefs.h. */ |
6234 | _ACEOF | |
6235 | cat confdefs.h >>conftest.$ac_ext | |
6236 | cat >>conftest.$ac_ext <<_ACEOF | |
6237 | /* end confdefs.h. */ | |
7a197a62 | 6238 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
6239 | webecray |
6240 | #else | |
6241 | wenotbecray | |
6242 | #endif | |
6243 | ||
6244 | _ACEOF | |
795ca3e5 | 6245 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
6246 | $EGREP "webecray" >/dev/null 2>&1; then |
6247 | ac_cv_os_cray=yes | |
6248 | else | |
6249 | ac_cv_os_cray=no | |
795ca3e5 AK |
6250 | fi |
6251 | rm -f conftest* | |
6252 | ||
795ca3e5 | 6253 | fi |
68f2de6d AK |
6254 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6255 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
6256 | if test $ac_cv_os_cray = yes; then |
6257 | for ac_func in _getb67 GETB67 getb67; do | |
68f2de6d AK |
6258 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6259 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6260 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 6261 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 6262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6263 | else |
6264 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6265 | /* confdefs.h. */ |
6266 | _ACEOF | |
6267 | cat confdefs.h >>conftest.$ac_ext | |
6268 | cat >>conftest.$ac_ext <<_ACEOF | |
6269 | /* end confdefs.h. */ | |
8a2fc586 AK |
6270 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6271 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6272 | #define $ac_func innocuous_$ac_func | |
6273 | ||
ad6254c5 AK |
6274 | /* System header to define __stub macros and hopefully few prototypes, |
6275 | which can conflict with char $ac_func (); below. | |
6276 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6277 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6278 | |
ad6254c5 AK |
6279 | #ifdef __STDC__ |
6280 | # include <limits.h> | |
6281 | #else | |
6282 | # include <assert.h> | |
6283 | #endif | |
8a2fc586 AK |
6284 | |
6285 | #undef $ac_func | |
6286 | ||
7a197a62 AK |
6287 | /* Override any GCC internal prototype to avoid an error. |
6288 | Use char because int might match the return type of a GCC | |
6289 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6290 | #ifdef __cplusplus |
6291 | extern "C" | |
ad6254c5 | 6292 | #endif |
ad6254c5 AK |
6293 | char $ac_func (); |
6294 | /* The GNU C library defines this for functions which it implements | |
6295 | to always fail with ENOSYS. Some functions are actually named | |
6296 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6297 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6298 | choke me |
ad6254c5 AK |
6299 | #endif |
6300 | ||
6301 | int | |
6302 | main () | |
6303 | { | |
7a197a62 | 6304 | return $ac_func (); |
ad6254c5 AK |
6305 | ; |
6306 | return 0; | |
6307 | } | |
6308 | _ACEOF | |
6309 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6310 | if { (ac_try="$ac_link" |
6311 | case "(($ac_try" in | |
6312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6313 | *) ac_try_echo=$ac_try;; | |
6314 | esac | |
68f2de6d | 6315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6316 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6317 | ac_status=$? |
8a2fc586 AK |
6318 | grep -v '^ *+' conftest.er1 >conftest.err |
6319 | rm -f conftest.er1 | |
6320 | cat conftest.err >&5 | |
68f2de6d | 6321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6322 | (exit $ac_status); } && { |
6323 | test -z "$ac_c_werror_flag" || | |
6324 | test ! -s conftest.err | |
68f2de6d AK |
6325 | } && test -s conftest$ac_exeext && |
6326 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
6327 | eval "$as_ac_var=yes" |
6328 | else | |
68f2de6d | 6329 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6330 | sed 's/^/| /' conftest.$ac_ext >&5 |
6331 | ||
7a197a62 | 6332 | eval "$as_ac_var=no" |
ad6254c5 | 6333 | fi |
7a197a62 | 6334 | |
25fbec5b | 6335 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6336 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6337 | fi |
68f2de6d AK |
6338 | ac_res=`eval echo '${'$as_ac_var'}'` |
6339 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6340 | echo "${ECHO_T}$ac_res" >&6; } | |
6341 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
80992638 | 6342 | |
ad6254c5 AK |
6343 | cat >>confdefs.h <<_ACEOF |
6344 | #define CRAY_STACKSEG_END $ac_func | |
6345 | _ACEOF | |
6346 | ||
6347 | break | |
6348 | fi | |
6349 | ||
6350 | done | |
6351 | fi | |
6352 | ||
68f2de6d AK |
6353 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6354 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
ad6254c5 | 6355 | if test "${ac_cv_c_stack_direction+set}" = set; then |
68f2de6d | 6356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6357 | else |
6358 | if test "$cross_compiling" = yes; then | |
6359 | ac_cv_c_stack_direction=0 | |
6360 | else | |
6361 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6362 | /* confdefs.h. */ |
6363 | _ACEOF | |
6364 | cat confdefs.h >>conftest.$ac_ext | |
6365 | cat >>conftest.$ac_ext <<_ACEOF | |
6366 | /* end confdefs.h. */ | |
7a197a62 | 6367 | $ac_includes_default |
ad6254c5 AK |
6368 | int |
6369 | find_stack_direction () | |
6370 | { | |
6371 | static char *addr = 0; | |
6372 | auto char dummy; | |
6373 | if (addr == 0) | |
6374 | { | |
6375 | addr = &dummy; | |
6376 | return find_stack_direction (); | |
6377 | } | |
6378 | else | |
6379 | return (&dummy > addr) ? 1 : -1; | |
6380 | } | |
6381 | ||
6382 | int | |
6383 | main () | |
6384 | { | |
7a197a62 | 6385 | return find_stack_direction () < 0; |
ad6254c5 AK |
6386 | } |
6387 | _ACEOF | |
6388 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6389 | if { (ac_try="$ac_link" |
6390 | case "(($ac_try" in | |
6391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6392 | *) ac_try_echo=$ac_try;; | |
6393 | esac | |
68f2de6d | 6394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6395 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6396 | ac_status=$? |
68f2de6d | 6397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6398 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6399 | { (case "(($ac_try" in |
6400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6401 | *) ac_try_echo=$ac_try;; | |
6402 | esac | |
68f2de6d | 6403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6404 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6405 | ac_status=$? |
68f2de6d | 6406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6407 | (exit $ac_status); }; }; then |
6408 | ac_cv_c_stack_direction=1 | |
6409 | else | |
68f2de6d AK |
6410 | echo "$as_me: program exited with status $ac_status" >&5 |
6411 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6412 | sed 's/^/| /' conftest.$ac_ext >&5 |
6413 | ||
6414 | ( exit $ac_status ) | |
6415 | ac_cv_c_stack_direction=-1 | |
6416 | fi | |
7a197a62 | 6417 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6418 | fi |
7a197a62 AK |
6419 | |
6420 | ||
ad6254c5 | 6421 | fi |
68f2de6d AK |
6422 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6423 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 AK |
6424 | |
6425 | cat >>confdefs.h <<_ACEOF | |
6426 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
6427 | _ACEOF | |
6428 | ||
6429 | ||
6430 | fi | |
6431 | ||
68f2de6d AK |
6432 | { echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
6433 | echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; } | |
ad6254c5 | 6434 | if test "${ac_cv_func_closedir_void+set}" = set; then |
68f2de6d | 6435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6436 | else |
6437 | if test "$cross_compiling" = yes; then | |
6438 | ac_cv_func_closedir_void=yes | |
6439 | else | |
6440 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6441 | /* confdefs.h. */ |
6442 | _ACEOF | |
6443 | cat confdefs.h >>conftest.$ac_ext | |
6444 | cat >>conftest.$ac_ext <<_ACEOF | |
6445 | /* end confdefs.h. */ | |
6446 | $ac_includes_default | |
6447 | #include <$ac_header_dirent> | |
6448 | #ifndef __cplusplus | |
6449 | int closedir (); | |
6450 | #endif | |
6451 | ||
6452 | int | |
6453 | main () | |
6454 | { | |
7a197a62 | 6455 | return closedir (opendir (".")) != 0; |
ad6254c5 AK |
6456 | ; |
6457 | return 0; | |
6458 | } | |
6459 | _ACEOF | |
6460 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6461 | if { (ac_try="$ac_link" |
6462 | case "(($ac_try" in | |
6463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6464 | *) ac_try_echo=$ac_try;; | |
6465 | esac | |
68f2de6d | 6466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6467 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6468 | ac_status=$? |
68f2de6d | 6469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6470 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6471 | { (case "(($ac_try" in |
6472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6473 | *) ac_try_echo=$ac_try;; | |
6474 | esac | |
68f2de6d | 6475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6476 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6477 | ac_status=$? |
68f2de6d | 6478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6479 | (exit $ac_status); }; }; then |
6480 | ac_cv_func_closedir_void=no | |
6481 | else | |
68f2de6d AK |
6482 | echo "$as_me: program exited with status $ac_status" >&5 |
6483 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6484 | sed 's/^/| /' conftest.$ac_ext >&5 |
6485 | ||
6486 | ( exit $ac_status ) | |
6487 | ac_cv_func_closedir_void=yes | |
6488 | fi | |
7a197a62 | 6489 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6490 | fi |
7a197a62 AK |
6491 | |
6492 | ||
ad6254c5 | 6493 | fi |
68f2de6d AK |
6494 | { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
6495 | echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; } | |
ad6254c5 AK |
6496 | if test $ac_cv_func_closedir_void = yes; then |
6497 | ||
6498 | cat >>confdefs.h <<\_ACEOF | |
6499 | #define CLOSEDIR_VOID 1 | |
6500 | _ACEOF | |
6501 | ||
6502 | fi | |
6503 | ||
6504 | ||
7a197a62 | 6505 | for ac_header in vfork.h |
ad6254c5 | 6506 | do |
68f2de6d | 6507 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 6508 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
6509 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6510 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 6511 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 6512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 6513 | fi |
68f2de6d AK |
6514 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6515 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6516 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
6517 | else |
6518 | # Is the header compilable? | |
68f2de6d AK |
6519 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6520 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 6521 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6522 | /* confdefs.h. */ |
6523 | _ACEOF | |
6524 | cat confdefs.h >>conftest.$ac_ext | |
6525 | cat >>conftest.$ac_ext <<_ACEOF | |
6526 | /* end confdefs.h. */ | |
6527 | $ac_includes_default | |
6528 | #include <$ac_header> | |
6529 | _ACEOF | |
6530 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6531 | if { (ac_try="$ac_compile" |
6532 | case "(($ac_try" in | |
6533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6534 | *) ac_try_echo=$ac_try;; | |
6535 | esac | |
68f2de6d | 6536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6537 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6538 | ac_status=$? |
8a2fc586 AK |
6539 | grep -v '^ *+' conftest.er1 >conftest.err |
6540 | rm -f conftest.er1 | |
6541 | cat conftest.err >&5 | |
68f2de6d | 6542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6543 | (exit $ac_status); } && { |
6544 | test -z "$ac_c_werror_flag" || | |
6545 | test ! -s conftest.err | |
6546 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6547 | ac_header_compiler=yes |
6548 | else | |
68f2de6d | 6549 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6550 | sed 's/^/| /' conftest.$ac_ext >&5 |
6551 | ||
7a197a62 | 6552 | ac_header_compiler=no |
ad6254c5 | 6553 | fi |
7a197a62 AK |
6554 | |
6555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
6556 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6557 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
6558 | |
6559 | # Is the header present? | |
68f2de6d AK |
6560 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6561 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 6562 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6563 | /* confdefs.h. */ |
6564 | _ACEOF | |
6565 | cat confdefs.h >>conftest.$ac_ext | |
6566 | cat >>conftest.$ac_ext <<_ACEOF | |
6567 | /* end confdefs.h. */ | |
6568 | #include <$ac_header> | |
6569 | _ACEOF | |
7a197a62 AK |
6570 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6571 | case "(($ac_try" in | |
6572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6573 | *) ac_try_echo=$ac_try;; | |
6574 | esac | |
68f2de6d | 6575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6576 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
6577 | ac_status=$? |
6578 | grep -v '^ *+' conftest.er1 >conftest.err | |
6579 | rm -f conftest.er1 | |
6580 | cat conftest.err >&5 | |
68f2de6d | 6581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6582 | (exit $ac_status); } >/dev/null && { |
6583 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6584 | test ! -s conftest.err | |
6585 | }; then | |
ad6254c5 AK |
6586 | ac_header_preproc=yes |
6587 | else | |
68f2de6d | 6588 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6589 | sed 's/^/| /' conftest.$ac_ext >&5 |
6590 | ||
6591 | ac_header_preproc=no | |
6592 | fi | |
7a197a62 | 6593 | |
ad6254c5 | 6594 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
6595 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6596 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
6597 | |
6598 | # So? What about this header? | |
8a2fc586 AK |
6599 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6600 | yes:no: ) | |
68f2de6d AK |
6601 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6602 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6603 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6604 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 6605 | ac_header_preproc=yes |
ad6254c5 | 6606 | ;; |
8a2fc586 | 6607 | no:yes:* ) |
68f2de6d AK |
6608 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6609 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6610 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6611 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6612 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6613 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6614 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6615 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6616 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6617 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6618 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6619 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 6620 | |
ad6254c5 AK |
6621 | ;; |
6622 | esac | |
68f2de6d AK |
6623 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6624 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 6625 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 6626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 6627 | else |
8a2fc586 | 6628 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 6629 | fi |
68f2de6d AK |
6630 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6631 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6632 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 | 6633 | |
795ca3e5 | 6634 | fi |
68f2de6d | 6635 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 6636 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 6637 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
6638 | _ACEOF |
6639 | ||
6640 | fi | |
6641 | ||
6642 | done | |
795ca3e5 | 6643 | |
ad6254c5 AK |
6644 | |
6645 | ||
6646 | for ac_func in fork vfork | |
6647 | do | |
68f2de6d AK |
6648 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6649 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6650 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 6651 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 6652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 6653 | else |
ad6254c5 | 6654 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6655 | /* confdefs.h. */ |
6656 | _ACEOF | |
6657 | cat confdefs.h >>conftest.$ac_ext | |
6658 | cat >>conftest.$ac_ext <<_ACEOF | |
6659 | /* end confdefs.h. */ | |
8a2fc586 AK |
6660 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6661 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6662 | #define $ac_func innocuous_$ac_func | |
6663 | ||
ad6254c5 AK |
6664 | /* System header to define __stub macros and hopefully few prototypes, |
6665 | which can conflict with char $ac_func (); below. | |
6666 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6667 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6668 | |
ad6254c5 AK |
6669 | #ifdef __STDC__ |
6670 | # include <limits.h> | |
6671 | #else | |
6672 | # include <assert.h> | |
795ca3e5 | 6673 | #endif |
8a2fc586 AK |
6674 | |
6675 | #undef $ac_func | |
6676 | ||
7a197a62 AK |
6677 | /* Override any GCC internal prototype to avoid an error. |
6678 | Use char because int might match the return type of a GCC | |
6679 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 6680 | #ifdef __cplusplus |
ad6254c5 | 6681 | extern "C" |
ad6254c5 | 6682 | #endif |
ad6254c5 AK |
6683 | char $ac_func (); |
6684 | /* The GNU C library defines this for functions which it implements | |
6685 | to always fail with ENOSYS. Some functions are actually named | |
6686 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6687 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6688 | choke me |
795ca3e5 AK |
6689 | #endif |
6690 | ||
ad6254c5 AK |
6691 | int |
6692 | main () | |
6693 | { | |
7a197a62 | 6694 | return $ac_func (); |
ad6254c5 AK |
6695 | ; |
6696 | return 0; | |
6697 | } | |
6698 | _ACEOF | |
6699 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6700 | if { (ac_try="$ac_link" |
6701 | case "(($ac_try" in | |
6702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6703 | *) ac_try_echo=$ac_try;; | |
6704 | esac | |
68f2de6d | 6705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6706 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6707 | ac_status=$? |
8a2fc586 AK |
6708 | grep -v '^ *+' conftest.er1 >conftest.err |
6709 | rm -f conftest.er1 | |
6710 | cat conftest.err >&5 | |
68f2de6d | 6711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6712 | (exit $ac_status); } && { |
6713 | test -z "$ac_c_werror_flag" || | |
6714 | test ! -s conftest.err | |
68f2de6d AK |
6715 | } && test -s conftest$ac_exeext && |
6716 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 | 6717 | eval "$as_ac_var=yes" |
795ca3e5 | 6718 | else |
68f2de6d | 6719 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6720 | sed 's/^/| /' conftest.$ac_ext >&5 |
6721 | ||
7a197a62 | 6722 | eval "$as_ac_var=no" |
795ca3e5 | 6723 | fi |
7a197a62 | 6724 | |
25fbec5b | 6725 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6726 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6727 | fi |
68f2de6d AK |
6728 | ac_res=`eval echo '${'$as_ac_var'}'` |
6729 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6730 | echo "${ECHO_T}$ac_res" >&6; } | |
6731 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 6732 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 6733 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6734 | _ACEOF |
6735 | ||
6736 | fi | |
6737 | done | |
6738 | ||
6739 | if test "x$ac_cv_func_fork" = xyes; then | |
68f2de6d AK |
6740 | { echo "$as_me:$LINENO: checking for working fork" >&5 |
6741 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6; } | |
ad6254c5 | 6742 | if test "${ac_cv_func_fork_works+set}" = set; then |
68f2de6d | 6743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6744 | else |
6745 | if test "$cross_compiling" = yes; then | |
6746 | ac_cv_func_fork_works=cross | |
6747 | else | |
6748 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
6749 | /* confdefs.h. */ |
6750 | _ACEOF | |
6751 | cat confdefs.h >>conftest.$ac_ext | |
6752 | cat >>conftest.$ac_ext <<_ACEOF | |
6753 | /* end confdefs.h. */ | |
6754 | $ac_includes_default | |
6755 | int | |
6756 | main () | |
6757 | { | |
6758 | ||
6759 | /* By Ruediger Kuhlmann. */ | |
6760 | return fork () < 0; | |
6761 | ||
6762 | ; | |
6763 | return 0; | |
6764 | } | |
ad6254c5 AK |
6765 | _ACEOF |
6766 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6767 | if { (ac_try="$ac_link" |
6768 | case "(($ac_try" in | |
6769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6770 | *) ac_try_echo=$ac_try;; | |
6771 | esac | |
68f2de6d | 6772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6773 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6774 | ac_status=$? |
68f2de6d | 6775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6776 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6777 | { (case "(($ac_try" in |
6778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6779 | *) ac_try_echo=$ac_try;; | |
6780 | esac | |
68f2de6d | 6781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6782 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6783 | ac_status=$? |
68f2de6d | 6784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6785 | (exit $ac_status); }; }; then |
6786 | ac_cv_func_fork_works=yes | |
6787 | else | |
68f2de6d AK |
6788 | echo "$as_me: program exited with status $ac_status" >&5 |
6789 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6790 | sed 's/^/| /' conftest.$ac_ext >&5 |
6791 | ||
6792 | ( exit $ac_status ) | |
6793 | ac_cv_func_fork_works=no | |
6794 | fi | |
7a197a62 | 6795 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6796 | fi |
7a197a62 AK |
6797 | |
6798 | ||
ad6254c5 | 6799 | fi |
68f2de6d AK |
6800 | { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
6801 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
6802 | |
6803 | else | |
6804 | ac_cv_func_fork_works=$ac_cv_func_fork | |
6805 | fi | |
6806 | if test "x$ac_cv_func_fork_works" = xcross; then | |
6807 | case $host in | |
6808 | *-*-amigaos* | *-*-msdosdjgpp*) | |
6809 | # Override, as these systems have only a dummy fork() stub | |
6810 | ac_cv_func_fork_works=no | |
6811 | ;; | |
6812 | *) | |
6813 | ac_cv_func_fork_works=yes | |
6814 | ;; | |
6815 | esac | |
68f2de6d AK |
6816 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
6817 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
6818 | fi |
6819 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
6820 | if test "x$ac_cv_func_vfork" = xyes; then | |
68f2de6d AK |
6821 | { echo "$as_me:$LINENO: checking for working vfork" >&5 |
6822 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; } | |
ad6254c5 | 6823 | if test "${ac_cv_func_vfork_works+set}" = set; then |
68f2de6d | 6824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6825 | else |
6826 | if test "$cross_compiling" = yes; then | |
6827 | ac_cv_func_vfork_works=cross | |
6828 | else | |
6829 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6830 | /* confdefs.h. */ |
6831 | _ACEOF | |
6832 | cat confdefs.h >>conftest.$ac_ext | |
6833 | cat >>conftest.$ac_ext <<_ACEOF | |
6834 | /* end confdefs.h. */ | |
6835 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 6836 | $ac_includes_default |
ad6254c5 | 6837 | #include <sys/wait.h> |
25fbec5b | 6838 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
6839 | # include <vfork.h> |
6840 | #endif | |
6841 | /* On some sparc systems, changes by the child to local and incoming | |
6842 | argument registers are propagated back to the parent. The compiler | |
6843 | is told about this with #include <vfork.h>, but some compilers | |
6844 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
6845 | static variable whose address is put into a register that is | |
6846 | clobbered by the vfork. */ | |
6847 | static void | |
6848 | #ifdef __cplusplus | |
6849 | sparc_address_test (int arg) | |
6850 | # else | |
6851 | sparc_address_test (arg) int arg; | |
6852 | #endif | |
6853 | { | |
6854 | static pid_t child; | |
6855 | if (!child) { | |
6856 | child = vfork (); | |
6857 | if (child < 0) { | |
6858 | perror ("vfork"); | |
6859 | _exit(2); | |
6860 | } | |
6861 | if (!child) { | |
6862 | arg = getpid(); | |
6863 | write(-1, "", 0); | |
6864 | _exit (arg); | |
6865 | } | |
6866 | } | |
6867 | } | |
6868 | ||
6869 | int | |
6870 | main () | |
6871 | { | |
6872 | pid_t parent = getpid (); | |
6873 | pid_t child; | |
6874 | ||
6875 | sparc_address_test (0); | |
6876 | ||
6877 | child = vfork (); | |
6878 | ||
6879 | if (child == 0) { | |
6880 | /* Here is another test for sparc vfork register problems. This | |
6881 | test uses lots of local variables, at least as many local | |
6882 | variables as main has allocated so far including compiler | |
6883 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
6884 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
6885 | reuse the register of parent for one of the local variables, | |
6886 | since it will think that parent can't possibly be used any more | |
6887 | in this routine. Assigning to the local variable will thus | |
6888 | munge parent in the parent process. */ | |
6889 | pid_t | |
6890 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
6891 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
6892 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
6893 | use the same hardware register for all 8 local variables. */ | |
6894 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
6895 | || p != p5 || p != p6 || p != p7) | |
6896 | _exit(1); | |
6897 | ||
6898 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
6899 | from child file descriptors. If the child closes a descriptor | |
6900 | before it execs or exits, this munges the parent's descriptor | |
6901 | as well. Test for this by closing stdout in the child. */ | |
6902 | _exit(close(fileno(stdout)) != 0); | |
6903 | } else { | |
6904 | int status; | |
6905 | struct stat st; | |
6906 | ||
6907 | while (wait(&status) != child) | |
6908 | ; | |
7a197a62 | 6909 | return ( |
ad6254c5 AK |
6910 | /* Was there some problem with vforking? */ |
6911 | child < 0 | |
6912 | ||
6913 | /* Did the child fail? (This shouldn't happen.) */ | |
6914 | || status | |
6915 | ||
6916 | /* Did the vfork/compiler bug occur? */ | |
6917 | || parent != getpid() | |
6918 | ||
6919 | /* Did the file descriptor bug occur? */ | |
6920 | || fstat(fileno(stdout), &st) != 0 | |
6921 | ); | |
6922 | } | |
6923 | } | |
6924 | _ACEOF | |
6925 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6926 | if { (ac_try="$ac_link" |
6927 | case "(($ac_try" in | |
6928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6929 | *) ac_try_echo=$ac_try;; | |
6930 | esac | |
68f2de6d | 6931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6932 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6933 | ac_status=$? |
68f2de6d | 6934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6935 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6936 | { (case "(($ac_try" in |
6937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6938 | *) ac_try_echo=$ac_try;; | |
6939 | esac | |
68f2de6d | 6940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 6941 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6942 | ac_status=$? |
68f2de6d | 6943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6944 | (exit $ac_status); }; }; then |
6945 | ac_cv_func_vfork_works=yes | |
6946 | else | |
68f2de6d AK |
6947 | echo "$as_me: program exited with status $ac_status" >&5 |
6948 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6949 | sed 's/^/| /' conftest.$ac_ext >&5 |
6950 | ||
6951 | ( exit $ac_status ) | |
6952 | ac_cv_func_vfork_works=no | |
6953 | fi | |
7a197a62 | 6954 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6955 | fi |
7a197a62 AK |
6956 | |
6957 | ||
ad6254c5 | 6958 | fi |
68f2de6d AK |
6959 | { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
6960 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
6961 | |
6962 | fi; | |
6963 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 6964 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
68f2de6d AK |
6965 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
6966 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
6967 | fi |
6968 | ||
6969 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
6970 | ||
6971 | cat >>confdefs.h <<\_ACEOF | |
6972 | #define HAVE_WORKING_VFORK 1 | |
6973 | _ACEOF | |
6974 | ||
6975 | else | |
6976 | ||
6977 | cat >>confdefs.h <<\_ACEOF | |
6978 | #define vfork fork | |
6979 | _ACEOF | |
6980 | ||
6981 | fi | |
6982 | if test "x$ac_cv_func_fork_works" = xyes; then | |
6983 | ||
6984 | cat >>confdefs.h <<\_ACEOF | |
6985 | #define HAVE_WORKING_FORK 1 | |
6986 | _ACEOF | |
6987 | ||
6988 | fi | |
6989 | ||
68f2de6d AK |
6990 | { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
6991 | echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; } | |
ad6254c5 | 6992 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
68f2de6d | 6993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
6994 | else |
6995 | rm -f conftest.sym conftest.file | |
6996 | echo >conftest.file | |
6997 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
6998 | if test "$cross_compiling" = yes; then | |
6999 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7000 | else | |
7001 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7002 | /* confdefs.h. */ |
7003 | _ACEOF | |
7004 | cat confdefs.h >>conftest.$ac_ext | |
7005 | cat >>conftest.$ac_ext <<_ACEOF | |
7006 | /* end confdefs.h. */ | |
7007 | $ac_includes_default | |
7008 | int | |
7009 | main () | |
7010 | { | |
7011 | struct stat sbuf; | |
7012 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
7013 | That is better in the sense that it means we will not |
7014 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 7015 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
7016 | ; |
7017 | return 0; | |
7018 | } | |
7019 | _ACEOF | |
7020 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7021 | if { (ac_try="$ac_link" |
7022 | case "(($ac_try" in | |
7023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7024 | *) ac_try_echo=$ac_try;; | |
7025 | esac | |
68f2de6d | 7026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7027 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7028 | ac_status=$? |
68f2de6d | 7029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7030 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7031 | { (case "(($ac_try" in |
7032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7033 | *) ac_try_echo=$ac_try;; | |
7034 | esac | |
68f2de6d | 7035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7036 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7037 | ac_status=$? |
68f2de6d | 7038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7039 | (exit $ac_status); }; }; then |
7040 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
7041 | else | |
68f2de6d AK |
7042 | echo "$as_me: program exited with status $ac_status" >&5 |
7043 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7044 | sed 's/^/| /' conftest.$ac_ext >&5 |
7045 | ||
7046 | ( exit $ac_status ) | |
7047 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7048 | fi | |
7a197a62 | 7049 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7050 | fi |
7a197a62 AK |
7051 | |
7052 | ||
ad6254c5 AK |
7053 | else |
7054 | # If the `ln -s' command failed, then we probably don't even | |
7055 | # have an lstat function. | |
7056 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7057 | fi | |
7058 | rm -f conftest.sym conftest.file | |
7059 | ||
7060 | fi | |
68f2de6d AK |
7061 | { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
7062 | echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
7063 | |
7064 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
7065 | ||
7066 | cat >>confdefs.h <<_ACEOF | |
7067 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
7068 | _ACEOF | |
7069 | ||
7070 | ||
7071 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 7072 | case " $LIBOBJS " in |
8a2fc586 | 7073 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7074 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7075 | ;; | |
8a2fc586 AK |
7076 | esac |
7077 | ||
ad6254c5 AK |
7078 | fi |
7079 | ||
68f2de6d AK |
7080 | { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
7081 | echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; } | |
ad6254c5 | 7082 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
68f2de6d | 7083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7084 | else |
7085 | if test "$cross_compiling" = yes; then | |
7086 | ac_cv_func_lstat_empty_string_bug=yes | |
7087 | else | |
7088 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7089 | /* confdefs.h. */ |
7090 | _ACEOF | |
7091 | cat confdefs.h >>conftest.$ac_ext | |
7092 | cat >>conftest.$ac_ext <<_ACEOF | |
7093 | /* end confdefs.h. */ | |
7094 | $ac_includes_default | |
7095 | int | |
7096 | main () | |
7097 | { | |
7098 | struct stat sbuf; | |
7a197a62 | 7099 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
7100 | ; |
7101 | return 0; | |
7102 | } | |
7103 | _ACEOF | |
7104 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7105 | if { (ac_try="$ac_link" |
7106 | case "(($ac_try" in | |
7107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7108 | *) ac_try_echo=$ac_try;; | |
7109 | esac | |
68f2de6d | 7110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7111 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7112 | ac_status=$? |
68f2de6d | 7113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7114 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7115 | { (case "(($ac_try" in |
7116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7117 | *) ac_try_echo=$ac_try;; | |
7118 | esac | |
68f2de6d | 7119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7120 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7121 | ac_status=$? |
68f2de6d | 7122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7123 | (exit $ac_status); }; }; then |
7a197a62 | 7124 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 7125 | else |
68f2de6d AK |
7126 | echo "$as_me: program exited with status $ac_status" >&5 |
7127 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7128 | sed 's/^/| /' conftest.$ac_ext >&5 |
7129 | ||
7130 | ( exit $ac_status ) | |
7a197a62 | 7131 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 7132 | fi |
7a197a62 | 7133 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7134 | fi |
7a197a62 AK |
7135 | |
7136 | ||
ad6254c5 | 7137 | fi |
68f2de6d AK |
7138 | { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
7139 | echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 7140 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 7141 | case " $LIBOBJS " in |
8a2fc586 | 7142 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7143 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7144 | ;; | |
8a2fc586 AK |
7145 | esac |
7146 | ||
ad6254c5 AK |
7147 | |
7148 | cat >>confdefs.h <<_ACEOF | |
7149 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
7150 | _ACEOF | |
7151 | ||
7152 | fi | |
7153 | ||
7154 | ||
7155 | for ac_header in stdlib.h | |
7156 | do | |
68f2de6d | 7157 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7158 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
7159 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7160 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7161 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 7162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7163 | fi |
68f2de6d AK |
7164 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7165 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7166 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7167 | else |
7168 | # Is the header compilable? | |
68f2de6d AK |
7169 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7170 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 7171 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7172 | /* confdefs.h. */ |
7173 | _ACEOF | |
7174 | cat confdefs.h >>conftest.$ac_ext | |
7175 | cat >>conftest.$ac_ext <<_ACEOF | |
7176 | /* end confdefs.h. */ | |
7177 | $ac_includes_default | |
7178 | #include <$ac_header> | |
7179 | _ACEOF | |
7180 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7181 | if { (ac_try="$ac_compile" |
7182 | case "(($ac_try" in | |
7183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7184 | *) ac_try_echo=$ac_try;; | |
7185 | esac | |
68f2de6d | 7186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7187 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7188 | ac_status=$? |
8a2fc586 AK |
7189 | grep -v '^ *+' conftest.er1 >conftest.err |
7190 | rm -f conftest.er1 | |
7191 | cat conftest.err >&5 | |
68f2de6d | 7192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7193 | (exit $ac_status); } && { |
7194 | test -z "$ac_c_werror_flag" || | |
7195 | test ! -s conftest.err | |
7196 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7197 | ac_header_compiler=yes |
7198 | else | |
68f2de6d | 7199 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7200 | sed 's/^/| /' conftest.$ac_ext >&5 |
7201 | ||
7a197a62 | 7202 | ac_header_compiler=no |
ad6254c5 | 7203 | fi |
7a197a62 AK |
7204 | |
7205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
7206 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7207 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7208 | |
7209 | # Is the header present? | |
68f2de6d AK |
7210 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7211 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 7212 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7213 | /* confdefs.h. */ |
7214 | _ACEOF | |
7215 | cat confdefs.h >>conftest.$ac_ext | |
7216 | cat >>conftest.$ac_ext <<_ACEOF | |
7217 | /* end confdefs.h. */ | |
7218 | #include <$ac_header> | |
7219 | _ACEOF | |
7a197a62 AK |
7220 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7221 | case "(($ac_try" in | |
7222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7223 | *) ac_try_echo=$ac_try;; | |
7224 | esac | |
68f2de6d | 7225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7226 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7227 | ac_status=$? |
7228 | grep -v '^ *+' conftest.er1 >conftest.err | |
7229 | rm -f conftest.er1 | |
7230 | cat conftest.err >&5 | |
68f2de6d | 7231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7232 | (exit $ac_status); } >/dev/null && { |
7233 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7234 | test ! -s conftest.err | |
7235 | }; then | |
ad6254c5 AK |
7236 | ac_header_preproc=yes |
7237 | else | |
68f2de6d | 7238 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7239 | sed 's/^/| /' conftest.$ac_ext >&5 |
7240 | ||
7241 | ac_header_preproc=no | |
7242 | fi | |
7a197a62 | 7243 | |
ad6254c5 | 7244 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
7245 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7246 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7247 | |
7248 | # So? What about this header? | |
8a2fc586 AK |
7249 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7250 | yes:no: ) | |
68f2de6d AK |
7251 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7252 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7253 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7254 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7255 | ac_header_preproc=yes |
ad6254c5 | 7256 | ;; |
8a2fc586 | 7257 | no:yes:* ) |
68f2de6d AK |
7258 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7259 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7260 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7261 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7262 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7263 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7264 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7265 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7266 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7267 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7268 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7269 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7270 | |
ad6254c5 AK |
7271 | ;; |
7272 | esac | |
68f2de6d AK |
7273 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7274 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7275 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 7276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7277 | else |
8a2fc586 | 7278 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7279 | fi |
68f2de6d AK |
7280 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7281 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7282 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7283 | |
7284 | fi | |
68f2de6d | 7285 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 7286 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 7287 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7288 | _ACEOF |
7289 | ||
7290 | fi | |
7291 | ||
7292 | done | |
7293 | ||
68f2de6d AK |
7294 | { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
7295 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } | |
ad6254c5 | 7296 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
68f2de6d | 7297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7298 | else |
7299 | if test "$cross_compiling" = yes; then | |
7300 | ac_cv_func_malloc_0_nonnull=no | |
7301 | else | |
7302 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7303 | /* confdefs.h. */ |
7304 | _ACEOF | |
7305 | cat confdefs.h >>conftest.$ac_ext | |
7306 | cat >>conftest.$ac_ext <<_ACEOF | |
7307 | /* end confdefs.h. */ | |
25fbec5b | 7308 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
7309 | # include <stdlib.h> |
7310 | #else | |
7311 | char *malloc (); | |
7312 | #endif | |
7313 | ||
7314 | int | |
7315 | main () | |
7316 | { | |
7a197a62 | 7317 | return ! malloc (0); |
ad6254c5 AK |
7318 | ; |
7319 | return 0; | |
7320 | } | |
7321 | _ACEOF | |
7322 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7323 | if { (ac_try="$ac_link" |
7324 | case "(($ac_try" in | |
7325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7326 | *) ac_try_echo=$ac_try;; | |
7327 | esac | |
68f2de6d | 7328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7329 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7330 | ac_status=$? |
68f2de6d | 7331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7332 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7333 | { (case "(($ac_try" in |
7334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7335 | *) ac_try_echo=$ac_try;; | |
7336 | esac | |
68f2de6d | 7337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7338 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7339 | ac_status=$? |
68f2de6d | 7340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7341 | (exit $ac_status); }; }; then |
7342 | ac_cv_func_malloc_0_nonnull=yes | |
7343 | else | |
68f2de6d AK |
7344 | echo "$as_me: program exited with status $ac_status" >&5 |
7345 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7346 | sed 's/^/| /' conftest.$ac_ext >&5 |
7347 | ||
7348 | ( exit $ac_status ) | |
7349 | ac_cv_func_malloc_0_nonnull=no | |
7350 | fi | |
7a197a62 | 7351 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7352 | fi |
7a197a62 AK |
7353 | |
7354 | ||
ad6254c5 | 7355 | fi |
68f2de6d AK |
7356 | { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
7357 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
7358 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
7359 | ||
7360 | cat >>confdefs.h <<\_ACEOF | |
7361 | #define HAVE_MALLOC 1 | |
7362 | _ACEOF | |
7363 | ||
7364 | else | |
7365 | cat >>confdefs.h <<\_ACEOF | |
7366 | #define HAVE_MALLOC 0 | |
7367 | _ACEOF | |
7368 | ||
7a197a62 | 7369 | case " $LIBOBJS " in |
8a2fc586 | 7370 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
7371 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
7372 | ;; | |
8a2fc586 AK |
7373 | esac |
7374 | ||
ad6254c5 AK |
7375 | |
7376 | cat >>confdefs.h <<\_ACEOF | |
7377 | #define malloc rpl_malloc | |
7378 | _ACEOF | |
7379 | ||
7380 | fi | |
7381 | ||
7382 | ||
7383 | ||
68f2de6d AK |
7384 | { echo "$as_me:$LINENO: checking for working memcmp" >&5 |
7385 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; } | |
ad6254c5 | 7386 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
68f2de6d | 7387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7388 | else |
7389 | if test "$cross_compiling" = yes; then | |
7390 | ac_cv_func_memcmp_working=no | |
7391 | else | |
7392 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7393 | /* confdefs.h. */ |
7394 | _ACEOF | |
7395 | cat confdefs.h >>conftest.$ac_ext | |
7396 | cat >>conftest.$ac_ext <<_ACEOF | |
7397 | /* end confdefs.h. */ | |
8a2fc586 | 7398 | $ac_includes_default |
ad6254c5 AK |
7399 | int |
7400 | main () | |
7401 | { | |
7402 | ||
7403 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 7404 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 7405 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 7406 | return 1; |
ad6254c5 AK |
7407 | |
7408 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
7409 | or more and with at least one buffer not starting on a 4-byte boundary. | |
7410 | William Lewis provided this test program. */ | |
7411 | { | |
7412 | char foo[21]; | |
7413 | char bar[21]; | |
7414 | int i; | |
7415 | for (i = 0; i < 4; i++) | |
7416 | { | |
8a2fc586 AK |
7417 | char *a = foo + i; |
7418 | char *b = bar + i; | |
7419 | strcpy (a, "--------01111111"); | |
7420 | strcpy (b, "--------10000000"); | |
7421 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 7422 | return 1; |
ad6254c5 | 7423 | } |
7a197a62 | 7424 | return 0; |
ad6254c5 AK |
7425 | } |
7426 | ||
7427 | ; | |
7428 | return 0; | |
7429 | } | |
7430 | _ACEOF | |
7431 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7432 | if { (ac_try="$ac_link" |
7433 | case "(($ac_try" in | |
7434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7435 | *) ac_try_echo=$ac_try;; | |
7436 | esac | |
68f2de6d | 7437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7438 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7439 | ac_status=$? |
68f2de6d | 7440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7441 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7442 | { (case "(($ac_try" in |
7443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7444 | *) ac_try_echo=$ac_try;; | |
7445 | esac | |
68f2de6d | 7446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7447 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7448 | ac_status=$? |
68f2de6d | 7449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7450 | (exit $ac_status); }; }; then |
7451 | ac_cv_func_memcmp_working=yes | |
7452 | else | |
68f2de6d AK |
7453 | echo "$as_me: program exited with status $ac_status" >&5 |
7454 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7455 | sed 's/^/| /' conftest.$ac_ext >&5 |
7456 | ||
7457 | ( exit $ac_status ) | |
7458 | ac_cv_func_memcmp_working=no | |
7459 | fi | |
7a197a62 | 7460 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7461 | fi |
7a197a62 AK |
7462 | |
7463 | ||
ad6254c5 | 7464 | fi |
68f2de6d AK |
7465 | { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
7466 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 7467 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 7468 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
7469 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
7470 | ;; | |
8a2fc586 AK |
7471 | esac |
7472 | ||
ad6254c5 AK |
7473 | |
7474 | ||
7475 | ||
7476 | for ac_header in stdlib.h unistd.h | |
7477 | do | |
68f2de6d | 7478 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7479 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
7480 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7481 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7482 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 7483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7484 | fi |
68f2de6d AK |
7485 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7486 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7487 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7488 | else |
7489 | # Is the header compilable? | |
68f2de6d AK |
7490 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7491 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 7492 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7493 | /* confdefs.h. */ |
7494 | _ACEOF | |
7495 | cat confdefs.h >>conftest.$ac_ext | |
7496 | cat >>conftest.$ac_ext <<_ACEOF | |
7497 | /* end confdefs.h. */ | |
7498 | $ac_includes_default | |
7499 | #include <$ac_header> | |
7500 | _ACEOF | |
7501 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7502 | if { (ac_try="$ac_compile" |
7503 | case "(($ac_try" in | |
7504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7505 | *) ac_try_echo=$ac_try;; | |
7506 | esac | |
68f2de6d | 7507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7508 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7509 | ac_status=$? |
8a2fc586 AK |
7510 | grep -v '^ *+' conftest.er1 >conftest.err |
7511 | rm -f conftest.er1 | |
7512 | cat conftest.err >&5 | |
68f2de6d | 7513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7514 | (exit $ac_status); } && { |
7515 | test -z "$ac_c_werror_flag" || | |
7516 | test ! -s conftest.err | |
7517 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7518 | ac_header_compiler=yes |
7519 | else | |
68f2de6d | 7520 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7521 | sed 's/^/| /' conftest.$ac_ext >&5 |
7522 | ||
7a197a62 | 7523 | ac_header_compiler=no |
ad6254c5 | 7524 | fi |
7a197a62 AK |
7525 | |
7526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
7527 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7528 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7529 | |
7530 | # Is the header present? | |
68f2de6d AK |
7531 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7532 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 7533 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7534 | /* confdefs.h. */ |
7535 | _ACEOF | |
7536 | cat confdefs.h >>conftest.$ac_ext | |
7537 | cat >>conftest.$ac_ext <<_ACEOF | |
7538 | /* end confdefs.h. */ | |
7539 | #include <$ac_header> | |
7540 | _ACEOF | |
7a197a62 AK |
7541 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7542 | case "(($ac_try" in | |
7543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7544 | *) ac_try_echo=$ac_try;; | |
7545 | esac | |
68f2de6d | 7546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7547 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7548 | ac_status=$? |
7549 | grep -v '^ *+' conftest.er1 >conftest.err | |
7550 | rm -f conftest.er1 | |
7551 | cat conftest.err >&5 | |
68f2de6d | 7552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7553 | (exit $ac_status); } >/dev/null && { |
7554 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7555 | test ! -s conftest.err | |
7556 | }; then | |
ad6254c5 AK |
7557 | ac_header_preproc=yes |
7558 | else | |
68f2de6d | 7559 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7560 | sed 's/^/| /' conftest.$ac_ext >&5 |
7561 | ||
7562 | ac_header_preproc=no | |
7563 | fi | |
7a197a62 | 7564 | |
ad6254c5 | 7565 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
7566 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7567 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7568 | |
7569 | # So? What about this header? | |
8a2fc586 AK |
7570 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7571 | yes:no: ) | |
68f2de6d AK |
7572 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7573 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7574 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7575 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7576 | ac_header_preproc=yes |
ad6254c5 | 7577 | ;; |
8a2fc586 | 7578 | no:yes:* ) |
68f2de6d AK |
7579 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7580 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7581 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7582 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7583 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7584 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7585 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7586 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7587 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7588 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7589 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7590 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7591 | |
ad6254c5 AK |
7592 | ;; |
7593 | esac | |
68f2de6d AK |
7594 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7595 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 7596 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 7597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 7598 | else |
8a2fc586 | 7599 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7600 | fi |
68f2de6d AK |
7601 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7602 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7603 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
7604 | |
7605 | fi | |
68f2de6d | 7606 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 7607 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 7608 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7609 | _ACEOF |
7610 | ||
7611 | fi | |
7612 | ||
7613 | done | |
7614 | ||
7615 | ||
7616 | for ac_func in getpagesize | |
7617 | do | |
68f2de6d AK |
7618 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7619 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7620 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 7621 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 7622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7623 | else |
7624 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7625 | /* confdefs.h. */ |
7626 | _ACEOF | |
7627 | cat confdefs.h >>conftest.$ac_ext | |
7628 | cat >>conftest.$ac_ext <<_ACEOF | |
7629 | /* end confdefs.h. */ | |
8a2fc586 AK |
7630 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7631 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7632 | #define $ac_func innocuous_$ac_func | |
7633 | ||
ad6254c5 AK |
7634 | /* System header to define __stub macros and hopefully few prototypes, |
7635 | which can conflict with char $ac_func (); below. | |
7636 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7637 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7638 | |
ad6254c5 AK |
7639 | #ifdef __STDC__ |
7640 | # include <limits.h> | |
7641 | #else | |
7642 | # include <assert.h> | |
7643 | #endif | |
8a2fc586 AK |
7644 | |
7645 | #undef $ac_func | |
7646 | ||
7a197a62 AK |
7647 | /* Override any GCC internal prototype to avoid an error. |
7648 | Use char because int might match the return type of a GCC | |
7649 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
7650 | #ifdef __cplusplus |
7651 | extern "C" | |
ad6254c5 | 7652 | #endif |
ad6254c5 AK |
7653 | char $ac_func (); |
7654 | /* The GNU C library defines this for functions which it implements | |
7655 | to always fail with ENOSYS. Some functions are actually named | |
7656 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7657 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 7658 | choke me |
ad6254c5 AK |
7659 | #endif |
7660 | ||
7661 | int | |
7662 | main () | |
7663 | { | |
7a197a62 | 7664 | return $ac_func (); |
ad6254c5 AK |
7665 | ; |
7666 | return 0; | |
7667 | } | |
7668 | _ACEOF | |
7669 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7670 | if { (ac_try="$ac_link" |
7671 | case "(($ac_try" in | |
7672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7673 | *) ac_try_echo=$ac_try;; | |
7674 | esac | |
68f2de6d | 7675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7676 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7677 | ac_status=$? |
8a2fc586 AK |
7678 | grep -v '^ *+' conftest.er1 >conftest.err |
7679 | rm -f conftest.er1 | |
7680 | cat conftest.err >&5 | |
68f2de6d | 7681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7682 | (exit $ac_status); } && { |
7683 | test -z "$ac_c_werror_flag" || | |
7684 | test ! -s conftest.err | |
68f2de6d AK |
7685 | } && test -s conftest$ac_exeext && |
7686 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
7687 | eval "$as_ac_var=yes" |
7688 | else | |
68f2de6d | 7689 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7690 | sed 's/^/| /' conftest.$ac_ext >&5 |
7691 | ||
7a197a62 | 7692 | eval "$as_ac_var=no" |
ad6254c5 | 7693 | fi |
7a197a62 | 7694 | |
25fbec5b | 7695 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 7696 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7697 | fi |
68f2de6d AK |
7698 | ac_res=`eval echo '${'$as_ac_var'}'` |
7699 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7700 | echo "${ECHO_T}$ac_res" >&6; } | |
7701 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 7702 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 7703 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
7704 | _ACEOF |
7705 | ||
7706 | fi | |
7707 | done | |
7708 | ||
68f2de6d AK |
7709 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
7710 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } | |
ad6254c5 | 7711 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
68f2de6d | 7712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7713 | else |
7714 | if test "$cross_compiling" = yes; then | |
7715 | ac_cv_func_mmap_fixed_mapped=no | |
7716 | else | |
7717 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7718 | /* confdefs.h. */ |
7719 | _ACEOF | |
7720 | cat confdefs.h >>conftest.$ac_ext | |
7721 | cat >>conftest.$ac_ext <<_ACEOF | |
7722 | /* end confdefs.h. */ | |
7723 | $ac_includes_default | |
7724 | /* malloc might have been renamed as rpl_malloc. */ | |
7725 | #undef malloc | |
7726 | ||
7727 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
7728 | Here is a matrix of mmap possibilities: | |
7729 | mmap private not fixed | |
7730 | mmap private fixed at somewhere currently unmapped | |
7731 | mmap private fixed at somewhere already mapped | |
7732 | mmap shared not fixed | |
7733 | mmap shared fixed at somewhere currently unmapped | |
7734 | mmap shared fixed at somewhere already mapped | |
7735 | For private mappings, we should verify that changes cannot be read() | |
7736 | back from the file, nor mmap's back from the file at a different | |
7737 | address. (There have been systems where private was not correctly | |
7738 | implemented like the infamous i386 svr4.0, and systems where the | |
7739 | VM page cache was not coherent with the file system buffer cache | |
7740 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
7741 | For shared mappings, we should conversely verify that changes get | |
7742 | propagated back to all the places they're supposed to be. | |
7743 | ||
7744 | Grep wants private fixed already mapped. | |
7745 | The main things grep needs to know about mmap are: | |
7746 | * does it exist and is it safe to write into the mmap'd area | |
7747 | * how to use it (BSD variants) */ | |
7748 | ||
7749 | #include <fcntl.h> | |
7750 | #include <sys/mman.h> | |
7751 | ||
25fbec5b | 7752 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
7753 | char *malloc (); |
7754 | #endif | |
7755 | ||
7756 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 7757 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 7758 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 7759 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
7760 | # define HAVE_SYS_PARAM_H 1 |
7761 | # endif | |
7762 | ||
7763 | # ifdef _SC_PAGESIZE | |
7764 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
7765 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 7766 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
7767 | # include <sys/param.h> |
7768 | # ifdef EXEC_PAGESIZE | |
7769 | # define getpagesize() EXEC_PAGESIZE | |
7770 | # else /* no EXEC_PAGESIZE */ | |
7771 | # ifdef NBPG | |
7772 | # define getpagesize() NBPG * CLSIZE | |
7773 | # ifndef CLSIZE | |
7774 | # define CLSIZE 1 | |
7775 | # endif /* no CLSIZE */ | |
7776 | # else /* no NBPG */ | |
7777 | # ifdef NBPC | |
7778 | # define getpagesize() NBPC | |
7779 | # else /* no NBPC */ | |
7780 | # ifdef PAGESIZE | |
7781 | # define getpagesize() PAGESIZE | |
7782 | # endif /* PAGESIZE */ | |
7783 | # endif /* no NBPC */ | |
7784 | # endif /* no NBPG */ | |
7785 | # endif /* no EXEC_PAGESIZE */ | |
7786 | # else /* no HAVE_SYS_PARAM_H */ | |
7787 | # define getpagesize() 8192 /* punt totally */ | |
7788 | # endif /* no HAVE_SYS_PARAM_H */ | |
7789 | # endif /* no _SC_PAGESIZE */ | |
7790 | ||
7791 | #endif /* no HAVE_GETPAGESIZE */ | |
7792 | ||
7793 | int | |
7794 | main () | |
7795 | { | |
7796 | char *data, *data2, *data3; | |
7797 | int i, pagesize; | |
7798 | int fd; | |
7799 | ||
7800 | pagesize = getpagesize (); | |
7801 | ||
7802 | /* First, make a file with some known garbage in it. */ | |
7803 | data = (char *) malloc (pagesize); | |
7804 | if (!data) | |
7a197a62 | 7805 | return 1; |
ad6254c5 AK |
7806 | for (i = 0; i < pagesize; ++i) |
7807 | *(data + i) = rand (); | |
7808 | umask (0); | |
7809 | fd = creat ("conftest.mmap", 0600); | |
7810 | if (fd < 0) | |
7a197a62 | 7811 | return 1; |
ad6254c5 | 7812 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 7813 | return 1; |
ad6254c5 AK |
7814 | close (fd); |
7815 | ||
7816 | /* Next, try to mmap the file at a fixed address which already has | |
7817 | something else allocated at it. If we can, also make sure that | |
7818 | we see the same garbage. */ | |
7819 | fd = open ("conftest.mmap", O_RDWR); | |
7820 | if (fd < 0) | |
7a197a62 | 7821 | return 1; |
ad6254c5 AK |
7822 | data2 = (char *) malloc (2 * pagesize); |
7823 | if (!data2) | |
7a197a62 AK |
7824 | return 1; |
7825 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 7826 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 7827 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 7828 | return 1; |
ad6254c5 AK |
7829 | for (i = 0; i < pagesize; ++i) |
7830 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 7831 | return 1; |
ad6254c5 AK |
7832 | |
7833 | /* Finally, make sure that changes to the mapped area do not | |
7834 | percolate back to the file as seen by read(). (This is a bug on | |
7835 | some variants of i386 svr4.0.) */ | |
7836 | for (i = 0; i < pagesize; ++i) | |
7837 | *(data2 + i) = *(data2 + i) + 1; | |
7838 | data3 = (char *) malloc (pagesize); | |
7839 | if (!data3) | |
7a197a62 | 7840 | return 1; |
ad6254c5 | 7841 | if (read (fd, data3, pagesize) != pagesize) |
7a197a62 | 7842 | return 1; |
ad6254c5 AK |
7843 | for (i = 0; i < pagesize; ++i) |
7844 | if (*(data + i) != *(data3 + i)) | |
7a197a62 | 7845 | return 1; |
ad6254c5 | 7846 | close (fd); |
7a197a62 | 7847 | return 0; |
ad6254c5 AK |
7848 | } |
7849 | _ACEOF | |
7850 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7851 | if { (ac_try="$ac_link" |
7852 | case "(($ac_try" in | |
7853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7854 | *) ac_try_echo=$ac_try;; | |
7855 | esac | |
68f2de6d | 7856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7857 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7858 | ac_status=$? |
68f2de6d | 7859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7860 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7861 | { (case "(($ac_try" in |
7862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7863 | *) ac_try_echo=$ac_try;; | |
7864 | esac | |
68f2de6d | 7865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7866 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7867 | ac_status=$? |
68f2de6d | 7868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7869 | (exit $ac_status); }; }; then |
7870 | ac_cv_func_mmap_fixed_mapped=yes | |
7871 | else | |
68f2de6d AK |
7872 | echo "$as_me: program exited with status $ac_status" >&5 |
7873 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7874 | sed 's/^/| /' conftest.$ac_ext >&5 |
7875 | ||
7876 | ( exit $ac_status ) | |
7877 | ac_cv_func_mmap_fixed_mapped=no | |
7878 | fi | |
7a197a62 | 7879 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7880 | fi |
7a197a62 AK |
7881 | |
7882 | ||
ad6254c5 | 7883 | fi |
68f2de6d AK |
7884 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
7885 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } | |
ad6254c5 AK |
7886 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
7887 | ||
7888 | cat >>confdefs.h <<\_ACEOF | |
7889 | #define HAVE_MMAP 1 | |
7890 | _ACEOF | |
7891 | ||
7892 | fi | |
7893 | rm -f conftest.mmap | |
7894 | ||
68f2de6d AK |
7895 | { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
7896 | echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; } | |
ad6254c5 | 7897 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
68f2de6d | 7898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7899 | else |
7900 | if test "$cross_compiling" = yes; then | |
7901 | ac_cv_func_stat_empty_string_bug=yes | |
7902 | else | |
7903 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7904 | /* confdefs.h. */ |
7905 | _ACEOF | |
7906 | cat confdefs.h >>conftest.$ac_ext | |
7907 | cat >>conftest.$ac_ext <<_ACEOF | |
7908 | /* end confdefs.h. */ | |
7909 | $ac_includes_default | |
7910 | int | |
7911 | main () | |
7912 | { | |
7913 | struct stat sbuf; | |
7a197a62 | 7914 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
7915 | ; |
7916 | return 0; | |
7917 | } | |
7918 | _ACEOF | |
7919 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7920 | if { (ac_try="$ac_link" |
7921 | case "(($ac_try" in | |
7922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7923 | *) ac_try_echo=$ac_try;; | |
7924 | esac | |
68f2de6d | 7925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7926 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7927 | ac_status=$? |
68f2de6d | 7928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7929 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7930 | { (case "(($ac_try" in |
7931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7932 | *) ac_try_echo=$ac_try;; | |
7933 | esac | |
68f2de6d | 7934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 7935 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7936 | ac_status=$? |
68f2de6d | 7937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7938 | (exit $ac_status); }; }; then |
7a197a62 | 7939 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 7940 | else |
68f2de6d AK |
7941 | echo "$as_me: program exited with status $ac_status" >&5 |
7942 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7943 | sed 's/^/| /' conftest.$ac_ext >&5 |
7944 | ||
7945 | ( exit $ac_status ) | |
7a197a62 | 7946 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 7947 | fi |
7a197a62 | 7948 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7949 | fi |
7a197a62 AK |
7950 | |
7951 | ||
ad6254c5 | 7952 | fi |
68f2de6d AK |
7953 | { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
7954 | echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 7955 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 7956 | case " $LIBOBJS " in |
8a2fc586 | 7957 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
7958 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
7959 | ;; | |
8a2fc586 AK |
7960 | esac |
7961 | ||
ad6254c5 AK |
7962 | |
7963 | cat >>confdefs.h <<_ACEOF | |
7964 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
7965 | _ACEOF | |
7966 | ||
7967 | fi | |
7968 | ||
68f2de6d AK |
7969 | { echo "$as_me:$LINENO: checking for working strtod" >&5 |
7970 | echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; } | |
ad6254c5 | 7971 | if test "${ac_cv_func_strtod+set}" = set; then |
68f2de6d | 7972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
7973 | else |
7974 | if test "$cross_compiling" = yes; then | |
7975 | ac_cv_func_strtod=no | |
7976 | else | |
7977 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7978 | /* confdefs.h. */ |
7979 | _ACEOF | |
7980 | cat confdefs.h >>conftest.$ac_ext | |
7981 | cat >>conftest.$ac_ext <<_ACEOF | |
7982 | /* end confdefs.h. */ | |
7983 | ||
7a197a62 AK |
7984 | $ac_includes_default |
7985 | #ifndef strtod | |
ad6254c5 | 7986 | double strtod (); |
7a197a62 | 7987 | #endif |
ad6254c5 AK |
7988 | int |
7989 | main() | |
7990 | { | |
7991 | { | |
7992 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
7993 | char *string = " +69"; | |
7994 | char *term; | |
7995 | double value; | |
7996 | value = strtod (string, &term); | |
7997 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 7998 | return 1; |
ad6254c5 AK |
7999 | } |
8000 | ||
8001 | { | |
8002 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
8003 | terminating character under some conditions. */ | |
8004 | char *string = "NaN"; | |
8005 | char *term; | |
8006 | strtod (string, &term); | |
8007 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 8008 | return 1; |
ad6254c5 | 8009 | } |
7a197a62 | 8010 | return 0; |
ad6254c5 AK |
8011 | } |
8012 | ||
8013 | _ACEOF | |
8014 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8015 | if { (ac_try="$ac_link" |
8016 | case "(($ac_try" in | |
8017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8018 | *) ac_try_echo=$ac_try;; | |
8019 | esac | |
68f2de6d | 8020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8021 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8022 | ac_status=$? |
68f2de6d | 8023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8024 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8025 | { (case "(($ac_try" in |
8026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8027 | *) ac_try_echo=$ac_try;; | |
8028 | esac | |
68f2de6d | 8029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8030 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8031 | ac_status=$? |
68f2de6d | 8032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8033 | (exit $ac_status); }; }; then |
8034 | ac_cv_func_strtod=yes | |
8035 | else | |
68f2de6d AK |
8036 | echo "$as_me: program exited with status $ac_status" >&5 |
8037 | echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8038 | sed 's/^/| /' conftest.$ac_ext >&5 |
8039 | ||
8040 | ( exit $ac_status ) | |
8041 | ac_cv_func_strtod=no | |
8042 | fi | |
7a197a62 | 8043 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8044 | fi |
7a197a62 AK |
8045 | |
8046 | ||
ad6254c5 | 8047 | fi |
68f2de6d AK |
8048 | { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
8049 | echo "${ECHO_T}$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 8050 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 8051 | case " $LIBOBJS " in |
8a2fc586 | 8052 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
8053 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
8054 | ;; | |
8a2fc586 AK |
8055 | esac |
8056 | ||
68f2de6d AK |
8057 | { echo "$as_me:$LINENO: checking for pow" >&5 |
8058 | echo $ECHO_N "checking for pow... $ECHO_C" >&6; } | |
ad6254c5 | 8059 | if test "${ac_cv_func_pow+set}" = set; then |
68f2de6d | 8060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8061 | else |
8062 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8063 | /* confdefs.h. */ |
8064 | _ACEOF | |
8065 | cat confdefs.h >>conftest.$ac_ext | |
8066 | cat >>conftest.$ac_ext <<_ACEOF | |
8067 | /* end confdefs.h. */ | |
8a2fc586 AK |
8068 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
8069 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8070 | #define pow innocuous_pow | |
8071 | ||
ad6254c5 AK |
8072 | /* System header to define __stub macros and hopefully few prototypes, |
8073 | which can conflict with char pow (); below. | |
8074 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8075 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8076 | |
ad6254c5 AK |
8077 | #ifdef __STDC__ |
8078 | # include <limits.h> | |
8079 | #else | |
8080 | # include <assert.h> | |
8081 | #endif | |
8a2fc586 AK |
8082 | |
8083 | #undef pow | |
8084 | ||
7a197a62 AK |
8085 | /* Override any GCC internal prototype to avoid an error. |
8086 | Use char because int might match the return type of a GCC | |
8087 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8088 | #ifdef __cplusplus |
8089 | extern "C" | |
ad6254c5 | 8090 | #endif |
ad6254c5 AK |
8091 | char pow (); |
8092 | /* The GNU C library defines this for functions which it implements | |
8093 | to always fail with ENOSYS. Some functions are actually named | |
8094 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8095 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 8096 | choke me |
ad6254c5 AK |
8097 | #endif |
8098 | ||
8099 | int | |
8100 | main () | |
8101 | { | |
7a197a62 | 8102 | return pow (); |
ad6254c5 AK |
8103 | ; |
8104 | return 0; | |
8105 | } | |
8106 | _ACEOF | |
8107 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8108 | if { (ac_try="$ac_link" |
8109 | case "(($ac_try" in | |
8110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8111 | *) ac_try_echo=$ac_try;; | |
8112 | esac | |
68f2de6d | 8113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8114 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8115 | ac_status=$? |
8a2fc586 AK |
8116 | grep -v '^ *+' conftest.er1 >conftest.err |
8117 | rm -f conftest.er1 | |
8118 | cat conftest.err >&5 | |
68f2de6d | 8119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8120 | (exit $ac_status); } && { |
8121 | test -z "$ac_c_werror_flag" || | |
8122 | test ! -s conftest.err | |
68f2de6d AK |
8123 | } && test -s conftest$ac_exeext && |
8124 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8125 | ac_cv_func_pow=yes |
8126 | else | |
68f2de6d | 8127 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8128 | sed 's/^/| /' conftest.$ac_ext >&5 |
8129 | ||
7a197a62 | 8130 | ac_cv_func_pow=no |
ad6254c5 | 8131 | fi |
7a197a62 | 8132 | |
25fbec5b | 8133 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8134 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8135 | fi |
68f2de6d AK |
8136 | { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
8137 | echo "${ECHO_T}$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
8138 | |
8139 | if test $ac_cv_func_pow = no; then | |
68f2de6d AK |
8140 | { echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
8141 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; } | |
ad6254c5 | 8142 | if test "${ac_cv_lib_m_pow+set}" = set; then |
68f2de6d | 8143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
8144 | else |
8145 | ac_check_lib_save_LIBS=$LIBS | |
8146 | LIBS="-lm $LIBS" | |
8147 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8148 | /* confdefs.h. */ |
8149 | _ACEOF | |
8150 | cat confdefs.h >>conftest.$ac_ext | |
8151 | cat >>conftest.$ac_ext <<_ACEOF | |
8152 | /* end confdefs.h. */ | |
8153 | ||
7a197a62 AK |
8154 | /* Override any GCC internal prototype to avoid an error. |
8155 | Use char because int might match the return type of a GCC | |
8156 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8157 | #ifdef __cplusplus |
8158 | extern "C" | |
8159 | #endif | |
ad6254c5 AK |
8160 | char pow (); |
8161 | int | |
8162 | main () | |
8163 | { | |
7a197a62 | 8164 | return pow (); |
ad6254c5 AK |
8165 | ; |
8166 | return 0; | |
8167 | } | |
8168 | _ACEOF | |
8169 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8170 | if { (ac_try="$ac_link" |
8171 | case "(($ac_try" in | |
8172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8173 | *) ac_try_echo=$ac_try;; | |
8174 | esac | |
68f2de6d | 8175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 8176 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8177 | ac_status=$? |
8a2fc586 AK |
8178 | grep -v '^ *+' conftest.er1 >conftest.err |
8179 | rm -f conftest.er1 | |
8180 | cat conftest.err >&5 | |
68f2de6d | 8181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8182 | (exit $ac_status); } && { |
8183 | test -z "$ac_c_werror_flag" || | |
8184 | test ! -s conftest.err | |
68f2de6d AK |
8185 | } && test -s conftest$ac_exeext && |
8186 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
8187 | ac_cv_lib_m_pow=yes |
8188 | else | |
68f2de6d | 8189 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8190 | sed 's/^/| /' conftest.$ac_ext >&5 |
8191 | ||
7a197a62 | 8192 | ac_cv_lib_m_pow=no |
ad6254c5 | 8193 | fi |
7a197a62 | 8194 | |
25fbec5b | 8195 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8196 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8197 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 8198 | fi |
68f2de6d AK |
8199 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
8200 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; } | |
d0191583 JM |
8201 | if test $ac_cv_lib_m_pow = yes; then |
8202 | POW_LIB=-lm | |
8203 | else | |
68f2de6d AK |
8204 | { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
8205 | echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 8206 | fi |
72b2cb61 | 8207 | |
d0191583 | 8208 | fi |
72b2cb61 | 8209 | |
ad6254c5 AK |
8210 | fi |
8211 | ||
ad6254c5 | 8212 | |
d0191583 JM |
8213 | for ac_func in vprintf |
8214 | do | |
68f2de6d AK |
8215 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8216 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8217 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
d0191583 | 8218 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 8219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 8220 | else |
d0191583 JM |
8221 | cat >conftest.$ac_ext <<_ACEOF |
8222 | /* confdefs.h. */ | |
8223 | _ACEOF | |
8224 | cat confdefs.h >>conftest.$ac_ext | |
8225 | cat >>conftest.$ac_ext <<_ACEOF | |
8226 | /* end confdefs.h. */ | |
8227 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8228 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8229 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 8230 | |
d0191583 JM |
8231 | /* System header to define __stub macros and hopefully few prototypes, |
8232 | which can conflict with char $ac_func (); below. | |
8233 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8234 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8235 | |
d0191583 JM |
8236 | #ifdef __STDC__ |
8237 | # include <limits.h> | |
8238 | #else | |
8239 | # include <assert.h> | |
8240 | #endif | |
ad6254c5 | 8241 | |
d0191583 | 8242 | #undef $ac_func |
72b2cb61 | 8243 | |
d0191583 JM |
8244 | /* Override any GCC internal prototype to avoid an error. |
8245 | Use char because int might match the return type of a GCC | |
8246 | builtin and then its argument prototype would still apply. */ | |
8247 | #ifdef __cplusplus | |
8248 | extern "C" | |
8249 | #endif | |
8250 | char $ac_func (); | |
8251 | /* The GNU C library defines this for functions which it implements | |
8252 | to always fail with ENOSYS. Some functions are actually named | |
8253 | something starting with __ and the normal name is an alias. */ | |
8254 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8255 | choke me | |
8256 | #endif | |
8257 | ||
8258 | int | |
8259 | main () | |
8260 | { | |
8261 | return $ac_func (); | |
8262 | ; | |
8263 | return 0; | |
8264 | } | |
72b2cb61 | 8265 | _ACEOF |
d0191583 JM |
8266 | rm -f conftest.$ac_objext conftest$ac_exeext |
8267 | if { (ac_try="$ac_link" | |
8268 | case "(($ac_try" in | |
8269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8270 | *) ac_try_echo=$ac_try;; | |
8271 | esac | |
68f2de6d | 8272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
8273 | (eval "$ac_link") 2>conftest.er1 |
8274 | ac_status=$? | |
8275 | grep -v '^ *+' conftest.er1 >conftest.err | |
8276 | rm -f conftest.er1 | |
8277 | cat conftest.err >&5 | |
68f2de6d | 8278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8279 | (exit $ac_status); } && { |
8280 | test -z "$ac_c_werror_flag" || | |
8281 | test ! -s conftest.err | |
68f2de6d AK |
8282 | } && test -s conftest$ac_exeext && |
8283 | $as_test_x conftest$ac_exeext; then | |
d0191583 JM |
8284 | eval "$as_ac_var=yes" |
8285 | else | |
68f2de6d | 8286 | echo "$as_me: failed program was:" >&5 |
d0191583 | 8287 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8288 | |
d0191583 | 8289 | eval "$as_ac_var=no" |
ad6254c5 AK |
8290 | fi |
8291 | ||
d0191583 JM |
8292 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8293 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8294 | fi |
68f2de6d AK |
8295 | ac_res=`eval echo '${'$as_ac_var'}'` |
8296 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8297 | echo "${ECHO_T}$ac_res" >&6; } | |
8298 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
d0191583 | 8299 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 8300 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 8301 | _ACEOF |
7a197a62 | 8302 | |
68f2de6d AK |
8303 | { echo "$as_me:$LINENO: checking for _doprnt" >&5 |
8304 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } | |
d0191583 | 8305 | if test "${ac_cv_func__doprnt+set}" = set; then |
68f2de6d | 8306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 8307 | else |
d0191583 JM |
8308 | cat >conftest.$ac_ext <<_ACEOF |
8309 | /* confdefs.h. */ | |
8310 | _ACEOF | |
8311 | cat confdefs.h >>conftest.$ac_ext | |
8312 | cat >>conftest.$ac_ext <<_ACEOF | |
8313 | /* end confdefs.h. */ | |
8314 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
8315 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8316 | #define _doprnt innocuous__doprnt | |
7a197a62 | 8317 | |
d0191583 JM |
8318 | /* System header to define __stub macros and hopefully few prototypes, |
8319 | which can conflict with char _doprnt (); below. | |
8320 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8321 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8322 | |
d0191583 JM |
8323 | #ifdef __STDC__ |
8324 | # include <limits.h> | |
8325 | #else | |
8326 | # include <assert.h> | |
8327 | #endif | |
72b2cb61 | 8328 | |
d0191583 JM |
8329 | #undef _doprnt |
8330 | ||
8331 | /* Override any GCC internal prototype to avoid an error. | |
8332 | Use char because int might match the return type of a GCC | |
8333 | builtin and then its argument prototype would still apply. */ | |
8334 | #ifdef __cplusplus | |
8335 | extern "C" | |
8336 | #endif | |
8337 | char _doprnt (); | |
8338 | /* The GNU C library defines this for functions which it implements | |
8339 | to always fail with ENOSYS. Some functions are actually named | |
8340 | something starting with __ and the normal name is an alias. */ | |
8341 | #if defined __stub__doprnt || defined __stub____doprnt | |
8342 | choke me | |
8343 | #endif | |
8344 | ||
8345 | int | |
8346 | main () | |
8347 | { | |
8348 | return _doprnt (); | |
8349 | ; | |
8350 | return 0; | |
8351 | } | |
72b2cb61 | 8352 | _ACEOF |
d0191583 JM |
8353 | rm -f conftest.$ac_objext conftest$ac_exeext |
8354 | if { (ac_try="$ac_link" | |
8355 | case "(($ac_try" in | |
8356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8357 | *) ac_try_echo=$ac_try;; | |
8358 | esac | |
68f2de6d | 8359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
d0191583 JM |
8360 | (eval "$ac_link") 2>conftest.er1 |
8361 | ac_status=$? | |
8362 | grep -v '^ *+' conftest.er1 >conftest.err | |
8363 | rm -f conftest.er1 | |
8364 | cat conftest.err >&5 | |
68f2de6d | 8365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8366 | (exit $ac_status); } && { |
8367 | test -z "$ac_c_werror_flag" || | |
8368 | test ! -s conftest.err | |
68f2de6d AK |
8369 | } && test -s conftest$ac_exeext && |
8370 | $as_test_x conftest$ac_exeext; then | |
d0191583 JM |
8371 | ac_cv_func__doprnt=yes |
8372 | else | |
68f2de6d | 8373 | echo "$as_me: failed program was:" >&5 |
d0191583 | 8374 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8375 | |
d0191583 | 8376 | ac_cv_func__doprnt=no |
ad6254c5 AK |
8377 | fi |
8378 | ||
d0191583 JM |
8379 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8380 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8381 | fi |
68f2de6d AK |
8382 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
8383 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } | |
d0191583 | 8384 | if test $ac_cv_func__doprnt = yes; then |
7a197a62 | 8385 | |
d0191583 JM |
8386 | cat >>confdefs.h <<\_ACEOF |
8387 | #define HAVE_DOPRNT 1 | |
8388 | _ACEOF | |
ad6254c5 | 8389 | |
7a197a62 AK |
8390 | fi |
8391 | ||
d0191583 JM |
8392 | fi |
8393 | done | |
8b1a3214 | 8394 | |
ad6254c5 | 8395 | |
7a197a62 | 8396 | |
d0191583 | 8397 | ################################################################################ |
ad6254c5 | 8398 | |
ad6254c5 AK |
8399 | |
8400 | ################################################################################ | |
68f2de6d AK |
8401 | { echo "$as_me:$LINENO: checking file owner" >&5 |
8402 | echo $ECHO_N "checking file owner... $ECHO_C" >&6; } | |
d0191583 JM |
8403 | OWNER="root" |
8404 | ||
8405 | ||
8406 | # Check whether --with-user was given. | |
8407 | if test "${with_user+set}" = set; then | |
8408 | withval=$with_user; OWNER="$withval" | |
7a197a62 AK |
8409 | fi |
8410 | ||
68f2de6d AK |
8411 | { echo "$as_me:$LINENO: result: $OWNER" >&5 |
8412 | echo "${ECHO_T}$OWNER" >&6; } | |
ad6254c5 | 8413 | |
d0191583 JM |
8414 | if test x$OWNER != x; then |
8415 | OWNER="-o $OWNER" | |
ad6254c5 AK |
8416 | fi |
8417 | ||
8418 | ################################################################################ | |
68f2de6d AK |
8419 | { echo "$as_me:$LINENO: checking group owner" >&5 |
8420 | echo $ECHO_N "checking group owner... $ECHO_C" >&6; } | |
d0191583 | 8421 | GROUP="root" |
ad6254c5 | 8422 | |
d0191583 JM |
8423 | # Check whether --with-group was given. |
8424 | if test "${with_group+set}" = set; then | |
8425 | withval=$with_group; GROUP="$withval" | |
7a197a62 AK |
8426 | fi |
8427 | ||
68f2de6d AK |
8428 | { echo "$as_me:$LINENO: result: $GROUP" >&5 |
8429 | echo "${ECHO_T}$GROUP" >&6; } | |
d0191583 JM |
8430 | |
8431 | if test x$GROUP != x; then | |
8432 | GROUP="-g $GROUP" | |
8433 | fi | |
ad6254c5 | 8434 | |
93bd259b AK |
8435 | ################################################################################ |
8436 | { echo "$as_me:$LINENO: checking device node mode" >&5 | |
8437 | echo $ECHO_N "checking device node mode... $ECHO_C" >&6; } | |
8438 | ||
8439 | ||
8440 | # Check whether --with-device-mode was given. | |
8441 | if test "${with_device_mode+set}" = set; then | |
8442 | withval=$with_device_mode; DM_DEVICE_MODE="$withval" | |
8443 | else | |
8444 | DM_DEVICE_MODE="0600" | |
8445 | fi | |
8446 | ||
8447 | { echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5 | |
8448 | echo "${ECHO_T}$DM_DEVICE_MODE" >&6; } | |
8449 | ||
ad6254c5 | 8450 | ################################################################################ |
68f2de6d AK |
8451 | { echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
8452 | echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6; } | |
d0191583 JM |
8453 | # Check whether --enable-lvm1_fallback was given. |
8454 | if test "${enable_lvm1_fallback+set}" = set; then | |
8455 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
8456 | else | |
8457 | LVM1_FALLBACK=no | |
7a197a62 AK |
8458 | fi |
8459 | ||
68f2de6d AK |
8460 | { echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
8461 | echo "${ECHO_T}$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 8462 | |
d0191583 | 8463 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
8464 | |
8465 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8466 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
8467 | _ACEOF |
8468 | ||
ad6254c5 AK |
8469 | fi |
8470 | ||
8471 | ################################################################################ | |
68f2de6d AK |
8472 | { echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
8473 | echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6; } | |
d0191583 JM |
8474 | |
8475 | # Check whether --with-lvm1 was given. | |
8476 | if test "${with_lvm1+set}" = set; then | |
8477 | withval=$with_lvm1; LVM1="$withval" | |
8478 | else | |
8479 | LVM1="internal" | |
7a197a62 AK |
8480 | fi |
8481 | ||
68f2de6d AK |
8482 | { echo "$as_me:$LINENO: result: $LVM1" >&5 |
8483 | echo "${ECHO_T}$LVM1" >&6; } | |
ad6254c5 | 8484 | |
d0191583 | 8485 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
68f2de6d | 8486 | then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 8487 | " >&5 |
68f2de6d | 8488 | echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
8489 | " >&2;} |
8490 | { (exit 1); exit 1; }; } | |
8491 | fi; | |
8492 | ||
8493 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
8494 | |
8495 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8496 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
8497 | _ACEOF |
8498 | ||
ad6254c5 AK |
8499 | fi |
8500 | ||
8501 | ################################################################################ | |
68f2de6d AK |
8502 | { echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
8503 | echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6; } | |
d0191583 JM |
8504 | |
8505 | # Check whether --with-pool was given. | |
8506 | if test "${with_pool+set}" = set; then | |
8507 | withval=$with_pool; POOL="$withval" | |
ad6254c5 | 8508 | else |
d0191583 | 8509 | POOL="internal" |
7a197a62 AK |
8510 | fi |
8511 | ||
68f2de6d AK |
8512 | { echo "$as_me:$LINENO: result: $POOL" >&5 |
8513 | echo "${ECHO_T}$POOL" >&6; } | |
ad6254c5 | 8514 | |
d0191583 | 8515 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
68f2de6d | 8516 | then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 8517 | " >&5 |
68f2de6d | 8518 | echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
8519 | " >&2;} |
8520 | { (exit 1); exit 1; }; } | |
8521 | fi; | |
7a197a62 | 8522 | |
d0191583 JM |
8523 | if test x$POOL = xinternal; then |
8524 | ||
8525 | cat >>confdefs.h <<\_ACEOF | |
8526 | #define POOL_INTERNAL 1 | |
8527 | _ACEOF | |
8528 | ||
8529 | fi | |
ad6254c5 | 8530 | |
06f62ad1 | 8531 | ################################################################################ |
68f2de6d AK |
8532 | { echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
8533 | echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6; } | |
d0191583 JM |
8534 | |
8535 | # Check whether --with-cluster was given. | |
8536 | if test "${with_cluster+set}" = set; then | |
8537 | withval=$with_cluster; CLUSTER="$withval" | |
7a197a62 AK |
8538 | fi |
8539 | ||
68f2de6d AK |
8540 | { echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
8541 | echo "${ECHO_T}$CLUSTER" >&6; } | |
06f62ad1 | 8542 | |
d0191583 | 8543 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
68f2de6d | 8544 | then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 8545 | " >&5 |
68f2de6d | 8546 | echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
8547 | " >&2;} |
8548 | { (exit 1); exit 1; }; } | |
d0191583 | 8549 | fi; |
06f62ad1 | 8550 | |
d0191583 | 8551 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
8552 | |
8553 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8554 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
8555 | _ACEOF |
8556 | ||
15d91f5a | 8557 | fi |
ad6254c5 AK |
8558 | |
8559 | ################################################################################ | |
68f2de6d AK |
8560 | { echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
8561 | echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6; } | |
ad6254c5 | 8562 | |
d0191583 JM |
8563 | # Check whether --with-snapshots was given. |
8564 | if test "${with_snapshots+set}" = set; then | |
8565 | withval=$with_snapshots; SNAPSHOTS="$withval" | |
8566 | else | |
8567 | SNAPSHOTS="internal" | |
ad6254c5 AK |
8568 | fi |
8569 | ||
68f2de6d AK |
8570 | { echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
8571 | echo "${ECHO_T}$SNAPSHOTS" >&6; } | |
ad6254c5 | 8572 | |
d0191583 | 8573 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
68f2de6d | 8574 | then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 8575 | " >&5 |
68f2de6d | 8576 | echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
8577 | " >&2;} |
8578 | { (exit 1); exit 1; }; } | |
8579 | fi; | |
8580 | ||
8581 | if test x$SNAPSHOTS = xinternal; then | |
8582 | ||
8583 | cat >>confdefs.h <<\_ACEOF | |
8584 | #define SNAPSHOT_INTERNAL 1 | |
8585 | _ACEOF | |
ad6254c5 | 8586 | |
ad6254c5 | 8587 | fi |
7a197a62 | 8588 | |
d0191583 | 8589 | ################################################################################ |
68f2de6d AK |
8590 | { echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
8591 | echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6; } | |
d0191583 JM |
8592 | |
8593 | # Check whether --with-mirrors was given. | |
8594 | if test "${with_mirrors+set}" = set; then | |
8595 | withval=$with_mirrors; MIRRORS="$withval" | |
8596 | else | |
8597 | MIRRORS="internal" | |
ad6254c5 | 8598 | fi |
ad6254c5 | 8599 | |
68f2de6d AK |
8600 | { echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
8601 | echo "${ECHO_T}$MIRRORS" >&6; } | |
ad6254c5 | 8602 | |
d0191583 | 8603 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
68f2de6d | 8604 | then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 8605 | " >&5 |
68f2de6d | 8606 | echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
8607 | " >&2;} |
8608 | { (exit 1); exit 1; }; } | |
8609 | fi; | |
ad6254c5 | 8610 | |
d0191583 | 8611 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 8612 | |
d0191583 JM |
8613 | cat >>confdefs.h <<\_ACEOF |
8614 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 8615 | _ACEOF |
8a2fc586 | 8616 | |
d0191583 | 8617 | fi |
8a2fc586 | 8618 | |
d0191583 | 8619 | ################################################################################ |
68f2de6d AK |
8620 | { echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
8621 | echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6; } | |
d0191583 JM |
8622 | # Check whether --enable-readline was given. |
8623 | if test "${enable_readline+set}" = set; then | |
8624 | enableval=$enable_readline; READLINE=$enableval | |
8625 | else | |
06e459df | 8626 | READLINE=maybe |
d0191583 | 8627 | fi |
8a2fc586 | 8628 | |
68f2de6d AK |
8629 | { echo "$as_me:$LINENO: result: $READLINE" >&5 |
8630 | echo "${ECHO_T}$READLINE" >&6; } | |
8a2fc586 | 8631 | |
d0191583 | 8632 | ################################################################################ |
68f2de6d AK |
8633 | { echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
8634 | echo $ECHO_N "checking whether to enable realtime support... $ECHO_C" >&6; } | |
d0191583 JM |
8635 | # Check whether --enable-realtime was given. |
8636 | if test "${enable_realtime+set}" = set; then | |
8637 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 8638 | fi |
ad6254c5 | 8639 | |
68f2de6d AK |
8640 | { echo "$as_me:$LINENO: result: $REALTIME" >&5 |
8641 | echo "${ECHO_T}$REALTIME" >&6; } | |
d0191583 JM |
8642 | |
8643 | ################################################################################ | |
68f2de6d AK |
8644 | { echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 |
8645 | echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6; } | |
d0191583 JM |
8646 | |
8647 | # Check whether --with-clvmd was given. | |
8648 | if test "${with_clvmd+set}" = set; then | |
8649 | withval=$with_clvmd; CLVMD="$withval" | |
ad6254c5 | 8650 | else |
d0191583 JM |
8651 | CLVMD="none" |
8652 | fi | |
8a2fc586 | 8653 | |
d0191583 JM |
8654 | if test x$CLVMD = xyes; then |
8655 | CLVMD=all | |
8656 | fi | |
68f2de6d AK |
8657 | { echo "$as_me:$LINENO: result: $CLVMD" >&5 |
8658 | echo "${ECHO_T}$CLVMD" >&6; } | |
8a2fc586 | 8659 | |
d0191583 JM |
8660 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
8661 | CLUSTER=internal | |
8662 | fi | |
8a2fc586 | 8663 | |
d0191583 | 8664 | ################################################################################ |
68f2de6d AK |
8665 | { echo "$as_me:$LINENO: checking whether to enable debugging" >&5 |
8666 | echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; } | |
d0191583 JM |
8667 | # Check whether --enable-debug was given. |
8668 | if test "${enable_debug+set}" = set; then | |
8669 | enableval=$enable_debug; DEBUG=$enableval | |
8670 | else | |
8671 | DEBUG=no | |
8672 | fi | |
8a2fc586 | 8673 | |
68f2de6d AK |
8674 | { echo "$as_me:$LINENO: result: $DEBUG" >&5 |
8675 | echo "${ECHO_T}$DEBUG" >&6; } | |
ad6254c5 | 8676 | |
d0191583 JM |
8677 | if test x$DEBUG = xyes; then |
8678 | COPTIMISE_FLAG= | |
fc54be10 | 8679 | else |
d0191583 JM |
8680 | CSCOPE_CMD= |
8681 | fi | |
fc54be10 | 8682 | |
d0191583 | 8683 | ################################################################################ |
68f2de6d AK |
8684 | { echo "$as_me:$LINENO: checking for C optimisation flag" >&5 |
8685 | echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6; } | |
d0191583 JM |
8686 | |
8687 | # Check whether --with-optimisation was given. | |
8688 | if test "${with_optimisation+set}" = set; then | |
8689 | withval=$with_optimisation; COPTIMISE_FLAG="$withval" | |
8690 | fi | |
8691 | ||
68f2de6d AK |
8692 | { echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 |
8693 | echo "${ECHO_T}$COPTIMISE_FLAG" >&6; } | |
fddafd51 ZK |
8694 | |
8695 | ################################################################################ | |
68f2de6d AK |
8696 | { echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 |
8697 | echo $ECHO_N "checking whether to gather gcov profiling data... $ECHO_C" >&6; } | |
fddafd51 ZK |
8698 | # Check whether --enable-profiling was given. |
8699 | if test "${enable_profiling+set}" = set; then | |
5556819a | 8700 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 8701 | else |
5556819a | 8702 | PROFILING=no |
fddafd51 ZK |
8703 | fi |
8704 | ||
68f2de6d AK |
8705 | { echo "$as_me:$LINENO: result: $PROFILING" >&5 |
8706 | echo "${ECHO_T}$PROFILING" >&6; } | |
5556819a AK |
8707 | |
8708 | if test "x$PROFILING" = xyes; then | |
8709 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
8710 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 8711 | set dummy lcov; ac_word=$2 |
68f2de6d AK |
8712 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8713 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fddafd51 | 8714 | if test "${ac_cv_path_LCOV+set}" = set; then |
68f2de6d | 8715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fddafd51 ZK |
8716 | else |
8717 | case $LCOV in | |
8718 | [\\/]* | ?:[\\/]*) | |
8719 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
8720 | ;; | |
8721 | *) | |
8722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8723 | for as_dir in $PATH | |
8724 | do | |
8725 | IFS=$as_save_IFS | |
8726 | test -z "$as_dir" && as_dir=. | |
8727 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8728 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8729 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
68f2de6d | 8730 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
8731 | break 2 |
8732 | fi | |
8733 | done | |
8734 | done | |
8735 | IFS=$as_save_IFS | |
8736 | ||
b145d876 | 8737 | test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no" |
fddafd51 ZK |
8738 | ;; |
8739 | esac | |
8740 | fi | |
8741 | LCOV=$ac_cv_path_LCOV | |
8742 | if test -n "$LCOV"; then | |
68f2de6d AK |
8743 | { echo "$as_me:$LINENO: result: $LCOV" >&5 |
8744 | echo "${ECHO_T}$LCOV" >&6; } | |
fddafd51 | 8745 | else |
68f2de6d AK |
8746 | { echo "$as_me:$LINENO: result: no" >&5 |
8747 | echo "${ECHO_T}no" >&6; } | |
fddafd51 ZK |
8748 | fi |
8749 | ||
8750 | ||
5556819a | 8751 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 8752 | set dummy genhtml; ac_word=$2 |
68f2de6d AK |
8753 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8754 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fddafd51 | 8755 | if test "${ac_cv_path_GENHTML+set}" = set; then |
68f2de6d | 8756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fddafd51 ZK |
8757 | else |
8758 | case $GENHTML in | |
8759 | [\\/]* | ?:[\\/]*) | |
8760 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
8761 | ;; | |
8762 | *) | |
8763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8764 | for as_dir in $PATH | |
8765 | do | |
8766 | IFS=$as_save_IFS | |
8767 | test -z "$as_dir" && as_dir=. | |
8768 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8769 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8770 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
68f2de6d | 8771 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
8772 | break 2 |
8773 | fi | |
8774 | done | |
8775 | done | |
8776 | IFS=$as_save_IFS | |
8777 | ||
b145d876 | 8778 | test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no" |
fddafd51 ZK |
8779 | ;; |
8780 | esac | |
8781 | fi | |
8782 | GENHTML=$ac_cv_path_GENHTML | |
8783 | if test -n "$GENHTML"; then | |
68f2de6d AK |
8784 | { echo "$as_me:$LINENO: result: $GENHTML" >&5 |
8785 | echo "${ECHO_T}$GENHTML" >&6; } | |
fddafd51 | 8786 | else |
68f2de6d AK |
8787 | { echo "$as_me:$LINENO: result: no" >&5 |
8788 | echo "${ECHO_T}no" >&6; } | |
fddafd51 ZK |
8789 | fi |
8790 | ||
8791 | ||
b145d876 | 8792 | if test "$LCOV" = no -o "$GENHTML" = no ; then |
68f2de6d AK |
8793 | { { echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5 |
8794 | echo "$as_me: error: lcov and genhtml are required for profiling" >&2;} | |
b145d876 ZK |
8795 | { (exit 1); exit 1; }; } |
8796 | fi | |
5556819a | 8797 | fi |
d0191583 JM |
8798 | |
8799 | ################################################################################ | |
68f2de6d AK |
8800 | { echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
8801 | echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6; } | |
d0191583 JM |
8802 | # Check whether --enable-devmapper was given. |
8803 | if test "${enable_devmapper+set}" = set; then | |
8804 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
8805 | fi |
8806 | ||
68f2de6d AK |
8807 | { echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
8808 | echo "${ECHO_T}$DEVMAPPER" >&6; } | |
d0191583 JM |
8809 | |
8810 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
8811 | |
8812 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 8813 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
8814 | _ACEOF |
8815 | ||
8816 | fi | |
8817 | ||
93bd259b AK |
8818 | ################################################################################ |
8819 | # Check whether --enable-compat was given. | |
8820 | if test "${enable_compat+set}" = set; then | |
8821 | enableval=$enable_compat; DM_COMPAT=$enableval | |
8822 | else | |
8823 | DM_COMPAT=no | |
8824 | fi | |
8825 | ||
8826 | ||
8827 | ################################################################################ | |
8828 | # Check whether --enable-ioctl was given. | |
8829 | if test "${enable_ioctl+set}" = set; then | |
8830 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
8831 | fi | |
8832 | ||
8833 | ||
d0191583 | 8834 | ################################################################################ |
68f2de6d AK |
8835 | { echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
8836 | echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6; } | |
d0191583 JM |
8837 | # Check whether --enable-o_direct was given. |
8838 | if test "${enable_o_direct+set}" = set; then | |
8839 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 8840 | fi |
ad6254c5 | 8841 | |
68f2de6d AK |
8842 | { echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
8843 | echo "${ECHO_T}$ODIRECT" >&6; } | |
ad6254c5 | 8844 | |
d0191583 | 8845 | if test x$ODIRECT = xyes; then |
ad6254c5 | 8846 | |
d0191583 JM |
8847 | cat >>confdefs.h <<\_ACEOF |
8848 | #define O_DIRECT_SUPPORT 1 | |
8849 | _ACEOF | |
ad6254c5 | 8850 | |
d0191583 | 8851 | fi |
ad6254c5 | 8852 | |
d0191583 | 8853 | ################################################################################ |
68f2de6d AK |
8854 | { echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
8855 | echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6; } | |
d0191583 JM |
8856 | # Check whether --enable-cmdlib was given. |
8857 | if test "${enable_cmdlib+set}" = set; then | |
8858 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 8859 | else |
d0191583 JM |
8860 | CMDLIB=no |
8861 | fi | |
8a2fc586 | 8862 | |
68f2de6d AK |
8863 | { echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
8864 | echo "${ECHO_T}$CMDLIB" >&6; } | |
8a2fc586 | 8865 | |
2a9a80c9 | 8866 | test x$CMDLIB = xyes \ |
d179cc7a JM |
8867 | && LVM2CMD_LIB=-llvm2cmd \ |
8868 | || LVM2CMD_LIB= | |
8869 | ||
93bd259b AK |
8870 | ################################################################################ |
8871 | # Check whether --enable-pkgconfig was given. | |
8872 | if test "${enable_pkgconfig+set}" = set; then | |
8873 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
8874 | else | |
8875 | PKGCONFIG=no | |
8876 | fi | |
8877 | ||
2a9a80c9 | 8878 | |
d0191583 | 8879 | ################################################################################ |
68f2de6d AK |
8880 | { echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
8881 | echo $ECHO_N "checking whether to install fsadm... $ECHO_C" >&6; } | |
d0191583 JM |
8882 | # Check whether --enable-fsadm was given. |
8883 | if test "${enable_fsadm+set}" = set; then | |
8884 | enableval=$enable_fsadm; FSADM=$enableval | |
8885 | fi | |
8a2fc586 | 8886 | |
68f2de6d AK |
8887 | { echo "$as_me:$LINENO: result: $FSADM" >&5 |
8888 | echo "${ECHO_T}$FSADM" >&6; } | |
8a2fc586 | 8889 | |
d0191583 | 8890 | ################################################################################ |
68f2de6d AK |
8891 | { echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
8892 | echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6; } | |
d0191583 JM |
8893 | # Check whether --enable-dmeventd was given. |
8894 | if test "${enable_dmeventd+set}" = set; then | |
8895 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
8896 | fi | |
ad6254c5 | 8897 | |
68f2de6d AK |
8898 | { echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
8899 | echo "${ECHO_T}$DMEVENTD" >&6; } | |
ad6254c5 | 8900 | |
93bd259b AK |
8901 | BUILD_DMEVENTD=$DMEVENTD |
8902 | ||
2a9a80c9 PR |
8903 | if test x$DMEVENTD = xyes; then |
8904 | if test x$MIRRORS != xinternal; then | |
68f2de6d | 8905 | { { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 8906 | " >&5 |
68f2de6d | 8907 | echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 8908 | " >&2;} |
d0191583 | 8909 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
8910 | fi |
8911 | if test x$CMDLIB = xno; then | |
68f2de6d | 8912 | { { echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 | 8913 | " >&5 |
68f2de6d | 8914 | echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 PR |
8915 | " >&2;} |
8916 | { (exit 1); exit 1; }; } | |
8917 | fi | |
ad6254c5 | 8918 | fi |
7a197a62 | 8919 | |
d0191583 JM |
8920 | if test x$DMEVENTD = xyes; then |
8921 | ||
8922 | cat >>confdefs.h <<\_ACEOF | |
8923 | #define DMEVENTD 1 | |
ad6254c5 AK |
8924 | _ACEOF |
8925 | ||
ad6254c5 | 8926 | fi |
93bd259b AK |
8927 | |
8928 | ################################################################################ | |
8929 | ||
8930 | { echo "$as_me:$LINENO: checking for getline in -lc" >&5 | |
8931 | echo $ECHO_N "checking for getline in -lc... $ECHO_C" >&6; } | |
8932 | if test "${ac_cv_lib_c_getline+set}" = set; then | |
8933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8934 | else | |
8935 | ac_check_lib_save_LIBS=$LIBS | |
8936 | LIBS="-lc $LIBS" | |
8937 | cat >conftest.$ac_ext <<_ACEOF | |
8938 | /* confdefs.h. */ | |
8939 | _ACEOF | |
8940 | cat confdefs.h >>conftest.$ac_ext | |
8941 | cat >>conftest.$ac_ext <<_ACEOF | |
8942 | /* end confdefs.h. */ | |
8943 | ||
8944 | /* Override any GCC internal prototype to avoid an error. | |
8945 | Use char because int might match the return type of a GCC | |
8946 | builtin and then its argument prototype would still apply. */ | |
8947 | #ifdef __cplusplus | |
8948 | extern "C" | |
8949 | #endif | |
8950 | char getline (); | |
8951 | int | |
8952 | main () | |
8953 | { | |
8954 | return getline (); | |
8955 | ; | |
8956 | return 0; | |
8957 | } | |
8958 | _ACEOF | |
8959 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8960 | if { (ac_try="$ac_link" | |
8961 | case "(($ac_try" in | |
8962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8963 | *) ac_try_echo=$ac_try;; | |
8964 | esac | |
8965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8966 | (eval "$ac_link") 2>conftest.er1 | |
8967 | ac_status=$? | |
8968 | grep -v '^ *+' conftest.er1 >conftest.err | |
8969 | rm -f conftest.er1 | |
8970 | cat conftest.err >&5 | |
8971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8972 | (exit $ac_status); } && { | |
8973 | test -z "$ac_c_werror_flag" || | |
8974 | test ! -s conftest.err | |
8975 | } && test -s conftest$ac_exeext && | |
8976 | $as_test_x conftest$ac_exeext; then | |
8977 | ac_cv_lib_c_getline=yes | |
8978 | else | |
8979 | echo "$as_me: failed program was:" >&5 | |
8980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8981 | ||
8982 | ac_cv_lib_c_getline=no | |
8983 | fi | |
8984 | ||
8985 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8986 | conftest$ac_exeext conftest.$ac_ext | |
8987 | LIBS=$ac_check_lib_save_LIBS | |
8988 | fi | |
8989 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5 | |
8990 | echo "${ECHO_T}$ac_cv_lib_c_getline" >&6; } | |
8991 | if test $ac_cv_lib_c_getline = yes; then | |
8992 | ||
8993 | cat >>confdefs.h <<\_ACEOF | |
8994 | #define HAVE_GETLINE 1 | |
8995 | _ACEOF | |
8996 | ||
8997 | fi | |
8998 | ||
8999 | ||
9000 | ################################################################################ | |
9001 | ||
9002 | { echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5 | |
9003 | echo $ECHO_N "checking for canonicalize_file_name in -lc... $ECHO_C" >&6; } | |
9004 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then | |
9005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9006 | else | |
9007 | ac_check_lib_save_LIBS=$LIBS | |
9008 | LIBS="-lc $LIBS" | |
9009 | cat >conftest.$ac_ext <<_ACEOF | |
9010 | /* confdefs.h. */ | |
9011 | _ACEOF | |
9012 | cat confdefs.h >>conftest.$ac_ext | |
9013 | cat >>conftest.$ac_ext <<_ACEOF | |
9014 | /* end confdefs.h. */ | |
9015 | ||
9016 | /* Override any GCC internal prototype to avoid an error. | |
9017 | Use char because int might match the return type of a GCC | |
9018 | builtin and then its argument prototype would still apply. */ | |
9019 | #ifdef __cplusplus | |
9020 | extern "C" | |
9021 | #endif | |
9022 | char canonicalize_file_name (); | |
9023 | int | |
9024 | main () | |
9025 | { | |
9026 | return canonicalize_file_name (); | |
9027 | ; | |
9028 | return 0; | |
9029 | } | |
9030 | _ACEOF | |
9031 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9032 | if { (ac_try="$ac_link" | |
9033 | case "(($ac_try" in | |
9034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9035 | *) ac_try_echo=$ac_try;; | |
9036 | esac | |
9037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9038 | (eval "$ac_link") 2>conftest.er1 | |
9039 | ac_status=$? | |
9040 | grep -v '^ *+' conftest.er1 >conftest.err | |
9041 | rm -f conftest.er1 | |
9042 | cat conftest.err >&5 | |
9043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9044 | (exit $ac_status); } && { | |
9045 | test -z "$ac_c_werror_flag" || | |
9046 | test ! -s conftest.err | |
9047 | } && test -s conftest$ac_exeext && | |
9048 | $as_test_x conftest$ac_exeext; then | |
9049 | ac_cv_lib_c_canonicalize_file_name=yes | |
9050 | else | |
9051 | echo "$as_me: failed program was:" >&5 | |
9052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9053 | ||
9054 | ac_cv_lib_c_canonicalize_file_name=no | |
9055 | fi | |
9056 | ||
9057 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9058 | conftest$ac_exeext conftest.$ac_ext | |
9059 | LIBS=$ac_check_lib_save_LIBS | |
9060 | fi | |
9061 | { echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5 | |
9062 | echo "${ECHO_T}$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
9063 | if test $ac_cv_lib_c_canonicalize_file_name = yes; then | |
9064 | ||
9065 | cat >>confdefs.h <<\_ACEOF | |
9066 | #define HAVE_CANONICALIZE_FILE_NAME 1 | |
9067 | _ACEOF | |
9068 | ||
9069 | fi | |
9070 | ||
9071 | ||
d0191583 JM |
9072 | ################################################################################ |
9073 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
9074 | then exec_prefix=""; | |
9075 | fi; | |
ad6254c5 AK |
9076 | |
9077 | ################################################################################ | |
06e459df | 9078 | if test x$READLINE != xno; then |
68f2de6d AK |
9079 | { echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
9080 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; } | |
ad6254c5 | 9081 | if test "${ac_cv_search_tgetent+set}" = set; then |
68f2de6d | 9082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9083 | else |
9084 | ac_func_search_save_LIBS=$LIBS | |
ad6254c5 | 9085 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9086 | /* confdefs.h. */ |
9087 | _ACEOF | |
9088 | cat confdefs.h >>conftest.$ac_ext | |
9089 | cat >>conftest.$ac_ext <<_ACEOF | |
9090 | /* end confdefs.h. */ | |
9091 | ||
7a197a62 AK |
9092 | /* Override any GCC internal prototype to avoid an error. |
9093 | Use char because int might match the return type of a GCC | |
9094 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9095 | #ifdef __cplusplus |
9096 | extern "C" | |
9097 | #endif | |
ad6254c5 AK |
9098 | char tgetent (); |
9099 | int | |
9100 | main () | |
9101 | { | |
7a197a62 | 9102 | return tgetent (); |
ad6254c5 AK |
9103 | ; |
9104 | return 0; | |
9105 | } | |
9106 | _ACEOF | |
7a197a62 AK |
9107 | for ac_lib in '' ncurses curses termcap termlib; do |
9108 | if test -z "$ac_lib"; then | |
9109 | ac_res="none required" | |
9110 | else | |
9111 | ac_res=-l$ac_lib | |
9112 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9113 | fi | |
9114 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9115 | if { (ac_try="$ac_link" | |
9116 | case "(($ac_try" in | |
9117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9118 | *) ac_try_echo=$ac_try;; | |
9119 | esac | |
68f2de6d | 9120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9121 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9122 | ac_status=$? |
8a2fc586 AK |
9123 | grep -v '^ *+' conftest.er1 >conftest.err |
9124 | rm -f conftest.er1 | |
9125 | cat conftest.err >&5 | |
68f2de6d | 9126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9127 | (exit $ac_status); } && { |
9128 | test -z "$ac_c_werror_flag" || | |
9129 | test ! -s conftest.err | |
68f2de6d AK |
9130 | } && test -s conftest$ac_exeext && |
9131 | $as_test_x conftest$ac_exeext; then | |
7a197a62 | 9132 | ac_cv_search_tgetent=$ac_res |
ad6254c5 | 9133 | else |
68f2de6d | 9134 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9135 | sed 's/^/| /' conftest.$ac_ext >&5 |
9136 | ||
ad6254c5 | 9137 | |
7a197a62 | 9138 | fi |
ad6254c5 | 9139 | |
25fbec5b | 9140 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7a197a62 AK |
9141 | conftest$ac_exeext |
9142 | if test "${ac_cv_search_tgetent+set}" = set; then | |
9143 | break | |
ad6254c5 | 9144 | fi |
7a197a62 AK |
9145 | done |
9146 | if test "${ac_cv_search_tgetent+set}" = set; then | |
9147 | : | |
9148 | else | |
9149 | ac_cv_search_tgetent=no | |
ad6254c5 | 9150 | fi |
7a197a62 | 9151 | rm conftest.$ac_ext |
ad6254c5 AK |
9152 | LIBS=$ac_func_search_save_LIBS |
9153 | fi | |
68f2de6d AK |
9154 | { echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
9155 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6; } | |
7a197a62 AK |
9156 | ac_res=$ac_cv_search_tgetent |
9157 | if test "$ac_res" != no; then | |
9158 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
06e459df | 9159 | tg_found=yes |
ad6254c5 | 9160 | else |
06e459df JM |
9161 | tg_found=no |
9162 | fi | |
9163 | ||
9164 | test x$READLINE:$tg_found = xyes:no && | |
68f2de6d | 9165 | { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the |
ad6254c5 AK |
9166 | --enable-readline option (which is enabled by default). Either disable readline |
9167 | support with --disable-readline or download and install termcap from: | |
9168 | ftp.gnu.org/gnu/termcap | |
9169 | Note: if you are using precompiled packages you will also need the development | |
9170 | package as well (which may be called termcap-devel or something similar). | |
9171 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
9172 | not found either - but you could try installing that as well. | |
9173 | " >&5 | |
68f2de6d | 9174 | echo "$as_me: error: termcap could not be found which is required for the |
ad6254c5 AK |
9175 | --enable-readline option (which is enabled by default). Either disable readline |
9176 | support with --disable-readline or download and install termcap from: | |
9177 | ftp.gnu.org/gnu/termcap | |
9178 | Note: if you are using precompiled packages you will also need the development | |
9179 | package as well (which may be called termcap-devel or something similar). | |
9180 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
9181 | not found either - but you could try installing that as well. | |
9182 | " >&2;} | |
9183 | { (exit 1); exit 1; }; } | |
ad6254c5 AK |
9184 | fi |
9185 | ||
9186 | ################################################################################ | |
68f2de6d AK |
9187 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9188 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
ad6254c5 | 9189 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
68f2de6d | 9190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9191 | else |
9192 | ac_check_lib_save_LIBS=$LIBS | |
9193 | LIBS="-ldl $LIBS" | |
9194 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9195 | /* confdefs.h. */ |
9196 | _ACEOF | |
9197 | cat confdefs.h >>conftest.$ac_ext | |
9198 | cat >>conftest.$ac_ext <<_ACEOF | |
9199 | /* end confdefs.h. */ | |
9200 | ||
7a197a62 AK |
9201 | /* Override any GCC internal prototype to avoid an error. |
9202 | Use char because int might match the return type of a GCC | |
9203 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9204 | #ifdef __cplusplus |
9205 | extern "C" | |
9206 | #endif | |
ad6254c5 AK |
9207 | char dlopen (); |
9208 | int | |
9209 | main () | |
9210 | { | |
7a197a62 | 9211 | return dlopen (); |
ad6254c5 AK |
9212 | ; |
9213 | return 0; | |
9214 | } | |
9215 | _ACEOF | |
9216 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9217 | if { (ac_try="$ac_link" |
9218 | case "(($ac_try" in | |
9219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9220 | *) ac_try_echo=$ac_try;; | |
9221 | esac | |
68f2de6d | 9222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9223 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9224 | ac_status=$? |
8a2fc586 AK |
9225 | grep -v '^ *+' conftest.er1 >conftest.err |
9226 | rm -f conftest.er1 | |
9227 | cat conftest.err >&5 | |
68f2de6d | 9228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9229 | (exit $ac_status); } && { |
9230 | test -z "$ac_c_werror_flag" || | |
9231 | test ! -s conftest.err | |
68f2de6d AK |
9232 | } && test -s conftest$ac_exeext && |
9233 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
9234 | ac_cv_lib_dl_dlopen=yes |
9235 | else | |
68f2de6d | 9236 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9237 | sed 's/^/| /' conftest.$ac_ext >&5 |
9238 | ||
7a197a62 | 9239 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 9240 | fi |
7a197a62 | 9241 | |
25fbec5b | 9242 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9243 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
9244 | LIBS=$ac_check_lib_save_LIBS |
9245 | fi | |
68f2de6d AK |
9246 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9247 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
ad6254c5 AK |
9248 | if test $ac_cv_lib_dl_dlopen = yes; then |
9249 | HAVE_LIBDL=yes | |
9250 | else | |
9251 | HAVE_LIBDL=no | |
9252 | fi | |
9253 | ||
9254 | ||
7e9e9502 | 9255 | if [ "x$HAVE_LIBDL" = xyes ]; then |
72b2cb61 AK |
9256 | |
9257 | cat >>confdefs.h <<\_ACEOF | |
9258 | #define HAVE_LIBDL 1 | |
9259 | _ACEOF | |
9260 | ||
ad6254c5 AK |
9261 | LIBS="-ldl $LIBS" |
9262 | else | |
9263 | HAVE_LIBDL=no | |
9264 | fi | |
9265 | ||
9266 | ################################################################################ | |
9267 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
9268 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
9269 | \) -a "x$STATIC_LINK" = xyes ]; | |
68f2de6d | 9270 | then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 9271 | " >&5 |
68f2de6d | 9272 | echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
9273 | " >&2;} |
9274 | { (exit 1); exit 1; }; } | |
9275 | fi | |
9276 | ||
d0191583 | 9277 | ################################################################################ |
68f2de6d AK |
9278 | { echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
9279 | echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6; } | |
d0191583 JM |
9280 | # Check whether --enable-static_link was given. |
9281 | if test "${enable_static_link+set}" = set; then | |
9282 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
9283 | else | |
9284 | STATIC_LINK=no | |
9285 | fi | |
9286 | ||
68f2de6d AK |
9287 | { echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
9288 | echo "${ECHO_T}$STATIC_LINK" >&6; } | |
d0191583 JM |
9289 | |
9290 | ################################################################################ | |
68f2de6d AK |
9291 | { echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
9292 | echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6; } | |
d0191583 JM |
9293 | # Check whether --enable-selinux was given. |
9294 | if test "${enable_selinux+set}" = set; then | |
9295 | enableval=$enable_selinux; SELINUX=$enableval | |
9296 | fi | |
9297 | ||
68f2de6d AK |
9298 | { echo "$as_me:$LINENO: result: $SELINUX" >&5 |
9299 | echo "${ECHO_T}$SELINUX" >&6; } | |
d0191583 | 9300 | |
ad6254c5 AK |
9301 | ################################################################################ |
9302 | if test x$SELINUX = xyes; then | |
68f2de6d AK |
9303 | { echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
9304 | echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6; } | |
8a2fc586 | 9305 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
68f2de6d | 9306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8a2fc586 AK |
9307 | else |
9308 | ac_check_lib_save_LIBS=$LIBS | |
9309 | LIBS="-lsepol $LIBS" | |
9310 | cat >conftest.$ac_ext <<_ACEOF | |
9311 | /* confdefs.h. */ | |
9312 | _ACEOF | |
9313 | cat confdefs.h >>conftest.$ac_ext | |
9314 | cat >>conftest.$ac_ext <<_ACEOF | |
9315 | /* end confdefs.h. */ | |
9316 | ||
7a197a62 AK |
9317 | /* Override any GCC internal prototype to avoid an error. |
9318 | Use char because int might match the return type of a GCC | |
9319 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
9320 | #ifdef __cplusplus |
9321 | extern "C" | |
9322 | #endif | |
8a2fc586 AK |
9323 | char sepol_check_context (); |
9324 | int | |
9325 | main () | |
9326 | { | |
7a197a62 | 9327 | return sepol_check_context (); |
8a2fc586 AK |
9328 | ; |
9329 | return 0; | |
9330 | } | |
9331 | _ACEOF | |
9332 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9333 | if { (ac_try="$ac_link" |
9334 | case "(($ac_try" in | |
9335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9336 | *) ac_try_echo=$ac_try;; | |
9337 | esac | |
68f2de6d | 9338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9339 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
9340 | ac_status=$? |
9341 | grep -v '^ *+' conftest.er1 >conftest.err | |
9342 | rm -f conftest.er1 | |
9343 | cat conftest.err >&5 | |
68f2de6d | 9344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9345 | (exit $ac_status); } && { |
9346 | test -z "$ac_c_werror_flag" || | |
9347 | test ! -s conftest.err | |
68f2de6d AK |
9348 | } && test -s conftest$ac_exeext && |
9349 | $as_test_x conftest$ac_exeext; then | |
8a2fc586 AK |
9350 | ac_cv_lib_sepol_sepol_check_context=yes |
9351 | else | |
68f2de6d | 9352 | echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
9353 | sed 's/^/| /' conftest.$ac_ext >&5 |
9354 | ||
7a197a62 | 9355 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 9356 | fi |
7a197a62 | 9357 | |
25fbec5b | 9358 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
9359 | conftest$ac_exeext conftest.$ac_ext |
9360 | LIBS=$ac_check_lib_save_LIBS | |
9361 | fi | |
68f2de6d AK |
9362 | { echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
9363 | echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
8a2fc586 AK |
9364 | if test $ac_cv_lib_sepol_sepol_check_context = yes; then |
9365 | HAVE_SEPOL=yes | |
9366 | else | |
9367 | HAVE_SEPOL=no | |
9368 | fi | |
9369 | ||
8a2fc586 AK |
9370 | |
9371 | if test x$HAVE_SEPOL = xyes; then | |
d0191583 JM |
9372 | |
9373 | cat >>confdefs.h <<\_ACEOF | |
9374 | #define HAVE_SEPOL 1 | |
9375 | _ACEOF | |
9376 | ||
8a2fc586 AK |
9377 | LIBS="-lsepol $LIBS" |
9378 | fi | |
9379 | ||
68f2de6d AK |
9380 | { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
9381 | echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; } | |
ad6254c5 | 9382 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
68f2de6d | 9383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9384 | else |
9385 | ac_check_lib_save_LIBS=$LIBS | |
9386 | LIBS="-lselinux $LIBS" | |
9387 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9388 | /* confdefs.h. */ |
9389 | _ACEOF | |
9390 | cat confdefs.h >>conftest.$ac_ext | |
9391 | cat >>conftest.$ac_ext <<_ACEOF | |
9392 | /* end confdefs.h. */ | |
9393 | ||
7a197a62 AK |
9394 | /* Override any GCC internal prototype to avoid an error. |
9395 | Use char because int might match the return type of a GCC | |
9396 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9397 | #ifdef __cplusplus |
9398 | extern "C" | |
9399 | #endif | |
ad6254c5 AK |
9400 | char is_selinux_enabled (); |
9401 | int | |
9402 | main () | |
9403 | { | |
7a197a62 | 9404 | return is_selinux_enabled (); |
ad6254c5 AK |
9405 | ; |
9406 | return 0; | |
9407 | } | |
9408 | _ACEOF | |
9409 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9410 | if { (ac_try="$ac_link" |
9411 | case "(($ac_try" in | |
9412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9413 | *) ac_try_echo=$ac_try;; | |
9414 | esac | |
68f2de6d | 9415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9416 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9417 | ac_status=$? |
8a2fc586 AK |
9418 | grep -v '^ *+' conftest.er1 >conftest.err |
9419 | rm -f conftest.er1 | |
9420 | cat conftest.err >&5 | |
68f2de6d | 9421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9422 | (exit $ac_status); } && { |
9423 | test -z "$ac_c_werror_flag" || | |
9424 | test ! -s conftest.err | |
68f2de6d AK |
9425 | } && test -s conftest$ac_exeext && |
9426 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
9427 | ac_cv_lib_selinux_is_selinux_enabled=yes |
9428 | else | |
68f2de6d | 9429 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9430 | sed 's/^/| /' conftest.$ac_ext >&5 |
9431 | ||
7a197a62 | 9432 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 9433 | fi |
7a197a62 | 9434 | |
25fbec5b | 9435 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9436 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
9437 | LIBS=$ac_check_lib_save_LIBS |
9438 | fi | |
68f2de6d AK |
9439 | { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
9440 | echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
ad6254c5 AK |
9441 | if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then |
9442 | HAVE_SELINUX=yes | |
9443 | else | |
9444 | HAVE_SELINUX=no | |
9445 | fi | |
9446 | ||
ad6254c5 AK |
9447 | |
9448 | if test x$HAVE_SELINUX = xyes; then | |
72b2cb61 AK |
9449 | |
9450 | cat >>confdefs.h <<\_ACEOF | |
9451 | #define HAVE_SELINUX 1 | |
9452 | _ACEOF | |
9453 | ||
ad6254c5 AK |
9454 | LIBS="-lselinux $LIBS" |
9455 | else | |
68f2de6d AK |
9456 | { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 |
9457 | echo "$as_me: WARNING: Disabling selinux" >&2;} | |
66e941e8 JM |
9458 | fi |
9459 | ||
d0191583 | 9460 | # With --enable-static_link and selinux enabled, linking |
66e941e8 JM |
9461 | # fails on at least Debian unstable due to unsatisfied references |
9462 | # to pthread_mutex_lock and _unlock. See if we need -lpthread. | |
9463 | if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then | |
9464 | lvm_saved_libs=$LIBS | |
9465 | LIBS="$LIBS -static" | |
68f2de6d AK |
9466 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
9467 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } | |
66e941e8 | 9468 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
68f2de6d | 9469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
66e941e8 JM |
9470 | else |
9471 | ac_func_search_save_LIBS=$LIBS | |
9472 | cat >conftest.$ac_ext <<_ACEOF | |
9473 | /* confdefs.h. */ | |
9474 | _ACEOF | |
9475 | cat confdefs.h >>conftest.$ac_ext | |
9476 | cat >>conftest.$ac_ext <<_ACEOF | |
9477 | /* end confdefs.h. */ | |
9478 | ||
9479 | /* Override any GCC internal prototype to avoid an error. | |
9480 | Use char because int might match the return type of a GCC | |
9481 | builtin and then its argument prototype would still apply. */ | |
9482 | #ifdef __cplusplus | |
9483 | extern "C" | |
9484 | #endif | |
9485 | char pthread_mutex_lock (); | |
9486 | int | |
9487 | main () | |
9488 | { | |
9489 | return pthread_mutex_lock (); | |
9490 | ; | |
9491 | return 0; | |
9492 | } | |
9493 | _ACEOF | |
9494 | for ac_lib in '' pthread; do | |
9495 | if test -z "$ac_lib"; then | |
9496 | ac_res="none required" | |
9497 | else | |
9498 | ac_res=-l$ac_lib | |
9499 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9500 | fi | |
9501 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9502 | if { (ac_try="$ac_link" | |
9503 | case "(($ac_try" in | |
9504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9505 | *) ac_try_echo=$ac_try;; | |
9506 | esac | |
68f2de6d | 9507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
66e941e8 JM |
9508 | (eval "$ac_link") 2>conftest.er1 |
9509 | ac_status=$? | |
9510 | grep -v '^ *+' conftest.er1 >conftest.err | |
9511 | rm -f conftest.er1 | |
9512 | cat conftest.err >&5 | |
68f2de6d | 9513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9514 | (exit $ac_status); } && { |
9515 | test -z "$ac_c_werror_flag" || | |
9516 | test ! -s conftest.err | |
68f2de6d AK |
9517 | } && test -s conftest$ac_exeext && |
9518 | $as_test_x conftest$ac_exeext; then | |
66e941e8 JM |
9519 | ac_cv_search_pthread_mutex_lock=$ac_res |
9520 | else | |
68f2de6d | 9521 | echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
9522 | sed 's/^/| /' conftest.$ac_ext >&5 |
9523 | ||
9524 | ||
9525 | fi | |
9526 | ||
25fbec5b | 9527 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
66e941e8 JM |
9528 | conftest$ac_exeext |
9529 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
9530 | break | |
9531 | fi | |
9532 | done | |
9533 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then | |
9534 | : | |
9535 | else | |
9536 | ac_cv_search_pthread_mutex_lock=no | |
9537 | fi | |
9538 | rm conftest.$ac_ext | |
9539 | LIBS=$ac_func_search_save_LIBS | |
9540 | fi | |
68f2de6d AK |
9541 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
9542 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } | |
66e941e8 JM |
9543 | ac_res=$ac_cv_search_pthread_mutex_lock |
9544 | if test "$ac_res" != no; then | |
9545 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9546 | test "$ac_cv_search_pthread_mutex_lock" = "none required" || | |
9547 | LIB_PTHREAD=-lpthread | |
9548 | fi | |
9549 | ||
9550 | LIBS=$lvm_saved_libs | |
ad6254c5 AK |
9551 | fi |
9552 | fi | |
9553 | ||
8b1a3214 AK |
9554 | ################################################################################ |
9555 | if test x$REALTIME = xyes; then | |
68f2de6d AK |
9556 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
9557 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } | |
8b1a3214 | 9558 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
68f2de6d | 9559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8b1a3214 AK |
9560 | else |
9561 | ac_check_lib_save_LIBS=$LIBS | |
9562 | LIBS="-lrt $LIBS" | |
9563 | cat >conftest.$ac_ext <<_ACEOF | |
9564 | /* confdefs.h. */ | |
9565 | _ACEOF | |
9566 | cat confdefs.h >>conftest.$ac_ext | |
9567 | cat >>conftest.$ac_ext <<_ACEOF | |
9568 | /* end confdefs.h. */ | |
9569 | ||
7a197a62 AK |
9570 | /* Override any GCC internal prototype to avoid an error. |
9571 | Use char because int might match the return type of a GCC | |
9572 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
9573 | #ifdef __cplusplus |
9574 | extern "C" | |
9575 | #endif | |
8b1a3214 AK |
9576 | char clock_gettime (); |
9577 | int | |
9578 | main () | |
9579 | { | |
7a197a62 | 9580 | return clock_gettime (); |
8b1a3214 AK |
9581 | ; |
9582 | return 0; | |
9583 | } | |
9584 | _ACEOF | |
9585 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9586 | if { (ac_try="$ac_link" |
9587 | case "(($ac_try" in | |
9588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9589 | *) ac_try_echo=$ac_try;; | |
9590 | esac | |
68f2de6d | 9591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9592 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
9593 | ac_status=$? |
9594 | grep -v '^ *+' conftest.er1 >conftest.err | |
9595 | rm -f conftest.er1 | |
9596 | cat conftest.err >&5 | |
68f2de6d | 9597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9598 | (exit $ac_status); } && { |
9599 | test -z "$ac_c_werror_flag" || | |
9600 | test ! -s conftest.err | |
68f2de6d AK |
9601 | } && test -s conftest$ac_exeext && |
9602 | $as_test_x conftest$ac_exeext; then | |
8b1a3214 AK |
9603 | ac_cv_lib_rt_clock_gettime=yes |
9604 | else | |
68f2de6d | 9605 | echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
9606 | sed 's/^/| /' conftest.$ac_ext >&5 |
9607 | ||
7a197a62 | 9608 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 9609 | fi |
7a197a62 | 9610 | |
25fbec5b | 9611 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
9612 | conftest$ac_exeext conftest.$ac_ext |
9613 | LIBS=$ac_check_lib_save_LIBS | |
9614 | fi | |
68f2de6d AK |
9615 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
9616 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } | |
8b1a3214 AK |
9617 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
9618 | HAVE_REALTIME=yes | |
9619 | else | |
9620 | HAVE_REALTIME=no | |
9621 | fi | |
9622 | ||
8b1a3214 AK |
9623 | |
9624 | if test x$HAVE_REALTIME = xyes; then | |
9625 | ||
9626 | cat >>confdefs.h <<\_ACEOF | |
9627 | #define HAVE_REALTIME 1 | |
9628 | _ACEOF | |
9629 | ||
9630 | LIBS="-lrt $LIBS" | |
9631 | else | |
68f2de6d AK |
9632 | { echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
9633 | echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
9634 | fi |
9635 | fi | |
9636 | ||
ad6254c5 AK |
9637 | ################################################################################ |
9638 | ||
9639 | for ac_header in getopt.h | |
9640 | do | |
68f2de6d | 9641 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9642 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
9643 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9644 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9645 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 9646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9647 | fi |
68f2de6d AK |
9648 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9649 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9650 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9651 | else |
9652 | # Is the header compilable? | |
68f2de6d AK |
9653 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9654 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 9655 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9656 | /* confdefs.h. */ |
9657 | _ACEOF | |
9658 | cat confdefs.h >>conftest.$ac_ext | |
9659 | cat >>conftest.$ac_ext <<_ACEOF | |
9660 | /* end confdefs.h. */ | |
9661 | $ac_includes_default | |
9662 | #include <$ac_header> | |
9663 | _ACEOF | |
9664 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9665 | if { (ac_try="$ac_compile" |
9666 | case "(($ac_try" in | |
9667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9668 | *) ac_try_echo=$ac_try;; | |
9669 | esac | |
68f2de6d | 9670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9671 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9672 | ac_status=$? |
8a2fc586 AK |
9673 | grep -v '^ *+' conftest.er1 >conftest.err |
9674 | rm -f conftest.er1 | |
9675 | cat conftest.err >&5 | |
68f2de6d | 9676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9677 | (exit $ac_status); } && { |
9678 | test -z "$ac_c_werror_flag" || | |
9679 | test ! -s conftest.err | |
9680 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9681 | ac_header_compiler=yes |
9682 | else | |
68f2de6d | 9683 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9684 | sed 's/^/| /' conftest.$ac_ext >&5 |
9685 | ||
7a197a62 | 9686 | ac_header_compiler=no |
ad6254c5 | 9687 | fi |
7a197a62 AK |
9688 | |
9689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
9690 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9691 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9692 | |
9693 | # Is the header present? | |
68f2de6d AK |
9694 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9695 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 9696 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9697 | /* confdefs.h. */ |
9698 | _ACEOF | |
9699 | cat confdefs.h >>conftest.$ac_ext | |
9700 | cat >>conftest.$ac_ext <<_ACEOF | |
9701 | /* end confdefs.h. */ | |
9702 | #include <$ac_header> | |
9703 | _ACEOF | |
7a197a62 AK |
9704 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9705 | case "(($ac_try" in | |
9706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9707 | *) ac_try_echo=$ac_try;; | |
9708 | esac | |
68f2de6d | 9709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9710 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9711 | ac_status=$? |
9712 | grep -v '^ *+' conftest.er1 >conftest.err | |
9713 | rm -f conftest.er1 | |
9714 | cat conftest.err >&5 | |
68f2de6d | 9715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9716 | (exit $ac_status); } >/dev/null && { |
9717 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9718 | test ! -s conftest.err | |
9719 | }; then | |
ad6254c5 AK |
9720 | ac_header_preproc=yes |
9721 | else | |
68f2de6d | 9722 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9723 | sed 's/^/| /' conftest.$ac_ext >&5 |
9724 | ||
9725 | ac_header_preproc=no | |
9726 | fi | |
7a197a62 | 9727 | |
ad6254c5 | 9728 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
9729 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9730 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9731 | |
9732 | # So? What about this header? | |
8a2fc586 AK |
9733 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9734 | yes:no: ) | |
68f2de6d AK |
9735 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9736 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9737 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9738 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9739 | ac_header_preproc=yes |
ad6254c5 | 9740 | ;; |
8a2fc586 | 9741 | no:yes:* ) |
68f2de6d AK |
9742 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9743 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9744 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9745 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9746 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9747 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9748 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9749 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9750 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9751 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9752 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9753 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9754 | |
ad6254c5 AK |
9755 | ;; |
9756 | esac | |
68f2de6d AK |
9757 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9758 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 9759 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 9760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 9761 | else |
8a2fc586 | 9762 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9763 | fi |
68f2de6d AK |
9764 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9765 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9766 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
9767 | |
9768 | fi | |
68f2de6d | 9769 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 9770 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 9771 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 9772 | _ACEOF |
72b2cb61 AK |
9773 | |
9774 | cat >>confdefs.h <<\_ACEOF | |
9775 | #define HAVE_GETOPTLONG 1 | |
9776 | _ACEOF | |
9777 | ||
ad6254c5 AK |
9778 | fi |
9779 | ||
9780 | done | |
9781 | ||
9782 | ||
9783 | ################################################################################ | |
06e459df | 9784 | if test x$READLINE != xno; then |
bc1024f8 JM |
9785 | rl_found=yes |
9786 | ||
68f2de6d AK |
9787 | { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
9788 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; } | |
ad6254c5 | 9789 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
68f2de6d | 9790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9791 | else |
9792 | ac_check_lib_save_LIBS=$LIBS | |
9793 | LIBS="-lreadline $LIBS" | |
9794 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9795 | /* confdefs.h. */ |
9796 | _ACEOF | |
9797 | cat confdefs.h >>conftest.$ac_ext | |
9798 | cat >>conftest.$ac_ext <<_ACEOF | |
9799 | /* end confdefs.h. */ | |
9800 | ||
7a197a62 AK |
9801 | /* Override any GCC internal prototype to avoid an error. |
9802 | Use char because int might match the return type of a GCC | |
9803 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9804 | #ifdef __cplusplus |
9805 | extern "C" | |
9806 | #endif | |
ad6254c5 AK |
9807 | char readline (); |
9808 | int | |
9809 | main () | |
9810 | { | |
7a197a62 | 9811 | return readline (); |
ad6254c5 AK |
9812 | ; |
9813 | return 0; | |
9814 | } | |
9815 | _ACEOF | |
9816 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9817 | if { (ac_try="$ac_link" |
9818 | case "(($ac_try" in | |
9819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9820 | *) ac_try_echo=$ac_try;; | |
9821 | esac | |
68f2de6d | 9822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9823 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9824 | ac_status=$? |
8a2fc586 AK |
9825 | grep -v '^ *+' conftest.er1 >conftest.err |
9826 | rm -f conftest.er1 | |
9827 | cat conftest.err >&5 | |
68f2de6d | 9828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9829 | (exit $ac_status); } && { |
9830 | test -z "$ac_c_werror_flag" || | |
9831 | test ! -s conftest.err | |
68f2de6d AK |
9832 | } && test -s conftest$ac_exeext && |
9833 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
9834 | ac_cv_lib_readline_readline=yes |
9835 | else | |
68f2de6d | 9836 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9837 | sed 's/^/| /' conftest.$ac_ext >&5 |
9838 | ||
7a197a62 | 9839 | ac_cv_lib_readline_readline=no |
ad6254c5 | 9840 | fi |
7a197a62 | 9841 | |
25fbec5b | 9842 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9843 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
9844 | LIBS=$ac_check_lib_save_LIBS |
9845 | fi | |
68f2de6d AK |
9846 | { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
9847 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; } | |
ad6254c5 | 9848 | if test $ac_cv_lib_readline_readline = yes; then |
bc1024f8 JM |
9849 | cat >>confdefs.h <<_ACEOF |
9850 | #define HAVE_LIBREADLINE 1 | |
9851 | _ACEOF | |
9852 | ||
9853 | LIBS="-lreadline $LIBS" | |
9854 | ||
ad6254c5 | 9855 | else |
06e459df JM |
9856 | rl_found=no |
9857 | fi | |
9858 | ||
9859 | test x$READLINE:$rl_found = xyes:no && | |
68f2de6d | 9860 | { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
9861 | --enable-readline option (which is enabled by default). Either disable readline |
9862 | support with --disable-readline or download and install readline from: | |
9863 | ftp.gnu.org/gnu/readline | |
9864 | Note: if you are using precompiled packages you will also need the development | |
9865 | package as well (which may be called readline-devel or something similar). | |
9866 | " >&5 | |
68f2de6d | 9867 | echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
9868 | --enable-readline option (which is enabled by default). Either disable readline |
9869 | support with --disable-readline or download and install readline from: | |
9870 | ftp.gnu.org/gnu/readline | |
9871 | Note: if you are using precompiled packages you will also need the development | |
9872 | package as well (which may be called readline-devel or something similar). | |
9873 | " >&2;} | |
9874 | { (exit 1); exit 1; }; } | |
06e459df | 9875 | if test $rl_found = yes; then |
bc1024f8 JM |
9876 | |
9877 | for ac_func in rl_completion_matches | |
9878 | do | |
68f2de6d AK |
9879 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9880 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9881 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
bc1024f8 | 9882 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 9883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
9884 | else |
9885 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9886 | /* confdefs.h. */ |
9887 | _ACEOF | |
9888 | cat confdefs.h >>conftest.$ac_ext | |
9889 | cat >>conftest.$ac_ext <<_ACEOF | |
9890 | /* end confdefs.h. */ | |
bc1024f8 | 9891 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8a2fc586 | 9892 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
bc1024f8 | 9893 | #define $ac_func innocuous_$ac_func |
8a2fc586 | 9894 | |
ad6254c5 | 9895 | /* System header to define __stub macros and hopefully few prototypes, |
bc1024f8 | 9896 | which can conflict with char $ac_func (); below. |
ad6254c5 AK |
9897 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9898 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9899 | |
ad6254c5 AK |
9900 | #ifdef __STDC__ |
9901 | # include <limits.h> | |
9902 | #else | |
9903 | # include <assert.h> | |
9904 | #endif | |
8a2fc586 | 9905 | |
bc1024f8 | 9906 | #undef $ac_func |
8a2fc586 | 9907 | |
7a197a62 AK |
9908 | /* Override any GCC internal prototype to avoid an error. |
9909 | Use char because int might match the return type of a GCC | |
9910 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9911 | #ifdef __cplusplus |
9912 | extern "C" | |
ad6254c5 | 9913 | #endif |
bc1024f8 | 9914 | char $ac_func (); |
ad6254c5 AK |
9915 | /* The GNU C library defines this for functions which it implements |
9916 | to always fail with ENOSYS. Some functions are actually named | |
9917 | something starting with __ and the normal name is an alias. */ | |
bc1024f8 | 9918 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 9919 | choke me |
ad6254c5 AK |
9920 | #endif |
9921 | ||
9922 | int | |
9923 | main () | |
9924 | { | |
bc1024f8 | 9925 | return $ac_func (); |
ad6254c5 AK |
9926 | ; |
9927 | return 0; | |
9928 | } | |
9929 | _ACEOF | |
9930 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9931 | if { (ac_try="$ac_link" |
9932 | case "(($ac_try" in | |
9933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9934 | *) ac_try_echo=$ac_try;; | |
9935 | esac | |
68f2de6d | 9936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 9937 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9938 | ac_status=$? |
8a2fc586 AK |
9939 | grep -v '^ *+' conftest.er1 >conftest.err |
9940 | rm -f conftest.er1 | |
9941 | cat conftest.err >&5 | |
68f2de6d | 9942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9943 | (exit $ac_status); } && { |
9944 | test -z "$ac_c_werror_flag" || | |
9945 | test ! -s conftest.err | |
68f2de6d AK |
9946 | } && test -s conftest$ac_exeext && |
9947 | $as_test_x conftest$ac_exeext; then | |
bc1024f8 | 9948 | eval "$as_ac_var=yes" |
ad6254c5 | 9949 | else |
68f2de6d | 9950 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9951 | sed 's/^/| /' conftest.$ac_ext >&5 |
9952 | ||
bc1024f8 | 9953 | eval "$as_ac_var=no" |
ad6254c5 | 9954 | fi |
7a197a62 | 9955 | |
25fbec5b | 9956 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9957 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 9958 | fi |
68f2de6d AK |
9959 | ac_res=`eval echo '${'$as_ac_var'}'` |
9960 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9961 | echo "${ECHO_T}$ac_res" >&6; } | |
9962 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
bc1024f8 | 9963 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 9964 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
72b2cb61 AK |
9965 | _ACEOF |
9966 | ||
9967 | fi | |
bc1024f8 | 9968 | done |
ad6254c5 | 9969 | |
d179cc7a JM |
9970 | |
9971 | cat >>confdefs.h <<\_ACEOF | |
9972 | #define READLINE_SUPPORT 1 | |
9973 | _ACEOF | |
9974 | ||
06e459df | 9975 | fi |
ad6254c5 AK |
9976 | fi |
9977 | ||
9978 | ################################################################################ | |
68f2de6d AK |
9979 | { echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
9980 | echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6; } | |
7a197a62 | 9981 | # Check whether --enable-nls was given. |
ad6254c5 | 9982 | if test "${enable_nls+set}" = set; then |
7a197a62 | 9983 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
9984 | else |
9985 | INTL=no | |
7a197a62 AK |
9986 | fi |
9987 | ||
68f2de6d AK |
9988 | { echo "$as_me:$LINENO: result: $INTL" >&5 |
9989 | echo "${ECHO_T}$INTL" >&6; } | |
ad6254c5 AK |
9990 | |
9991 | if test x$INTL = xyes; then | |
93bd259b | 9992 | # FIXME - Move this - can be device-mapper too |
ad6254c5 AK |
9993 | INTL_PACKAGE="lvm2" |
9994 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
9995 | set dummy msgfmt; ac_word=$2 | |
68f2de6d AK |
9996 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9997 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ad6254c5 | 9998 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
68f2de6d | 9999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 AK |
10000 | else |
10001 | case $MSGFMT in | |
10002 | [\\/]* | ?:[\\/]*) | |
10003 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
10004 | ;; | |
10005 | *) | |
10006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10007 | for as_dir in $PATH | |
10008 | do | |
10009 | IFS=$as_save_IFS | |
10010 | test -z "$as_dir" && as_dir=. | |
10011 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 10012 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 10013 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
68f2de6d | 10014 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
10015 | break 2 |
10016 | fi | |
10017 | done | |
10018 | done | |
7a197a62 | 10019 | IFS=$as_save_IFS |
ad6254c5 AK |
10020 | |
10021 | ;; | |
10022 | esac | |
10023 | fi | |
10024 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 10025 | if test -n "$MSGFMT"; then |
68f2de6d AK |
10026 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
10027 | echo "${ECHO_T}$MSGFMT" >&6; } | |
ad6254c5 | 10028 | else |
68f2de6d AK |
10029 | { echo "$as_me:$LINENO: result: no" >&5 |
10030 | echo "${ECHO_T}no" >&6; } | |
ad6254c5 AK |
10031 | fi |
10032 | ||
7a197a62 | 10033 | |
ad6254c5 | 10034 | if [ "x$MSGFMT" == x ]; |
68f2de6d | 10035 | then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 10036 | " >&5 |
68f2de6d | 10037 | echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
10038 | " >&2;} |
10039 | { (exit 1); exit 1; }; } | |
10040 | fi; | |
10041 | ||
10042 | ||
7a197a62 | 10043 | # Check whether --with-localedir was given. |
ad6254c5 | 10044 | if test "${with_localedir+set}" = set; then |
7a197a62 | 10045 | withval=$with_localedir; LOCALEDIR="$withval" |
ad6254c5 AK |
10046 | else |
10047 | LOCALEDIR='${prefix}/share/locale' | |
7a197a62 AK |
10048 | fi |
10049 | ||
ad6254c5 AK |
10050 | fi |
10051 | ||
10052 | ################################################################################ | |
10053 | ||
7a197a62 | 10054 | # Check whether --with-confdir was given. |
ad6254c5 | 10055 | if test "${with_confdir+set}" = set; then |
7a197a62 | 10056 | withval=$with_confdir; CONFDIR="$withval" |
ad6254c5 AK |
10057 | else |
10058 | CONFDIR='/etc' | |
7a197a62 AK |
10059 | fi |
10060 | ||
ad6254c5 AK |
10061 | |
10062 | ||
7a197a62 | 10063 | # Check whether --with-staticdir was given. |
ad6254c5 | 10064 | if test "${with_staticdir+set}" = set; then |
7a197a62 | 10065 | withval=$with_staticdir; STATICDIR="$withval" |
ad6254c5 AK |
10066 | else |
10067 | STATICDIR='${exec_prefix}/sbin' | |
7a197a62 | 10068 | fi |
ad6254c5 | 10069 | |
33f732c5 | 10070 | |
7a197a62 | 10071 | |
68f2de6d AK |
10072 | # Check whether --with-usrlibdir was given. |
10073 | if test "${with_usrlibdir+set}" = set; then | |
10074 | withval=$with_usrlibdir; usrlibdir="$withval" | |
10075 | else | |
10076 | usrlibdir='${prefix}/lib' | |
10077 | fi | |
10078 | ||
10079 | ||
10080 | ||
10081 | # Check whether --with-usrsbindir was given. | |
10082 | if test "${with_usrsbindir+set}" = set; then | |
10083 | withval=$with_usrsbindir; usrsbindir="$withval" | |
10084 | else | |
10085 | usrsbindir='${prefix}/sbin' | |
10086 | fi | |
10087 | ||
10088 | ||
ad6254c5 AK |
10089 | ################################################################################ |
10090 | if test x$READLINE = xyes; then | |
10091 | ||
10092 | ||
10093 | for ac_header in readline/readline.h readline/history.h | |
10094 | do | |
68f2de6d | 10095 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10096 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
10097 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10098 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10099 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10101 | fi |
68f2de6d AK |
10102 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10103 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10104 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10105 | else |
10106 | # Is the header compilable? | |
68f2de6d AK |
10107 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10108 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10109 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10110 | /* confdefs.h. */ |
10111 | _ACEOF | |
10112 | cat confdefs.h >>conftest.$ac_ext | |
10113 | cat >>conftest.$ac_ext <<_ACEOF | |
10114 | /* end confdefs.h. */ | |
10115 | $ac_includes_default | |
10116 | #include <$ac_header> | |
10117 | _ACEOF | |
10118 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10119 | if { (ac_try="$ac_compile" |
10120 | case "(($ac_try" in | |
10121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10122 | *) ac_try_echo=$ac_try;; | |
10123 | esac | |
68f2de6d | 10124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10125 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10126 | ac_status=$? |
8a2fc586 AK |
10127 | grep -v '^ *+' conftest.er1 >conftest.err |
10128 | rm -f conftest.er1 | |
10129 | cat conftest.err >&5 | |
68f2de6d | 10130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10131 | (exit $ac_status); } && { |
10132 | test -z "$ac_c_werror_flag" || | |
10133 | test ! -s conftest.err | |
10134 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10135 | ac_header_compiler=yes |
10136 | else | |
68f2de6d | 10137 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10138 | sed 's/^/| /' conftest.$ac_ext >&5 |
10139 | ||
7a197a62 | 10140 | ac_header_compiler=no |
ad6254c5 | 10141 | fi |
7a197a62 AK |
10142 | |
10143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
10144 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10145 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10146 | |
10147 | # Is the header present? | |
68f2de6d AK |
10148 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10149 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10150 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10151 | /* confdefs.h. */ |
10152 | _ACEOF | |
10153 | cat confdefs.h >>conftest.$ac_ext | |
10154 | cat >>conftest.$ac_ext <<_ACEOF | |
10155 | /* end confdefs.h. */ | |
10156 | #include <$ac_header> | |
10157 | _ACEOF | |
7a197a62 AK |
10158 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10159 | case "(($ac_try" in | |
10160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10161 | *) ac_try_echo=$ac_try;; | |
10162 | esac | |
68f2de6d | 10163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10164 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10165 | ac_status=$? |
10166 | grep -v '^ *+' conftest.er1 >conftest.err | |
10167 | rm -f conftest.er1 | |
10168 | cat conftest.err >&5 | |
68f2de6d | 10169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10170 | (exit $ac_status); } >/dev/null && { |
10171 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10172 | test ! -s conftest.err | |
10173 | }; then | |
ad6254c5 AK |
10174 | ac_header_preproc=yes |
10175 | else | |
68f2de6d | 10176 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10177 | sed 's/^/| /' conftest.$ac_ext >&5 |
10178 | ||
10179 | ac_header_preproc=no | |
10180 | fi | |
7a197a62 | 10181 | |
ad6254c5 | 10182 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
10183 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10184 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10185 | |
10186 | # So? What about this header? | |
8a2fc586 AK |
10187 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10188 | yes:no: ) | |
68f2de6d AK |
10189 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10190 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10191 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10192 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10193 | ac_header_preproc=yes |
ad6254c5 | 10194 | ;; |
8a2fc586 | 10195 | no:yes:* ) |
68f2de6d AK |
10196 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10197 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10198 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10199 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10200 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10201 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10202 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10203 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10204 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10205 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10206 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10207 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10208 | |
ad6254c5 AK |
10209 | ;; |
10210 | esac | |
68f2de6d AK |
10211 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10212 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10213 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10215 | else |
8a2fc586 | 10216 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10217 | fi |
68f2de6d AK |
10218 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10219 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10220 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10221 | |
10222 | fi | |
68f2de6d | 10223 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10224 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 10225 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10226 | _ACEOF |
10227 | ||
10228 | else | |
68f2de6d AK |
10229 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10230 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
10231 | { (exit 1); exit 1; }; } |
10232 | fi | |
10233 | ||
10234 | done | |
10235 | ||
10236 | fi | |
10237 | ||
5c7fc7c4 | 10238 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
10239 | |
10240 | ||
10241 | ||
10242 | ||
10243 | ||
10244 | ||
10245 | ||
10246 | ||
10247 | ||
10248 | ||
10249 | 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 | |
10250 | do | |
68f2de6d | 10251 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10252 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
10253 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10254 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10255 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10257 | fi |
68f2de6d AK |
10258 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10259 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10260 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10261 | else |
10262 | # Is the header compilable? | |
68f2de6d AK |
10263 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10264 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10265 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10266 | /* confdefs.h. */ |
10267 | _ACEOF | |
10268 | cat confdefs.h >>conftest.$ac_ext | |
10269 | cat >>conftest.$ac_ext <<_ACEOF | |
10270 | /* end confdefs.h. */ | |
10271 | $ac_includes_default | |
10272 | #include <$ac_header> | |
10273 | _ACEOF | |
10274 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10275 | if { (ac_try="$ac_compile" |
10276 | case "(($ac_try" in | |
10277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10278 | *) ac_try_echo=$ac_try;; | |
10279 | esac | |
68f2de6d | 10280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10281 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10282 | ac_status=$? |
8a2fc586 AK |
10283 | grep -v '^ *+' conftest.er1 >conftest.err |
10284 | rm -f conftest.er1 | |
10285 | cat conftest.err >&5 | |
68f2de6d | 10286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10287 | (exit $ac_status); } && { |
10288 | test -z "$ac_c_werror_flag" || | |
10289 | test ! -s conftest.err | |
10290 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10291 | ac_header_compiler=yes |
10292 | else | |
68f2de6d | 10293 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10294 | sed 's/^/| /' conftest.$ac_ext >&5 |
10295 | ||
7a197a62 | 10296 | ac_header_compiler=no |
ad6254c5 | 10297 | fi |
7a197a62 AK |
10298 | |
10299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
10300 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10301 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10302 | |
10303 | # Is the header present? | |
68f2de6d AK |
10304 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10305 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10306 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10307 | /* confdefs.h. */ |
10308 | _ACEOF | |
10309 | cat confdefs.h >>conftest.$ac_ext | |
10310 | cat >>conftest.$ac_ext <<_ACEOF | |
10311 | /* end confdefs.h. */ | |
10312 | #include <$ac_header> | |
10313 | _ACEOF | |
7a197a62 AK |
10314 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10315 | case "(($ac_try" in | |
10316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10317 | *) ac_try_echo=$ac_try;; | |
10318 | esac | |
68f2de6d | 10319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10320 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10321 | ac_status=$? |
10322 | grep -v '^ *+' conftest.er1 >conftest.err | |
10323 | rm -f conftest.er1 | |
10324 | cat conftest.err >&5 | |
68f2de6d | 10325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10326 | (exit $ac_status); } >/dev/null && { |
10327 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10328 | test ! -s conftest.err | |
10329 | }; then | |
ad6254c5 AK |
10330 | ac_header_preproc=yes |
10331 | else | |
68f2de6d | 10332 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10333 | sed 's/^/| /' conftest.$ac_ext >&5 |
10334 | ||
10335 | ac_header_preproc=no | |
10336 | fi | |
7a197a62 | 10337 | |
ad6254c5 | 10338 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
10339 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10340 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10341 | |
10342 | # So? What about this header? | |
8a2fc586 AK |
10343 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10344 | yes:no: ) | |
68f2de6d AK |
10345 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10346 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10347 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10348 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10349 | ac_header_preproc=yes |
ad6254c5 | 10350 | ;; |
8a2fc586 | 10351 | no:yes:* ) |
68f2de6d AK |
10352 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10353 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10354 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10355 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10356 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10357 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10358 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10359 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10360 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10361 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10362 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10363 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10364 | |
ad6254c5 AK |
10365 | ;; |
10366 | esac | |
68f2de6d AK |
10367 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10368 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10369 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10371 | else |
8a2fc586 | 10372 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10373 | fi |
68f2de6d AK |
10374 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10375 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10376 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10377 | |
10378 | fi | |
68f2de6d | 10379 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10380 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 10381 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10382 | _ACEOF |
10383 | ||
10384 | else | |
68f2de6d AK |
10385 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10386 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10387 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
10388 | fi |
10389 | ||
ad6254c5 AK |
10390 | done |
10391 | ||
10392 | ||
795ca3e5 | 10393 | |
8106cdd5 | 10394 | |
ad6254c5 AK |
10395 | |
10396 | ||
10397 | for ac_func in dup2 getmntent memmove select socket | |
10398 | do | |
68f2de6d AK |
10399 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10400 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10401 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 10402 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 10404 | else |
ad6254c5 | 10405 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10406 | /* confdefs.h. */ |
10407 | _ACEOF | |
10408 | cat confdefs.h >>conftest.$ac_ext | |
10409 | cat >>conftest.$ac_ext <<_ACEOF | |
10410 | /* end confdefs.h. */ | |
8a2fc586 AK |
10411 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10412 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10413 | #define $ac_func innocuous_$ac_func | |
10414 | ||
795ca3e5 | 10415 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
10416 | which can conflict with char $ac_func (); below. |
10417 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10418 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10419 | |
ad6254c5 AK |
10420 | #ifdef __STDC__ |
10421 | # include <limits.h> | |
10422 | #else | |
10423 | # include <assert.h> | |
10424 | #endif | |
8a2fc586 AK |
10425 | |
10426 | #undef $ac_func | |
10427 | ||
7a197a62 AK |
10428 | /* Override any GCC internal prototype to avoid an error. |
10429 | Use char because int might match the return type of a GCC | |
10430 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10431 | #ifdef __cplusplus |
10432 | extern "C" | |
ad6254c5 | 10433 | #endif |
ad6254c5 | 10434 | char $ac_func (); |
795ca3e5 AK |
10435 | /* The GNU C library defines this for functions which it implements |
10436 | to always fail with ENOSYS. Some functions are actually named | |
10437 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10438 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 10439 | choke me |
795ca3e5 AK |
10440 | #endif |
10441 | ||
ad6254c5 AK |
10442 | int |
10443 | main () | |
10444 | { | |
7a197a62 | 10445 | return $ac_func (); |
ad6254c5 AK |
10446 | ; |
10447 | return 0; | |
10448 | } | |
10449 | _ACEOF | |
10450 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10451 | if { (ac_try="$ac_link" |
10452 | case "(($ac_try" in | |
10453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10454 | *) ac_try_echo=$ac_try;; | |
10455 | esac | |
68f2de6d | 10456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10457 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10458 | ac_status=$? |
8a2fc586 AK |
10459 | grep -v '^ *+' conftest.er1 >conftest.err |
10460 | rm -f conftest.er1 | |
10461 | cat conftest.err >&5 | |
68f2de6d | 10462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10463 | (exit $ac_status); } && { |
10464 | test -z "$ac_c_werror_flag" || | |
10465 | test ! -s conftest.err | |
68f2de6d AK |
10466 | } && test -s conftest$ac_exeext && |
10467 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 | 10468 | eval "$as_ac_var=yes" |
795ca3e5 | 10469 | else |
68f2de6d | 10470 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10471 | sed 's/^/| /' conftest.$ac_ext >&5 |
10472 | ||
7a197a62 | 10473 | eval "$as_ac_var=no" |
80992638 | 10474 | fi |
7a197a62 | 10475 | |
25fbec5b | 10476 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10477 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 10478 | fi |
68f2de6d AK |
10479 | ac_res=`eval echo '${'$as_ac_var'}'` |
10480 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10481 | echo "${ECHO_T}$ac_res" >&6; } | |
10482 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 10483 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 10484 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 10485 | _ACEOF |
80992638 AK |
10486 | |
10487 | else | |
68f2de6d AK |
10488 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10489 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10490 | { (exit 1); exit 1; }; } |
8106cdd5 | 10491 | fi |
ad6254c5 | 10492 | done |
795ca3e5 | 10493 | |
25fbec5b AK |
10494 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
10495 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
68f2de6d AK |
10496 | { echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
10497 | echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; } | |
25fbec5b | 10498 | if test "${ac_cv_search_getmntent+set}" = set; then |
68f2de6d | 10499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
25fbec5b AK |
10500 | else |
10501 | ac_func_search_save_LIBS=$LIBS | |
10502 | cat >conftest.$ac_ext <<_ACEOF | |
10503 | /* confdefs.h. */ | |
10504 | _ACEOF | |
10505 | cat confdefs.h >>conftest.$ac_ext | |
10506 | cat >>conftest.$ac_ext <<_ACEOF | |
10507 | /* end confdefs.h. */ | |
80992638 | 10508 | |
7a197a62 AK |
10509 | /* Override any GCC internal prototype to avoid an error. |
10510 | Use char because int might match the return type of a GCC | |
ad6254c5 | 10511 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
10512 | #ifdef __cplusplus |
10513 | extern "C" | |
10514 | #endif | |
25fbec5b | 10515 | char getmntent (); |
ad6254c5 AK |
10516 | int |
10517 | main () | |
10518 | { | |
25fbec5b | 10519 | return getmntent (); |
ad6254c5 AK |
10520 | ; |
10521 | return 0; | |
10522 | } | |
10523 | _ACEOF | |
25fbec5b AK |
10524 | for ac_lib in '' sun seq gen; do |
10525 | if test -z "$ac_lib"; then | |
10526 | ac_res="none required" | |
10527 | else | |
10528 | ac_res=-l$ac_lib | |
10529 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10530 | fi | |
10531 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10532 | if { (ac_try="$ac_link" |
10533 | case "(($ac_try" in | |
10534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10535 | *) ac_try_echo=$ac_try;; | |
10536 | esac | |
68f2de6d | 10537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10538 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10539 | ac_status=$? |
8a2fc586 AK |
10540 | grep -v '^ *+' conftest.er1 >conftest.err |
10541 | rm -f conftest.er1 | |
10542 | cat conftest.err >&5 | |
68f2de6d | 10543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10544 | (exit $ac_status); } && { |
10545 | test -z "$ac_c_werror_flag" || | |
10546 | test ! -s conftest.err | |
68f2de6d AK |
10547 | } && test -s conftest$ac_exeext && |
10548 | $as_test_x conftest$ac_exeext; then | |
25fbec5b | 10549 | ac_cv_search_getmntent=$ac_res |
80992638 | 10550 | else |
68f2de6d | 10551 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10552 | sed 's/^/| /' conftest.$ac_ext >&5 |
10553 | ||
25fbec5b | 10554 | |
795ca3e5 AK |
10555 | fi |
10556 | ||
25fbec5b AK |
10557 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10558 | conftest$ac_exeext | |
10559 | if test "${ac_cv_search_getmntent+set}" = set; then | |
10560 | break | |
795ca3e5 | 10561 | fi |
25fbec5b AK |
10562 | done |
10563 | if test "${ac_cv_search_getmntent+set}" = set; then | |
10564 | : | |
10565 | else | |
10566 | ac_cv_search_getmntent=no | |
10567 | fi | |
10568 | rm conftest.$ac_ext | |
10569 | LIBS=$ac_func_search_save_LIBS | |
10570 | fi | |
68f2de6d AK |
10571 | { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
10572 | echo "${ECHO_T}$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
10573 | ac_res=$ac_cv_search_getmntent |
10574 | if test "$ac_res" != no; then | |
10575 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
10576 | ac_cv_func_getmntent=yes | |
10577 | ||
10578 | cat >>confdefs.h <<\_ACEOF | |
68f2de6d | 10579 | #define HAVE_GETMNTENT |
ad6254c5 | 10580 | _ACEOF |
795ca3e5 | 10581 | |
25fbec5b AK |
10582 | else |
10583 | ac_cv_func_getmntent=no | |
795ca3e5 | 10584 | fi |
795ca3e5 AK |
10585 | |
10586 | ||
ad6254c5 AK |
10587 | # AC_FUNC_REALLOC |
10588 | ||
10589 | ||
10590 | for ac_header in sys/select.h sys/socket.h | |
10591 | do | |
68f2de6d | 10592 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10593 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
10594 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10595 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10596 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10598 | fi |
68f2de6d AK |
10599 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10600 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10601 | echo "${ECHO_T}$ac_res" >&6; } | |
795ca3e5 | 10602 | else |
ad6254c5 | 10603 | # Is the header compilable? |
68f2de6d AK |
10604 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10605 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10606 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10607 | /* confdefs.h. */ |
10608 | _ACEOF | |
10609 | cat confdefs.h >>conftest.$ac_ext | |
10610 | cat >>conftest.$ac_ext <<_ACEOF | |
10611 | /* end confdefs.h. */ | |
10612 | $ac_includes_default | |
10613 | #include <$ac_header> | |
10614 | _ACEOF | |
10615 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10616 | if { (ac_try="$ac_compile" |
10617 | case "(($ac_try" in | |
10618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10619 | *) ac_try_echo=$ac_try;; | |
10620 | esac | |
68f2de6d | 10621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10622 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10623 | ac_status=$? |
8a2fc586 AK |
10624 | grep -v '^ *+' conftest.er1 >conftest.err |
10625 | rm -f conftest.er1 | |
10626 | cat conftest.err >&5 | |
68f2de6d | 10627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10628 | (exit $ac_status); } && { |
10629 | test -z "$ac_c_werror_flag" || | |
10630 | test ! -s conftest.err | |
10631 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 10632 | ac_header_compiler=yes |
80992638 | 10633 | else |
68f2de6d | 10634 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10635 | sed 's/^/| /' conftest.$ac_ext >&5 |
10636 | ||
7a197a62 | 10637 | ac_header_compiler=no |
ad6254c5 | 10638 | fi |
7a197a62 AK |
10639 | |
10640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
10641 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10642 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10643 | |
10644 | # Is the header present? | |
68f2de6d AK |
10645 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10646 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10647 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10648 | /* confdefs.h. */ |
10649 | _ACEOF | |
10650 | cat confdefs.h >>conftest.$ac_ext | |
10651 | cat >>conftest.$ac_ext <<_ACEOF | |
10652 | /* end confdefs.h. */ | |
10653 | #include <$ac_header> | |
10654 | _ACEOF | |
7a197a62 AK |
10655 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10656 | case "(($ac_try" in | |
10657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10658 | *) ac_try_echo=$ac_try;; | |
10659 | esac | |
68f2de6d | 10660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10661 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10662 | ac_status=$? |
10663 | grep -v '^ *+' conftest.er1 >conftest.err | |
10664 | rm -f conftest.er1 | |
10665 | cat conftest.err >&5 | |
68f2de6d | 10666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10667 | (exit $ac_status); } >/dev/null && { |
10668 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10669 | test ! -s conftest.err | |
10670 | }; then | |
ad6254c5 AK |
10671 | ac_header_preproc=yes |
10672 | else | |
68f2de6d | 10673 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10674 | sed 's/^/| /' conftest.$ac_ext >&5 |
10675 | ||
10676 | ac_header_preproc=no | |
10677 | fi | |
7a197a62 | 10678 | |
ad6254c5 | 10679 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
10680 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10681 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10682 | |
10683 | # So? What about this header? | |
8a2fc586 AK |
10684 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10685 | yes:no: ) | |
68f2de6d AK |
10686 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10687 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10688 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10689 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10690 | ac_header_preproc=yes |
ad6254c5 | 10691 | ;; |
8a2fc586 | 10692 | no:yes:* ) |
68f2de6d AK |
10693 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10694 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10695 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10696 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10697 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10698 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10699 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10700 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10701 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10702 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10703 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10704 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10705 | |
ad6254c5 AK |
10706 | ;; |
10707 | esac | |
68f2de6d AK |
10708 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10709 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10710 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10712 | else |
8a2fc586 | 10713 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 10714 | fi |
68f2de6d AK |
10715 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10716 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10717 | echo "${ECHO_T}$ac_res" >&6; } | |
8106cdd5 | 10718 | |
795ca3e5 | 10719 | fi |
68f2de6d | 10720 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10721 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 10722 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10723 | _ACEOF |
10724 | ||
795ca3e5 AK |
10725 | fi |
10726 | ||
ad6254c5 AK |
10727 | done |
10728 | ||
68f2de6d AK |
10729 | { echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
10730 | echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; } | |
ad6254c5 | 10731 | if test "${ac_cv_func_select_args+set}" = set; then |
68f2de6d | 10732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
26e7f2e0 | 10733 | else |
ad6254c5 | 10734 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 10735 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
10736 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
10737 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10738 | /* confdefs.h. */ |
10739 | _ACEOF | |
10740 | cat confdefs.h >>conftest.$ac_ext | |
10741 | cat >>conftest.$ac_ext <<_ACEOF | |
10742 | /* end confdefs.h. */ | |
10743 | $ac_includes_default | |
25fbec5b | 10744 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
10745 | # include <sys/select.h> |
10746 | #endif | |
25fbec5b | 10747 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
10748 | # include <sys/socket.h> |
10749 | #endif | |
10750 | ||
10751 | int | |
10752 | main () | |
10753 | { | |
10754 | extern int select ($ac_arg1, | |
8a2fc586 AK |
10755 | $ac_arg234, $ac_arg234, $ac_arg234, |
10756 | $ac_arg5); | |
ad6254c5 AK |
10757 | ; |
10758 | return 0; | |
10759 | } | |
10760 | _ACEOF | |
10761 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10762 | if { (ac_try="$ac_compile" |
10763 | case "(($ac_try" in | |
10764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10765 | *) ac_try_echo=$ac_try;; | |
10766 | esac | |
68f2de6d | 10767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10768 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10769 | ac_status=$? |
8a2fc586 AK |
10770 | grep -v '^ *+' conftest.er1 >conftest.err |
10771 | rm -f conftest.er1 | |
10772 | cat conftest.err >&5 | |
68f2de6d | 10773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10774 | (exit $ac_status); } && { |
10775 | test -z "$ac_c_werror_flag" || | |
10776 | test ! -s conftest.err | |
10777 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10778 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
10779 | else | |
68f2de6d | 10780 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10781 | sed 's/^/| /' conftest.$ac_ext >&5 |
10782 | ||
7a197a62 | 10783 | |
ad6254c5 | 10784 | fi |
7a197a62 AK |
10785 | |
10786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
10787 | done |
10788 | done | |
10789 | done | |
10790 | # Provide a safe default value. | |
10791 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
10792 | ||
26e7f2e0 | 10793 | fi |
68f2de6d AK |
10794 | { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
10795 | echo "${ECHO_T}$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
10796 | ac_save_IFS=$IFS; IFS=',' |
10797 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
10798 | IFS=$ac_save_IFS | |
10799 | shift | |
10800 | ||
10801 | cat >>confdefs.h <<_ACEOF | |
10802 | #define SELECT_TYPE_ARG1 $1 | |
10803 | _ACEOF | |
10804 | ||
10805 | ||
10806 | cat >>confdefs.h <<_ACEOF | |
10807 | #define SELECT_TYPE_ARG234 ($2) | |
10808 | _ACEOF | |
10809 | ||
10810 | ||
10811 | cat >>confdefs.h <<_ACEOF | |
10812 | #define SELECT_TYPE_ARG5 ($3) | |
10813 | _ACEOF | |
10814 | ||
80992638 | 10815 | rm -f conftest* |
80992638 | 10816 | |
8106cdd5 | 10817 | fi |
ad6254c5 | 10818 | |
ad6254c5 AK |
10819 | if test x$CLUSTER != xnone; then |
10820 | ||
10821 | ||
10822 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 10823 | do |
68f2de6d | 10824 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 10825 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
10826 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10827 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10828 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10830 | fi |
68f2de6d AK |
10831 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10832 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10833 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10834 | else |
10835 | # Is the header compilable? | |
68f2de6d AK |
10836 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10837 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 10838 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10839 | /* confdefs.h. */ |
10840 | _ACEOF | |
10841 | cat confdefs.h >>conftest.$ac_ext | |
10842 | cat >>conftest.$ac_ext <<_ACEOF | |
10843 | /* end confdefs.h. */ | |
10844 | $ac_includes_default | |
10845 | #include <$ac_header> | |
10846 | _ACEOF | |
10847 | rm -f conftest.$ac_objext | |
7a197a62 AK |
10848 | if { (ac_try="$ac_compile" |
10849 | case "(($ac_try" in | |
10850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10851 | *) ac_try_echo=$ac_try;; | |
10852 | esac | |
68f2de6d | 10853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10854 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 10855 | ac_status=$? |
8a2fc586 AK |
10856 | grep -v '^ *+' conftest.er1 >conftest.err |
10857 | rm -f conftest.er1 | |
10858 | cat conftest.err >&5 | |
68f2de6d | 10859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10860 | (exit $ac_status); } && { |
10861 | test -z "$ac_c_werror_flag" || | |
10862 | test ! -s conftest.err | |
10863 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
10864 | ac_header_compiler=yes |
10865 | else | |
68f2de6d | 10866 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10867 | sed 's/^/| /' conftest.$ac_ext >&5 |
10868 | ||
7a197a62 | 10869 | ac_header_compiler=no |
ad6254c5 | 10870 | fi |
7a197a62 AK |
10871 | |
10872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
10873 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10874 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
10875 | |
10876 | # Is the header present? | |
68f2de6d AK |
10877 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10878 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 10879 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10880 | /* confdefs.h. */ |
10881 | _ACEOF | |
10882 | cat confdefs.h >>conftest.$ac_ext | |
10883 | cat >>conftest.$ac_ext <<_ACEOF | |
10884 | /* end confdefs.h. */ | |
10885 | #include <$ac_header> | |
10886 | _ACEOF | |
7a197a62 AK |
10887 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10888 | case "(($ac_try" in | |
10889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10890 | *) ac_try_echo=$ac_try;; | |
10891 | esac | |
68f2de6d | 10892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 10893 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
10894 | ac_status=$? |
10895 | grep -v '^ *+' conftest.er1 >conftest.err | |
10896 | rm -f conftest.er1 | |
10897 | cat conftest.err >&5 | |
68f2de6d | 10898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10899 | (exit $ac_status); } >/dev/null && { |
10900 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10901 | test ! -s conftest.err | |
10902 | }; then | |
ad6254c5 AK |
10903 | ac_header_preproc=yes |
10904 | else | |
68f2de6d | 10905 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10906 | sed 's/^/| /' conftest.$ac_ext >&5 |
10907 | ||
10908 | ac_header_preproc=no | |
10909 | fi | |
7a197a62 | 10910 | |
ad6254c5 | 10911 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
10912 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10913 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10914 | |
10915 | # So? What about this header? | |
8a2fc586 AK |
10916 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10917 | yes:no: ) | |
68f2de6d AK |
10918 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10919 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10920 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10921 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10922 | ac_header_preproc=yes |
ad6254c5 | 10923 | ;; |
8a2fc586 | 10924 | no:yes:* ) |
68f2de6d AK |
10925 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10926 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10927 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10928 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10929 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10930 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10931 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10932 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10933 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10934 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10935 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10936 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10937 | |
ad6254c5 AK |
10938 | ;; |
10939 | esac | |
68f2de6d AK |
10940 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10941 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 10942 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 10944 | else |
8a2fc586 | 10945 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 10946 | fi |
68f2de6d AK |
10947 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10948 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10949 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
10950 | |
10951 | fi | |
68f2de6d | 10952 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 10953 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 10954 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10955 | _ACEOF |
10956 | ||
80992638 | 10957 | else |
68f2de6d AK |
10958 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
10959 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 10960 | { (exit 1); exit 1; }; } |
b896caa1 | 10961 | fi |
ad6254c5 | 10962 | |
b896caa1 AK |
10963 | done |
10964 | ||
10965 | ||
ad6254c5 AK |
10966 | for ac_func in socket |
10967 | do | |
68f2de6d AK |
10968 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10969 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10970 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7a197a62 | 10971 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 10972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
795ca3e5 | 10973 | else |
ad6254c5 | 10974 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
10975 | /* confdefs.h. */ |
10976 | _ACEOF | |
10977 | cat confdefs.h >>conftest.$ac_ext | |
10978 | cat >>conftest.$ac_ext <<_ACEOF | |
10979 | /* end confdefs.h. */ | |
8a2fc586 AK |
10980 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10981 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10982 | #define $ac_func innocuous_$ac_func | |
10983 | ||
ad6254c5 AK |
10984 | /* System header to define __stub macros and hopefully few prototypes, |
10985 | which can conflict with char $ac_func (); below. | |
10986 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10987 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10988 | |
ad6254c5 AK |
10989 | #ifdef __STDC__ |
10990 | # include <limits.h> | |
10991 | #else | |
10992 | # include <assert.h> | |
10993 | #endif | |
8a2fc586 AK |
10994 | |
10995 | #undef $ac_func | |
10996 | ||
7a197a62 AK |
10997 | /* Override any GCC internal prototype to avoid an error. |
10998 | Use char because int might match the return type of a GCC | |
10999 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
11000 | #ifdef __cplusplus |
11001 | extern "C" | |
ad6254c5 | 11002 | #endif |
ad6254c5 AK |
11003 | char $ac_func (); |
11004 | /* The GNU C library defines this for functions which it implements | |
11005 | to always fail with ENOSYS. Some functions are actually named | |
11006 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 11007 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 11008 | choke me |
ad6254c5 AK |
11009 | #endif |
11010 | ||
11011 | int | |
11012 | main () | |
11013 | { | |
7a197a62 | 11014 | return $ac_func (); |
ad6254c5 AK |
11015 | ; |
11016 | return 0; | |
11017 | } | |
11018 | _ACEOF | |
11019 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
11020 | if { (ac_try="$ac_link" |
11021 | case "(($ac_try" in | |
11022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11023 | *) ac_try_echo=$ac_try;; | |
11024 | esac | |
68f2de6d | 11025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11026 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 11027 | ac_status=$? |
8a2fc586 AK |
11028 | grep -v '^ *+' conftest.er1 >conftest.err |
11029 | rm -f conftest.er1 | |
11030 | cat conftest.err >&5 | |
68f2de6d | 11031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11032 | (exit $ac_status); } && { |
11033 | test -z "$ac_c_werror_flag" || | |
11034 | test ! -s conftest.err | |
68f2de6d AK |
11035 | } && test -s conftest$ac_exeext && |
11036 | $as_test_x conftest$ac_exeext; then | |
ad6254c5 AK |
11037 | eval "$as_ac_var=yes" |
11038 | else | |
68f2de6d | 11039 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11040 | sed 's/^/| /' conftest.$ac_ext >&5 |
11041 | ||
7a197a62 | 11042 | eval "$as_ac_var=no" |
ad6254c5 | 11043 | fi |
7a197a62 | 11044 | |
25fbec5b | 11045 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 11046 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 11047 | fi |
68f2de6d AK |
11048 | ac_res=`eval echo '${'$as_ac_var'}'` |
11049 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11050 | echo "${ECHO_T}$ac_res" >&6; } | |
11051 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
ad6254c5 | 11052 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 11053 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
11054 | _ACEOF |
11055 | ||
11056 | else | |
68f2de6d AK |
11057 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11058 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
11059 | { (exit 1); exit 1; }; } |
11060 | fi | |
11061 | done | |
11062 | ||
11063 | fi | |
11064 | ||
11065 | if test x$HAVE_LIBDL = xyes; then | |
11066 | ||
11067 | for ac_header in dlfcn.h | |
11068 | do | |
68f2de6d | 11069 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11070 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
11071 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11072 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11073 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11075 | fi |
68f2de6d AK |
11076 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11077 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11078 | echo "${ECHO_T}$ac_res" >&6; } | |
ad6254c5 AK |
11079 | else |
11080 | # Is the header compilable? | |
68f2de6d AK |
11081 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11082 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 11083 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11084 | /* confdefs.h. */ |
11085 | _ACEOF | |
11086 | cat confdefs.h >>conftest.$ac_ext | |
11087 | cat >>conftest.$ac_ext <<_ACEOF | |
11088 | /* end confdefs.h. */ | |
11089 | $ac_includes_default | |
11090 | #include <$ac_header> | |
11091 | _ACEOF | |
11092 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11093 | if { (ac_try="$ac_compile" |
11094 | case "(($ac_try" in | |
11095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11096 | *) ac_try_echo=$ac_try;; | |
11097 | esac | |
68f2de6d | 11098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11099 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11100 | ac_status=$? |
8a2fc586 AK |
11101 | grep -v '^ *+' conftest.er1 >conftest.err |
11102 | rm -f conftest.er1 | |
11103 | cat conftest.err >&5 | |
68f2de6d | 11104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11105 | (exit $ac_status); } && { |
11106 | test -z "$ac_c_werror_flag" || | |
11107 | test ! -s conftest.err | |
11108 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11109 | ac_header_compiler=yes |
11110 | else | |
68f2de6d | 11111 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11112 | sed 's/^/| /' conftest.$ac_ext >&5 |
11113 | ||
7a197a62 | 11114 | ac_header_compiler=no |
ad6254c5 | 11115 | fi |
7a197a62 AK |
11116 | |
11117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
11118 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11119 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11120 | |
11121 | # Is the header present? | |
68f2de6d AK |
11122 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11123 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 11124 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11125 | /* confdefs.h. */ |
11126 | _ACEOF | |
11127 | cat confdefs.h >>conftest.$ac_ext | |
11128 | cat >>conftest.$ac_ext <<_ACEOF | |
11129 | /* end confdefs.h. */ | |
11130 | #include <$ac_header> | |
11131 | _ACEOF | |
7a197a62 AK |
11132 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11133 | case "(($ac_try" in | |
11134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11135 | *) ac_try_echo=$ac_try;; | |
11136 | esac | |
68f2de6d | 11137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11138 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11139 | ac_status=$? |
11140 | grep -v '^ *+' conftest.er1 >conftest.err | |
11141 | rm -f conftest.er1 | |
11142 | cat conftest.err >&5 | |
68f2de6d | 11143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11144 | (exit $ac_status); } >/dev/null && { |
11145 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11146 | test ! -s conftest.err | |
11147 | }; then | |
ad6254c5 AK |
11148 | ac_header_preproc=yes |
11149 | else | |
68f2de6d | 11150 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11151 | sed 's/^/| /' conftest.$ac_ext >&5 |
11152 | ||
11153 | ac_header_preproc=no | |
11154 | fi | |
7a197a62 | 11155 | |
ad6254c5 | 11156 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
11157 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11158 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11159 | |
11160 | # So? What about this header? | |
8a2fc586 AK |
11161 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11162 | yes:no: ) | |
68f2de6d AK |
11163 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11164 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11165 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11166 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11167 | ac_header_preproc=yes |
ad6254c5 | 11168 | ;; |
8a2fc586 | 11169 | no:yes:* ) |
68f2de6d AK |
11170 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11171 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11172 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11173 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11174 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11175 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11176 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11177 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11178 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11179 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11180 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11181 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11182 | |
ad6254c5 AK |
11183 | ;; |
11184 | esac | |
68f2de6d AK |
11185 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11186 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11187 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11189 | else |
8a2fc586 | 11190 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 11191 | fi |
68f2de6d AK |
11192 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11193 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11194 | echo "${ECHO_T}$ac_res" >&6; } | |
80992638 | 11195 | |
8106cdd5 | 11196 | fi |
68f2de6d | 11197 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 11198 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 11199 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11200 | _ACEOF |
795ca3e5 AK |
11201 | |
11202 | else | |
68f2de6d AK |
11203 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11204 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11205 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
11206 | fi |
11207 | ||
ad6254c5 | 11208 | done |
80992638 | 11209 | |
ad6254c5 | 11210 | fi |
80992638 | 11211 | |
ad6254c5 | 11212 | if test x$INTL = xyes; then |
83912faa | 11213 | |
ad6254c5 AK |
11214 | for ac_header in libintl.h |
11215 | do | |
68f2de6d | 11216 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11217 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
11218 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11219 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11220 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11222 | fi |
68f2de6d AK |
11223 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11224 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11225 | echo "${ECHO_T}$ac_res" >&6; } | |
83912faa | 11226 | else |
ad6254c5 | 11227 | # Is the header compilable? |
68f2de6d AK |
11228 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11229 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 11230 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11231 | /* confdefs.h. */ |
11232 | _ACEOF | |
11233 | cat confdefs.h >>conftest.$ac_ext | |
11234 | cat >>conftest.$ac_ext <<_ACEOF | |
11235 | /* end confdefs.h. */ | |
11236 | $ac_includes_default | |
11237 | #include <$ac_header> | |
11238 | _ACEOF | |
11239 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11240 | if { (ac_try="$ac_compile" |
11241 | case "(($ac_try" in | |
11242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11243 | *) ac_try_echo=$ac_try;; | |
11244 | esac | |
68f2de6d | 11245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11246 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11247 | ac_status=$? |
8a2fc586 AK |
11248 | grep -v '^ *+' conftest.er1 >conftest.err |
11249 | rm -f conftest.er1 | |
11250 | cat conftest.err >&5 | |
68f2de6d | 11251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11252 | (exit $ac_status); } && { |
11253 | test -z "$ac_c_werror_flag" || | |
11254 | test ! -s conftest.err | |
11255 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11256 | ac_header_compiler=yes |
11257 | else | |
68f2de6d | 11258 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11259 | sed 's/^/| /' conftest.$ac_ext >&5 |
11260 | ||
7a197a62 | 11261 | ac_header_compiler=no |
ad6254c5 | 11262 | fi |
7a197a62 AK |
11263 | |
11264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
11265 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11266 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11267 | |
11268 | # Is the header present? | |
68f2de6d AK |
11269 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11270 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 11271 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11272 | /* confdefs.h. */ |
11273 | _ACEOF | |
11274 | cat confdefs.h >>conftest.$ac_ext | |
11275 | cat >>conftest.$ac_ext <<_ACEOF | |
11276 | /* end confdefs.h. */ | |
11277 | #include <$ac_header> | |
11278 | _ACEOF | |
7a197a62 AK |
11279 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11280 | case "(($ac_try" in | |
11281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11282 | *) ac_try_echo=$ac_try;; | |
11283 | esac | |
68f2de6d | 11284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11285 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11286 | ac_status=$? |
11287 | grep -v '^ *+' conftest.er1 >conftest.err | |
11288 | rm -f conftest.er1 | |
11289 | cat conftest.err >&5 | |
68f2de6d | 11290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11291 | (exit $ac_status); } >/dev/null && { |
11292 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11293 | test ! -s conftest.err | |
11294 | }; then | |
ad6254c5 AK |
11295 | ac_header_preproc=yes |
11296 | else | |
68f2de6d | 11297 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11298 | sed 's/^/| /' conftest.$ac_ext >&5 |
11299 | ||
11300 | ac_header_preproc=no | |
11301 | fi | |
7a197a62 | 11302 | |
ad6254c5 | 11303 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
11304 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11305 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11306 | |
11307 | # So? What about this header? | |
8a2fc586 AK |
11308 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11309 | yes:no: ) | |
68f2de6d AK |
11310 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11311 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11312 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11313 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11314 | ac_header_preproc=yes |
ad6254c5 | 11315 | ;; |
8a2fc586 | 11316 | no:yes:* ) |
68f2de6d AK |
11317 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11318 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11319 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11320 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11321 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11322 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11323 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11324 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11325 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11326 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11327 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11328 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11329 | |
ad6254c5 AK |
11330 | ;; |
11331 | esac | |
68f2de6d AK |
11332 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11333 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11334 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
80992638 | 11336 | else |
8a2fc586 | 11337 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 11338 | fi |
68f2de6d AK |
11339 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11340 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11341 | echo "${ECHO_T}$ac_res" >&6; } | |
83912faa | 11342 | |
69792976 | 11343 | fi |
68f2de6d | 11344 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 11345 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 11346 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11347 | _ACEOF |
69792976 | 11348 | |
69792976 | 11349 | else |
68f2de6d AK |
11350 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11351 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11352 | { (exit 1); exit 1; }; } |
80992638 AK |
11353 | fi |
11354 | ||
ad6254c5 | 11355 | done |
69792976 | 11356 | |
ad6254c5 AK |
11357 | fi |
11358 | ||
ad6254c5 AK |
11359 | |
11360 | for ac_header in libdevmapper.h | |
11361 | do | |
68f2de6d | 11362 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11363 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
11364 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11365 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11366 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11368 | fi |
68f2de6d AK |
11369 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11370 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11371 | echo "${ECHO_T}$ac_res" >&6; } | |
69792976 | 11372 | else |
ad6254c5 | 11373 | # Is the header compilable? |
68f2de6d AK |
11374 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11375 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 11376 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11377 | /* confdefs.h. */ |
11378 | _ACEOF | |
11379 | cat confdefs.h >>conftest.$ac_ext | |
11380 | cat >>conftest.$ac_ext <<_ACEOF | |
11381 | /* end confdefs.h. */ | |
11382 | $ac_includes_default | |
11383 | #include <$ac_header> | |
11384 | _ACEOF | |
11385 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11386 | if { (ac_try="$ac_compile" |
11387 | case "(($ac_try" in | |
11388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11389 | *) ac_try_echo=$ac_try;; | |
11390 | esac | |
68f2de6d | 11391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11392 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11393 | ac_status=$? |
8a2fc586 AK |
11394 | grep -v '^ *+' conftest.er1 >conftest.err |
11395 | rm -f conftest.er1 | |
11396 | cat conftest.err >&5 | |
68f2de6d | 11397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11398 | (exit $ac_status); } && { |
11399 | test -z "$ac_c_werror_flag" || | |
11400 | test ! -s conftest.err | |
11401 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11402 | ac_header_compiler=yes |
11403 | else | |
68f2de6d | 11404 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11405 | sed 's/^/| /' conftest.$ac_ext >&5 |
11406 | ||
7a197a62 | 11407 | ac_header_compiler=no |
ad6254c5 | 11408 | fi |
7a197a62 AK |
11409 | |
11410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
11411 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11412 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11413 | |
11414 | # Is the header present? | |
68f2de6d AK |
11415 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11416 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 11417 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11418 | /* confdefs.h. */ |
11419 | _ACEOF | |
11420 | cat confdefs.h >>conftest.$ac_ext | |
11421 | cat >>conftest.$ac_ext <<_ACEOF | |
11422 | /* end confdefs.h. */ | |
11423 | #include <$ac_header> | |
11424 | _ACEOF | |
7a197a62 AK |
11425 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11426 | case "(($ac_try" in | |
11427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11428 | *) ac_try_echo=$ac_try;; | |
11429 | esac | |
68f2de6d | 11430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11431 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11432 | ac_status=$? |
11433 | grep -v '^ *+' conftest.er1 >conftest.err | |
11434 | rm -f conftest.er1 | |
11435 | cat conftest.err >&5 | |
68f2de6d | 11436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11437 | (exit $ac_status); } >/dev/null && { |
11438 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11439 | test ! -s conftest.err | |
11440 | }; then | |
ad6254c5 AK |
11441 | ac_header_preproc=yes |
11442 | else | |
68f2de6d | 11443 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11444 | sed 's/^/| /' conftest.$ac_ext >&5 |
11445 | ||
11446 | ac_header_preproc=no | |
11447 | fi | |
7a197a62 | 11448 | |
ad6254c5 | 11449 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
11450 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11451 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11452 | |
11453 | # So? What about this header? | |
8a2fc586 AK |
11454 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11455 | yes:no: ) | |
68f2de6d AK |
11456 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11457 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11458 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11459 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11460 | ac_header_preproc=yes |
ad6254c5 | 11461 | ;; |
8a2fc586 | 11462 | no:yes:* ) |
68f2de6d AK |
11463 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11464 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11465 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11466 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11467 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11468 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11469 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11470 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11471 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11472 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11473 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11474 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11475 | |
ad6254c5 AK |
11476 | ;; |
11477 | esac | |
68f2de6d AK |
11478 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11479 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11480 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
69792976 | 11482 | else |
8a2fc586 | 11483 | eval "$as_ac_Header=\$ac_header_preproc" |
69792976 | 11484 | fi |
68f2de6d AK |
11485 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11486 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11487 | echo "${ECHO_T}$ac_res" >&6; } | |
69792976 | 11488 | |
ad6254c5 | 11489 | fi |
68f2de6d | 11490 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 11491 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 11492 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11493 | _ACEOF |
69792976 | 11494 | |
69792976 | 11495 | else |
68f2de6d AK |
11496 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11497 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11498 | { (exit 1); exit 1; }; } |
83912faa AK |
11499 | fi |
11500 | ||
ad6254c5 AK |
11501 | done |
11502 | ||
4a7f3eb2 | 11503 | |
ad6254c5 AK |
11504 | if test x$HAVE_SELINUX = xyes; then |
11505 | ||
11506 | for ac_header in selinux/selinux.h | |
11507 | do | |
68f2de6d | 11508 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 11509 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d AK |
11510 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11511 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11512 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11514 | fi |
68f2de6d AK |
11515 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11516 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11517 | echo "${ECHO_T}$ac_res" >&6; } | |
4a7f3eb2 | 11518 | else |
ad6254c5 | 11519 | # Is the header compilable? |
68f2de6d AK |
11520 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11521 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ad6254c5 | 11522 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11523 | /* confdefs.h. */ |
11524 | _ACEOF | |
11525 | cat confdefs.h >>conftest.$ac_ext | |
11526 | cat >>conftest.$ac_ext <<_ACEOF | |
11527 | /* end confdefs.h. */ | |
11528 | $ac_includes_default | |
11529 | #include <$ac_header> | |
11530 | _ACEOF | |
11531 | rm -f conftest.$ac_objext | |
7a197a62 AK |
11532 | if { (ac_try="$ac_compile" |
11533 | case "(($ac_try" in | |
11534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11535 | *) ac_try_echo=$ac_try;; | |
11536 | esac | |
68f2de6d | 11537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11538 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 11539 | ac_status=$? |
8a2fc586 AK |
11540 | grep -v '^ *+' conftest.er1 >conftest.err |
11541 | rm -f conftest.er1 | |
11542 | cat conftest.err >&5 | |
68f2de6d | 11543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11544 | (exit $ac_status); } && { |
11545 | test -z "$ac_c_werror_flag" || | |
11546 | test ! -s conftest.err | |
11547 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
11548 | ac_header_compiler=yes |
11549 | else | |
68f2de6d | 11550 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11551 | sed 's/^/| /' conftest.$ac_ext >&5 |
11552 | ||
7a197a62 | 11553 | ac_header_compiler=no |
ad6254c5 | 11554 | fi |
7a197a62 AK |
11555 | |
11556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
68f2de6d AK |
11557 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11558 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ad6254c5 AK |
11559 | |
11560 | # Is the header present? | |
68f2de6d AK |
11561 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11562 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ad6254c5 | 11563 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
11564 | /* confdefs.h. */ |
11565 | _ACEOF | |
11566 | cat confdefs.h >>conftest.$ac_ext | |
11567 | cat >>conftest.$ac_ext <<_ACEOF | |
11568 | /* end confdefs.h. */ | |
11569 | #include <$ac_header> | |
11570 | _ACEOF | |
7a197a62 AK |
11571 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11572 | case "(($ac_try" in | |
11573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11574 | *) ac_try_echo=$ac_try;; | |
11575 | esac | |
68f2de6d | 11576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7a197a62 | 11577 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
11578 | ac_status=$? |
11579 | grep -v '^ *+' conftest.er1 >conftest.err | |
11580 | rm -f conftest.er1 | |
11581 | cat conftest.err >&5 | |
68f2de6d | 11582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
11583 | (exit $ac_status); } >/dev/null && { |
11584 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11585 | test ! -s conftest.err | |
11586 | }; then | |
ad6254c5 AK |
11587 | ac_header_preproc=yes |
11588 | else | |
68f2de6d | 11589 | echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
11590 | sed 's/^/| /' conftest.$ac_ext >&5 |
11591 | ||
11592 | ac_header_preproc=no | |
11593 | fi | |
7a197a62 | 11594 | |
ad6254c5 | 11595 | rm -f conftest.err conftest.$ac_ext |
68f2de6d AK |
11596 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11597 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ad6254c5 AK |
11598 | |
11599 | # So? What about this header? | |
8a2fc586 AK |
11600 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11601 | yes:no: ) | |
68f2de6d AK |
11602 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11603 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11604 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11605 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 11606 | ac_header_preproc=yes |
ad6254c5 | 11607 | ;; |
8a2fc586 | 11608 | no:yes:* ) |
68f2de6d AK |
11609 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11610 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11611 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11612 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11613 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11614 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11615 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11616 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11617 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11618 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11619 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11620 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 11621 | |
ad6254c5 AK |
11622 | ;; |
11623 | esac | |
68f2de6d AK |
11624 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11625 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7a197a62 | 11626 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
68f2de6d | 11627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ad6254c5 | 11628 | else |
8a2fc586 | 11629 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 11630 | fi |
68f2de6d AK |
11631 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11632 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11633 | echo "${ECHO_T}$ac_res" >&6; } | |
4a7f3eb2 | 11634 | |
ad6254c5 | 11635 | fi |
68f2de6d | 11636 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
ad6254c5 | 11637 | cat >>confdefs.h <<_ACEOF |
68f2de6d | 11638 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 11639 | _ACEOF |
0a62c911 | 11640 | |
0a62c911 | 11641 | else |
68f2de6d AK |
11642 | { { echo "$as_me:$LINENO: error: bailing out" >&5 |
11643 | echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 11644 | { (exit 1); exit 1; }; } |
80992638 AK |
11645 | fi |
11646 | ||
ad6254c5 | 11647 | done |
0a62c911 | 11648 | |
ad6254c5 | 11649 | fi |
0a62c911 | 11650 | |
a653923f AK |
11651 | ################################################################################ |
11652 | # Extract the first word of "modprobe", so it can be a program name with args. | |
11653 | set dummy modprobe; ac_word=$2 | |
68f2de6d AK |
11654 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11655 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
72b2cb61 | 11656 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
68f2de6d | 11657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
72b2cb61 AK |
11658 | else |
11659 | case $MODPROBE_CMD in | |
11660 | [\\/]* | ?:[\\/]*) | |
11661 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
11662 | ;; | |
11663 | *) | |
11664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11665 | for as_dir in $PATH | |
11666 | do | |
11667 | IFS=$as_save_IFS | |
11668 | test -z "$as_dir" && as_dir=. | |
11669 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 11670 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 11671 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
68f2de6d | 11672 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
11673 | break 2 |
11674 | fi | |
11675 | done | |
11676 | done | |
7a197a62 | 11677 | IFS=$as_save_IFS |
72b2cb61 AK |
11678 | |
11679 | ;; | |
11680 | esac | |
11681 | fi | |
11682 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 11683 | if test -n "$MODPROBE_CMD"; then |
68f2de6d AK |
11684 | { echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
11685 | echo "${ECHO_T}$MODPROBE_CMD" >&6; } | |
72b2cb61 | 11686 | else |
68f2de6d AK |
11687 | { echo "$as_me:$LINENO: result: no" >&5 |
11688 | echo "${ECHO_T}no" >&6; } | |
72b2cb61 AK |
11689 | fi |
11690 | ||
a653923f | 11691 | |
7a197a62 | 11692 | |
a653923f | 11693 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
11694 | |
11695 | cat >>confdefs.h <<_ACEOF | |
11696 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
11697 | _ACEOF | |
11698 | ||
a653923f AK |
11699 | fi |
11700 | ||
80992638 | 11701 | ################################################################################ |
93bd259b AK |
11702 | |
11703 | ||
11704 | if test "$BUILD_DMEVENTD" = yes; then | |
11705 | ||
11706 | # Check whether --with-dmeventd-pidfile was given. | |
11707 | if test "${with_dmeventd_pidfile+set}" = set; then | |
11708 | withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF | |
11709 | #define DMEVENTD_PIDFILE "$withval" | |
11710 | _ACEOF | |
11711 | ||
11712 | else | |
11713 | cat >>confdefs.h <<_ACEOF | |
11714 | #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid" | |
11715 | _ACEOF | |
11716 | ||
11717 | fi | |
11718 | ||
11719 | fi | |
11720 | ||
11721 | ||
11722 | ||
11723 | if test "$BUILD_DMEVENTD" = yes; then | |
11724 | dmeventd_prefix="$exec_prefix" | |
11725 | if test "x$dmeventd_prefix" = "xNONE"; then | |
11726 | dmeventd_prefix="$prefix" | |
11727 | fi | |
11728 | if test "x$dmeventd_prefix" = "xNONE"; then | |
11729 | dmeventd_prefix="" | |
11730 | fi | |
11731 | ||
11732 | # Check whether --with-dmeventd-path was given. | |
11733 | if test "${with_dmeventd_path+set}" = set; then | |
11734 | withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF | |
11735 | #define DMEVENTD_PATH "$withval" | |
11736 | _ACEOF | |
11737 | ||
11738 | else | |
11739 | cat >>confdefs.h <<_ACEOF | |
11740 | #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd" | |
11741 | _ACEOF | |
11742 | ||
11743 | fi | |
11744 | ||
11745 | fi | |
11746 | ||
11747 | ################################################################################ | |
11748 | { echo "$as_me:$LINENO: checking for kernel interface choice" >&5 | |
11749 | echo $ECHO_N "checking for kernel interface choice... $ECHO_C" >&6; } | |
11750 | ||
11751 | # Check whether --with-interface was given. | |
11752 | if test "${with_interface+set}" = set; then | |
11753 | withval=$with_interface; interface="$withval" | |
11754 | else | |
11755 | interface=ioctl | |
11756 | fi | |
11757 | ||
11758 | if [ "x$interface" != xioctl ]; | |
11759 | then | |
11760 | { { echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5 | |
11761 | echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;} | |
11762 | { (exit 1); exit 1; }; } | |
11763 | fi | |
11764 | { echo "$as_me:$LINENO: result: $interface" >&5 | |
11765 | echo "${ECHO_T}$interface" >&6; } | |
11766 | ||
11767 | ################################################################################ | |
11768 | DM_LIB_VERSION="\"`cat VERSION_LIB 2>/dev/null || echo Unknown`\"" | |
d0191583 | 11769 | LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 11770 | |
80992638 | 11771 | ################################################################################ |
fae0c576 | 11772 | |
83912faa | 11773 | |
795ca3e5 AK |
11774 | |
11775 | ||
11776 | ||
11777 | ||
11778 | ||
11779 | ||
5a52dca9 | 11780 | |
8ef2b021 | 11781 | |
199e490e | 11782 | |
69792976 AK |
11783 | |
11784 | ||
11785 | ||
d0191583 | 11786 | |
69792976 | 11787 | |
8106cdd5 AK |
11788 | |
11789 | ||
11790 | ||
11791 | ||
11792 | ||
d68a82ec | 11793 | |
036f273a | 11794 | |
7d1552c9 | 11795 | |
8106cdd5 | 11796 | |
0a62c911 | 11797 | |
8106cdd5 | 11798 | |
4a7f3eb2 | 11799 | |
4922197a AK |
11800 | |
11801 | ||
d8ac0fbc | 11802 | |
1a9ea74d | 11803 | |
8a2fc586 AK |
11804 | |
11805 | ||
d0191583 | 11806 | |
93bd259b AK |
11807 | |
11808 | ||
11809 | ||
11810 | ||
11811 | ||
d0191583 JM |
11812 | |
11813 | ||
11814 | ||
11815 | ||
11816 | ||
8a2fc586 | 11817 | |
8ce0cbda | 11818 | |
8b1a3214 | 11819 | |
33f732c5 | 11820 | |
66e941e8 | 11821 | |
d3c8211f | 11822 | |
68f2de6d AK |
11823 | |
11824 | ||
80992638 | 11825 | ################################################################################ |
04f06bc9 | 11826 | ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc man/Makefile po/Makefile scripts/Makefile test/Makefile tools/Makefile tools/version.h" |
7a197a62 | 11827 | |
ad6254c5 | 11828 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
11829 | # This file is a shell script that caches the results of configure |
11830 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
11831 | # scripts and configure runs, see configure's option --config-cache. |
11832 | # It is not useful on other systems. If it contains results you don't | |
11833 | # want to keep, you may remove or edit it. | |
795ca3e5 | 11834 | # |
ad6254c5 AK |
11835 | # config.status only pays attention to the cache file if you give it |
11836 | # the --recheck option to rerun configure. | |
795ca3e5 | 11837 | # |
ad6254c5 AK |
11838 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
11839 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11840 | # following values. | |
11841 | ||
11842 | _ACEOF | |
11843 | ||
795ca3e5 AK |
11844 | # The following way of writing the cache mishandles newlines in values, |
11845 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 11846 | # So, we kill variables containing newlines. |
795ca3e5 AK |
11847 | # Ultrix sh set writes to stderr and can't be redirected directly, |
11848 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
11849 | ( |
11850 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
11851 | eval ac_val=\$$ac_var | |
11852 | case $ac_val in #( | |
11853 | *${as_nl}*) | |
11854 | case $ac_var in #( | |
68f2de6d AK |
11855 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
11856 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
7a197a62 AK |
11857 | esac |
11858 | case $ac_var in #( | |
11859 | _ | IFS | as_nl) ;; #( | |
11860 | *) $as_unset $ac_var ;; | |
11861 | esac ;; | |
11862 | esac | |
11863 | done | |
11864 | ||
ad6254c5 | 11865 | (set) 2>&1 | |
7a197a62 AK |
11866 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
11867 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
11868 | # `set' does not quote correctly, so add quotes (double-quote |
11869 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11870 | sed -n \ | |
8a2fc586 AK |
11871 | "s/'/'\\\\''/g; |
11872 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 11873 | ;; #( |
ad6254c5 AK |
11874 | *) |
11875 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 11876 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 11877 | ;; |
7a197a62 AK |
11878 | esac | |
11879 | sort | |
11880 | ) | | |
ad6254c5 | 11881 | sed ' |
7a197a62 | 11882 | /^ac_cv_env_/b end |
ad6254c5 | 11883 | t clear |
7a197a62 | 11884 | :clear |
ad6254c5 AK |
11885 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
11886 | t end | |
7a197a62 AK |
11887 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
11888 | :end' >>confcache | |
11889 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
11890 | if test -w "$cache_file"; then | |
11891 | test "x$cache_file" != "x/dev/null" && | |
68f2de6d AK |
11892 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
11893 | echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 11894 | cat confcache >$cache_file |
795ca3e5 | 11895 | else |
68f2de6d AK |
11896 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
11897 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
11898 | fi |
11899 | fi | |
11900 | rm -f confcache | |
11901 | ||
795ca3e5 AK |
11902 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
11903 | # Let make expand exec_prefix. | |
11904 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11905 | ||
72b2cb61 | 11906 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
11907 | |
11908 | ac_libobjs= | |
11909 | ac_ltlibobjs= | |
11910 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11911 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 11912 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
68f2de6d | 11913 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
11914 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
11915 | # will be set to the directory where LIBOBJS objects are built. | |
11916 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
11917 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
11918 | done |
11919 | LIBOBJS=$ac_libobjs | |
80992638 | 11920 | |
ad6254c5 AK |
11921 | LTLIBOBJS=$ac_ltlibobjs |
11922 | ||
11923 | ||
11924 | ||
11925 | : ${CONFIG_STATUS=./config.status} | |
11926 | ac_clean_files_save=$ac_clean_files | |
11927 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
68f2de6d AK |
11928 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
11929 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
11930 | cat >$CONFIG_STATUS <<_ACEOF | |
ad6254c5 AK |
11931 | #! $SHELL |
11932 | # Generated by $as_me. | |
795ca3e5 | 11933 | # Run this file to recreate the current configuration. |
795ca3e5 | 11934 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
11935 | # configure, is in config.log if it exists. |
11936 | ||
11937 | debug=false | |
11938 | ac_cs_recheck=false | |
11939 | ac_cs_silent=false | |
11940 | SHELL=\${CONFIG_SHELL-$SHELL} | |
11941 | _ACEOF | |
11942 | ||
68f2de6d | 11943 | cat >>$CONFIG_STATUS <<\_ACEOF |
ad6254c5 AK |
11944 | ## --------------------- ## |
11945 | ## M4sh Initialization. ## | |
11946 | ## --------------------- ## | |
11947 | ||
25fbec5b AK |
11948 | # Be more Bourne compatible |
11949 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
11950 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
11951 | emulate sh | |
11952 | NULLCMD=: | |
68f2de6d | 11953 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
ad6254c5 AK |
11954 | # is contrary to our usage. Disable this feature. |
11955 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
11956 | setopt NO_GLOB_SUBST |
11957 | else | |
25fbec5b AK |
11958 | case `(set -o) 2>/dev/null` in |
11959 | *posix*) set -o posix ;; | |
11960 | esac | |
11961 | ||
7a197a62 | 11962 | fi |
25fbec5b AK |
11963 | |
11964 | ||
7a197a62 AK |
11965 | |
11966 | ||
11967 | # PATH needs CR | |
11968 | # Avoid depending upon Character Ranges. | |
11969 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
11970 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
11971 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
11972 | as_cr_digits='0123456789' | |
11973 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11974 | ||
b145d876 ZK |
11975 | # The user is always right. |
11976 | if test "${PATH_SEPARATOR+set}" != set; then | |
68f2de6d AK |
11977 | echo "#! /bin/sh" >conf$$.sh |
11978 | echo "exit 0" >>conf$$.sh | |
11979 | chmod +x conf$$.sh | |
11980 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11981 | PATH_SEPARATOR=';' | |
11982 | else | |
11983 | PATH_SEPARATOR=: | |
11984 | fi | |
11985 | rm -f conf$$.sh | |
ad6254c5 AK |
11986 | fi |
11987 | ||
11988 | # Support unset when possible. | |
8a2fc586 | 11989 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
11990 | as_unset=unset |
11991 | else | |
11992 | as_unset=false | |
11993 | fi | |
8106cdd5 | 11994 | |
ad6254c5 | 11995 | |
7a197a62 AK |
11996 | # IFS |
11997 | # We need space, tab and new line, in precisely that order. Quoting is | |
11998 | # there to prevent editors from complaining about space-tab. | |
11999 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
12000 | # splitting by setting IFS to empty value.) | |
68f2de6d AK |
12001 | as_nl=' |
12002 | ' | |
7a197a62 AK |
12003 | IFS=" "" $as_nl" |
12004 | ||
12005 | # Find who we are. Look in the path if we contain no directory separator. | |
12006 | case $0 in | |
12007 | *[\\/]* ) as_myself=$0 ;; | |
12008 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12009 | for as_dir in $PATH | |
12010 | do | |
12011 | IFS=$as_save_IFS | |
12012 | test -z "$as_dir" && as_dir=. | |
12013 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
12014 | done | |
12015 | IFS=$as_save_IFS | |
12016 | ||
12017 | ;; | |
12018 | esac | |
12019 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12020 | # in which case we are not to be found in the path. | |
12021 | if test "x$as_myself" = x; then | |
12022 | as_myself=$0 | |
12023 | fi | |
12024 | if test ! -f "$as_myself"; then | |
68f2de6d | 12025 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
12026 | { (exit 1); exit 1; } |
12027 | fi | |
12028 | ||
ad6254c5 | 12029 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
12030 | for as_var in ENV MAIL MAILPATH |
12031 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
12032 | done | |
ad6254c5 AK |
12033 | PS1='$ ' |
12034 | PS2='> ' | |
12035 | PS4='+ ' | |
12036 | ||
12037 | # NLS nuisances. | |
68f2de6d AK |
12038 | for as_var in \ |
12039 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
12040 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
12041 | LC_TELEPHONE LC_TIME | |
12042 | do | |
12043 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
12044 | eval $as_var=C; export $as_var | |
12045 | else | |
12046 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
12047 | fi | |
12048 | done | |
8106cdd5 | 12049 | |
ad6254c5 | 12050 | # Required to use basename. |
7a197a62 AK |
12051 | if expr a : '\(a\)' >/dev/null 2>&1 && |
12052 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
12053 | as_expr=expr |
12054 | else | |
12055 | as_expr=false | |
12056 | fi | |
8106cdd5 | 12057 | |
7a197a62 | 12058 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
12059 | as_basename=basename |
12060 | else | |
12061 | as_basename=false | |
12062 | fi | |
12063 | ||
12064 | ||
12065 | # Name of the executable. | |
7a197a62 | 12066 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
12067 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
12068 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 12069 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
68f2de6d | 12070 | echo X/"$0" | |
7a197a62 AK |
12071 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
12072 | s//\1/ | |
12073 | q | |
12074 | } | |
12075 | /^X\/\(\/\/\)$/{ | |
12076 | s//\1/ | |
12077 | q | |
12078 | } | |
12079 | /^X\/\(\/\).*/{ | |
12080 | s//\1/ | |
12081 | q | |
12082 | } | |
12083 | s/.*/./; q'` | |
ad6254c5 | 12084 | |
7a197a62 AK |
12085 | # CDPATH. |
12086 | $as_unset CDPATH | |
ad6254c5 AK |
12087 | |
12088 | ||
ad6254c5 | 12089 | |
ad6254c5 AK |
12090 | as_lineno_1=$LINENO |
12091 | as_lineno_2=$LINENO | |
ad6254c5 | 12092 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 12093 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 12094 | |
ad6254c5 AK |
12095 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
12096 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
12097 | # line-number line after each line using $LINENO; the second 'sed' |
12098 | # does the real work. The second script uses 'N' to pair each | |
12099 | # line-number line with the line containing $LINENO, and appends | |
12100 | # trailing '-' during substitution so that $LINENO is not a special | |
12101 | # case at line end. | |
ad6254c5 | 12102 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
12103 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
12104 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
12105 | sed -n ' | |
12106 | p | |
12107 | /[$]LINENO/= | |
12108 | ' <$as_myself | | |
ad6254c5 | 12109 | sed ' |
7a197a62 AK |
12110 | s/[$]LINENO.*/&-/ |
12111 | t lineno | |
12112 | b | |
12113 | :lineno | |
ad6254c5 | 12114 | N |
7a197a62 AK |
12115 | :loop |
12116 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 12117 | t loop |
7a197a62 | 12118 | s/-\n.*// |
ad6254c5 | 12119 | ' >$as_me.lineno && |
7a197a62 | 12120 | chmod +x "$as_me.lineno" || |
68f2de6d | 12121 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
12122 | { (exit 1); exit 1; }; } |
12123 | ||
12124 | # Don't try to exec as it changes $[0], causing all sort of problems | |
12125 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
12126 | # original and so on. Autoconf is especially sensitive to this). |
12127 | . "./$as_me.lineno" | |
ad6254c5 AK |
12128 | # Exit status is that of the last command. |
12129 | exit | |
12130 | } | |
12131 | ||
12132 | ||
7a197a62 AK |
12133 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
12134 | as_dirname=dirname | |
12135 | else | |
12136 | as_dirname=false | |
12137 | fi | |
12138 | ||
12139 | ECHO_C= ECHO_N= ECHO_T= | |
12140 | case `echo -n x` in | |
12141 | -n*) | |
12142 | case `echo 'x\c'` in | |
12143 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
12144 | *) ECHO_C='\c';; | |
12145 | esac;; | |
12146 | *) | |
12147 | ECHO_N='-n';; | |
ad6254c5 | 12148 | esac |
68f2de6d | 12149 | |
7a197a62 AK |
12150 | if expr a : '\(a\)' >/dev/null 2>&1 && |
12151 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
12152 | as_expr=expr |
12153 | else | |
12154 | as_expr=false | |
12155 | fi | |
80992638 | 12156 | |
ad6254c5 | 12157 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
12158 | if test -d conf$$.dir; then |
12159 | rm -f conf$$.dir/conf$$.file | |
12160 | else | |
12161 | rm -f conf$$.dir | |
68f2de6d AK |
12162 | mkdir conf$$.dir |
12163 | fi | |
12164 | echo >conf$$.file | |
12165 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
12166 | as_ln_s='ln -s' | |
12167 | # ... but there are two gotchas: | |
12168 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
12169 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
12170 | # In both cases, we have to default to `cp -p'. | |
12171 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
ad6254c5 | 12172 | as_ln_s='cp -p' |
68f2de6d AK |
12173 | elif ln conf$$.file conf$$ 2>/dev/null; then |
12174 | as_ln_s=ln | |
ad6254c5 AK |
12175 | else |
12176 | as_ln_s='cp -p' | |
12177 | fi | |
7a197a62 AK |
12178 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
12179 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 12180 | |
ad6254c5 AK |
12181 | if mkdir -p . 2>/dev/null; then |
12182 | as_mkdir_p=: | |
12183 | else | |
8a2fc586 | 12184 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
12185 | as_mkdir_p=false |
12186 | fi | |
12187 | ||
25fbec5b AK |
12188 | if test -x / >/dev/null 2>&1; then |
12189 | as_test_x='test -x' | |
7a197a62 | 12190 | else |
25fbec5b AK |
12191 | if ls -dL / >/dev/null 2>&1; then |
12192 | as_ls_L_option=L | |
12193 | else | |
12194 | as_ls_L_option= | |
12195 | fi | |
12196 | as_test_x=' | |
12197 | eval sh -c '\'' | |
12198 | if test -d "$1"; then | |
68f2de6d | 12199 | test -d "$1/."; |
25fbec5b AK |
12200 | else |
12201 | case $1 in | |
68f2de6d | 12202 | -*)set "./$1";; |
25fbec5b AK |
12203 | esac; |
12204 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
12205 | ???[sx]*):;;*)false;;esac;fi | |
12206 | '\'' sh | |
12207 | ' | |
7a197a62 | 12208 | fi |
25fbec5b | 12209 | as_executable_p=$as_test_x |
ad6254c5 AK |
12210 | |
12211 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 12212 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
12213 | |
12214 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 12215 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
12216 | |
12217 | ||
ad6254c5 AK |
12218 | exec 6>&1 |
12219 | ||
7a197a62 | 12220 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 12221 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
12222 | # values after options handling. |
12223 | ac_log=" | |
ad6254c5 | 12224 | This file was extended by $as_me, which was |
68f2de6d | 12225 | generated by GNU Autoconf 2.61. Invocation command line was |
ad6254c5 AK |
12226 | |
12227 | CONFIG_FILES = $CONFIG_FILES | |
12228 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12229 | CONFIG_LINKS = $CONFIG_LINKS | |
12230 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12231 | $ $0 $@ | |
12232 | ||
7a197a62 AK |
12233 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
12234 | " | |
12235 | ||
ad6254c5 AK |
12236 | _ACEOF |
12237 | ||
68f2de6d | 12238 | cat >>$CONFIG_STATUS <<_ACEOF |
ad6254c5 | 12239 | # Files that config.status was made for. |
68f2de6d AK |
12240 | config_files="$ac_config_files" |
12241 | config_headers="$ac_config_headers" | |
ad6254c5 | 12242 | |
7a197a62 | 12243 | _ACEOF |
ad6254c5 | 12244 | |
68f2de6d | 12245 | cat >>$CONFIG_STATUS <<\_ACEOF |
ad6254c5 AK |
12246 | ac_cs_usage="\ |
12247 | \`$as_me' instantiates files from templates according to the | |
12248 | current configuration. | |
12249 | ||
12250 | Usage: $0 [OPTIONS] [FILE]... | |
12251 | ||
12252 | -h, --help print this help, then exit | |
25fbec5b | 12253 | -V, --version print version number and configuration settings, then exit |
ad6254c5 AK |
12254 | -q, --quiet do not print progress messages |
12255 | -d, --debug don't remove temporary files | |
12256 | --recheck update $as_me by reconfiguring in the same conditions | |
12257 | --file=FILE[:TEMPLATE] | |
68f2de6d | 12258 | instantiate the configuration file FILE |
72b2cb61 | 12259 | --header=FILE[:TEMPLATE] |
68f2de6d | 12260 | instantiate the configuration header FILE |
ad6254c5 AK |
12261 | |
12262 | Configuration files: | |
12263 | $config_files | |
12264 | ||
72b2cb61 AK |
12265 | Configuration headers: |
12266 | $config_headers | |
12267 | ||
ad6254c5 | 12268 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 12269 | |
7a197a62 | 12270 | _ACEOF |
68f2de6d | 12271 | cat >>$CONFIG_STATUS <<_ACEOF |
ad6254c5 AK |
12272 | ac_cs_version="\\ |
12273 | config.status | |
68f2de6d AK |
12274 | configured by $0, generated by GNU Autoconf 2.61, |
12275 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 12276 | |
68f2de6d | 12277 | Copyright (C) 2006 Free Software Foundation, Inc. |
ad6254c5 AK |
12278 | This config.status script is free software; the Free Software Foundation |
12279 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
12280 | |
12281 | ac_pwd='$ac_pwd' | |
12282 | srcdir='$srcdir' | |
12283 | INSTALL='$INSTALL' | |
fddafd51 | 12284 | MKDIR_P='$MKDIR_P' |
ad6254c5 AK |
12285 | _ACEOF |
12286 | ||
68f2de6d AK |
12287 | cat >>$CONFIG_STATUS <<\_ACEOF |
12288 | # If no file are specified by the user, then we need to provide default | |
12289 | # value. By we need to know if files were specified by the user. | |
ad6254c5 AK |
12290 | ac_need_defaults=: |
12291 | while test $# != 0 | |
12292 | do | |
12293 | case $1 in | |
12294 | --*=*) | |
7a197a62 AK |
12295 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
12296 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
12297 | ac_shift=: |
12298 | ;; | |
7a197a62 | 12299 | *) |
ad6254c5 AK |
12300 | ac_option=$1 |
12301 | ac_optarg=$2 | |
12302 | ac_shift=shift | |
12303 | ;; | |
ad6254c5 AK |
12304 | esac |
12305 | ||
12306 | case $ac_option in | |
12307 | # Handling of the options. | |
ad6254c5 AK |
12308 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
12309 | ac_cs_recheck=: ;; | |
7a197a62 | 12310 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
68f2de6d | 12311 | echo "$ac_cs_version"; exit ;; |
7a197a62 | 12312 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
12313 | debug=: ;; |
12314 | --file | --fil | --fi | --f ) | |
12315 | $ac_shift | |
68f2de6d | 12316 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
ad6254c5 AK |
12317 | ac_need_defaults=false;; |
12318 | --header | --heade | --head | --hea ) | |
12319 | $ac_shift | |
68f2de6d | 12320 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
ad6254c5 | 12321 | ac_need_defaults=false;; |
7a197a62 AK |
12322 | --he | --h) |
12323 | # Conflict between --help and --header | |
68f2de6d | 12324 | { echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
12325 | Try \`$0 --help' for more information." >&2 |
12326 | { (exit 1); exit 1; }; };; | |
12327 | --help | --hel | -h ) | |
68f2de6d | 12328 | echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
12329 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
12330 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
12331 | ac_cs_silent=: ;; | |
12332 | ||
12333 | # This is an error. | |
68f2de6d | 12334 | -*) { echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 12335 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
12336 | { (exit 1); exit 1; }; } ;; |
12337 | ||
7a197a62 AK |
12338 | *) ac_config_targets="$ac_config_targets $1" |
12339 | ac_need_defaults=false ;; | |
ad6254c5 AK |
12340 | |
12341 | esac | |
12342 | shift | |
12343 | done | |
12344 | ||
12345 | ac_configure_extra_args= | |
12346 | ||
12347 | if $ac_cs_silent; then | |
12348 | exec 6>/dev/null | |
12349 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
12350 | fi | |
12351 | ||
12352 | _ACEOF | |
68f2de6d | 12353 | cat >>$CONFIG_STATUS <<_ACEOF |
ad6254c5 | 12354 | if \$ac_cs_recheck; then |
68f2de6d AK |
12355 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
12356 | CONFIG_SHELL=$SHELL | |
7a197a62 | 12357 | export CONFIG_SHELL |
68f2de6d | 12358 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
ad6254c5 AK |
12359 | fi |
12360 | ||
12361 | _ACEOF | |
68f2de6d | 12362 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
12363 | exec 5>>config.log |
12364 | { | |
12365 | echo | |
12366 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
12367 | ## Running $as_me. ## | |
12368 | _ASBOX | |
68f2de6d | 12369 | echo "$ac_log" |
7a197a62 | 12370 | } >&5 |
ad6254c5 | 12371 | |
7a197a62 | 12372 | _ACEOF |
68f2de6d | 12373 | cat >>$CONFIG_STATUS <<_ACEOF |
7a197a62 | 12374 | _ACEOF |
ad6254c5 | 12375 | |
68f2de6d | 12376 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
12377 | |
12378 | # Handling of arguments. | |
ad6254c5 AK |
12379 | for ac_config_target in $ac_config_targets |
12380 | do | |
7a197a62 AK |
12381 | case $ac_config_target in |
12382 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
12383 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
12384 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
12385 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
12386 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
93bd259b AK |
12387 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
12388 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 12389 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
93bd259b AK |
12390 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
12391 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 12392 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
93bd259b AK |
12393 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
12394 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
12395 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
12396 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
12397 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
12398 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
12399 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; | |
93bd259b AK |
12400 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
12401 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
12402 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
12403 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
7a197a62 | 12404 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 12405 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
7a197a62 AK |
12406 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
12407 | "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;; | |
7a197a62 | 12408 | |
68f2de6d AK |
12409 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12410 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 12411 | { (exit 1); exit 1; }; };; |
80992638 | 12412 | esac |
ad6254c5 AK |
12413 | done |
12414 | ||
7a197a62 | 12415 | |
ad6254c5 AK |
12416 | # If the user did not use the arguments to specify the items to instantiate, |
12417 | # then the envvar interface is used. Set only those that are not. | |
12418 | # We use the long form for the default assignment because of an extremely | |
12419 | # bizarre bug on SunOS 4.1.3. | |
12420 | if $ac_need_defaults; then | |
12421 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 12422 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
12423 | fi |
12424 | ||
12425 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 12426 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 12427 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
12428 | # Hook for its removal unless debugging. |
12429 | # Note that there is a small window in which the directory will not be cleaned: | |
12430 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
12431 | $debug || |
12432 | { | |
7a197a62 AK |
12433 | tmp= |
12434 | trap 'exit_status=$? | |
12435 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
12436 | ' 0 | |
ad6254c5 AK |
12437 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
12438 | } | |
ad6254c5 AK |
12439 | # Create a (secure) tmp directory for tmp files. |
12440 | ||
12441 | { | |
7a197a62 | 12442 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
12443 | test -n "$tmp" && test -d "$tmp" |
12444 | } || | |
12445 | { | |
7a197a62 AK |
12446 | tmp=./conf$$-$RANDOM |
12447 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
12448 | } || |
12449 | { | |
68f2de6d | 12450 | echo "$me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
12451 | { (exit 1); exit 1; } |
12452 | } | |
12453 | ||
68f2de6d AK |
12454 | # |
12455 | # Set up the sed scripts for CONFIG_FILES section. | |
12456 | # | |
12457 | ||
12458 | # No need to generate the scripts if there are no CONFIG_FILES. | |
12459 | # This happens for instance when ./config.status config.h | |
1995c9ff | 12460 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 12461 | |
68f2de6d | 12462 | _ACEOF |
5556819a | 12463 | |
68f2de6d AK |
12464 | |
12465 | ||
12466 | ac_delim='%!_!# ' | |
12467 | for ac_last_try in false false false false false :; do | |
12468 | cat >conf$$subs.sed <<_ACEOF | |
12469 | SHELL!$SHELL$ac_delim | |
12470 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
12471 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
12472 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
12473 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
12474 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
12475 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
12476 | exec_prefix!$exec_prefix$ac_delim | |
12477 | prefix!$prefix$ac_delim | |
12478 | program_transform_name!$program_transform_name$ac_delim | |
12479 | bindir!$bindir$ac_delim | |
12480 | sbindir!$sbindir$ac_delim | |
12481 | libexecdir!$libexecdir$ac_delim | |
12482 | datarootdir!$datarootdir$ac_delim | |
12483 | datadir!$datadir$ac_delim | |
12484 | sysconfdir!$sysconfdir$ac_delim | |
12485 | sharedstatedir!$sharedstatedir$ac_delim | |
12486 | localstatedir!$localstatedir$ac_delim | |
12487 | includedir!$includedir$ac_delim | |
12488 | oldincludedir!$oldincludedir$ac_delim | |
12489 | docdir!$docdir$ac_delim | |
12490 | infodir!$infodir$ac_delim | |
12491 | htmldir!$htmldir$ac_delim | |
12492 | dvidir!$dvidir$ac_delim | |
12493 | pdfdir!$pdfdir$ac_delim | |
12494 | psdir!$psdir$ac_delim | |
12495 | libdir!$libdir$ac_delim | |
12496 | localedir!$localedir$ac_delim | |
12497 | mandir!$mandir$ac_delim | |
12498 | DEFS!$DEFS$ac_delim | |
12499 | ECHO_C!$ECHO_C$ac_delim | |
12500 | ECHO_N!$ECHO_N$ac_delim | |
12501 | ECHO_T!$ECHO_T$ac_delim | |
12502 | LIBS!$LIBS$ac_delim | |
12503 | build_alias!$build_alias$ac_delim | |
12504 | host_alias!$host_alias$ac_delim | |
12505 | target_alias!$target_alias$ac_delim | |
12506 | build!$build$ac_delim | |
12507 | build_cpu!$build_cpu$ac_delim | |
12508 | build_vendor!$build_vendor$ac_delim | |
12509 | build_os!$build_os$ac_delim | |
12510 | host!$host$ac_delim | |
12511 | host_cpu!$host_cpu$ac_delim | |
12512 | host_vendor!$host_vendor$ac_delim | |
12513 | host_os!$host_os$ac_delim | |
12514 | target!$target$ac_delim | |
12515 | target_cpu!$target_cpu$ac_delim | |
12516 | target_vendor!$target_vendor$ac_delim | |
12517 | target_os!$target_os$ac_delim | |
5951ef33 | 12518 | SED!$SED$ac_delim |
68f2de6d AK |
12519 | AWK!$AWK$ac_delim |
12520 | CC!$CC$ac_delim | |
12521 | CFLAGS!$CFLAGS$ac_delim | |
12522 | LDFLAGS!$LDFLAGS$ac_delim | |
12523 | CPPFLAGS!$CPPFLAGS$ac_delim | |
12524 | ac_ct_CC!$ac_ct_CC$ac_delim | |
12525 | EXEEXT!$EXEEXT$ac_delim | |
12526 | OBJEXT!$OBJEXT$ac_delim | |
12527 | CPP!$CPP$ac_delim | |
12528 | GREP!$GREP$ac_delim | |
12529 | EGREP!$EGREP$ac_delim | |
12530 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
12531 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
12532 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
12533 | LN_S!$LN_S$ac_delim | |
12534 | SET_MAKE!$SET_MAKE$ac_delim | |
12535 | RANLIB!$RANLIB$ac_delim | |
12536 | CFLOW_CMD!$CFLOW_CMD$ac_delim | |
12537 | CSCOPE_CMD!$CSCOPE_CMD$ac_delim | |
12538 | ALLOCA!$ALLOCA$ac_delim | |
12539 | LIBOBJS!$LIBOBJS$ac_delim | |
12540 | POW_LIB!$POW_LIB$ac_delim | |
12541 | LCOV!$LCOV$ac_delim | |
12542 | GENHTML!$GENHTML$ac_delim | |
12543 | LVM2CMD_LIB!$LVM2CMD_LIB$ac_delim | |
12544 | MSGFMT!$MSGFMT$ac_delim | |
12545 | MODPROBE_CMD!$MODPROBE_CMD$ac_delim | |
12546 | BUILD_DMEVENTD!$BUILD_DMEVENTD$ac_delim | |
12547 | CLDFLAGS!$CLDFLAGS$ac_delim | |
12548 | CLDNOWHOLEARCHIVE!$CLDNOWHOLEARCHIVE$ac_delim | |
12549 | CLDWHOLEARCHIVE!$CLDWHOLEARCHIVE$ac_delim | |
12550 | CLUSTER!$CLUSTER$ac_delim | |
12551 | CLVMD!$CLVMD$ac_delim | |
12552 | CMDLIB!$CMDLIB$ac_delim | |
12553 | COPTIMISE_FLAG!$COPTIMISE_FLAG$ac_delim | |
12554 | DEBUG!$DEBUG$ac_delim | |
12555 | DEVMAPPER!$DEVMAPPER$ac_delim | |
68f2de6d AK |
12556 | DMEVENTD!$DMEVENTD$ac_delim |
12557 | DM_COMPAT!$DM_COMPAT$ac_delim | |
12558 | DM_DEVICE_GID!$DM_DEVICE_GID$ac_delim | |
12559 | DM_DEVICE_MODE!$DM_DEVICE_MODE$ac_delim | |
12560 | DM_DEVICE_UID!$DM_DEVICE_UID$ac_delim | |
12561 | DM_IOCTLS!$DM_IOCTLS$ac_delim | |
12562 | DM_LIB_VERSION!$DM_LIB_VERSION$ac_delim | |
12563 | FSADM!$FSADM$ac_delim | |
12564 | GROUP!$GROUP$ac_delim | |
04f06bc9 | 12565 | HAVE_LIBDL!$HAVE_LIBDL$ac_delim |
68f2de6d AK |
12566 | _ACEOF |
12567 | ||
12568 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
12569 | break | |
12570 | elif $ac_last_try; then | |
12571 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
12572 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
12573 | { (exit 1); exit 1; }; } | |
12574 | else | |
12575 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12576 | fi | |
12577 | done | |
12578 | ||
12579 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
12580 | if test -n "$ac_eof"; then | |
12581 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
12582 | ac_eof=`expr $ac_eof + 1` | |
1995c9ff | 12583 | fi |
7a197a62 | 12584 | |
68f2de6d AK |
12585 | cat >>$CONFIG_STATUS <<_ACEOF |
12586 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
12587 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
12588 | _ACEOF | |
12589 | sed ' | |
12590 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
12591 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
12592 | :n | |
12593 | t n | |
12594 | s/'"$ac_delim"'$/,g/; t | |
12595 | s/$/\\/; p | |
12596 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
12597 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
12598 | rm -f conf$$subs.sed | |
12599 | cat >>$CONFIG_STATUS <<_ACEOF | |
12600 | CEOF$ac_eof | |
1995c9ff | 12601 | _ACEOF |
7a197a62 | 12602 | |
8106cdd5 | 12603 | |
1995c9ff AK |
12604 | ac_delim='%!_!# ' |
12605 | for ac_last_try in false false false false false :; do | |
68f2de6d AK |
12606 | cat >conf$$subs.sed <<_ACEOF |
12607 | HAVE_REALTIME!$HAVE_REALTIME$ac_delim | |
12608 | HAVE_SELINUX!$HAVE_SELINUX$ac_delim | |
12609 | INTL!$INTL$ac_delim | |
12610 | INTL_PACKAGE!$INTL_PACKAGE$ac_delim | |
12611 | JOBS!$JOBS$ac_delim | |
12612 | LDDEPS!$LDDEPS$ac_delim | |
12613 | LIB_SUFFIX!$LIB_SUFFIX$ac_delim | |
12614 | LOCALEDIR!$LOCALEDIR$ac_delim | |
12615 | LVM1!$LVM1$ac_delim | |
12616 | LVM1_FALLBACK!$LVM1_FALLBACK$ac_delim | |
12617 | CONFDIR!$CONFDIR$ac_delim | |
12618 | LVM_VERSION!$LVM_VERSION$ac_delim | |
12619 | MIRRORS!$MIRRORS$ac_delim | |
12620 | OWNER!$OWNER$ac_delim | |
12621 | PKGCONFIG!$PKGCONFIG$ac_delim | |
12622 | POOL!$POOL$ac_delim | |
12623 | SNAPSHOTS!$SNAPSHOTS$ac_delim | |
12624 | STATICDIR!$STATICDIR$ac_delim | |
12625 | STATIC_LINK!$STATIC_LINK$ac_delim | |
12626 | LIB_PTHREAD!$LIB_PTHREAD$ac_delim | |
93bd259b AK |
12627 | interface!$interface$ac_delim |
12628 | kerneldir!$kerneldir$ac_delim | |
12629 | missingkernel!$missingkernel$ac_delim | |
12630 | kernelvsn!$kernelvsn$ac_delim | |
12631 | tmpdir!$tmpdir$ac_delim | |
68f2de6d AK |
12632 | usrlibdir!$usrlibdir$ac_delim |
12633 | usrsbindir!$usrsbindir$ac_delim | |
12634 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
12635 | _ACEOF | |
12636 | ||
04f06bc9 | 12637 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 28; then |
1995c9ff AK |
12638 | break |
12639 | elif $ac_last_try; then | |
68f2de6d AK |
12640 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12641 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
12642 | { (exit 1); exit 1; }; } |
12643 | else | |
12644 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12645 | fi | |
12646 | done | |
7a197a62 | 12647 | |
68f2de6d AK |
12648 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
12649 | if test -n "$ac_eof"; then | |
12650 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
12651 | ac_eof=`expr $ac_eof + 1` | |
12652 | fi | |
fddafd51 | 12653 | |
68f2de6d AK |
12654 | cat >>$CONFIG_STATUS <<_ACEOF |
12655 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
12656 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
1995c9ff | 12657 | _ACEOF |
68f2de6d AK |
12658 | sed ' |
12659 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
12660 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
12661 | :n | |
12662 | t n | |
12663 | s/'"$ac_delim"'$/,g/; t | |
12664 | s/$/\\/; p | |
12665 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
12666 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
12667 | rm -f conf$$subs.sed | |
12668 | cat >>$CONFIG_STATUS <<_ACEOF | |
12669 | :end | |
12670 | s/|#_!!_#|//g | |
12671 | CEOF$ac_eof | |
7a197a62 AK |
12672 | _ACEOF |
12673 | ||
68f2de6d | 12674 | |
7a197a62 AK |
12675 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
12676 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
12677 | # trailing colons and then remove the whole line if VPATH becomes empty | |
12678 | # (actually we leave an empty line to preserve line numbers). | |
12679 | if test "x$srcdir" = x.; then | |
12680 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
12681 | s/:*\$(srcdir):*/:/ | |
12682 | s/:*\${srcdir}:*/:/ | |
12683 | s/:*@srcdir@:*/:/ | |
12684 | s/^\([^=]*=[ ]*\):*/\1/ | |
12685 | s/:*$// | |
12686 | s/^[^=]*=[ ]*$// | |
12687 | }' | |
12688 | fi | |
12689 | ||
68f2de6d | 12690 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
12691 | fi # test -n "$CONFIG_FILES" |
12692 | ||
12693 | ||
68f2de6d | 12694 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
7a197a62 AK |
12695 | do |
12696 | case $ac_tag in | |
12697 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
12698 | esac | |
12699 | case $ac_mode$ac_tag in | |
12700 | :[FHL]*:*);; | |
68f2de6d AK |
12701 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
12702 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
7a197a62 AK |
12703 | { (exit 1); exit 1; }; };; |
12704 | :[FH]-) ac_tag=-:-;; | |
12705 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
12706 | esac | |
12707 | ac_save_IFS=$IFS | |
12708 | IFS=: | |
12709 | set x $ac_tag | |
12710 | IFS=$ac_save_IFS | |
12711 | shift | |
12712 | ac_file=$1 | |
12713 | shift | |
12714 | ||
12715 | case $ac_mode in | |
12716 | :L) ac_source=$1;; | |
12717 | :[FH]) | |
12718 | ac_file_inputs= | |
12719 | for ac_f | |
12720 | do | |
12721 | case $ac_f in | |
12722 | -) ac_f="$tmp/stdin";; | |
12723 | *) # Look for the file first in the build tree, then in the source tree | |
12724 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
12725 | # because $ac_f cannot contain `:'. | |
12726 | test -f "$ac_f" || | |
12727 | case $ac_f in | |
12728 | [\\/$]*) false;; | |
12729 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
12730 | esac || | |
68f2de6d AK |
12731 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
12732 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
12733 | { (exit 1); exit 1; }; };; |
12734 | esac | |
68f2de6d | 12735 | ac_file_inputs="$ac_file_inputs $ac_f" |
7a197a62 AK |
12736 | done |
12737 | ||
12738 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12739 | # use $as_me), people would be surprised to read: | |
12740 | # /* config.h. Generated by config.status. */ | |
68f2de6d AK |
12741 | configure_input="Generated from "`IFS=: |
12742 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
7a197a62 AK |
12743 | if test x"$ac_file" != x-; then |
12744 | configure_input="$ac_file. $configure_input" | |
68f2de6d AK |
12745 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
12746 | echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 AK |
12747 | fi |
12748 | ||
12749 | case $ac_tag in | |
68f2de6d | 12750 | *:-:* | *:-) cat >"$tmp/stdin";; |
7a197a62 AK |
12751 | esac |
12752 | ;; | |
80992638 | 12753 | esac |
8106cdd5 | 12754 | |
7a197a62 | 12755 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 12756 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
12757 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
12758 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 12759 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
68f2de6d | 12760 | echo X"$ac_file" | |
7a197a62 AK |
12761 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12762 | s//\1/ | |
12763 | q | |
12764 | } | |
12765 | /^X\(\/\/\)[^/].*/{ | |
12766 | s//\1/ | |
12767 | q | |
12768 | } | |
12769 | /^X\(\/\/\)$/{ | |
12770 | s//\1/ | |
12771 | q | |
12772 | } | |
12773 | /^X\(\/\).*/{ | |
12774 | s//\1/ | |
12775 | q | |
12776 | } | |
12777 | s/.*/./; q'` | |
12778 | { as_dir="$ac_dir" | |
12779 | case $as_dir in #( | |
12780 | -*) as_dir=./$as_dir;; | |
12781 | esac | |
12782 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 12783 | as_dirs= |
7a197a62 AK |
12784 | while :; do |
12785 | case $as_dir in #( | |
68f2de6d | 12786 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
7a197a62 AK |
12787 | *) as_qdir=$as_dir;; |
12788 | esac | |
12789 | as_dirs="'$as_qdir' $as_dirs" | |
12790 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 12791 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
12792 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
12793 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 12794 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
68f2de6d | 12795 | echo X"$as_dir" | |
7a197a62 AK |
12796 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12797 | s//\1/ | |
12798 | q | |
12799 | } | |
12800 | /^X\(\/\/\)[^/].*/{ | |
12801 | s//\1/ | |
12802 | q | |
12803 | } | |
12804 | /^X\(\/\/\)$/{ | |
12805 | s//\1/ | |
12806 | q | |
12807 | } | |
12808 | /^X\(\/\).*/{ | |
12809 | s//\1/ | |
12810 | q | |
12811 | } | |
12812 | s/.*/./; q'` | |
12813 | test -d "$as_dir" && break | |
ad6254c5 | 12814 | done |
7a197a62 | 12815 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
68f2de6d AK |
12816 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
12817 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 12818 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
12819 | ac_builddir=. |
12820 | ||
7a197a62 AK |
12821 | case "$ac_dir" in |
12822 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12823 | *) | |
68f2de6d | 12824 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7a197a62 | 12825 | # A ".." for each directory in $ac_dir_suffix. |
68f2de6d | 12826 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
7a197a62 AK |
12827 | case $ac_top_builddir_sub in |
12828 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12829 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
12830 | esac ;; | |
12831 | esac | |
12832 | ac_abs_top_builddir=$ac_pwd | |
12833 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
12834 | # for backward compatibility: | |
12835 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
12836 | |
12837 | case $srcdir in | |
7a197a62 | 12838 | .) # We are building in place. |
ad6254c5 | 12839 | ac_srcdir=. |
7a197a62 AK |
12840 | ac_top_srcdir=$ac_top_builddir_sub |
12841 | ac_abs_top_srcdir=$ac_pwd ;; | |
12842 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 12843 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
12844 | ac_top_srcdir=$srcdir |
12845 | ac_abs_top_srcdir=$srcdir ;; | |
12846 | *) # Relative name. | |
12847 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
12848 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
12849 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 12850 | esac |
7a197a62 | 12851 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 12852 | |
ad6254c5 | 12853 | |
7a197a62 AK |
12854 | case $ac_mode in |
12855 | :F) | |
12856 | # | |
12857 | # CONFIG_FILE | |
12858 | # | |
ad6254c5 AK |
12859 | |
12860 | case $INSTALL in | |
12861 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 12862 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 12863 | esac |
fddafd51 ZK |
12864 | ac_MKDIR_P=$MKDIR_P |
12865 | case $MKDIR_P in | |
12866 | [\\/$]* | ?:[\\/]* ) ;; | |
12867 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
12868 | esac | |
7a197a62 | 12869 | _ACEOF |
795ca3e5 | 12870 | |
68f2de6d | 12871 | cat >>$CONFIG_STATUS <<\_ACEOF |
7a197a62 AK |
12872 | # If the template does not know about datarootdir, expand it. |
12873 | # FIXME: This hack should be removed a few years after 2.60. | |
12874 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
12875 | ||
68f2de6d | 12876 | case `sed -n '/datarootdir/ { |
7a197a62 AK |
12877 | p |
12878 | q | |
12879 | } | |
12880 | /@datadir@/p | |
12881 | /@docdir@/p | |
12882 | /@infodir@/p | |
12883 | /@localedir@/p | |
12884 | /@mandir@/p | |
68f2de6d | 12885 | ' $ac_file_inputs` in |
7a197a62 AK |
12886 | *datarootdir*) ac_datarootdir_seen=yes;; |
12887 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
68f2de6d AK |
12888 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
12889 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 12890 | _ACEOF |
68f2de6d | 12891 | cat >>$CONFIG_STATUS <<_ACEOF |
7a197a62 AK |
12892 | ac_datarootdir_hack=' |
12893 | s&@datadir@&$datadir&g | |
12894 | s&@docdir@&$docdir&g | |
12895 | s&@infodir@&$infodir&g | |
12896 | s&@localedir@&$localedir&g | |
12897 | s&@mandir@&$mandir&g | |
12898 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
12899 | esac | |
12900 | _ACEOF | |
12901 | ||
12902 | # Neutralize VPATH when `$srcdir' = `.'. | |
12903 | # Shell code in configure.ac might set extrasub. | |
12904 | # FIXME: do we really want to maintain this feature? | |
68f2de6d AK |
12905 | cat >>$CONFIG_STATUS <<_ACEOF |
12906 | sed "$ac_vpsub | |
ad6254c5 AK |
12907 | $extrasub |
12908 | _ACEOF | |
68f2de6d | 12909 | cat >>$CONFIG_STATUS <<\_ACEOF |
ad6254c5 AK |
12910 | :t |
12911 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
68f2de6d | 12912 | s&@configure_input@&$configure_input&;t t |
7a197a62 AK |
12913 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
12914 | s&@srcdir@&$ac_srcdir&;t t | |
12915 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
12916 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
12917 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
12918 | s&@builddir@&$ac_builddir&;t t | |
12919 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
12920 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
12921 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 12922 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 12923 | $ac_datarootdir_hack |
68f2de6d | 12924 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
7a197a62 AK |
12925 | |
12926 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
12927 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
12928 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
68f2de6d | 12929 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 12930 | which seems to be undefined. Please make sure it is defined." >&5 |
68f2de6d | 12931 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
12932 | which seems to be undefined. Please make sure it is defined." >&2;} |
12933 | ||
12934 | rm -f "$tmp/stdin" | |
72b2cb61 | 12935 | case $ac_file in |
68f2de6d AK |
12936 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
12937 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
12938 | esac | |
7a197a62 AK |
12939 | ;; |
12940 | :H) | |
12941 | # | |
12942 | # CONFIG_HEADER | |
12943 | # | |
68f2de6d AK |
12944 | _ACEOF |
12945 | ||
12946 | # Transform confdefs.h into a sed script `conftest.defines', that | |
12947 | # substitutes the proper values into config.h.in to produce config.h. | |
12948 | rm -f conftest.defines conftest.tail | |
12949 | # First, append a space to every undef/define line, to ease matching. | |
12950 | echo 's/$/ /' >conftest.defines | |
12951 | # Then, protect against being on the right side of a sed subst, or in | |
12952 | # an unquoted here document, in config.status. If some macros were | |
12953 | # called several times there might be several #defines for the same | |
12954 | # symbol, which is useless. But do not sort them, since the last | |
12955 | # AC_DEFINE must be honored. | |
12956 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
12957 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
12958 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
12959 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
12960 | # just an empty string. | |
12961 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
12962 | ac_dB='\\)[ (].*,\\1define\\2' | |
12963 | ac_dC=' ' | |
12964 | ac_dD=' ,' | |
12965 | ||
12966 | uniq confdefs.h | | |
12967 | sed -n ' | |
12968 | t rset | |
12969 | :rset | |
12970 | s/^[ ]*#[ ]*define[ ][ ]*// | |
12971 | t ok | |
12972 | d | |
12973 | :ok | |
12974 | s/[\\&,]/\\&/g | |
12975 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
12976 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
12977 | ' >>conftest.defines | |
12978 | ||
12979 | # Remove the space that was appended to ease matching. | |
12980 | # Then replace #undef with comments. This is necessary, for | |
12981 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
12982 | # on some systems where configure will not decide to define it. | |
12983 | # (The regexp can be short, since the line contains either #define or #undef.) | |
12984 | echo 's/ $// | |
12985 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
12986 | ||
12987 | # Break up conftest.defines: | |
12988 | ac_max_sed_lines=50 | |
12989 | ||
12990 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
12991 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
12992 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
12993 | # et cetera. | |
12994 | ac_in='$ac_file_inputs' | |
12995 | ac_out='"$tmp/out1"' | |
12996 | ac_nxt='"$tmp/out2"' | |
12997 | ||
12998 | while : | |
12999 | do | |
13000 | # Write a here document: | |
13001 | cat >>$CONFIG_STATUS <<_ACEOF | |
13002 | # First, check the format of the line: | |
13003 | cat >"\$tmp/defines.sed" <<\\CEOF | |
13004 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
13005 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
13006 | b | |
13007 | :def | |
13008 | _ACEOF | |
13009 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
13010 | echo 'CEOF | |
13011 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | |
13012 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
13013 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
13014 | grep . conftest.tail >/dev/null || break | |
13015 | rm -f conftest.defines | |
13016 | mv conftest.tail conftest.defines | |
13017 | done | |
13018 | rm -f conftest.defines conftest.tail | |
13019 | ||
13020 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | |
13021 | cat >>$CONFIG_STATUS <<\_ACEOF | |
72b2cb61 | 13022 | if test x"$ac_file" != x-; then |
68f2de6d AK |
13023 | echo "/* $configure_input */" >"$tmp/config.h" |
13024 | cat "$ac_result" >>"$tmp/config.h" | |
13025 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
13026 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
13027 | echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 13028 | else |
68f2de6d AK |
13029 | rm -f $ac_file |
13030 | mv "$tmp/config.h" $ac_file | |
72b2cb61 AK |
13031 | fi |
13032 | else | |
68f2de6d AK |
13033 | echo "/* $configure_input */" |
13034 | cat "$ac_result" | |
72b2cb61 | 13035 | fi |
68f2de6d | 13036 | rm -f "$tmp/out12" |
7a197a62 AK |
13037 | ;; |
13038 | ||
13039 | ||
13040 | esac | |
13041 | ||
13042 | done # for ac_tag | |
795ca3e5 | 13043 | |
795ca3e5 | 13044 | |
ad6254c5 AK |
13045 | { (exit 0); exit 0; } |
13046 | _ACEOF | |
795ca3e5 | 13047 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
13048 | ac_clean_files=$ac_clean_files_save |
13049 | ||
13050 | ||
13051 | # configure is writing to config.log, and then calls config.status. | |
13052 | # config.status does its own redirection, appending to config.log. | |
13053 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
13054 | # by configure, so config.status won't be able to write to it; its | |
13055 | # output is simply discarded. So we exec the FD to /dev/null, | |
13056 | # effectively closing config.log, so it can be properly (re)opened and | |
13057 | # appended to by config.status. When coming back to configure, we | |
13058 | # need to make the FD available again. | |
13059 | if test "$no_create" != yes; then | |
13060 | ac_cs_success=: | |
13061 | ac_config_status_args= | |
13062 | test "$silent" = yes && | |
13063 | ac_config_status_args="$ac_config_status_args --quiet" | |
13064 | exec 5>/dev/null | |
13065 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
13066 | exec 5>>config.log | |
13067 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
13068 | # would make configure fail if this is the last instruction. | |
13069 | $ac_cs_success || { (exit 1); exit 1; } | |
13070 | fi | |
795ca3e5 | 13071 | |
2dc95e1c AK |
13072 | |
13073 | if test x$ODIRECT != xyes; then | |
68f2de6d AK |
13074 | { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
13075 | echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 13076 | fi |