]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
ec6a6fbe | 3 | # Generated by GNU Autoconf 2.63. |
795ca3e5 | 4 | # |
7a197a62 | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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=: | |
ec6a6fbe | 18 | # Pre-4.2 versions of Zsh do 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 | ||
ec6a6fbe AK |
40 | as_nl=' |
41 | ' | |
42 | export as_nl | |
43 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
44 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
47 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 54 | else |
ec6a6fbe AK |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 67 | fi |
ec6a6fbe AK |
68 | export as_echo_body |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
ad6254c5 AK |
79 | fi |
80 | ||
81 | # Support unset when possible. | |
8a2fc586 | 82 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
83 | as_unset=unset |
84 | else | |
85 | as_unset=false | |
86 | fi | |
87 | ||
88 | ||
7a197a62 AK |
89 | # IFS |
90 | # We need space, tab and new line, in precisely that order. Quoting is | |
91 | # there to prevent editors from complaining about space-tab. | |
92 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
93 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
94 | IFS=" "" $as_nl" |
95 | ||
96 | # Find who we are. Look in the path if we contain no directory separator. | |
97 | case $0 in | |
98 | *[\\/]* ) as_myself=$0 ;; | |
99 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
100 | for as_dir in $PATH | |
101 | do | |
102 | IFS=$as_save_IFS | |
103 | test -z "$as_dir" && as_dir=. | |
104 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
105 | done | |
106 | IFS=$as_save_IFS | |
107 | ||
108 | ;; | |
109 | esac | |
110 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
111 | # in which case we are not to be found in the path. | |
112 | if test "x$as_myself" = x; then | |
113 | as_myself=$0 | |
114 | fi | |
115 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 116 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
117 | { (exit 1); exit 1; } |
118 | fi | |
119 | ||
ad6254c5 | 120 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
121 | for as_var in ENV MAIL MAILPATH |
122 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
123 | done | |
ad6254c5 AK |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
ec6a6fbe AK |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
ad6254c5 AK |
133 | |
134 | # Required to use basename. | |
7a197a62 AK |
135 | if expr a : '\(a\)' >/dev/null 2>&1 && |
136 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
137 | as_expr=expr |
138 | else | |
139 | as_expr=false | |
140 | fi | |
141 | ||
7a197a62 | 142 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
143 | as_basename=basename |
144 | else | |
145 | as_basename=false | |
146 | fi | |
147 | ||
148 | ||
149 | # Name of the executable. | |
7a197a62 | 150 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
152 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 153 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 154 | $as_echo X/"$0" | |
7a197a62 AK |
155 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
156 | s//\1/ | |
157 | q | |
158 | } | |
159 | /^X\/\(\/\/\)$/{ | |
160 | s//\1/ | |
161 | q | |
162 | } | |
163 | /^X\/\(\/\).*/{ | |
164 | s//\1/ | |
165 | q | |
166 | } | |
167 | s/.*/./; q'` | |
ad6254c5 | 168 | |
7a197a62 AK |
169 | # CDPATH. |
170 | $as_unset CDPATH | |
ad6254c5 | 171 | |
ad6254c5 | 172 | |
7a197a62 AK |
173 | if test "x$CONFIG_SHELL" = x; then |
174 | if (eval ":") 2>/dev/null; then | |
175 | as_have_required=yes | |
176 | else | |
177 | as_have_required=no | |
ad6254c5 AK |
178 | fi |
179 | ||
ec6a6fbe | 180 | if test $as_have_required = yes && (eval ": |
7a197a62 AK |
181 | (as_func_return () { |
182 | (exit \$1) | |
183 | } | |
184 | as_func_success () { | |
185 | as_func_return 0 | |
186 | } | |
187 | as_func_failure () { | |
188 | as_func_return 1 | |
189 | } | |
190 | as_func_ret_success () { | |
191 | return 0 | |
192 | } | |
193 | as_func_ret_failure () { | |
194 | return 1 | |
195 | } | |
ad6254c5 | 196 | |
7a197a62 AK |
197 | exitcode=0 |
198 | if as_func_success; then | |
199 | : | |
200 | else | |
201 | exitcode=1 | |
202 | echo as_func_success failed. | |
203 | fi | |
ad6254c5 | 204 | |
7a197a62 AK |
205 | if as_func_failure; then |
206 | exitcode=1 | |
207 | echo as_func_failure succeeded. | |
208 | fi | |
209 | ||
210 | if as_func_ret_success; then | |
211 | : | |
212 | else | |
213 | exitcode=1 | |
214 | echo as_func_ret_success failed. | |
215 | fi | |
216 | ||
217 | if as_func_ret_failure; then | |
218 | exitcode=1 | |
219 | echo as_func_ret_failure succeeded. | |
220 | fi | |
221 | ||
222 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
223 | : | |
224 | else | |
225 | exitcode=1 | |
226 | echo positional parameters were not saved. | |
227 | fi | |
228 | ||
229 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
230 | ||
231 | ( | |
232 | as_lineno_1=\$LINENO | |
233 | as_lineno_2=\$LINENO | |
234 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
235 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
236 | ") 2> /dev/null; then | |
237 | : | |
238 | else | |
239 | as_candidate_shells= | |
ad6254c5 | 240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25fbec5b | 241 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
ad6254c5 AK |
242 | do |
243 | IFS=$as_save_IFS | |
244 | test -z "$as_dir" && as_dir=. | |
7a197a62 | 245 | case $as_dir in |
ad6254c5 | 246 | /*) |
7a197a62 AK |
247 | for as_base in sh bash ksh sh5; do |
248 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
249 | done;; | |
250 | esac | |
251 | done | |
252 | IFS=$as_save_IFS | |
253 | ||
254 | ||
255 | for as_shell in $as_candidate_shells $SHELL; do | |
256 | # Try only shells that exist, to save several forks. | |
257 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
258 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
260 | emulate sh | |
261 | NULLCMD=: | |
ec6a6fbe | 262 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7a197a62 AK |
263 | # is contrary to our usage. Disable this feature. |
264 | alias -g '${1+"$@"}'='"$@"' | |
265 | setopt NO_GLOB_SUBST | |
266 | else | |
25fbec5b AK |
267 | case `(set -o) 2>/dev/null` in |
268 | *posix*) set -o posix ;; | |
269 | esac | |
270 | ||
7a197a62 | 271 | fi |
25fbec5b | 272 | |
7a197a62 AK |
273 | |
274 | : | |
275 | _ASEOF | |
276 | }; then | |
277 | CONFIG_SHELL=$as_shell | |
278 | as_have_required=yes | |
279 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
280 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
281 | emulate sh | |
282 | NULLCMD=: | |
ec6a6fbe | 283 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7a197a62 AK |
284 | # is contrary to our usage. Disable this feature. |
285 | alias -g '${1+"$@"}'='"$@"' | |
286 | setopt NO_GLOB_SUBST | |
287 | else | |
25fbec5b AK |
288 | case `(set -o) 2>/dev/null` in |
289 | *posix*) set -o posix ;; | |
290 | esac | |
291 | ||
7a197a62 | 292 | fi |
25fbec5b | 293 | |
7a197a62 AK |
294 | |
295 | : | |
296 | (as_func_return () { | |
297 | (exit $1) | |
298 | } | |
299 | as_func_success () { | |
300 | as_func_return 0 | |
301 | } | |
302 | as_func_failure () { | |
303 | as_func_return 1 | |
304 | } | |
305 | as_func_ret_success () { | |
306 | return 0 | |
307 | } | |
308 | as_func_ret_failure () { | |
309 | return 1 | |
310 | } | |
311 | ||
312 | exitcode=0 | |
313 | if as_func_success; then | |
314 | : | |
315 | else | |
316 | exitcode=1 | |
317 | echo as_func_success failed. | |
318 | fi | |
319 | ||
320 | if as_func_failure; then | |
321 | exitcode=1 | |
322 | echo as_func_failure succeeded. | |
323 | fi | |
324 | ||
325 | if as_func_ret_success; then | |
326 | : | |
327 | else | |
328 | exitcode=1 | |
329 | echo as_func_ret_success failed. | |
330 | fi | |
331 | ||
332 | if as_func_ret_failure; then | |
333 | exitcode=1 | |
334 | echo as_func_ret_failure succeeded. | |
335 | fi | |
336 | ||
337 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
338 | : | |
339 | else | |
340 | exitcode=1 | |
341 | echo positional parameters were not saved. | |
342 | fi | |
343 | ||
344 | test $exitcode = 0) || { (exit 1); exit 1; } | |
345 | ||
346 | ( | |
ad6254c5 AK |
347 | as_lineno_1=$LINENO |
348 | as_lineno_2=$LINENO | |
ad6254c5 | 349 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 AK |
350 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
351 | ||
352 | _ASEOF | |
353 | }; then | |
354 | break | |
355 | fi | |
356 | ||
357 | fi | |
358 | ||
359 | done | |
360 | ||
361 | if test "x$CONFIG_SHELL" != x; then | |
362 | for as_var in BASH_ENV ENV | |
ec6a6fbe AK |
363 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
364 | done | |
365 | export CONFIG_SHELL | |
366 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
7a197a62 AK |
367 | fi |
368 | ||
369 | ||
370 | if test $as_have_required = no; then | |
371 | echo This script requires a shell more modern than all the | |
372 | echo shells that I found on your system. Please install a | |
373 | echo modern shell, or manually run the script under such a | |
374 | echo shell if you do have one. | |
375 | { (exit 1); exit 1; } | |
376 | fi | |
377 | ||
378 | ||
379 | fi | |
380 | ||
381 | fi | |
382 | ||
383 | ||
384 | ||
385 | (eval "as_func_return () { | |
386 | (exit \$1) | |
387 | } | |
388 | as_func_success () { | |
389 | as_func_return 0 | |
390 | } | |
391 | as_func_failure () { | |
392 | as_func_return 1 | |
393 | } | |
394 | as_func_ret_success () { | |
395 | return 0 | |
396 | } | |
397 | as_func_ret_failure () { | |
398 | return 1 | |
399 | } | |
400 | ||
401 | exitcode=0 | |
402 | if as_func_success; then | |
403 | : | |
404 | else | |
405 | exitcode=1 | |
406 | echo as_func_success failed. | |
407 | fi | |
408 | ||
409 | if as_func_failure; then | |
410 | exitcode=1 | |
411 | echo as_func_failure succeeded. | |
412 | fi | |
413 | ||
414 | if as_func_ret_success; then | |
415 | : | |
416 | else | |
417 | exitcode=1 | |
418 | echo as_func_ret_success failed. | |
419 | fi | |
420 | ||
421 | if as_func_ret_failure; then | |
422 | exitcode=1 | |
423 | echo as_func_ret_failure succeeded. | |
424 | fi | |
425 | ||
426 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
427 | : | |
428 | else | |
429 | exitcode=1 | |
430 | echo positional parameters were not saved. | |
431 | fi | |
432 | ||
433 | test \$exitcode = 0") || { | |
434 | echo No shell found that supports shell functions. | |
ec6a6fbe AK |
435 | echo Please tell bug-autoconf@gnu.org about your system, |
436 | echo including any error possibly output before this message. | |
437 | echo This can help us improve future autoconf versions. | |
438 | echo Configuration will now proceed without shell functions. | |
7a197a62 AK |
439 | } |
440 | ||
441 | ||
442 | ||
443 | as_lineno_1=$LINENO | |
444 | as_lineno_2=$LINENO | |
445 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
446 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
ad6254c5 AK |
447 | |
448 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
449 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
450 | # line-number line after each line using $LINENO; the second 'sed' |
451 | # does the real work. The second script uses 'N' to pair each | |
452 | # line-number line with the line containing $LINENO, and appends | |
453 | # trailing '-' during substitution so that $LINENO is not a special | |
454 | # case at line end. | |
ad6254c5 | 455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
456 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
457 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
458 | sed -n ' | |
459 | p | |
460 | /[$]LINENO/= | |
461 | ' <$as_myself | | |
ad6254c5 | 462 | sed ' |
7a197a62 AK |
463 | s/[$]LINENO.*/&-/ |
464 | t lineno | |
465 | b | |
466 | :lineno | |
ad6254c5 | 467 | N |
7a197a62 AK |
468 | :loop |
469 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 470 | t loop |
7a197a62 | 471 | s/-\n.*// |
ad6254c5 | 472 | ' >$as_me.lineno && |
7a197a62 | 473 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 474 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
475 | { (exit 1); exit 1; }; } |
476 | ||
477 | # Don't try to exec as it changes $[0], causing all sort of problems | |
478 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
479 | # original and so on. Autoconf is especially sensitive to this). |
480 | . "./$as_me.lineno" | |
ad6254c5 AK |
481 | # Exit status is that of the last command. |
482 | exit | |
483 | } | |
795ca3e5 | 484 | |
ad6254c5 | 485 | |
7a197a62 AK |
486 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
487 | as_dirname=dirname | |
488 | else | |
489 | as_dirname=false | |
490 | fi | |
491 | ||
492 | ECHO_C= ECHO_N= ECHO_T= | |
493 | case `echo -n x` in | |
494 | -n*) | |
495 | case `echo 'x\c'` in | |
496 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
497 | *) ECHO_C='\c';; | |
498 | esac;; | |
499 | *) | |
500 | ECHO_N='-n';; | |
ad6254c5 | 501 | esac |
7a197a62 AK |
502 | if expr a : '\(a\)' >/dev/null 2>&1 && |
503 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
504 | as_expr=expr |
505 | else | |
506 | as_expr=false | |
507 | fi | |
508 | ||
509 | rm -f conf$$ conf$$.exe conf$$.file | |
7a197a62 AK |
510 | if test -d conf$$.dir; then |
511 | rm -f conf$$.dir/conf$$.file | |
512 | else | |
513 | rm -f conf$$.dir | |
ec6a6fbe AK |
514 | mkdir conf$$.dir 2>/dev/null |
515 | fi | |
516 | if (echo >conf$$.file) 2>/dev/null; then | |
517 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
518 | as_ln_s='ln -s' | |
519 | # ... but there are two gotchas: | |
520 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
521 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
522 | # In both cases, we have to default to `cp -p'. | |
523 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
524 | as_ln_s='cp -p' | |
525 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
526 | as_ln_s=ln | |
527 | else | |
ad6254c5 | 528 | as_ln_s='cp -p' |
ec6a6fbe | 529 | fi |
ad6254c5 AK |
530 | else |
531 | as_ln_s='cp -p' | |
532 | fi | |
7a197a62 AK |
533 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
534 | rmdir conf$$.dir 2>/dev/null | |
ad6254c5 AK |
535 | |
536 | if mkdir -p . 2>/dev/null; then | |
537 | as_mkdir_p=: | |
538 | else | |
8a2fc586 | 539 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
540 | as_mkdir_p=false |
541 | fi | |
542 | ||
25fbec5b AK |
543 | if test -x / >/dev/null 2>&1; then |
544 | as_test_x='test -x' | |
7a197a62 | 545 | else |
25fbec5b AK |
546 | if ls -dL / >/dev/null 2>&1; then |
547 | as_ls_L_option=L | |
548 | else | |
549 | as_ls_L_option= | |
550 | fi | |
551 | as_test_x=' | |
552 | eval sh -c '\'' | |
553 | if test -d "$1"; then | |
ec6a6fbe | 554 | test -d "$1/."; |
25fbec5b AK |
555 | else |
556 | case $1 in | |
ec6a6fbe | 557 | -*)set "./$1";; |
25fbec5b AK |
558 | esac; |
559 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
560 | ???[sx]*):;;*)false;;esac;fi | |
561 | '\'' sh | |
562 | ' | |
7a197a62 | 563 | fi |
25fbec5b | 564 | as_executable_p=$as_test_x |
ad6254c5 AK |
565 | |
566 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 567 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
568 | |
569 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 570 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
571 | |
572 | ||
ad6254c5 | 573 | |
7a197a62 | 574 | exec 7<&0 </dev/null 6>&1 |
ad6254c5 AK |
575 | |
576 | # Name of the host. | |
577 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
578 | # so uname gets run too. | |
579 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
580 | ||
ad6254c5 AK |
581 | # |
582 | # Initializations. | |
583 | # | |
795ca3e5 | 584 | ac_default_prefix=/usr/local |
7a197a62 | 585 | ac_clean_files= |
ad6254c5 | 586 | ac_config_libobj_dir=. |
7a197a62 | 587 | LIBOBJS= |
ad6254c5 AK |
588 | cross_compiling=no |
589 | subdirs= | |
590 | MFLAGS= | |
591 | MAKEFLAGS= | |
592 | SHELL=${CONFIG_SHELL-/bin/sh} | |
593 | ||
ad6254c5 AK |
594 | # Identity of this package. |
595 | PACKAGE_NAME= | |
596 | PACKAGE_TARNAME= | |
597 | PACKAGE_VERSION= | |
598 | PACKAGE_STRING= | |
599 | PACKAGE_BUGREPORT= | |
600 | ||
601 | ac_unique_file="lib/device/dev-cache.h" | |
602 | # Factoring default headers for most tests. | |
603 | ac_includes_default="\ | |
604 | #include <stdio.h> | |
25fbec5b | 605 | #ifdef HAVE_SYS_TYPES_H |
ad6254c5 AK |
606 | # include <sys/types.h> |
607 | #endif | |
25fbec5b | 608 | #ifdef HAVE_SYS_STAT_H |
ad6254c5 AK |
609 | # include <sys/stat.h> |
610 | #endif | |
25fbec5b | 611 | #ifdef STDC_HEADERS |
ad6254c5 AK |
612 | # include <stdlib.h> |
613 | # include <stddef.h> | |
614 | #else | |
25fbec5b | 615 | # ifdef HAVE_STDLIB_H |
ad6254c5 AK |
616 | # include <stdlib.h> |
617 | # endif | |
618 | #endif | |
25fbec5b AK |
619 | #ifdef HAVE_STRING_H |
620 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
ad6254c5 AK |
621 | # include <memory.h> |
622 | # endif | |
623 | # include <string.h> | |
624 | #endif | |
25fbec5b | 625 | #ifdef HAVE_STRINGS_H |
ad6254c5 AK |
626 | # include <strings.h> |
627 | #endif | |
25fbec5b | 628 | #ifdef HAVE_INTTYPES_H |
ad6254c5 | 629 | # include <inttypes.h> |
ad6254c5 | 630 | #endif |
25fbec5b | 631 | #ifdef HAVE_STDINT_H |
7a197a62 AK |
632 | # include <stdint.h> |
633 | #endif | |
25fbec5b | 634 | #ifdef HAVE_UNISTD_H |
ad6254c5 AK |
635 | # include <unistd.h> |
636 | #endif" | |
637 | ||
795ca3e5 | 638 | ac_default_prefix=/usr |
ec6a6fbe | 639 | ac_subst_vars='LTLIBOBJS |
68f2de6d | 640 | usrsbindir |
ec6a6fbe | 641 | usrlibdir |
a5f46f6a AK |
642 | udevdir |
643 | udev_prefix | |
ec6a6fbe AK |
644 | tmpdir |
645 | kernelvsn | |
646 | missingkernel | |
647 | kerneldir | |
648 | interface | |
23b059e7 | 649 | WRITE_INSTALL |
0878503f | 650 | UDEV_SYNC |
a5f46f6a | 651 | UDEV_RULES |
f7f0854e | 652 | UDEV_PC |
db724a44 | 653 | UDEV_LIBS |
54b362f9 | 654 | TESTING |
ec6a6fbe AK |
655 | STATIC_LINK |
656 | STATICDIR | |
657 | SNAPSHOTS | |
f7f0854e | 658 | SELINUX_PC |
e1b8a236 | 659 | SELINUX_LIBS |
539f4a77 | 660 | READLINE_LIBS |
f30875db | 661 | PTHREAD_LIBS |
ec6a6fbe AK |
662 | POOL |
663 | PKGCONFIG | |
8fea97b7 | 664 | REPLICATORS |
ec6a6fbe AK |
665 | MIRRORS |
666 | LVM_RELEASE_DATE | |
667 | LVM_RELEASE | |
668 | LVM_PATCHLEVEL | |
669 | LVM_MINOR | |
670 | LVM_MAJOR | |
bf456146 | 671 | LVM_LIBAPI |
ec6a6fbe | 672 | LVM_VERSION |
ec6a6fbe AK |
673 | LVM1_FALLBACK |
674 | LVM1 | |
675 | LOCALEDIR | |
676 | LIB_SUFFIX | |
677 | LDDEPS | |
678 | JOBS | |
679 | INTL_PACKAGE | |
680 | INTL | |
ec6a6fbe AK |
681 | HAVE_REALTIME |
682 | HAVE_LIBDL | |
ec6a6fbe AK |
683 | FSADM |
684 | DM_LIB_PATCHLEVEL | |
685 | DM_LIB_VERSION | |
686 | DM_IOCTLS | |
687 | DM_DEVICE_UID | |
688 | DM_DEVICE_MODE | |
689 | DM_DEVICE_GID | |
690 | DM_COMPAT | |
d1e8046f | 691 | DMEVENTD_PATH |
ec6a6fbe | 692 | DMEVENTD |
19a2c6e0 | 693 | DL_LIBS |
ec6a6fbe | 694 | DEVMAPPER |
b1f08e51 | 695 | DEFAULT_RUN_DIR |
3399ae32 | 696 | DEFAULT_LOCK_DIR |
fea55602 | 697 | DEFAULT_DATA_ALIGNMENT |
3399ae32 AK |
698 | DEFAULT_CACHE_SUBDIR |
699 | DEFAULT_BACKUP_SUBDIR | |
700 | DEFAULT_ARCHIVE_SUBDIR | |
701 | DEFAULT_SYS_DIR | |
ec6a6fbe AK |
702 | DEBUG |
703 | COPTIMISE_FLAG | |
e2997b73 | 704 | CONFDIR |
ec6a6fbe AK |
705 | CMDLIB |
706 | CLVMD | |
707 | CLUSTER | |
708 | CLDWHOLEARCHIVE | |
709 | CLDNOWHOLEARCHIVE | |
710 | CLDFLAGS | |
711 | BUILD_DMEVENTD | |
66fd4529 | 712 | BUILD_CMIRRORD |
572fefeb | 713 | APPLIB |
ec6a6fbe AK |
714 | MODPROBE_CMD |
715 | MSGFMT | |
716 | LVM2CMD_LIB | |
572fefeb | 717 | LVM2APP_LIB |
54b362f9 AK |
718 | VALGRIND |
719 | RUBY19 | |
fd4728e1 | 720 | GENPNG |
ec6a6fbe AK |
721 | GENHTML |
722 | LCOV | |
90c80887 AK |
723 | SACKPT_LIBS |
724 | SACKPT_CFLAGS | |
a946372e AK |
725 | DLM_LIBS |
726 | DLM_CFLAGS | |
e2997b73 AK |
727 | CPG_LIBS |
728 | CPG_CFLAGS | |
729 | CONFDB_LIBS | |
730 | CONFDB_CFLAGS | |
a946372e AK |
731 | SALCK_LIBS |
732 | SALCK_CFLAGS | |
e2997b73 AK |
733 | QUORUM_LIBS |
734 | QUORUM_CFLAGS | |
a946372e AK |
735 | COROSYNC_LIBS |
736 | COROSYNC_CFLAGS | |
737 | CMAN_LIBS | |
738 | CMAN_CFLAGS | |
739 | GULM_LIBS | |
740 | GULM_CFLAGS | |
741 | CCS_LIBS | |
742 | CCS_CFLAGS | |
743 | PKGCONFIGINIT_LIBS | |
744 | PKGCONFIGINIT_CFLAGS | |
e2997b73 | 745 | PKG_CONFIG |
ec6a6fbe AK |
746 | POW_LIB |
747 | LIBOBJS | |
748 | ALLOCA | |
749 | CSCOPE_CMD | |
750 | CFLOW_CMD | |
751 | RANLIB | |
752 | MKDIR_P | |
753 | SET_MAKE | |
754 | LN_S | |
755 | INSTALL_DATA | |
756 | INSTALL_SCRIPT | |
757 | INSTALL_PROGRAM | |
758 | EGREP | |
759 | GREP | |
760 | CPP | |
761 | OBJEXT | |
762 | EXEEXT | |
763 | ac_ct_CC | |
764 | CPPFLAGS | |
765 | LDFLAGS | |
766 | CFLAGS | |
767 | CC | |
768 | AWK | |
769 | SED | |
770 | target_os | |
771 | target_vendor | |
772 | target_cpu | |
773 | target | |
774 | host_os | |
775 | host_vendor | |
776 | host_cpu | |
777 | host | |
778 | build_os | |
779 | build_vendor | |
780 | build_cpu | |
781 | build | |
782 | target_alias | |
783 | host_alias | |
784 | build_alias | |
785 | LIBS | |
786 | ECHO_T | |
787 | ECHO_N | |
788 | ECHO_C | |
789 | DEFS | |
790 | mandir | |
791 | localedir | |
792 | libdir | |
793 | psdir | |
794 | pdfdir | |
795 | dvidir | |
796 | htmldir | |
797 | infodir | |
798 | docdir | |
799 | oldincludedir | |
800 | includedir | |
801 | localstatedir | |
802 | sharedstatedir | |
803 | sysconfdir | |
804 | datadir | |
805 | datarootdir | |
806 | libexecdir | |
807 | sbindir | |
808 | bindir | |
809 | program_transform_name | |
810 | prefix | |
811 | exec_prefix | |
812 | PACKAGE_BUGREPORT | |
813 | PACKAGE_STRING | |
814 | PACKAGE_VERSION | |
815 | PACKAGE_TARNAME | |
816 | PACKAGE_NAME | |
817 | PATH_SEPARATOR | |
818 | SHELL' | |
ad6254c5 | 819 | ac_subst_files='' |
ec6a6fbe AK |
820 | ac_user_opts=' |
821 | enable_option_checking | |
822 | enable_static_link | |
823 | with_user | |
824 | with_group | |
825 | with_device_uid | |
826 | with_device_gid | |
827 | with_device_mode | |
828 | enable_lvm1_fallback | |
829 | with_lvm1 | |
830 | with_pool | |
831 | with_cluster | |
832 | with_snapshots | |
833 | with_mirrors | |
8fea97b7 | 834 | with_replicators |
ec6a6fbe AK |
835 | enable_readline |
836 | enable_realtime | |
837 | with_clvmd | |
8c4e8a18 | 838 | with_clvmd_pidfile |
66fd4529 AK |
839 | enable_cmirrord |
840 | with_cmirrord_pidfile | |
ec6a6fbe AK |
841 | enable_debug |
842 | with_optimisation | |
843 | enable_profiling | |
54b362f9 | 844 | enable_testing |
d1e8046f | 845 | enable_valgrind_pool |
ec6a6fbe | 846 | enable_devmapper |
a5f46f6a AK |
847 | enable_udev_sync |
848 | enable_udev_rules | |
ec6a6fbe | 849 | enable_compat |
95eaa683 | 850 | enable_units_compat |
ec6a6fbe AK |
851 | enable_ioctl |
852 | enable_o_direct | |
572fefeb | 853 | enable_applib |
ec6a6fbe AK |
854 | enable_cmdlib |
855 | enable_pkgconfig | |
23b059e7 | 856 | enable_write_install |
ec6a6fbe AK |
857 | enable_fsadm |
858 | enable_dmeventd | |
859 | enable_selinux | |
860 | enable_nls | |
861 | with_localedir | |
862 | with_confdir | |
863 | with_staticdir | |
864 | with_usrlibdir | |
865 | with_usrsbindir | |
a5f46f6a | 866 | with_udev_prefix |
78ce7acc | 867 | with_udevdir |
ec6a6fbe AK |
868 | with_dmeventd_pidfile |
869 | with_dmeventd_path | |
8bae0a1e | 870 | with_default_run_dir |
3399ae32 AK |
871 | with_default_system_dir |
872 | with_default_archive_subdir | |
873 | with_default_backup_subdir | |
874 | with_default_cache_subdir | |
875 | with_default_locking_dir | |
fea55602 | 876 | with_default_data_alignment |
ec6a6fbe AK |
877 | with_interface |
878 | ' | |
7a197a62 AK |
879 | ac_precious_vars='build_alias |
880 | host_alias | |
881 | target_alias | |
882 | CC | |
883 | CFLAGS | |
884 | LDFLAGS | |
25fbec5b | 885 | LIBS |
7a197a62 | 886 | CPPFLAGS |
e2997b73 AK |
887 | CPP |
888 | PKG_CONFIG | |
a946372e AK |
889 | PKGCONFIGINIT_CFLAGS |
890 | PKGCONFIGINIT_LIBS | |
891 | CCS_CFLAGS | |
892 | CCS_LIBS | |
893 | GULM_CFLAGS | |
894 | GULM_LIBS | |
895 | CMAN_CFLAGS | |
896 | CMAN_LIBS | |
897 | COROSYNC_CFLAGS | |
898 | COROSYNC_LIBS | |
e2997b73 AK |
899 | QUORUM_CFLAGS |
900 | QUORUM_LIBS | |
a946372e AK |
901 | SALCK_CFLAGS |
902 | SALCK_LIBS | |
e2997b73 AK |
903 | CONFDB_CFLAGS |
904 | CONFDB_LIBS | |
905 | CPG_CFLAGS | |
a946372e AK |
906 | CPG_LIBS |
907 | DLM_CFLAGS | |
90c80887 AK |
908 | DLM_LIBS |
909 | SACKPT_CFLAGS | |
910 | SACKPT_LIBS' | |
7a197a62 | 911 | |
795ca3e5 AK |
912 | |
913 | # Initialize some variables set by options. | |
ad6254c5 AK |
914 | ac_init_help= |
915 | ac_init_version=false | |
ec6a6fbe AK |
916 | ac_unrecognized_opts= |
917 | ac_unrecognized_sep= | |
795ca3e5 AK |
918 | # The variables have the same names as the options, with |
919 | # dashes changed to underlines. | |
ad6254c5 | 920 | cache_file=/dev/null |
795ca3e5 | 921 | exec_prefix=NONE |
795ca3e5 | 922 | no_create= |
795ca3e5 AK |
923 | no_recursion= |
924 | prefix=NONE | |
925 | program_prefix=NONE | |
926 | program_suffix=NONE | |
927 | program_transform_name=s,x,x, | |
928 | silent= | |
929 | site= | |
930 | srcdir= | |
795ca3e5 AK |
931 | verbose= |
932 | x_includes=NONE | |
933 | x_libraries=NONE | |
ad6254c5 AK |
934 | |
935 | # Installation directory options. | |
936 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
937 | # and all the variables that are supposed to be based on exec_prefix | |
938 | # by default will actually change. | |
939 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 940 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
941 | bindir='${exec_prefix}/bin' |
942 | sbindir='${exec_prefix}/sbin' | |
943 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
944 | datarootdir='${prefix}/share' |
945 | datadir='${datarootdir}' | |
795ca3e5 AK |
946 | sysconfdir='${prefix}/etc' |
947 | sharedstatedir='${prefix}/com' | |
948 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
949 | includedir='${prefix}/include' |
950 | oldincludedir='/usr/include' | |
7a197a62 AK |
951 | docdir='${datarootdir}/doc/${PACKAGE}' |
952 | infodir='${datarootdir}/info' | |
953 | htmldir='${docdir}' | |
954 | dvidir='${docdir}' | |
955 | pdfdir='${docdir}' | |
956 | psdir='${docdir}' | |
957 | libdir='${exec_prefix}/lib' | |
958 | localedir='${datarootdir}/locale' | |
959 | mandir='${datarootdir}/man' | |
795ca3e5 | 960 | |
795ca3e5 | 961 | ac_prev= |
7a197a62 | 962 | ac_dashdash= |
795ca3e5 AK |
963 | for ac_option |
964 | do | |
795ca3e5 AK |
965 | # If the previous option needs an argument, assign it. |
966 | if test -n "$ac_prev"; then | |
7a197a62 | 967 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
968 | ac_prev= |
969 | continue | |
970 | fi | |
971 | ||
7a197a62 AK |
972 | case $ac_option in |
973 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
974 | *) ac_optarg=yes ;; | |
975 | esac | |
795ca3e5 AK |
976 | |
977 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
978 | ||
7a197a62 AK |
979 | case $ac_dashdash$ac_option in |
980 | --) | |
981 | ac_dashdash=yes ;; | |
795ca3e5 AK |
982 | |
983 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
984 | ac_prev=bindir ;; | |
985 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 986 | bindir=$ac_optarg ;; |
795ca3e5 AK |
987 | |
988 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 989 | ac_prev=build_alias ;; |
795ca3e5 | 990 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 991 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
992 | |
993 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
994 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
995 | ac_prev=cache_file ;; | |
996 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
997 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
998 | cache_file=$ac_optarg ;; |
999 | ||
1000 | --config-cache | -C) | |
1001 | cache_file=config.cache ;; | |
795ca3e5 | 1002 | |
7a197a62 | 1003 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 1004 | ac_prev=datadir ;; |
7a197a62 | 1005 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 1006 | datadir=$ac_optarg ;; |
795ca3e5 | 1007 | |
7a197a62 AK |
1008 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1009 | | --dataroo | --dataro | --datar) | |
1010 | ac_prev=datarootdir ;; | |
1011 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1012 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1013 | datarootdir=$ac_optarg ;; | |
1014 | ||
795ca3e5 | 1015 | -disable-* | --disable-*) |
ec6a6fbe | 1016 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 1017 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1018 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1019 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 1020 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1021 | ac_useropt_orig=$ac_useropt |
1022 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1023 | case $ac_user_opts in | |
1024 | *" | |
1025 | "enable_$ac_useropt" | |
1026 | "*) ;; | |
1027 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1028 | ac_unrecognized_sep=', ';; | |
1029 | esac | |
1030 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
1031 | |
1032 | -docdir | --docdir | --docdi | --doc | --do) | |
1033 | ac_prev=docdir ;; | |
1034 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1035 | docdir=$ac_optarg ;; | |
1036 | ||
1037 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1038 | ac_prev=dvidir ;; | |
1039 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1040 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1041 | |
1042 | -enable-* | --enable-*) | |
ec6a6fbe | 1043 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1044 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1045 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1046 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 1047 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1048 | ac_useropt_orig=$ac_useropt |
1049 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1050 | case $ac_user_opts in | |
1051 | *" | |
1052 | "enable_$ac_useropt" | |
1053 | "*) ;; | |
1054 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1055 | ac_unrecognized_sep=', ';; | |
1056 | esac | |
1057 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1058 | |
1059 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1060 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1061 | | --exec | --exe | --ex) | |
1062 | ac_prev=exec_prefix ;; | |
1063 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1064 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1065 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1066 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1067 | |
1068 | -gas | --gas | --ga | --g) | |
1069 | # Obsolete; use --with-gas. | |
1070 | with_gas=yes ;; | |
1071 | ||
ad6254c5 AK |
1072 | -help | --help | --hel | --he | -h) |
1073 | ac_init_help=long ;; | |
1074 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1075 | ac_init_help=recursive ;; | |
1076 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1077 | ac_init_help=short ;; | |
795ca3e5 AK |
1078 | |
1079 | -host | --host | --hos | --ho) | |
ad6254c5 | 1080 | ac_prev=host_alias ;; |
795ca3e5 | 1081 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1082 | host_alias=$ac_optarg ;; |
795ca3e5 | 1083 | |
7a197a62 AK |
1084 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1085 | ac_prev=htmldir ;; | |
1086 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1087 | | --ht=*) | |
1088 | htmldir=$ac_optarg ;; | |
1089 | ||
795ca3e5 AK |
1090 | -includedir | --includedir | --includedi | --included | --include \ |
1091 | | --includ | --inclu | --incl | --inc) | |
1092 | ac_prev=includedir ;; | |
1093 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1094 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1095 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1096 | |
1097 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1098 | ac_prev=infodir ;; | |
1099 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1100 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1101 | |
1102 | -libdir | --libdir | --libdi | --libd) | |
1103 | ac_prev=libdir ;; | |
1104 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1105 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1106 | |
1107 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1108 | | --libexe | --libex | --libe) | |
1109 | ac_prev=libexecdir ;; | |
1110 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1111 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1112 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1113 | |
7a197a62 AK |
1114 | -localedir | --localedir | --localedi | --localed | --locale) |
1115 | ac_prev=localedir ;; | |
1116 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1117 | localedir=$ac_optarg ;; | |
1118 | ||
795ca3e5 | 1119 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1120 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1121 | ac_prev=localstatedir ;; |
1122 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1123 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1124 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1125 | |
1126 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1127 | ac_prev=mandir ;; | |
1128 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1129 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1130 | |
1131 | -nfp | --nfp | --nf) | |
1132 | # Obsolete; use --without-fp. | |
1133 | with_fp=no ;; | |
1134 | ||
1135 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1136 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1137 | no_create=yes ;; |
1138 | ||
1139 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1140 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1141 | no_recursion=yes ;; | |
1142 | ||
1143 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1144 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1145 | | --oldin | --oldi | --old | --ol | --o) | |
1146 | ac_prev=oldincludedir ;; | |
1147 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1148 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1149 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1150 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1151 | |
1152 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1153 | ac_prev=prefix ;; | |
1154 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1155 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1156 | |
1157 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1158 | | --program-pre | --program-pr | --program-p) | |
1159 | ac_prev=program_prefix ;; | |
1160 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1161 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1162 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1163 | |
1164 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1165 | | --program-suf | --program-su | --program-s) | |
1166 | ac_prev=program_suffix ;; | |
1167 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1168 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1169 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1170 | |
1171 | -program-transform-name | --program-transform-name \ | |
1172 | | --program-transform-nam | --program-transform-na \ | |
1173 | | --program-transform-n | --program-transform- \ | |
1174 | | --program-transform | --program-transfor \ | |
1175 | | --program-transfo | --program-transf \ | |
1176 | | --program-trans | --program-tran \ | |
1177 | | --progr-tra | --program-tr | --program-t) | |
1178 | ac_prev=program_transform_name ;; | |
1179 | -program-transform-name=* | --program-transform-name=* \ | |
1180 | | --program-transform-nam=* | --program-transform-na=* \ | |
1181 | | --program-transform-n=* | --program-transform-=* \ | |
1182 | | --program-transform=* | --program-transfor=* \ | |
1183 | | --program-transfo=* | --program-transf=* \ | |
1184 | | --program-trans=* | --program-tran=* \ | |
1185 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1186 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1187 | |
7a197a62 AK |
1188 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1189 | ac_prev=pdfdir ;; | |
1190 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1191 | pdfdir=$ac_optarg ;; | |
1192 | ||
1193 | -psdir | --psdir | --psdi | --psd | --ps) | |
1194 | ac_prev=psdir ;; | |
1195 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1196 | psdir=$ac_optarg ;; | |
1197 | ||
795ca3e5 AK |
1198 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1199 | | -silent | --silent | --silen | --sile | --sil) | |
1200 | silent=yes ;; | |
1201 | ||
1202 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1203 | ac_prev=sbindir ;; | |
1204 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1205 | | --sbi=* | --sb=*) | |
ad6254c5 | 1206 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1207 | |
1208 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1209 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1210 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1211 | | --sha | --sh) | |
1212 | ac_prev=sharedstatedir ;; | |
1213 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1214 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1215 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1216 | | --sha=* | --sh=*) | |
ad6254c5 | 1217 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1218 | |
1219 | -site | --site | --sit) | |
1220 | ac_prev=site ;; | |
1221 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1222 | site=$ac_optarg ;; |
795ca3e5 AK |
1223 | |
1224 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1225 | ac_prev=srcdir ;; | |
1226 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1227 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1228 | |
1229 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1230 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1231 | ac_prev=sysconfdir ;; | |
1232 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1233 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1234 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1235 | |
1236 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1237 | ac_prev=target_alias ;; |
795ca3e5 | 1238 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1239 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1240 | |
1241 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1242 | verbose=yes ;; | |
1243 | ||
ad6254c5 AK |
1244 | -version | --version | --versio | --versi | --vers | -V) |
1245 | ac_init_version=: ;; | |
795ca3e5 AK |
1246 | |
1247 | -with-* | --with-*) | |
ec6a6fbe | 1248 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1249 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1250 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1251 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1252 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1253 | ac_useropt_orig=$ac_useropt |
1254 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1255 | case $ac_user_opts in | |
1256 | *" | |
1257 | "with_$ac_useropt" | |
1258 | "*) ;; | |
1259 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1260 | ac_unrecognized_sep=', ';; | |
1261 | esac | |
1262 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1263 | |
1264 | -without-* | --without-*) | |
ec6a6fbe | 1265 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1266 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1267 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1268 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1269 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1270 | ac_useropt_orig=$ac_useropt |
1271 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1272 | case $ac_user_opts in | |
1273 | *" | |
1274 | "with_$ac_useropt" | |
1275 | "*) ;; | |
1276 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1277 | ac_unrecognized_sep=', ';; | |
1278 | esac | |
1279 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1280 | |
1281 | --x) | |
1282 | # Obsolete; use --with-x. | |
1283 | with_x=yes ;; | |
1284 | ||
1285 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1286 | | --x-incl | --x-inc | --x-in | --x-i) | |
1287 | ac_prev=x_includes ;; | |
1288 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1289 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1290 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1291 | |
1292 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1293 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1294 | ac_prev=x_libraries ;; | |
1295 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1296 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1297 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1298 | |
ec6a6fbe | 1299 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1300 | Try \`$0 --help' for more information." >&2 |
1301 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1302 | ;; |
1303 | ||
ad6254c5 AK |
1304 | *=*) |
1305 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1306 | # Reject names that are not valid shell variable names. | |
1307 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
ec6a6fbe | 1308 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1309 | { (exit 1); exit 1; }; } |
7a197a62 | 1310 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1311 | export $ac_envvar ;; |
1312 | ||
795ca3e5 | 1313 | *) |
ad6254c5 | 1314 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1315 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1316 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1317 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1318 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1319 | ;; |
1320 | ||
1321 | esac | |
1322 | done | |
1323 | ||
1324 | if test -n "$ac_prev"; then | |
ad6254c5 | 1325 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
ec6a6fbe | 1326 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1327 | { (exit 1); exit 1; }; } |
795ca3e5 | 1328 | fi |
795ca3e5 | 1329 | |
ec6a6fbe AK |
1330 | if test -n "$ac_unrecognized_opts"; then |
1331 | case $enable_option_checking in | |
1332 | no) ;; | |
1333 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1334 | { (exit 1); exit 1; }; } ;; | |
1335 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1336 | esac | |
1337 | fi | |
1338 | ||
1339 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1340 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1341 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1342 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1343 | libdir localedir mandir | |
795ca3e5 | 1344 | do |
7a197a62 | 1345 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1346 | # Remove trailing slashes. |
1347 | case $ac_val in | |
1348 | */ ) | |
1349 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1350 | eval $ac_var=\$ac_val;; | |
1351 | esac | |
1352 | # Be sure to have absolute directory names. | |
ad6254c5 | 1353 | case $ac_val in |
7a197a62 AK |
1354 | [\\/$]* | ?:[\\/]* ) continue;; |
1355 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1356 | esac |
ec6a6fbe | 1357 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1358 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1359 | done |
1360 | ||
ad6254c5 AK |
1361 | # There might be people who depend on the old broken behavior: `$host' |
1362 | # used to hold the argument of --host etc. | |
1363 | # FIXME: To remove some day. | |
1364 | build=$build_alias | |
1365 | host=$host_alias | |
1366 | target=$target_alias | |
1367 | ||
1368 | # FIXME: To remove some day. | |
1369 | if test "x$host_alias" != x; then | |
1370 | if test "x$build_alias" = x; then | |
1371 | cross_compiling=maybe | |
ec6a6fbe | 1372 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1373 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1374 | elif test "x$build_alias" != "x$host_alias"; then | |
1375 | cross_compiling=yes | |
1376 | fi | |
1377 | fi | |
8106cdd5 | 1378 | |
ad6254c5 AK |
1379 | ac_tool_prefix= |
1380 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1381 | ||
1382 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1383 | |
795ca3e5 | 1384 | |
7a197a62 AK |
1385 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1386 | ac_ls_di=`ls -di .` && | |
1387 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
ec6a6fbe | 1388 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
7a197a62 AK |
1389 | { (exit 1); exit 1; }; } |
1390 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
ec6a6fbe | 1391 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1392 | { (exit 1); exit 1; }; } |
1393 | ||
1394 | ||
795ca3e5 AK |
1395 | # Find the source files, if location was not specified. |
1396 | if test -z "$srcdir"; then | |
1397 | ac_srcdir_defaulted=yes | |
7a197a62 | 1398 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1399 | ac_confdir=`$as_dirname -- "$as_myself" || |
1400 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1401 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1402 | X"$as_myself" : 'X\(//\)$' \| \ | |
1403 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1404 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1405 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1406 | s//\1/ | |
1407 | q | |
1408 | } | |
1409 | /^X\(\/\/\)[^/].*/{ | |
1410 | s//\1/ | |
1411 | q | |
1412 | } | |
1413 | /^X\(\/\/\)$/{ | |
1414 | s//\1/ | |
1415 | q | |
1416 | } | |
1417 | /^X\(\/\).*/{ | |
1418 | s//\1/ | |
1419 | q | |
1420 | } | |
1421 | s/.*/./; q'` | |
795ca3e5 | 1422 | srcdir=$ac_confdir |
7a197a62 | 1423 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1424 | srcdir=.. |
1425 | fi | |
1426 | else | |
1427 | ac_srcdir_defaulted=no | |
1428 | fi | |
7a197a62 AK |
1429 | if test ! -r "$srcdir/$ac_unique_file"; then |
1430 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
ec6a6fbe | 1431 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1432 | { (exit 1); exit 1; }; } |
795ca3e5 | 1433 | fi |
7a197a62 AK |
1434 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1435 | ac_abs_confdir=`( | |
ec6a6fbe | 1436 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1437 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1438 | pwd)` |
1439 | # When building in place, set srcdir=. | |
1440 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1441 | srcdir=. | |
1442 | fi | |
1443 | # Remove unnecessary trailing slashes from srcdir. | |
1444 | # Double slashes in file names in object file debugging info | |
1445 | # mess up M-x gdb in Emacs. | |
1446 | case $srcdir in | |
1447 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1448 | esac | |
1449 | for ac_var in $ac_precious_vars; do | |
1450 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1451 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1452 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1453 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1454 | done | |
ad6254c5 AK |
1455 | |
1456 | # | |
1457 | # Report the --help message. | |
1458 | # | |
1459 | if test "$ac_init_help" = "long"; then | |
1460 | # Omit some internal or obsolete options to make the list less imposing. | |
1461 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1462 | cat <<_ACEOF | |
1463 | \`configure' configures this package to adapt to many kinds of systems. | |
1464 | ||
1465 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1466 | ||
1467 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1468 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1469 | ||
1470 | Defaults for the options are specified in brackets. | |
1471 | ||
1472 | Configuration: | |
1473 | -h, --help display this help and exit | |
1474 | --help=short display options specific to this package | |
1475 | --help=recursive display the short help of all the included packages | |
1476 | -V, --version display version information and exit | |
1477 | -q, --quiet, --silent do not print \`checking...' messages | |
1478 | --cache-file=FILE cache test results in FILE [disabled] | |
1479 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1480 | -n, --no-create do not create output files | |
1481 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1482 | ||
ad6254c5 AK |
1483 | Installation directories: |
1484 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1485 | [$ac_default_prefix] |
ad6254c5 | 1486 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1487 | [PREFIX] |
ad6254c5 AK |
1488 | |
1489 | By default, \`make install' will install all the files in | |
1490 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1491 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1492 | for instance \`--prefix=\$HOME'. | |
1493 | ||
1494 | For better control, use the options below. | |
1495 | ||
1496 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1497 | --bindir=DIR user executables [EPREFIX/bin] |
1498 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1499 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1500 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1501 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1502 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1503 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1504 | --includedir=DIR C header files [PREFIX/include] | |
1505 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1506 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1507 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1508 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1509 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1510 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1511 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1512 | --htmldir=DIR html documentation [DOCDIR] | |
1513 | --dvidir=DIR dvi documentation [DOCDIR] | |
1514 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1515 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1516 | _ACEOF |
1517 | ||
1518 | cat <<\_ACEOF | |
1519 | ||
1520 | System types: | |
1521 | --build=BUILD configure for building on BUILD [guessed] | |
1522 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1523 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1524 | _ACEOF | |
1525 | fi | |
1526 | ||
1527 | if test -n "$ac_init_help"; then | |
1528 | ||
1529 | cat <<\_ACEOF | |
1530 | ||
1531 | Optional Features: | |
ec6a6fbe | 1532 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1533 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1534 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
71082be4 ZK |
1535 | --enable-static_link use this to link the tools to their libraries |
1536 | statically (default is dynamic linking | |
1537 | --enable-lvm1_fallback use this to fall back and use LVM1 binaries if | |
ad6254c5 | 1538 | device-mapper is missing from the kernel |
71082be4 ZK |
1539 | --disable-readline disable readline support |
1540 | --enable-realtime enable realtime clock support | |
1541 | --enable-cmirrord enable the cluster mirror log daemon | |
1542 | --enable-debug enable debugging | |
1543 | --enable-profiling gather gcov profiling data | |
54b362f9 | 1544 | --enable-testing enable testing targets in the makefile |
d1e8046f | 1545 | --enable-valgrind-pool enable valgrind awareness of pools |
71082be4 ZK |
1546 | --disable-devmapper disable LVM2 device-mapper interaction |
1547 | --enable-udev_sync enable synchronisation with udev processing | |
1548 | --enable-udev_rules install rule files needed for udev synchronisation | |
1549 | --enable-compat enable support for old device-mapper versions | |
1550 | --enable-units-compat enable output compatibility with old versions that | |
1551 | that do not use KiB-style unit suffixes | |
1552 | --disable-driver disable calls to device-mapper in the kernel | |
1553 | --disable-o_direct disable O_DIRECT | |
1554 | --enable-applib build application library | |
1555 | --enable-cmdlib build shared command library | |
1556 | --enable-pkgconfig install pkgconfig support | |
1557 | --enable-write_install install user writable files | |
1558 | --disable-fsadm disable fsadm | |
1559 | --enable-dmeventd enable the device-mapper event daemon | |
1560 | --disable-selinux disable selinux support | |
1561 | --enable-nls enable Native Language Support | |
ad6254c5 AK |
1562 | |
1563 | Optional Packages: | |
1564 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1565 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
71082be4 ZK |
1566 | --with-user=USER set the owner of installed files [USER=] |
1567 | --with-group=GROUP set the group owner of installed files [GROUP=] | |
1568 | --with-device-uid=UID set the owner used for new device nodes [UID=0] | |
1569 | --with-device-gid=GID set the group used for new device nodes [GID=0] | |
1570 | --with-device-mode=MODE set the mode used for new device nodes [MODE=0600] | |
ad6254c5 | 1571 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
71082be4 | 1572 | [TYPE=internal] |
ad6254c5 | 1573 | --with-pool=TYPE GFS pool read-only support: internal/shared/none |
71082be4 ZK |
1574 | [TYPE=internal] |
1575 | --with-cluster=TYPE cluster LVM locking support: internal/shared/none | |
1576 | [TYPE=internal] | |
1577 | --with-snapshots=TYPE snapshot support: internal/shared/none | |
1578 | [TYPE=internal] | |
1579 | --with-mirrors=TYPE mirror support: internal/shared/none | |
1580 | [TYPE=internal] | |
1581 | --with-replicators=TYPE replicator support: internal/shared/none | |
1582 | [TYPE=none] | |
1583 | --with-clvmd=TYPE build cluster LVM Daemon | |
8c222979 | 1584 | The following cluster manager combinations are valid: |
a946372e AK |
1585 | * cman,gulm (RHEL4 or equivalent) |
1586 | * cman (RHEL5 or equivalent) | |
1587 | * cman,corosync,openais (or selection of them) | |
1091650a | 1588 | * singlenode (localhost only) |
a946372e AK |
1589 | * all (autodetect) |
1590 | * none (disable build) | |
71082be4 | 1591 | [TYPE=none] |
8c4e8a18 FDN |
1592 | --with-clvmd-pidfile=PATH |
1593 | clvmd pidfile [/var/run/clvmd.pid] | |
71082be4 ZK |
1594 | --with-cmirrord-pidfile=PATH |
1595 | cmirrord pidfile [/var/run/cmirrord.pid] | |
d0191583 | 1596 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
71082be4 ZK |
1597 | --with-localedir=DIR translation files in DIR [PREFIX/share/locale] |
1598 | --with-confdir=DIR configuration files in DIR [/etc] | |
1599 | --with-staticdir=DIR static binaries in DIR [EPREFIX/sbin] | |
1600 | --with-usrlibdir=DIR usrlib in DIR [PREFIX/lib] | |
1601 | --with-usrsbindir=DIR usrsbin executables in DIR [PREFIX/sbin] | |
1602 | --with-udev-prefix=UPREFIX | |
1603 | install udev rule files in UPREFIX [EPREFIX] | |
78ce7acc | 1604 | --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d] |
71082be4 ZK |
1605 | --with-dmeventd-pidfile=PATH |
1606 | dmeventd pidfile [/var/run/dmeventd.pid] | |
1607 | --with-dmeventd-path=PATH | |
1608 | dmeventd path [EPREFIX/sbin/dmeventd] | |
8bae0a1e | 1609 | --with-default-run-dir=DIR Default run directory [/var/run/lvm] |
71082be4 ZK |
1610 | --with-default-system-dir=DIR |
1611 | default LVM system directory [/etc/lvm] | |
1612 | --with-default-archive-subdir=SUBDIR | |
1613 | default metadata archive subdir [archive] | |
1614 | --with-default-backup-subdir=SUBDIR | |
1615 | default metadata backup subdir [backup] | |
1616 | --with-default-cache-subdir=SUBDIR | |
1617 | default metadata cache subdir [cache] | |
1618 | --with-default-locking-dir=DIR | |
1619 | default locking directory [/var/lock/lvm] | |
fea55602 DW |
1620 | --with-default-data-alignment=NUM |
1621 | set the default data alignment in MiB [1] | |
71082be4 | 1622 | --with-interface=IFACE choose kernel interface (ioctl) [ioctl] |
ad6254c5 AK |
1623 | |
1624 | Some influential environment variables: | |
1625 | CC C compiler command | |
1626 | CFLAGS C compiler flags | |
1627 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1628 | nonstandard directory <lib dir> | |
25fbec5b | 1629 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1630 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1631 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 | 1632 | CPP C preprocessor |
e2997b73 | 1633 | PKG_CONFIG path to pkg-config utility |
a946372e AK |
1634 | PKGCONFIGINIT_CFLAGS |
1635 | C compiler flags for PKGCONFIGINIT, overriding pkg-config | |
1636 | PKGCONFIGINIT_LIBS | |
1637 | linker flags for PKGCONFIGINIT, overriding pkg-config | |
1638 | CCS_CFLAGS C compiler flags for CCS, overriding pkg-config | |
1639 | CCS_LIBS linker flags for CCS, overriding pkg-config | |
1640 | GULM_CFLAGS C compiler flags for GULM, overriding pkg-config | |
1641 | GULM_LIBS linker flags for GULM, overriding pkg-config | |
1642 | CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config | |
1643 | CMAN_LIBS linker flags for CMAN, overriding pkg-config | |
1644 | COROSYNC_CFLAGS | |
1645 | C compiler flags for COROSYNC, overriding pkg-config | |
1646 | COROSYNC_LIBS | |
1647 | linker flags for COROSYNC, overriding pkg-config | |
e2997b73 AK |
1648 | QUORUM_CFLAGS |
1649 | C compiler flags for QUORUM, overriding pkg-config | |
1650 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
a946372e AK |
1651 | SALCK_CFLAGS |
1652 | C compiler flags for SALCK, overriding pkg-config | |
1653 | SALCK_LIBS linker flags for SALCK, overriding pkg-config | |
e2997b73 AK |
1654 | CONFDB_CFLAGS |
1655 | C compiler flags for CONFDB, overriding pkg-config | |
1656 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
1657 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1658 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
a946372e AK |
1659 | DLM_CFLAGS C compiler flags for DLM, overriding pkg-config |
1660 | DLM_LIBS linker flags for DLM, overriding pkg-config | |
90c80887 AK |
1661 | SACKPT_CFLAGS |
1662 | C compiler flags for SACKPT, overriding pkg-config | |
1663 | SACKPT_LIBS linker flags for SACKPT, overriding pkg-config | |
ad6254c5 AK |
1664 | |
1665 | Use these variables to override the choices made by `configure' or to help | |
1666 | it to find libraries and programs with nonstandard names/locations. | |
1667 | ||
1668 | _ACEOF | |
7a197a62 | 1669 | ac_status=$? |
ad6254c5 AK |
1670 | fi |
1671 | ||
1672 | if test "$ac_init_help" = "recursive"; then | |
1673 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1674 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1675 | test -d "$ac_dir" || |
1676 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1677 | continue | |
ad6254c5 AK |
1678 | ac_builddir=. |
1679 | ||
7a197a62 AK |
1680 | case "$ac_dir" in |
1681 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1682 | *) | |
ec6a6fbe | 1683 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1684 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1685 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1686 | case $ac_top_builddir_sub in |
1687 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1688 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1689 | esac ;; | |
1690 | esac | |
1691 | ac_abs_top_builddir=$ac_pwd | |
1692 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1693 | # for backward compatibility: | |
1694 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1695 | |
1696 | case $srcdir in | |
7a197a62 | 1697 | .) # We are building in place. |
ad6254c5 | 1698 | ac_srcdir=. |
7a197a62 AK |
1699 | ac_top_srcdir=$ac_top_builddir_sub |
1700 | ac_abs_top_srcdir=$ac_pwd ;; | |
1701 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1702 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1703 | ac_top_srcdir=$srcdir |
1704 | ac_abs_top_srcdir=$srcdir ;; | |
1705 | *) # Relative name. | |
1706 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1707 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1708 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1709 | esac |
7a197a62 AK |
1710 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1711 | ||
1712 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1713 | # Check for guested configure. | |
1714 | if test -f "$ac_srcdir/configure.gnu"; then | |
1715 | echo && | |
1716 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1717 | elif test -f "$ac_srcdir/configure"; then | |
1718 | echo && | |
1719 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1720 | else |
ec6a6fbe | 1721 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1722 | fi || ac_status=$? |
1723 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1724 | done |
1725 | fi | |
1726 | ||
7a197a62 | 1727 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1728 | if $ac_init_version; then |
1729 | cat <<\_ACEOF | |
7a197a62 | 1730 | configure |
ec6a6fbe | 1731 | generated by GNU Autoconf 2.63 |
ad6254c5 | 1732 | |
7a197a62 | 1733 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 1734 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
1735 | This configure script is free software; the Free Software Foundation |
1736 | gives unlimited permission to copy, distribute and modify it. | |
1737 | _ACEOF | |
7a197a62 | 1738 | exit |
ad6254c5 | 1739 | fi |
7a197a62 | 1740 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1741 | This file contains any messages produced by compilers while |
1742 | running configure, to aid debugging if configure makes a mistake. | |
1743 | ||
1744 | It was created by $as_me, which was | |
ec6a6fbe | 1745 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
1746 | |
1747 | $ $0 $@ | |
1748 | ||
1749 | _ACEOF | |
7a197a62 | 1750 | exec 5>>config.log |
ad6254c5 AK |
1751 | { |
1752 | cat <<_ASUNAME | |
1753 | ## --------- ## | |
1754 | ## Platform. ## | |
1755 | ## --------- ## | |
1756 | ||
1757 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1758 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1759 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1760 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1761 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1762 | ||
1763 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1764 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1765 | ||
1766 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1767 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1768 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1769 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1770 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1771 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1772 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1773 | ||
1774 | _ASUNAME | |
1775 | ||
1776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1777 | for as_dir in $PATH | |
1778 | do | |
1779 | IFS=$as_save_IFS | |
1780 | test -z "$as_dir" && as_dir=. | |
ec6a6fbe | 1781 | $as_echo "PATH: $as_dir" |
ad6254c5 | 1782 | done |
7a197a62 | 1783 | IFS=$as_save_IFS |
ad6254c5 AK |
1784 | |
1785 | } >&5 | |
1786 | ||
1787 | cat >&5 <<_ACEOF | |
1788 | ||
1789 | ||
1790 | ## ----------- ## | |
1791 | ## Core tests. ## | |
1792 | ## ----------- ## | |
1793 | ||
1794 | _ACEOF | |
1795 | ||
1796 | ||
1797 | # Keep a trace of the command line. | |
1798 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1799 | # Strip out --silent because we don't want to record it for future runs. | |
1800 | # Also quote any args containing shell meta-characters. | |
1801 | # Make two passes to allow for proper duplicate-argument suppression. | |
1802 | ac_configure_args= | |
1803 | ac_configure_args0= | |
1804 | ac_configure_args1= | |
ad6254c5 AK |
1805 | ac_must_keep_next=false |
1806 | for ac_pass in 1 2 | |
1807 | do | |
1808 | for ac_arg | |
1809 | do | |
1810 | case $ac_arg in | |
1811 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1812 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1813 | | -silent | --silent | --silen | --sile | --sil) | |
1814 | continue ;; | |
7a197a62 | 1815 | *\'*) |
ec6a6fbe | 1816 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1817 | esac |
1818 | case $ac_pass in | |
1819 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1820 | 2) | |
1821 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1822 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1823 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1824 | else |
8a2fc586 AK |
1825 | case $ac_arg in |
1826 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1827 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1828 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1829 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1830 | case "$ac_configure_args0 " in | |
1831 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1832 | esac | |
1833 | ;; | |
1834 | -* ) ac_must_keep_next=true ;; | |
1835 | esac | |
ad6254c5 | 1836 | fi |
7a197a62 | 1837 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1838 | ;; |
1839 | esac | |
1840 | done | |
1841 | done | |
1842 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1843 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1844 | ||
1845 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1846 | # config.log. We remove comments because anyway the quotes in there | |
1847 | # would cause problems or look ugly. | |
7a197a62 AK |
1848 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1849 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1850 | trap 'exit_status=$? |
1851 | # Save into config.log some information that might help in debugging. | |
1852 | { | |
1853 | echo | |
1854 | ||
1855 | cat <<\_ASBOX | |
1856 | ## ---------------- ## | |
1857 | ## Cache variables. ## | |
1858 | ## ---------------- ## | |
1859 | _ASBOX | |
1860 | echo | |
1861 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1862 | ( |
1863 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1864 | eval ac_val=\$$ac_var | |
1865 | case $ac_val in #( | |
1866 | *${as_nl}*) | |
1867 | case $ac_var in #( | |
ec6a6fbe AK |
1868 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1869 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
1870 | esac |
1871 | case $ac_var in #( | |
1872 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 1873 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
1874 | *) $as_unset $ac_var ;; |
1875 | esac ;; | |
1876 | esac | |
1877 | done | |
ad6254c5 | 1878 | (set) 2>&1 | |
7a197a62 AK |
1879 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1880 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1881 | sed -n \ |
7a197a62 AK |
1882 | "s/'\''/'\''\\\\'\'''\''/g; |
1883 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1884 | ;; #( | |
ad6254c5 | 1885 | *) |
7a197a62 | 1886 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1887 | ;; |
7a197a62 AK |
1888 | esac | |
1889 | sort | |
1890 | ) | |
ad6254c5 AK |
1891 | echo |
1892 | ||
1893 | cat <<\_ASBOX | |
1894 | ## ----------------- ## | |
1895 | ## Output variables. ## | |
1896 | ## ----------------- ## | |
1897 | _ASBOX | |
1898 | echo | |
1899 | for ac_var in $ac_subst_vars | |
1900 | do | |
7a197a62 AK |
1901 | eval ac_val=\$$ac_var |
1902 | case $ac_val in | |
ec6a6fbe | 1903 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1904 | esac |
ec6a6fbe | 1905 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1906 | done | sort |
1907 | echo | |
1908 | ||
1909 | if test -n "$ac_subst_files"; then | |
1910 | cat <<\_ASBOX | |
7a197a62 AK |
1911 | ## ------------------- ## |
1912 | ## File substitutions. ## | |
1913 | ## ------------------- ## | |
ad6254c5 AK |
1914 | _ASBOX |
1915 | echo | |
1916 | for ac_var in $ac_subst_files | |
1917 | do | |
7a197a62 AK |
1918 | eval ac_val=\$$ac_var |
1919 | case $ac_val in | |
ec6a6fbe | 1920 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1921 | esac |
ec6a6fbe | 1922 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1923 | done | sort |
1924 | echo | |
1925 | fi | |
1926 | ||
1927 | if test -s confdefs.h; then | |
1928 | cat <<\_ASBOX | |
1929 | ## ----------- ## | |
1930 | ## confdefs.h. ## | |
1931 | ## ----------- ## | |
1932 | _ASBOX | |
1933 | echo | |
7a197a62 | 1934 | cat confdefs.h |
ad6254c5 AK |
1935 | echo |
1936 | fi | |
1937 | test "$ac_signal" != 0 && | |
ec6a6fbe AK |
1938 | $as_echo "$as_me: caught signal $ac_signal" |
1939 | $as_echo "$as_me: exit $exit_status" | |
ad6254c5 | 1940 | } >&5 |
7a197a62 AK |
1941 | rm -f core *.core core.conftest.* && |
1942 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1943 | exit $exit_status |
7a197a62 | 1944 | ' 0 |
ad6254c5 AK |
1945 | for ac_signal in 1 2 13 15; do |
1946 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1947 | done | |
1948 | ac_signal=0 | |
1949 | ||
1950 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1951 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1952 | |
1953 | # Predefined preprocessor variables. | |
1954 | ||
1955 | cat >>confdefs.h <<_ACEOF | |
1956 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1957 | _ACEOF | |
1958 | ||
1959 | ||
1960 | cat >>confdefs.h <<_ACEOF | |
1961 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1962 | _ACEOF | |
1963 | ||
1964 | ||
1965 | cat >>confdefs.h <<_ACEOF | |
1966 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1967 | _ACEOF | |
8106cdd5 | 1968 | |
ad6254c5 AK |
1969 | |
1970 | cat >>confdefs.h <<_ACEOF | |
1971 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1972 | _ACEOF | |
1973 | ||
1974 | ||
1975 | cat >>confdefs.h <<_ACEOF | |
1976 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1977 | _ACEOF | |
1978 | ||
1979 | ||
1980 | # Let the site file select an alternate cache file if it wants to. | |
ec6a6fbe AK |
1981 | # Prefer an explicitly selected file to automatically selected ones. |
1982 | ac_site_file1=NONE | |
1983 | ac_site_file2=NONE | |
7a197a62 | 1984 | if test -n "$CONFIG_SITE"; then |
ec6a6fbe | 1985 | ac_site_file1=$CONFIG_SITE |
7a197a62 | 1986 | elif test "x$prefix" != xNONE; then |
ec6a6fbe AK |
1987 | ac_site_file1=$prefix/share/config.site |
1988 | ac_site_file2=$prefix/etc/config.site | |
7a197a62 | 1989 | else |
ec6a6fbe AK |
1990 | ac_site_file1=$ac_default_prefix/share/config.site |
1991 | ac_site_file2=$ac_default_prefix/etc/config.site | |
795ca3e5 | 1992 | fi |
ec6a6fbe | 1993 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7a197a62 | 1994 | do |
ec6a6fbe | 1995 | test "x$ac_site_file" = xNONE && continue |
795ca3e5 | 1996 | if test -r "$ac_site_file"; then |
ec6a6fbe AK |
1997 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1998 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1999 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
2000 | . "$ac_site_file" |
2001 | fi | |
2002 | done | |
2003 | ||
2004 | if test -r "$cache_file"; then | |
ad6254c5 AK |
2005 | # Some versions of bash will fail to source /dev/null (special |
2006 | # files actually), so we avoid doing that. | |
2007 | if test -f "$cache_file"; then | |
ec6a6fbe AK |
2008 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
2009 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 2010 | case $cache_file in |
7a197a62 AK |
2011 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2012 | *) . "./$cache_file";; | |
ad6254c5 AK |
2013 | esac |
2014 | fi | |
795ca3e5 | 2015 | else |
ec6a6fbe AK |
2016 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
2017 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
2018 | >$cache_file |
2019 | fi | |
2020 | ||
2021 | # Check that the precious variables saved in the cache have kept the same | |
2022 | # value. | |
2023 | ac_cache_corrupted=false | |
7a197a62 | 2024 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
2025 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2026 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
2027 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2028 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
2029 | case $ac_old_set,$ac_new_set in |
2030 | set,) | |
ec6a6fbe AK |
2031 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2032 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
2033 | ac_cache_corrupted=: ;; |
2034 | ,set) | |
ec6a6fbe AK |
2035 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
2036 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
2037 | ac_cache_corrupted=: ;; |
2038 | ,);; | |
2039 | *) | |
2040 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ec6a6fbe AK |
2041 | # differences in whitespace do not lead to failure. |
2042 | ac_old_val_w=`echo x $ac_old_val` | |
2043 | ac_new_val_w=`echo x $ac_new_val` | |
2044 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2045 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
2046 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2047 | ac_cache_corrupted=: | |
2048 | else | |
2049 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2050 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2051 | eval $ac_var=\$ac_old_val | |
2052 | fi | |
2053 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
2054 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2055 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
2056 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
ad6254c5 AK |
2057 | fi;; |
2058 | esac | |
2059 | # Pass precious variables to config.status. | |
2060 | if test "$ac_new_set" = set; then | |
2061 | case $ac_new_val in | |
ec6a6fbe | 2062 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
2063 | *) ac_arg=$ac_var=$ac_new_val ;; |
2064 | esac | |
2065 | case " $ac_configure_args " in | |
2066 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2067 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
2068 | esac | |
2069 | fi | |
2070 | done | |
2071 | if $ac_cache_corrupted; then | |
ec6a6fbe AK |
2072 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2073 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2074 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2075 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2076 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2077 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 2078 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
2079 | fi |
2080 | ||
ad6254c5 AK |
2081 | |
2082 | ||
2083 | ||
2084 | ||
2085 | ||
2086 | ||
2087 | ||
2088 | ||
2089 | ||
2090 | ||
2091 | ||
2092 | ||
2093 | ||
2094 | ||
2095 | ||
2096 | ||
7a197a62 AK |
2097 | ac_ext=c |
2098 | ac_cpp='$CPP $CPPFLAGS' | |
2099 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2100 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2101 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 2102 | |
795ca3e5 AK |
2103 | |
2104 | ||
7a197a62 | 2105 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
2106 | |
2107 | ||
80992638 | 2108 | ################################################################################ |
795ca3e5 | 2109 | ac_aux_dir= |
7a197a62 AK |
2110 | for ac_dir in autoconf "$srcdir"/autoconf; do |
2111 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
2112 | ac_aux_dir=$ac_dir |
2113 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2114 | break | |
7a197a62 | 2115 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
2116 | ac_aux_dir=$ac_dir |
2117 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2118 | break | |
7a197a62 | 2119 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
2120 | ac_aux_dir=$ac_dir |
2121 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2122 | break | |
795ca3e5 AK |
2123 | fi |
2124 | done | |
2125 | if test -z "$ac_aux_dir"; then | |
ec6a6fbe AK |
2126 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
2127 | $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 2128 | { (exit 1); exit 1; }; } |
795ca3e5 | 2129 | fi |
7a197a62 AK |
2130 | |
2131 | # These three variables are undocumented and unsupported, | |
2132 | # and are intended to be withdrawn in a future Autoconf release. | |
2133 | # They can cause serious problems if a builder's source tree is in a directory | |
2134 | # whose full name contains unusual characters. | |
2135 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2136 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2137 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2138 | ||
8ce0cbda AK |
2139 | |
2140 | ||
ad6254c5 | 2141 | ################################################################################ |
8ce0cbda | 2142 | # Make sure we can run config.sub. |
7a197a62 | 2143 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
ec6a6fbe AK |
2144 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2145 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
2146 | { (exit 1); exit 1; }; } |
2147 | ||
ec6a6fbe AK |
2148 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2149 | $as_echo_n "checking build system type... " >&6; } | |
ad6254c5 | 2150 | if test "${ac_cv_build+set}" = set; then |
ec6a6fbe | 2151 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2152 | else |
7a197a62 AK |
2153 | ac_build_alias=$build_alias |
2154 | test "x$ac_build_alias" = x && | |
2155 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2156 | test "x$ac_build_alias" = x && | |
ec6a6fbe AK |
2157 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2158 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 2159 | { (exit 1); exit 1; }; } |
7a197a62 | 2160 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
ec6a6fbe AK |
2161 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2162 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
2163 | { (exit 1); exit 1; }; } |
2164 | ||
2165 | fi | |
ec6a6fbe AK |
2166 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2167 | $as_echo "$ac_cv_build" >&6; } | |
7a197a62 AK |
2168 | case $ac_cv_build in |
2169 | *-*-*) ;; | |
ec6a6fbe AK |
2170 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2171 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
2172 | { (exit 1); exit 1; }; };; |
2173 | esac | |
ad6254c5 | 2174 | build=$ac_cv_build |
7a197a62 AK |
2175 | ac_save_IFS=$IFS; IFS='-' |
2176 | set x $ac_cv_build | |
2177 | shift | |
2178 | build_cpu=$1 | |
2179 | build_vendor=$2 | |
2180 | shift; shift | |
2181 | # Remember, the first character of IFS is used to create $*, | |
2182 | # except with old shells: | |
2183 | build_os=$* | |
2184 | IFS=$ac_save_IFS | |
2185 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2186 | |
2187 | ||
ec6a6fbe AK |
2188 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
2189 | $as_echo_n "checking host system type... " >&6; } | |
ad6254c5 | 2190 | if test "${ac_cv_host+set}" = set; then |
ec6a6fbe | 2191 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2192 | else |
7a197a62 AK |
2193 | if test "x$host_alias" = x; then |
2194 | ac_cv_host=$ac_cv_build | |
2195 | else | |
2196 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
ec6a6fbe AK |
2197 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2198 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 2199 | { (exit 1); exit 1; }; } |
7a197a62 | 2200 | fi |
ad6254c5 AK |
2201 | |
2202 | fi | |
ec6a6fbe AK |
2203 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2204 | $as_echo "$ac_cv_host" >&6; } | |
7a197a62 AK |
2205 | case $ac_cv_host in |
2206 | *-*-*) ;; | |
ec6a6fbe AK |
2207 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2208 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
2209 | { (exit 1); exit 1; }; };; |
2210 | esac | |
ad6254c5 | 2211 | host=$ac_cv_host |
7a197a62 AK |
2212 | ac_save_IFS=$IFS; IFS='-' |
2213 | set x $ac_cv_host | |
2214 | shift | |
2215 | host_cpu=$1 | |
2216 | host_vendor=$2 | |
2217 | shift; shift | |
2218 | # Remember, the first character of IFS is used to create $*, | |
2219 | # except with old shells: | |
2220 | host_os=$* | |
2221 | IFS=$ac_save_IFS | |
2222 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2223 | |
2224 | ||
ec6a6fbe AK |
2225 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
2226 | $as_echo_n "checking target system type... " >&6; } | |
ad6254c5 | 2227 | if test "${ac_cv_target+set}" = set; then |
ec6a6fbe | 2228 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2229 | else |
7a197a62 AK |
2230 | if test "x$target_alias" = x; then |
2231 | ac_cv_target=$ac_cv_host | |
2232 | else | |
2233 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
ec6a6fbe AK |
2234 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
2235 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 2236 | { (exit 1); exit 1; }; } |
7a197a62 | 2237 | fi |
8ce0cbda | 2238 | |
ad6254c5 | 2239 | fi |
ec6a6fbe AK |
2240 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2241 | $as_echo "$ac_cv_target" >&6; } | |
7a197a62 AK |
2242 | case $ac_cv_target in |
2243 | *-*-*) ;; | |
ec6a6fbe AK |
2244 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
2245 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
2246 | { (exit 1); exit 1; }; };; |
2247 | esac | |
ad6254c5 | 2248 | target=$ac_cv_target |
7a197a62 AK |
2249 | ac_save_IFS=$IFS; IFS='-' |
2250 | set x $ac_cv_target | |
2251 | shift | |
2252 | target_cpu=$1 | |
2253 | target_vendor=$2 | |
2254 | shift; shift | |
2255 | # Remember, the first character of IFS is used to create $*, | |
2256 | # except with old shells: | |
2257 | target_os=$* | |
2258 | IFS=$ac_save_IFS | |
2259 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 2260 | |
8ce0cbda | 2261 | |
ad6254c5 AK |
2262 | # The aliases save the names the user supplied, while $host etc. |
2263 | # will get canonicalized. | |
2264 | test -n "$target_alias" && | |
8ce0cbda AK |
2265 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2266 | NONENONEs,x,x, && | |
2267 | program_prefix=${target_alias}- | |
2268 | ||
8ce0cbda AK |
2269 | case "$host_os" in |
2270 | linux*) | |
7f54ef36 | 2271 | CFLAGS="$CFLAGS" |
8ce0cbda AK |
2272 | COPTIMISE_FLAG="-O2" |
2273 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2274 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2275 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2276 | LDDEPS="$LDDEPS .export.sym" | |
2277 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 2278 | LIB_SUFFIX=so |
8ce0cbda AK |
2279 | DEVMAPPER=yes |
2280 | ODIRECT=yes | |
d0191583 | 2281 | DM_IOCTLS=yes |
8ce0cbda AK |
2282 | SELINUX=yes |
2283 | CLUSTER=internal | |
93bd259b | 2284 | FSADM=yes |
d0191583 | 2285 | ;; |
8ce0cbda AK |
2286 | darwin*) |
2287 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2288 | COPTIMISE_FLAG="-O2" | |
2289 | CLDFLAGS="$CLDFLAGS" | |
2290 | CLDWHOLEARCHIVE="-all_load" | |
2291 | CLDNOWHOLEARCHIVE= | |
d0191583 | 2292 | LIB_SUFFIX=dylib |
a653923f | 2293 | DEVMAPPER=yes |
8ce0cbda | 2294 | ODIRECT=no |
d0191583 | 2295 | DM_IOCTLS=no |
8ce0cbda AK |
2296 | SELINUX=no |
2297 | CLUSTER=none | |
d0191583 JM |
2298 | FSADM=no |
2299 | ;; | |
8ce0cbda AK |
2300 | esac |
2301 | ||
80992638 | 2302 | ################################################################################ |
ec6a6fbe AK |
2303 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
2304 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5951ef33 | 2305 | if test "${ac_cv_path_SED+set}" = set; then |
ec6a6fbe | 2306 | $as_echo_n "(cached) " >&6 |
5951ef33 AK |
2307 | else |
2308 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2309 | for ac_i in 1 2 3 4 5 6 7; do | |
2310 | ac_script="$ac_script$as_nl$ac_script" | |
2311 | done | |
ec6a6fbe | 2312 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
5951ef33 | 2313 | $as_unset ac_script || ac_script= |
ec6a6fbe | 2314 | if test -z "$SED"; then |
5951ef33 | 2315 | ac_path_SED_found=false |
ec6a6fbe AK |
2316 | # Loop through the user's path and test for each of PROGNAME-LIST |
2317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5951ef33 AK |
2318 | for as_dir in $PATH |
2319 | do | |
2320 | IFS=$as_save_IFS | |
2321 | test -z "$as_dir" && as_dir=. | |
2322 | for ac_prog in sed gsed; do | |
ec6a6fbe AK |
2323 | for ac_exec_ext in '' $ac_executable_extensions; do |
2324 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2325 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2326 | # Check for GNU ac_path_SED and select it if it is found. | |
5951ef33 AK |
2327 | # Check for GNU $ac_path_SED |
2328 | case `"$ac_path_SED" --version 2>&1` in | |
2329 | *GNU*) | |
2330 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2331 | *) | |
2332 | ac_count=0 | |
ec6a6fbe | 2333 | $as_echo_n 0123456789 >"conftest.in" |
5951ef33 AK |
2334 | while : |
2335 | do | |
2336 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2337 | mv "conftest.tmp" "conftest.in" | |
2338 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 2339 | $as_echo '' >> "conftest.nl" |
5951ef33 AK |
2340 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
2341 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2342 | ac_count=`expr $ac_count + 1` | |
2343 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2344 | # Best one so far, save it but keep looking for a better one | |
2345 | ac_cv_path_SED="$ac_path_SED" | |
2346 | ac_path_SED_max=$ac_count | |
2347 | fi | |
2348 | # 10*(2^10) chars as input seems more than enough | |
2349 | test $ac_count -gt 10 && break | |
2350 | done | |
2351 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2352 | esac | |
2353 | ||
ec6a6fbe AK |
2354 | $ac_path_SED_found && break 3 |
2355 | done | |
5951ef33 AK |
2356 | done |
2357 | done | |
5951ef33 | 2358 | IFS=$as_save_IFS |
ec6a6fbe AK |
2359 | if test -z "$ac_cv_path_SED"; then |
2360 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
2361 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
5951ef33 | 2362 | { (exit 1); exit 1; }; } |
ec6a6fbe | 2363 | fi |
5951ef33 AK |
2364 | else |
2365 | ac_cv_path_SED=$SED | |
2366 | fi | |
2367 | ||
2368 | fi | |
ec6a6fbe AK |
2369 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
2370 | $as_echo "$ac_cv_path_SED" >&6; } | |
5951ef33 AK |
2371 | SED="$ac_cv_path_SED" |
2372 | rm -f conftest.sed | |
2373 | ||
ad6254c5 | 2374 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2375 | do |
ad6254c5 | 2376 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2377 | set dummy $ac_prog; ac_word=$2 |
ec6a6fbe AK |
2378 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2379 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2380 | if test "${ac_cv_prog_AWK+set}" = set; then |
ec6a6fbe | 2381 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2382 | else |
2383 | if test -n "$AWK"; then | |
2384 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2385 | else | |
ad6254c5 AK |
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_AWK="$ac_prog" |
ec6a6fbe | 2394 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2395 | break 2 |
2396 | fi | |
2397 | done | |
2398 | done | |
7a197a62 | 2399 | IFS=$as_save_IFS |
ad6254c5 | 2400 | |
795ca3e5 AK |
2401 | fi |
2402 | fi | |
ad6254c5 | 2403 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2404 | if test -n "$AWK"; then |
ec6a6fbe AK |
2405 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2406 | $as_echo "$AWK" >&6; } | |
795ca3e5 | 2407 | else |
ec6a6fbe AK |
2408 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2409 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2410 | fi |
2411 | ||
7a197a62 | 2412 | |
ad6254c5 AK |
2413 | test -n "$AWK" && break |
2414 | done | |
2415 | ||
2416 | ac_ext=c | |
2417 | ac_cpp='$CPP $CPPFLAGS' | |
2418 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2419 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2420 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2421 | if test -n "$ac_tool_prefix"; then | |
2422 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2423 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
ec6a6fbe AK |
2424 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2425 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2426 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2427 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2428 | else |
2429 | if test -n "$CC"; then | |
2430 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2431 | else | |
2432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2433 | for as_dir in $PATH | |
2434 | do | |
2435 | IFS=$as_save_IFS | |
2436 | test -z "$as_dir" && as_dir=. | |
2437 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2438 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2439 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
ec6a6fbe | 2440 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2441 | break 2 |
2442 | fi | |
2443 | done | |
8106cdd5 | 2444 | done |
7a197a62 | 2445 | IFS=$as_save_IFS |
8106cdd5 | 2446 | |
ad6254c5 AK |
2447 | fi |
2448 | fi | |
2449 | CC=$ac_cv_prog_CC | |
2450 | if test -n "$CC"; then | |
ec6a6fbe AK |
2451 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2452 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2453 | else |
ec6a6fbe AK |
2454 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2455 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2456 | fi |
2457 | ||
7a197a62 | 2458 | |
ad6254c5 AK |
2459 | fi |
2460 | if test -z "$ac_cv_prog_CC"; then | |
2461 | ac_ct_CC=$CC | |
2462 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2463 | set dummy gcc; ac_word=$2 |
ec6a6fbe AK |
2464 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2465 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2466 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2467 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2468 | else |
2469 | if test -n "$ac_ct_CC"; then | |
2470 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2471 | else | |
2472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2473 | for as_dir in $PATH | |
2474 | do | |
2475 | IFS=$as_save_IFS | |
2476 | test -z "$as_dir" && as_dir=. | |
2477 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2478 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2479 | ac_cv_prog_ac_ct_CC="gcc" |
ec6a6fbe | 2480 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2481 | break 2 |
2482 | fi | |
2483 | done | |
2484 | done | |
7a197a62 | 2485 | IFS=$as_save_IFS |
ad6254c5 AK |
2486 | |
2487 | fi | |
2488 | fi | |
2489 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2490 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2491 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2492 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2493 | else |
ec6a6fbe AK |
2494 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2495 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2496 | fi |
2497 | ||
7a197a62 AK |
2498 | if test "x$ac_ct_CC" = x; then |
2499 | CC="" | |
2500 | else | |
2501 | case $cross_compiling:$ac_tool_warned in | |
2502 | yes:) | |
ec6a6fbe AK |
2503 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2504 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2505 | ac_tool_warned=yes ;; |
2506 | esac | |
2507 | CC=$ac_ct_CC | |
2508 | fi | |
ad6254c5 AK |
2509 | else |
2510 | CC="$ac_cv_prog_CC" | |
2511 | fi | |
2512 | ||
2513 | if test -z "$CC"; then | |
7a197a62 AK |
2514 | if test -n "$ac_tool_prefix"; then |
2515 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2516 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
ec6a6fbe AK |
2517 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2518 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2519 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2520 | $as_echo_n "(cached) " >&6 |
8106cdd5 AK |
2521 | else |
2522 | if test -n "$CC"; then | |
2523 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2524 | else | |
ad6254c5 AK |
2525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2526 | for as_dir in $PATH | |
2527 | do | |
2528 | IFS=$as_save_IFS | |
2529 | test -z "$as_dir" && as_dir=. | |
2530 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2531 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2532 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
ec6a6fbe | 2533 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2534 | break 2 |
2535 | fi | |
2536 | done | |
2537 | done | |
7a197a62 | 2538 | IFS=$as_save_IFS |
ad6254c5 | 2539 | |
8106cdd5 AK |
2540 | fi |
2541 | fi | |
ad6254c5 | 2542 | CC=$ac_cv_prog_CC |
8106cdd5 | 2543 | if test -n "$CC"; then |
ec6a6fbe AK |
2544 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2545 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2546 | else |
ec6a6fbe AK |
2547 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2548 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2549 | fi |
2550 | ||
8106cdd5 | 2551 | |
7a197a62 | 2552 | fi |
ad6254c5 | 2553 | fi |
795ca3e5 AK |
2554 | if test -z "$CC"; then |
2555 | # Extract the first word of "cc", so it can be a program name with args. | |
2556 | set dummy cc; ac_word=$2 | |
ec6a6fbe AK |
2557 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2558 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2559 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2560 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2561 | else |
2562 | if test -n "$CC"; then | |
2563 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2564 | else | |
795ca3e5 | 2565 | ac_prog_rejected=no |
ad6254c5 AK |
2566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2567 | for as_dir in $PATH | |
2568 | do | |
2569 | IFS=$as_save_IFS | |
2570 | test -z "$as_dir" && as_dir=. | |
2571 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2572 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2573 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2574 | ac_prog_rejected=yes | |
2575 | continue | |
2576 | fi | |
2577 | ac_cv_prog_CC="cc" | |
ec6a6fbe | 2578 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2579 | break 2 |
2580 | fi | |
2581 | done | |
2582 | done | |
7a197a62 | 2583 | IFS=$as_save_IFS |
ad6254c5 | 2584 | |
795ca3e5 AK |
2585 | if test $ac_prog_rejected = yes; then |
2586 | # We found a bogon in the path, so make sure we never use it. | |
2587 | set dummy $ac_cv_prog_CC | |
2588 | shift | |
ad6254c5 | 2589 | if test $# != 0; then |
795ca3e5 AK |
2590 | # We chose a different compiler from the bogus one. |
2591 | # However, it has the same basename, so the bogon will be chosen | |
2592 | # first if we set CC to just the basename; use the full file name. | |
2593 | shift | |
ad6254c5 | 2594 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2595 | fi |
2596 | fi | |
2597 | fi | |
2598 | fi | |
ad6254c5 | 2599 | CC=$ac_cv_prog_CC |
795ca3e5 | 2600 | if test -n "$CC"; then |
ec6a6fbe AK |
2601 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2602 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2603 | else |
ec6a6fbe AK |
2604 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2605 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2606 | fi |
2607 | ||
7a197a62 | 2608 | |
ad6254c5 AK |
2609 | fi |
2610 | if test -z "$CC"; then | |
2611 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2612 | for ac_prog in cl.exe |
ad6254c5 AK |
2613 | do |
2614 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2615 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2616 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2617 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2618 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2619 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2620 | else |
2621 | if test -n "$CC"; then | |
2622 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2623 | else | |
ad6254c5 AK |
2624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2625 | for as_dir in $PATH | |
2626 | do | |
2627 | IFS=$as_save_IFS | |
2628 | test -z "$as_dir" && as_dir=. | |
2629 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2630 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2631 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
ec6a6fbe | 2632 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2633 | break 2 |
2634 | fi | |
2635 | done | |
2636 | done | |
7a197a62 | 2637 | IFS=$as_save_IFS |
ad6254c5 | 2638 | |
795ca3e5 AK |
2639 | fi |
2640 | fi | |
ad6254c5 | 2641 | CC=$ac_cv_prog_CC |
795ca3e5 | 2642 | if test -n "$CC"; then |
ec6a6fbe AK |
2643 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2644 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2645 | else |
ec6a6fbe AK |
2646 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2647 | $as_echo "no" >&6; } | |
795ca3e5 | 2648 | fi |
ad6254c5 | 2649 | |
7a197a62 | 2650 | |
ad6254c5 AK |
2651 | test -n "$CC" && break |
2652 | done | |
2653 | fi | |
2654 | if test -z "$CC"; then | |
2655 | ac_ct_CC=$CC | |
7a197a62 | 2656 | for ac_prog in cl.exe |
ad6254c5 AK |
2657 | do |
2658 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2659 | set dummy $ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2660 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2661 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2662 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2663 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2664 | else |
2665 | if test -n "$ac_ct_CC"; then | |
2666 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2667 | else | |
2668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2669 | for as_dir in $PATH | |
2670 | do | |
2671 | IFS=$as_save_IFS | |
2672 | test -z "$as_dir" && as_dir=. | |
2673 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2674 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2675 | ac_cv_prog_ac_ct_CC="$ac_prog" |
ec6a6fbe | 2676 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2677 | break 2 |
795ca3e5 | 2678 | fi |
ad6254c5 AK |
2679 | done |
2680 | done | |
7a197a62 | 2681 | IFS=$as_save_IFS |
ad6254c5 AK |
2682 | |
2683 | fi | |
2684 | fi | |
2685 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2686 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2687 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2688 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2689 | else |
ec6a6fbe AK |
2690 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2691 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2692 | fi |
2693 | ||
7a197a62 | 2694 | |
ad6254c5 AK |
2695 | test -n "$ac_ct_CC" && break |
2696 | done | |
795ca3e5 | 2697 | |
7a197a62 AK |
2698 | if test "x$ac_ct_CC" = x; then |
2699 | CC="" | |
2700 | else | |
2701 | case $cross_compiling:$ac_tool_warned in | |
2702 | yes:) | |
ec6a6fbe AK |
2703 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2704 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2705 | ac_tool_warned=yes ;; |
2706 | esac | |
2707 | CC=$ac_ct_CC | |
2708 | fi | |
ad6254c5 AK |
2709 | fi |
2710 | ||
2711 | fi | |
2712 | ||
2713 | ||
ec6a6fbe AK |
2714 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2715 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2716 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
ad6254c5 | 2717 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2718 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2719 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2720 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2721 | |
2722 | # Provide some information about the compiler. | |
ec6a6fbe AK |
2723 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2724 | set X $ac_compile | |
2725 | ac_compiler=$2 | |
7a197a62 AK |
2726 | { (ac_try="$ac_compiler --version >&5" |
2727 | case "(($ac_try" in | |
2728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2729 | *) ac_try_echo=$ac_try;; | |
2730 | esac | |
ec6a6fbe AK |
2731 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2732 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2733 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2734 | ac_status=$? |
ec6a6fbe | 2735 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2736 | (exit $ac_status); } |
7a197a62 AK |
2737 | { (ac_try="$ac_compiler -v >&5" |
2738 | case "(($ac_try" in | |
2739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2740 | *) ac_try_echo=$ac_try;; | |
2741 | esac | |
ec6a6fbe AK |
2742 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2743 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2744 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2745 | ac_status=$? |
ec6a6fbe | 2746 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2747 | (exit $ac_status); } |
7a197a62 AK |
2748 | { (ac_try="$ac_compiler -V >&5" |
2749 | case "(($ac_try" in | |
2750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2751 | *) ac_try_echo=$ac_try;; | |
2752 | esac | |
ec6a6fbe AK |
2753 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2754 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2755 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2756 | ac_status=$? |
ec6a6fbe | 2757 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2758 | (exit $ac_status); } |
2759 | ||
2760 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2761 | /* confdefs.h. */ |
2762 | _ACEOF | |
2763 | cat confdefs.h >>conftest.$ac_ext | |
2764 | cat >>conftest.$ac_ext <<_ACEOF | |
2765 | /* end confdefs.h. */ | |
2766 | ||
2767 | int | |
2768 | main () | |
2769 | { | |
2770 | ||
2771 | ; | |
2772 | return 0; | |
2773 | } | |
2774 | _ACEOF | |
2775 | ac_clean_files_save=$ac_clean_files | |
ec6a6fbe | 2776 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
ad6254c5 AK |
2777 | # Try to create an executable without -o first, disregard a.out. |
2778 | # It will help us diagnose broken compilers, and finding out an intuition | |
2779 | # of exeext. | |
ec6a6fbe AK |
2780 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2781 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2782 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2783 | ||
2784 | # The possible output files: | |
2785 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2786 | ||
7a197a62 AK |
2787 | ac_rmfiles= |
2788 | for ac_file in $ac_files | |
2789 | do | |
2790 | case $ac_file in | |
ec6a6fbe | 2791 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7a197a62 AK |
2792 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2793 | esac | |
2794 | done | |
2795 | rm -f $ac_rmfiles | |
2796 | ||
2797 | if { (ac_try="$ac_link_default" | |
2798 | case "(($ac_try" in | |
2799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2800 | *) ac_try_echo=$ac_try;; | |
2801 | esac | |
ec6a6fbe AK |
2802 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2803 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2804 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2805 | ac_status=$? |
ec6a6fbe | 2806 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2807 | (exit $ac_status); }; then |
7a197a62 AK |
2808 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2809 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2810 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2811 | # so that the user can short-circuit this test for compilers unknown to | |
2812 | # Autoconf. | |
25fbec5b | 2813 | for ac_file in $ac_files '' |
ad6254c5 AK |
2814 | do |
2815 | test -f "$ac_file" || continue | |
2816 | case $ac_file in | |
ec6a6fbe | 2817 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
8a2fc586 | 2818 | ;; |
ad6254c5 | 2819 | [ab].out ) |
8a2fc586 AK |
2820 | # We found the default executable, but exeext='' is most |
2821 | # certainly right. | |
2822 | break;; | |
ad6254c5 | 2823 | *.* ) |
7a197a62 AK |
2824 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2825 | then :; else | |
2826 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2827 | fi | |
2828 | # We set ac_cv_exeext here because the later test for it is not | |
2829 | # safe: cross compilers may not add the suffix if given an `-o' | |
2830 | # argument, so we may need to know it at that point already. | |
2831 | # Even if this section looks crufty: it has the advantage of | |
2832 | # actually working. | |
8a2fc586 | 2833 | break;; |
ad6254c5 | 2834 | * ) |
8a2fc586 | 2835 | break;; |
ad6254c5 AK |
2836 | esac |
2837 | done | |
7a197a62 AK |
2838 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2839 | ||
ad6254c5 | 2840 | else |
25fbec5b AK |
2841 | ac_file='' |
2842 | fi | |
2843 | ||
ec6a6fbe AK |
2844 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2845 | $as_echo "$ac_file" >&6; } | |
25fbec5b | 2846 | if test -z "$ac_file"; then |
ec6a6fbe | 2847 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2848 | sed 's/^/| /' conftest.$ac_ext >&5 |
2849 | ||
ec6a6fbe AK |
2850 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2851 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2852 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
ad6254c5 | 2853 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2854 | $as_echo "$as_me: error: C compiler cannot create executables |
ad6254c5 | 2855 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2856 | { (exit 77); exit 77; }; }; } |
ad6254c5 AK |
2857 | fi |
2858 | ||
2859 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2860 | |
7a197a62 | 2861 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2862 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2863 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2864 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
ad6254c5 AK |
2865 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2866 | # If not cross compiling, check that we can run a simple program. | |
2867 | if test "$cross_compiling" != yes; then | |
2868 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2869 | { (case "(($ac_try" in |
2870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2871 | *) ac_try_echo=$ac_try;; | |
2872 | esac | |
ec6a6fbe AK |
2873 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2874 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2875 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2876 | ac_status=$? |
ec6a6fbe | 2877 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2878 | (exit $ac_status); }; }; then |
2879 | cross_compiling=no | |
795ca3e5 | 2880 | else |
ad6254c5 AK |
2881 | if test "$cross_compiling" = maybe; then |
2882 | cross_compiling=yes | |
2883 | else | |
ec6a6fbe AK |
2884 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2885 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2886 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
ad6254c5 AK |
2887 | If you meant to cross compile, use \`--host'. |
2888 | See \`config.log' for more details." >&5 | |
ec6a6fbe | 2889 | $as_echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2890 | If you meant to cross compile, use \`--host'. |
2891 | See \`config.log' for more details." >&2;} | |
ec6a6fbe | 2892 | { (exit 1); exit 1; }; }; } |
ad6254c5 | 2893 | fi |
795ca3e5 | 2894 | fi |
80992638 | 2895 | fi |
ec6a6fbe AK |
2896 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2897 | $as_echo "yes" >&6; } | |
ad6254c5 | 2898 | |
ec6a6fbe | 2899 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2900 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2901 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2902 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2903 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2904 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2905 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2906 | $as_echo "$cross_compiling" >&6; } | |
7a197a62 | 2907 | |
ec6a6fbe AK |
2908 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2909 | $as_echo_n "checking for suffix of executables... " >&6; } | |
7a197a62 AK |
2910 | if { (ac_try="$ac_link" |
2911 | case "(($ac_try" in | |
2912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2913 | *) ac_try_echo=$ac_try;; | |
2914 | esac | |
ec6a6fbe AK |
2915 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2916 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2917 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2918 | ac_status=$? |
ec6a6fbe | 2919 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2920 | (exit $ac_status); }; then |
2921 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2922 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2923 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2924 | # `rm'. | |
2925 | for ac_file in conftest.exe conftest conftest.*; do | |
2926 | test -f "$ac_file" || continue | |
2927 | case $ac_file in | |
ec6a6fbe | 2928 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
ad6254c5 | 2929 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2930 | break;; |
ad6254c5 AK |
2931 | * ) break;; |
2932 | esac | |
2933 | done | |
80992638 | 2934 | else |
ec6a6fbe AK |
2935 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2936 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2937 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
ad6254c5 | 2938 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2939 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2940 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2941 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2942 | fi |
2943 | ||
2944 | rm -f conftest$ac_cv_exeext | |
ec6a6fbe AK |
2945 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2946 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2947 | |
2948 | rm -f conftest.$ac_ext | |
2949 | EXEEXT=$ac_cv_exeext | |
2950 | ac_exeext=$EXEEXT | |
ec6a6fbe AK |
2951 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2952 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ad6254c5 | 2953 | if test "${ac_cv_objext+set}" = set; then |
ec6a6fbe | 2954 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2955 | else |
ad6254c5 | 2956 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2957 | /* confdefs.h. */ |
2958 | _ACEOF | |
2959 | cat confdefs.h >>conftest.$ac_ext | |
2960 | cat >>conftest.$ac_ext <<_ACEOF | |
2961 | /* end confdefs.h. */ | |
2962 | ||
2963 | int | |
2964 | main () | |
2965 | { | |
2966 | ||
2967 | ; | |
2968 | return 0; | |
2969 | } | |
2970 | _ACEOF | |
2971 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2972 | if { (ac_try="$ac_compile" |
2973 | case "(($ac_try" in | |
2974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2975 | *) ac_try_echo=$ac_try;; | |
2976 | esac | |
ec6a6fbe AK |
2977 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2978 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2979 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2980 | ac_status=$? |
ec6a6fbe | 2981 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2982 | (exit $ac_status); }; then |
7a197a62 AK |
2983 | for ac_file in conftest.o conftest.obj conftest.*; do |
2984 | test -f "$ac_file" || continue; | |
ad6254c5 | 2985 | case $ac_file in |
ec6a6fbe | 2986 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
ad6254c5 AK |
2987 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2988 | break;; | |
2989 | esac | |
2990 | done | |
2991 | else | |
ec6a6fbe | 2992 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2993 | sed 's/^/| /' conftest.$ac_ext >&5 |
2994 | ||
ec6a6fbe AK |
2995 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2996 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2997 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
ad6254c5 | 2998 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2999 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 3000 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 3001 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
3002 | fi |
3003 | ||
3004 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3005 | fi | |
ec6a6fbe AK |
3006 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3007 | $as_echo "$ac_cv_objext" >&6; } | |
ad6254c5 AK |
3008 | OBJEXT=$ac_cv_objext |
3009 | ac_objext=$OBJEXT | |
ec6a6fbe AK |
3010 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3011 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
ad6254c5 | 3012 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
ec6a6fbe | 3013 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
3014 | else |
3015 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3016 | /* confdefs.h. */ |
3017 | _ACEOF | |
3018 | cat confdefs.h >>conftest.$ac_ext | |
3019 | cat >>conftest.$ac_ext <<_ACEOF | |
3020 | /* end confdefs.h. */ | |
3021 | ||
3022 | int | |
3023 | main () | |
3024 | { | |
3025 | #ifndef __GNUC__ | |
3026 | choke me | |
3027 | #endif | |
80992638 | 3028 | |
ad6254c5 AK |
3029 | ; |
3030 | return 0; | |
3031 | } | |
3032 | _ACEOF | |
3033 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3034 | if { (ac_try="$ac_compile" |
3035 | case "(($ac_try" in | |
3036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3037 | *) ac_try_echo=$ac_try;; | |
3038 | esac | |
ec6a6fbe AK |
3039 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3040 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3041 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3042 | ac_status=$? |
8a2fc586 AK |
3043 | grep -v '^ *+' conftest.er1 >conftest.err |
3044 | rm -f conftest.er1 | |
3045 | cat conftest.err >&5 | |
ec6a6fbe | 3046 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3047 | (exit $ac_status); } && { |
3048 | test -z "$ac_c_werror_flag" || | |
3049 | test ! -s conftest.err | |
3050 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 3051 | ac_compiler_gnu=yes |
80992638 | 3052 | else |
ec6a6fbe | 3053 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3054 | sed 's/^/| /' conftest.$ac_ext >&5 |
3055 | ||
7a197a62 | 3056 | ac_compiler_gnu=no |
8106cdd5 | 3057 | fi |
7a197a62 AK |
3058 | |
3059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 3060 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 3061 | |
ad6254c5 | 3062 | fi |
ec6a6fbe AK |
3063 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3064 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3065 | if test $ac_compiler_gnu = yes; then | |
3066 | GCC=yes | |
3067 | else | |
3068 | GCC= | |
3069 | fi | |
ad6254c5 AK |
3070 | ac_test_CFLAGS=${CFLAGS+set} |
3071 | ac_save_CFLAGS=$CFLAGS | |
ec6a6fbe AK |
3072 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3073 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
ad6254c5 | 3074 | if test "${ac_cv_prog_cc_g+set}" = set; then |
ec6a6fbe | 3075 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 3076 | else |
7a197a62 AK |
3077 | ac_save_c_werror_flag=$ac_c_werror_flag |
3078 | ac_c_werror_flag=yes | |
3079 | ac_cv_prog_cc_g=no | |
3080 | CFLAGS="-g" | |
3081 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3082 | /* confdefs.h. */ |
3083 | _ACEOF | |
3084 | cat confdefs.h >>conftest.$ac_ext | |
3085 | cat >>conftest.$ac_ext <<_ACEOF | |
3086 | /* end confdefs.h. */ | |
3087 | ||
3088 | int | |
3089 | main () | |
3090 | { | |
3091 | ||
3092 | ; | |
3093 | return 0; | |
3094 | } | |
3095 | _ACEOF | |
3096 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3097 | if { (ac_try="$ac_compile" |
3098 | case "(($ac_try" in | |
3099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3100 | *) ac_try_echo=$ac_try;; | |
3101 | esac | |
ec6a6fbe AK |
3102 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3103 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3104 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3105 | ac_status=$? |
8a2fc586 AK |
3106 | grep -v '^ *+' conftest.er1 >conftest.err |
3107 | rm -f conftest.er1 | |
3108 | cat conftest.err >&5 | |
ec6a6fbe | 3109 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3110 | (exit $ac_status); } && { |
3111 | test -z "$ac_c_werror_flag" || | |
3112 | test ! -s conftest.err | |
3113 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3114 | ac_cv_prog_cc_g=yes |
3115 | else | |
ec6a6fbe | 3116 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3117 | sed 's/^/| /' conftest.$ac_ext >&5 |
3118 | ||
3119 | CFLAGS="" | |
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 | ||
3127 | int | |
3128 | main () | |
3129 | { | |
3130 | ||
3131 | ; | |
3132 | return 0; | |
3133 | } | |
3134 | _ACEOF | |
3135 | rm -f conftest.$ac_objext | |
3136 | if { (ac_try="$ac_compile" | |
3137 | case "(($ac_try" in | |
3138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3139 | *) ac_try_echo=$ac_try;; | |
3140 | esac | |
ec6a6fbe AK |
3141 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3142 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3143 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 3144 | ac_status=$? |
7a197a62 AK |
3145 | grep -v '^ *+' conftest.er1 >conftest.err |
3146 | rm -f conftest.er1 | |
3147 | cat conftest.err >&5 | |
ec6a6fbe | 3148 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3149 | (exit $ac_status); } && { |
3150 | test -z "$ac_c_werror_flag" || | |
3151 | test ! -s conftest.err | |
3152 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3153 | : |
3154 | else | |
ec6a6fbe | 3155 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3156 | sed 's/^/| /' conftest.$ac_ext >&5 |
3157 | ||
3158 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3159 | CFLAGS="-g" | |
3160 | cat >conftest.$ac_ext <<_ACEOF | |
3161 | /* confdefs.h. */ | |
3162 | _ACEOF | |
3163 | cat confdefs.h >>conftest.$ac_ext | |
3164 | cat >>conftest.$ac_ext <<_ACEOF | |
3165 | /* end confdefs.h. */ | |
3166 | ||
3167 | int | |
3168 | main () | |
3169 | { | |
3170 | ||
3171 | ; | |
3172 | return 0; | |
3173 | } | |
3174 | _ACEOF | |
3175 | rm -f conftest.$ac_objext | |
3176 | if { (ac_try="$ac_compile" | |
3177 | case "(($ac_try" in | |
3178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3179 | *) ac_try_echo=$ac_try;; | |
3180 | esac | |
ec6a6fbe AK |
3181 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3182 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3183 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3184 | ac_status=$? |
7a197a62 AK |
3185 | grep -v '^ *+' conftest.er1 >conftest.err |
3186 | rm -f conftest.er1 | |
3187 | cat conftest.err >&5 | |
ec6a6fbe | 3188 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3189 | (exit $ac_status); } && { |
3190 | test -z "$ac_c_werror_flag" || | |
3191 | test ! -s conftest.err | |
3192 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
3193 | ac_cv_prog_cc_g=yes |
3194 | else | |
ec6a6fbe | 3195 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3196 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 3197 | |
7a197a62 AK |
3198 | |
3199 | fi | |
3200 | ||
3201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3202 | fi | |
3203 | ||
3204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 3205 | fi |
7a197a62 AK |
3206 | |
3207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3208 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 3209 | fi |
ec6a6fbe AK |
3210 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3211 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 3212 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 3213 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
3214 | elif test $ac_cv_prog_cc_g = yes; then |
3215 | if test "$GCC" = yes; then | |
3216 | CFLAGS="-g -O2" | |
3217 | else | |
3218 | CFLAGS="-g" | |
3219 | fi | |
3220 | else | |
3221 | if test "$GCC" = yes; then | |
3222 | CFLAGS="-O2" | |
3223 | else | |
3224 | CFLAGS= | |
3225 | fi | |
3226 | fi | |
ec6a6fbe AK |
3227 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3228 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7a197a62 | 3229 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
ec6a6fbe | 3230 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3231 | else |
7a197a62 | 3232 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
3233 | ac_save_CC=$CC |
3234 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3235 | /* confdefs.h. */ |
3236 | _ACEOF | |
3237 | cat confdefs.h >>conftest.$ac_ext | |
3238 | cat >>conftest.$ac_ext <<_ACEOF | |
3239 | /* end confdefs.h. */ | |
3240 | #include <stdarg.h> | |
3241 | #include <stdio.h> | |
3242 | #include <sys/types.h> | |
3243 | #include <sys/stat.h> | |
3244 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3245 | struct buf { int x; }; | |
3246 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3247 | static char *e (p, i) | |
3248 | char **p; | |
3249 | int i; | |
3250 | { | |
3251 | return p[i]; | |
3252 | } | |
3253 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3254 | { | |
3255 | char *s; | |
3256 | va_list v; | |
3257 | va_start (v,p); | |
3258 | s = g (p, va_arg (v,int)); | |
3259 | va_end (v); | |
3260 | return s; | |
3261 | } | |
8a2fc586 AK |
3262 | |
3263 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3264 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3265 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 3266 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
3267 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3268 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 3269 | that's true only with -std. */ |
8a2fc586 AK |
3270 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3271 | ||
7a197a62 AK |
3272 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3273 | inside strings and character constants. */ | |
3274 | #define FOO(x) 'x' | |
3275 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3276 | ||
ad6254c5 AK |
3277 | int test (int i, double x); |
3278 | struct s1 {int (*f) (int a);}; | |
3279 | struct s2 {int (*f) (double a);}; | |
3280 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3281 | int argc; | |
3282 | char **argv; | |
3283 | int | |
3284 | main () | |
3285 | { | |
3286 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3287 | ; | |
3288 | return 0; | |
3289 | } | |
3290 | _ACEOF | |
7a197a62 AK |
3291 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3292 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
3293 | do |
3294 | CC="$ac_save_CC $ac_arg" | |
3295 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3296 | if { (ac_try="$ac_compile" |
3297 | case "(($ac_try" in | |
3298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3299 | *) ac_try_echo=$ac_try;; | |
3300 | esac | |
ec6a6fbe AK |
3301 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3302 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3303 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3304 | ac_status=$? |
8a2fc586 AK |
3305 | grep -v '^ *+' conftest.er1 >conftest.err |
3306 | rm -f conftest.er1 | |
3307 | cat conftest.err >&5 | |
ec6a6fbe | 3308 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3309 | (exit $ac_status); } && { |
3310 | test -z "$ac_c_werror_flag" || | |
3311 | test ! -s conftest.err | |
3312 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 3313 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 3314 | else |
ec6a6fbe | 3315 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3316 | sed 's/^/| /' conftest.$ac_ext >&5 |
3317 | ||
7a197a62 | 3318 | |
ad6254c5 | 3319 | fi |
7a197a62 AK |
3320 | |
3321 | rm -f core conftest.err conftest.$ac_objext | |
3322 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 3323 | done |
7a197a62 | 3324 | rm -f conftest.$ac_ext |
ad6254c5 AK |
3325 | CC=$ac_save_CC |
3326 | ||
3327 | fi | |
7a197a62 AK |
3328 | # AC_CACHE_VAL |
3329 | case "x$ac_cv_prog_cc_c89" in | |
3330 | x) | |
ec6a6fbe AK |
3331 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3332 | $as_echo "none needed" >&6; } ;; | |
7a197a62 | 3333 | xno) |
ec6a6fbe AK |
3334 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3335 | $as_echo "unsupported" >&6; } ;; | |
ad6254c5 | 3336 | *) |
7a197a62 | 3337 | CC="$CC $ac_cv_prog_cc_c89" |
ec6a6fbe AK |
3338 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3339 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
3340 | esac |
3341 | ||
ad6254c5 | 3342 | |
ad6254c5 AK |
3343 | ac_ext=c |
3344 | ac_cpp='$CPP $CPPFLAGS' | |
3345 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3346 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3347 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 3348 | |
d0191583 JM |
3349 | |
3350 | ||
3351 | ac_ext=c | |
3352 | ac_cpp='$CPP $CPPFLAGS' | |
3353 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3354 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3355 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ec6a6fbe AK |
3356 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3357 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d0191583 JM |
3358 | # On Suns, sometimes $CPP names a directory. |
3359 | if test -n "$CPP" && test -d "$CPP"; then | |
3360 | CPP= | |
3361 | fi | |
3362 | if test -z "$CPP"; then | |
3363 | if test "${ac_cv_prog_CPP+set}" = set; then | |
ec6a6fbe | 3364 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3365 | else |
d0191583 JM |
3366 | # Double quotes because CPP needs to be expanded |
3367 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3368 | do | |
3369 | ac_preproc_ok=false | |
3370 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 3371 | do |
d0191583 JM |
3372 | # Use a header file that comes with gcc, so configuring glibc |
3373 | # with a fresh cross-compiler works. | |
3374 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3375 | # <limits.h> exists even on freestanding compilers. | |
3376 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3377 | # not just through cpp. "Syntax error" is here to catch this case. | |
3378 | cat >conftest.$ac_ext <<_ACEOF | |
3379 | /* confdefs.h. */ | |
3380 | _ACEOF | |
3381 | cat confdefs.h >>conftest.$ac_ext | |
3382 | cat >>conftest.$ac_ext <<_ACEOF | |
3383 | /* end confdefs.h. */ | |
3384 | #ifdef __STDC__ | |
3385 | # include <limits.h> | |
3386 | #else | |
3387 | # include <assert.h> | |
3388 | #endif | |
3389 | Syntax error | |
3390 | _ACEOF | |
3391 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3392 | case "(($ac_try" in | |
3393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3394 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 3395 | esac |
ec6a6fbe AK |
3396 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3397 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3398 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3399 | ac_status=$? | |
3400 | grep -v '^ *+' conftest.er1 >conftest.err | |
3401 | rm -f conftest.er1 | |
3402 | cat conftest.err >&5 | |
ec6a6fbe | 3403 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3404 | (exit $ac_status); } >/dev/null && { |
3405 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3406 | test ! -s conftest.err | |
3407 | }; then | |
3408 | : | |
3409 | else | |
ec6a6fbe | 3410 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3411 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3412 | |
d0191583 JM |
3413 | # Broken: fails on valid input. |
3414 | continue | |
795ca3e5 | 3415 | fi |
795ca3e5 | 3416 | |
d0191583 | 3417 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3418 | |
d0191583 JM |
3419 | # OK, works on sane cases. Now check whether nonexistent headers |
3420 | # can be detected and how. | |
3421 | cat >conftest.$ac_ext <<_ACEOF | |
3422 | /* confdefs.h. */ | |
3423 | _ACEOF | |
3424 | cat confdefs.h >>conftest.$ac_ext | |
3425 | cat >>conftest.$ac_ext <<_ACEOF | |
3426 | /* end confdefs.h. */ | |
3427 | #include <ac_nonexistent.h> | |
3428 | _ACEOF | |
3429 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3430 | case "(($ac_try" in | |
3431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3432 | *) ac_try_echo=$ac_try;; | |
3433 | esac | |
ec6a6fbe AK |
3434 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3435 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3436 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3437 | ac_status=$? | |
3438 | grep -v '^ *+' conftest.er1 >conftest.err | |
3439 | rm -f conftest.er1 | |
3440 | cat conftest.err >&5 | |
ec6a6fbe | 3441 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3442 | (exit $ac_status); } >/dev/null && { |
3443 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3444 | test ! -s conftest.err | |
3445 | }; then | |
3446 | # Broken: success on invalid input. | |
3447 | continue | |
3448 | else | |
ec6a6fbe | 3449 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3450 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3451 | |
d0191583 JM |
3452 | # Passes both tests. |
3453 | ac_preproc_ok=: | |
3454 | break | |
3455 | fi | |
795ca3e5 | 3456 | |
d0191583 JM |
3457 | rm -f conftest.err conftest.$ac_ext |
3458 | ||
3459 | done | |
3460 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3461 | rm -f conftest.err conftest.$ac_ext | |
3462 | if $ac_preproc_ok; then | |
3463 | break | |
795ca3e5 AK |
3464 | fi |
3465 | ||
d0191583 JM |
3466 | done |
3467 | ac_cv_prog_CPP=$CPP | |
3468 | ||
3469 | fi | |
3470 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3471 | else |
d0191583 JM |
3472 | ac_cv_prog_CPP=$CPP |
3473 | fi | |
ec6a6fbe AK |
3474 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3475 | $as_echo "$CPP" >&6; } | |
d0191583 JM |
3476 | ac_preproc_ok=false |
3477 | for ac_c_preproc_warn_flag in '' yes | |
3478 | do | |
3479 | # Use a header file that comes with gcc, so configuring glibc | |
3480 | # with a fresh cross-compiler works. | |
3481 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3482 | # <limits.h> exists even on freestanding compilers. | |
3483 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3484 | # not just through cpp. "Syntax error" is here to catch this case. | |
3485 | cat >conftest.$ac_ext <<_ACEOF | |
3486 | /* confdefs.h. */ | |
ad6254c5 | 3487 | _ACEOF |
d0191583 JM |
3488 | cat confdefs.h >>conftest.$ac_ext |
3489 | cat >>conftest.$ac_ext <<_ACEOF | |
3490 | /* end confdefs.h. */ | |
3491 | #ifdef __STDC__ | |
3492 | # include <limits.h> | |
3493 | #else | |
3494 | # include <assert.h> | |
3495 | #endif | |
3496 | Syntax error | |
3497 | _ACEOF | |
3498 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3499 | case "(($ac_try" in | |
3500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3501 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3502 | esac |
ec6a6fbe AK |
3503 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3504 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3505 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3506 | ac_status=$? | |
3507 | grep -v '^ *+' conftest.er1 >conftest.err | |
3508 | rm -f conftest.er1 | |
3509 | cat conftest.err >&5 | |
ec6a6fbe | 3510 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3511 | (exit $ac_status); } >/dev/null && { |
3512 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3513 | test ! -s conftest.err | |
3514 | }; then | |
3515 | : | |
795ca3e5 | 3516 | else |
ec6a6fbe | 3517 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3518 | sed 's/^/| /' conftest.$ac_ext >&5 |
3519 | ||
3520 | # Broken: fails on valid input. | |
3521 | continue | |
795ca3e5 AK |
3522 | fi |
3523 | ||
d0191583 JM |
3524 | rm -f conftest.err conftest.$ac_ext |
3525 | ||
3526 | # OK, works on sane cases. Now check whether nonexistent headers | |
3527 | # can be detected and how. | |
3528 | cat >conftest.$ac_ext <<_ACEOF | |
3529 | /* confdefs.h. */ | |
3530 | _ACEOF | |
3531 | cat confdefs.h >>conftest.$ac_ext | |
3532 | cat >>conftest.$ac_ext <<_ACEOF | |
3533 | /* end confdefs.h. */ | |
3534 | #include <ac_nonexistent.h> | |
3535 | _ACEOF | |
3536 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3537 | case "(($ac_try" in | |
3538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3539 | *) ac_try_echo=$ac_try;; | |
3540 | esac | |
ec6a6fbe AK |
3541 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3542 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3543 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3544 | ac_status=$? | |
3545 | grep -v '^ *+' conftest.er1 >conftest.err | |
3546 | rm -f conftest.er1 | |
3547 | cat conftest.err >&5 | |
ec6a6fbe | 3548 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3549 | (exit $ac_status); } >/dev/null && { |
3550 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3551 | test ! -s conftest.err | |
3552 | }; then | |
3553 | # Broken: success on invalid input. | |
3554 | continue | |
795ca3e5 | 3555 | else |
ec6a6fbe | 3556 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3557 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3558 | |
d0191583 JM |
3559 | # Passes both tests. |
3560 | ac_preproc_ok=: | |
3561 | break | |
795ca3e5 | 3562 | fi |
d0191583 JM |
3563 | |
3564 | rm -f conftest.err conftest.$ac_ext | |
3565 | ||
3566 | done | |
3567 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3568 | rm -f conftest.err conftest.$ac_ext | |
3569 | if $ac_preproc_ok; then | |
3570 | : | |
8106cdd5 | 3571 | else |
ec6a6fbe AK |
3572 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3573 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3574 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
d0191583 | 3575 | See \`config.log' for more details." >&5 |
ec6a6fbe | 3576 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3577 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 3578 | { (exit 1); exit 1; }; }; } |
8106cdd5 AK |
3579 | fi |
3580 | ||
d0191583 JM |
3581 | ac_ext=c |
3582 | ac_cpp='$CPP $CPPFLAGS' | |
3583 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3584 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3585 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3586 | ||
7a197a62 | 3587 | |
ec6a6fbe AK |
3588 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3589 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5556819a | 3590 | if test "${ac_cv_path_GREP+set}" = set; then |
ec6a6fbe | 3591 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3592 | else |
ec6a6fbe | 3593 | if test -z "$GREP"; then |
d0191583 | 3594 | ac_path_GREP_found=false |
ec6a6fbe AK |
3595 | # Loop through the user's path and test for each of PROGNAME-LIST |
3596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3597 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3598 | do |
3599 | IFS=$as_save_IFS | |
3600 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3601 | for ac_prog in grep ggrep; do |
ec6a6fbe AK |
3602 | for ac_exec_ext in '' $ac_executable_extensions; do |
3603 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3604 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3605 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3606 | # Check for GNU $ac_path_GREP |
3607 | case `"$ac_path_GREP" --version 2>&1` in | |
3608 | *GNU*) | |
3609 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3610 | *) | |
3611 | ac_count=0 | |
ec6a6fbe | 3612 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3613 | while : |
3614 | do | |
3615 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3616 | mv "conftest.tmp" "conftest.in" | |
3617 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3618 | $as_echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3619 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3620 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3621 | ac_count=`expr $ac_count + 1` | |
3622 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3623 | # Best one so far, save it but keep looking for a better one | |
3624 | ac_cv_path_GREP="$ac_path_GREP" | |
3625 | ac_path_GREP_max=$ac_count | |
3626 | fi | |
3627 | # 10*(2^10) chars as input seems more than enough | |
3628 | test $ac_count -gt 10 && break | |
3629 | done | |
3630 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3631 | esac | |
3632 | ||
ec6a6fbe AK |
3633 | $ac_path_GREP_found && break 3 |
3634 | done | |
d0191583 | 3635 | done |
ad6254c5 | 3636 | done |
7a197a62 | 3637 | IFS=$as_save_IFS |
ec6a6fbe AK |
3638 | if test -z "$ac_cv_path_GREP"; then |
3639 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3640 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3641 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3642 | fi |
80992638 | 3643 | else |
d0191583 | 3644 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3645 | fi |
8106cdd5 | 3646 | |
80992638 | 3647 | fi |
ec6a6fbe AK |
3648 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3649 | $as_echo "$ac_cv_path_GREP" >&6; } | |
d0191583 | 3650 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3651 | |
d0191583 | 3652 | |
ec6a6fbe AK |
3653 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3654 | $as_echo_n "checking for egrep... " >&6; } | |
d0191583 | 3655 | if test "${ac_cv_path_EGREP+set}" = set; then |
ec6a6fbe | 3656 | $as_echo_n "(cached) " >&6 |
8a2fc586 | 3657 | else |
d0191583 JM |
3658 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3659 | then ac_cv_path_EGREP="$GREP -E" | |
3660 | else | |
ec6a6fbe | 3661 | if test -z "$EGREP"; then |
d0191583 | 3662 | ac_path_EGREP_found=false |
ec6a6fbe AK |
3663 | # Loop through the user's path and test for each of PROGNAME-LIST |
3664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3665 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3666 | do |
3667 | IFS=$as_save_IFS | |
3668 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3669 | for ac_prog in egrep; do |
ec6a6fbe AK |
3670 | for ac_exec_ext in '' $ac_executable_extensions; do |
3671 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3672 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3673 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3674 | # Check for GNU $ac_path_EGREP |
3675 | case `"$ac_path_EGREP" --version 2>&1` in | |
3676 | *GNU*) | |
3677 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3678 | *) | |
3679 | ac_count=0 | |
ec6a6fbe | 3680 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3681 | while : |
3682 | do | |
3683 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3684 | mv "conftest.tmp" "conftest.in" | |
3685 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3686 | $as_echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3687 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3688 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3689 | ac_count=`expr $ac_count + 1` | |
3690 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3691 | # Best one so far, save it but keep looking for a better one | |
3692 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3693 | ac_path_EGREP_max=$ac_count | |
3694 | fi | |
3695 | # 10*(2^10) chars as input seems more than enough | |
3696 | test $ac_count -gt 10 && break | |
3697 | done | |
3698 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3699 | esac |
8a2fc586 | 3700 | |
ec6a6fbe AK |
3701 | $ac_path_EGREP_found && break 3 |
3702 | done | |
d0191583 | 3703 | done |
8a2fc586 | 3704 | done |
7a197a62 | 3705 | IFS=$as_save_IFS |
ec6a6fbe AK |
3706 | if test -z "$ac_cv_path_EGREP"; then |
3707 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3708 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3709 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3710 | fi |
d0191583 JM |
3711 | else |
3712 | ac_cv_path_EGREP=$EGREP | |
3713 | fi | |
ad6254c5 | 3714 | |
d0191583 JM |
3715 | fi |
3716 | fi | |
ec6a6fbe AK |
3717 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3718 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3719 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3720 | |
3721 | ||
d0191583 | 3722 | if test $ac_cv_c_compiler_gnu = yes; then |
ec6a6fbe AK |
3723 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3724 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
d0191583 | 3725 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
ec6a6fbe | 3726 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 3727 | else |
d0191583 | 3728 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3729 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3730 | /* confdefs.h. */ |
3731 | _ACEOF | |
3732 | cat confdefs.h >>conftest.$ac_ext | |
3733 | cat >>conftest.$ac_ext <<_ACEOF | |
3734 | /* end confdefs.h. */ | |
d0191583 JM |
3735 | #include <sgtty.h> |
3736 | Autoconf TIOCGETP | |
ad6254c5 | 3737 | _ACEOF |
d0191583 JM |
3738 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3739 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3740 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3741 | else |
d0191583 | 3742 | ac_cv_prog_gcc_traditional=no |
80992638 | 3743 | fi |
d0191583 | 3744 | rm -f conftest* |
ad6254c5 | 3745 | |
8106cdd5 | 3746 | |
d0191583 JM |
3747 | if test $ac_cv_prog_gcc_traditional = no; then |
3748 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3749 | /* confdefs.h. */ |
3750 | _ACEOF | |
3751 | cat confdefs.h >>conftest.$ac_ext | |
3752 | cat >>conftest.$ac_ext <<_ACEOF | |
3753 | /* end confdefs.h. */ | |
d0191583 JM |
3754 | #include <termio.h> |
3755 | Autoconf TCGETA | |
ad6254c5 | 3756 | _ACEOF |
d0191583 JM |
3757 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3758 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3759 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3760 | fi |
d0191583 | 3761 | rm -f conftest* |
795ca3e5 | 3762 | |
d0191583 | 3763 | fi |
795ca3e5 | 3764 | fi |
ec6a6fbe AK |
3765 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3766 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3767 | if test $ac_cv_prog_gcc_traditional = yes; then |
3768 | CC="$CC -traditional" | |
3769 | fi | |
795ca3e5 AK |
3770 | fi |
3771 | ||
d0191583 JM |
3772 | # Find a good install program. We prefer a C program (faster), |
3773 | # so one script is as good as another. But avoid the broken or | |
3774 | # incompatible versions: | |
3775 | # SysV /etc/install, /usr/sbin/install | |
3776 | # SunOS /usr/etc/install | |
3777 | # IRIX /sbin/install | |
3778 | # AIX /bin/install | |
3779 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3780 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3781 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3782 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3783 | # OS/2's system install, which has a completely different semantic | |
3784 | # ./install, which can be erroneously created by make from ./install.sh. | |
ec6a6fbe AK |
3785 | # Reject install programs that cannot install multiple files. |
3786 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3787 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d0191583 JM |
3788 | if test -z "$INSTALL"; then |
3789 | if test "${ac_cv_path_install+set}" = set; then | |
ec6a6fbe | 3790 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3791 | else |
d0191583 JM |
3792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3793 | for as_dir in $PATH | |
3794 | do | |
3795 | IFS=$as_save_IFS | |
3796 | test -z "$as_dir" && as_dir=. | |
3797 | # Account for people who put trailing slashes in PATH elements. | |
3798 | case $as_dir/ in | |
3799 | ./ | .// | /cC/* | \ | |
3800 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3801 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3802 | /usr/ucb/* ) ;; | |
3803 | *) | |
3804 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3805 | # Don't use installbsd from OSF since it installs stuff as root | |
3806 | # by default. | |
3807 | for ac_prog in ginstall scoinst install; do | |
3808 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3809 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3810 | if test $ac_prog = install && | |
3811 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3812 | # AIX install. It has an incompatible calling convention. | |
3813 | : | |
3814 | elif test $ac_prog = install && | |
3815 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3816 | # program-specific install script used by HP pwplus--don't use. | |
3817 | : | |
3818 | else | |
ec6a6fbe AK |
3819 | rm -rf conftest.one conftest.two conftest.dir |
3820 | echo one > conftest.one | |
3821 | echo two > conftest.two | |
3822 | mkdir conftest.dir | |
3823 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3824 | test -s conftest.one && test -s conftest.two && | |
3825 | test -s conftest.dir/conftest.one && | |
3826 | test -s conftest.dir/conftest.two | |
3827 | then | |
3828 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3829 | break 3 | |
3830 | fi | |
d0191583 JM |
3831 | fi |
3832 | fi | |
3833 | done | |
3834 | done | |
3835 | ;; | |
3836 | esac | |
ec6a6fbe | 3837 | |
d0191583 JM |
3838 | done |
3839 | IFS=$as_save_IFS | |
80992638 | 3840 | |
ec6a6fbe | 3841 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
3842 | |
3843 | fi | |
3844 | if test "${ac_cv_path_install+set}" = set; then | |
3845 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3846 | else |
d0191583 JM |
3847 | # As a last resort, use the slow shell script. Don't cache a |
3848 | # value for INSTALL within a source directory, because that will | |
3849 | # break other packages using the cache if that directory is | |
3850 | # removed, or if the value is a relative name. | |
3851 | INSTALL=$ac_install_sh | |
7a197a62 | 3852 | fi |
d0191583 | 3853 | fi |
ec6a6fbe AK |
3854 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3855 | $as_echo "$INSTALL" >&6; } | |
ad6254c5 | 3856 | |
d0191583 JM |
3857 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3858 | # It thinks the first close brace ends the variable substitution. | |
3859 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3860 | |
d0191583 | 3861 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3862 | |
d0191583 JM |
3863 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3864 | ||
ec6a6fbe AK |
3865 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3866 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d0191583 JM |
3867 | LN_S=$as_ln_s |
3868 | if test "$LN_S" = "ln -s"; then | |
ec6a6fbe AK |
3869 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3870 | $as_echo "yes" >&6; } | |
d0191583 | 3871 | else |
ec6a6fbe AK |
3872 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3873 | $as_echo "no, using $LN_S" >&6; } | |
795ca3e5 | 3874 | fi |
d0191583 | 3875 | |
ec6a6fbe AK |
3876 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3877 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3878 | set x ${MAKE-make} | |
3879 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3880 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 3881 | $as_echo_n "(cached) " >&6 |
7a197a62 | 3882 | else |
d0191583 JM |
3883 | cat >conftest.make <<\_ACEOF |
3884 | SHELL = /bin/sh | |
3885 | all: | |
3886 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3887 | _ACEOF | |
3888 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3889 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3890 | *@@@%%%=?*=@@@%%%*) | |
3891 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3892 | *) | |
3893 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3894 | esac | |
3895 | rm -f conftest.make | |
ad6254c5 | 3896 | fi |
d0191583 | 3897 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
ec6a6fbe AK |
3898 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3899 | $as_echo "yes" >&6; } | |
d0191583 JM |
3900 | SET_MAKE= |
3901 | else | |
ec6a6fbe AK |
3902 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3903 | $as_echo "no" >&6; } | |
d0191583 | 3904 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3905 | fi |
8106cdd5 | 3906 | |
ec6a6fbe AK |
3907 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3908 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
5556819a AK |
3909 | if test -z "$MKDIR_P"; then |
3910 | if test "${ac_cv_path_mkdir+set}" = set; then | |
ec6a6fbe | 3911 | $as_echo_n "(cached) " >&6 |
5556819a AK |
3912 | else |
3913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3914 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3915 | do | |
3916 | IFS=$as_save_IFS | |
3917 | test -z "$as_dir" && as_dir=. | |
3918 | for ac_prog in mkdir gmkdir; do | |
3919 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3920 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3921 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3922 | 'mkdir (GNU coreutils) '* | \ | |
3923 | 'mkdir (coreutils) '* | \ | |
3924 | 'mkdir (fileutils) '4.1*) | |
3925 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3926 | break 3;; | |
3927 | esac | |
3928 | done | |
3929 | done | |
3930 | done | |
3931 | IFS=$as_save_IFS | |
3932 | ||
3933 | fi | |
3934 | ||
3935 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3936 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3937 | else | |
3938 | # As a last resort, use the slow shell script. Don't cache a | |
3939 | # value for MKDIR_P within a source directory, because that will | |
3940 | # break other packages using the cache if that directory is | |
3941 | # removed, or if the value is a relative name. | |
3942 | test -d ./--version && rmdir ./--version | |
3943 | MKDIR_P="$ac_install_sh -d" | |
3944 | fi | |
3945 | fi | |
ec6a6fbe AK |
3946 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
3947 | $as_echo "$MKDIR_P" >&6; } | |
5556819a | 3948 | |
d0191583 JM |
3949 | if test -n "$ac_tool_prefix"; then |
3950 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3951 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
ec6a6fbe AK |
3952 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3953 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3954 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
ec6a6fbe | 3955 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3956 | else |
3957 | if test -n "$RANLIB"; then | |
3958 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3959 | else | |
3960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3961 | for as_dir in $PATH | |
3962 | do | |
3963 | IFS=$as_save_IFS | |
3964 | test -z "$as_dir" && as_dir=. | |
3965 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3966 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3967 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
ec6a6fbe | 3968 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3969 | break 2 |
3970 | fi | |
3971 | done | |
3972 | done | |
3973 | IFS=$as_save_IFS | |
8106cdd5 | 3974 | |
795ca3e5 | 3975 | fi |
d0191583 JM |
3976 | fi |
3977 | RANLIB=$ac_cv_prog_RANLIB | |
3978 | if test -n "$RANLIB"; then | |
ec6a6fbe AK |
3979 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3980 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 3981 | else |
ec6a6fbe AK |
3982 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3983 | $as_echo "no" >&6; } | |
d0191583 JM |
3984 | fi |
3985 | ||
8106cdd5 | 3986 | |
ad6254c5 | 3987 | fi |
d0191583 JM |
3988 | if test -z "$ac_cv_prog_RANLIB"; then |
3989 | ac_ct_RANLIB=$RANLIB | |
3990 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3991 | set dummy ranlib; ac_word=$2 | |
ec6a6fbe AK |
3992 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3993 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3994 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
ec6a6fbe | 3995 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3996 | else |
d0191583 JM |
3997 | if test -n "$ac_ct_RANLIB"; then |
3998 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3999 | else | |
4000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4001 | for as_dir in $PATH | |
8106cdd5 | 4002 | do |
d0191583 JM |
4003 | IFS=$as_save_IFS |
4004 | test -z "$as_dir" && as_dir=. | |
4005 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4006 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4007 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
ec6a6fbe | 4008 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4009 | break 2 |
4010 | fi | |
4011 | done | |
4012 | done | |
4013 | IFS=$as_save_IFS | |
4014 | ||
4015 | fi | |
4016 | fi | |
4017 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4018 | if test -n "$ac_ct_RANLIB"; then | |
ec6a6fbe AK |
4019 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
4020 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 4021 | else |
ec6a6fbe AK |
4022 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4023 | $as_echo "no" >&6; } | |
d0191583 | 4024 | fi |
ad6254c5 | 4025 | |
d0191583 JM |
4026 | if test "x$ac_ct_RANLIB" = x; then |
4027 | RANLIB=":" | |
4028 | else | |
4029 | case $cross_compiling:$ac_tool_warned in | |
4030 | yes:) | |
ec6a6fbe AK |
4031 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
4032 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0191583 JM |
4033 | ac_tool_warned=yes ;; |
4034 | esac | |
4035 | RANLIB=$ac_ct_RANLIB | |
4036 | fi | |
4037 | else | |
4038 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 4039 | fi |
7a197a62 | 4040 | |
d0191583 JM |
4041 | # Extract the first word of "cflow", so it can be a program name with args. |
4042 | set dummy cflow; ac_word=$2 | |
ec6a6fbe AK |
4043 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4044 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 4045 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
ec6a6fbe | 4046 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4047 | else |
4048 | case $CFLOW_CMD in | |
4049 | [\\/]* | ?:[\\/]*) | |
4050 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
4051 | ;; | |
4052 | *) | |
4053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4054 | for as_dir in $PATH | |
4055 | do | |
4056 | IFS=$as_save_IFS | |
4057 | test -z "$as_dir" && as_dir=. | |
4058 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4059 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4060 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4061 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4062 | break 2 |
4063 | fi | |
4064 | done | |
4065 | done | |
4066 | IFS=$as_save_IFS | |
ad6254c5 | 4067 | |
d0191583 | 4068 | ;; |
7a197a62 | 4069 | esac |
d0191583 JM |
4070 | fi |
4071 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
4072 | if test -n "$CFLOW_CMD"; then | |
ec6a6fbe AK |
4073 | { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
4074 | $as_echo "$CFLOW_CMD" >&6; } | |
80992638 | 4075 | else |
ec6a6fbe AK |
4076 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4077 | $as_echo "no" >&6; } | |
795ca3e5 | 4078 | fi |
7a197a62 | 4079 | |
ad6254c5 | 4080 | |
d0191583 JM |
4081 | # Extract the first word of "cscope", so it can be a program name with args. |
4082 | set dummy cscope; ac_word=$2 | |
ec6a6fbe AK |
4083 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4084 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 4085 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
ec6a6fbe | 4086 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4087 | else |
4088 | case $CSCOPE_CMD in | |
4089 | [\\/]* | ?:[\\/]*) | |
4090 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
4091 | ;; | |
4092 | *) | |
4093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4094 | for as_dir in $PATH | |
4095 | do | |
4096 | IFS=$as_save_IFS | |
4097 | test -z "$as_dir" && as_dir=. | |
4098 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4099 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4100 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4101 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4102 | break 2 |
4103 | fi | |
795ca3e5 | 4104 | done |
d0191583 JM |
4105 | done |
4106 | IFS=$as_save_IFS | |
795ca3e5 | 4107 | |
d0191583 JM |
4108 | ;; |
4109 | esac | |
ad6254c5 | 4110 | fi |
d0191583 JM |
4111 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
4112 | if test -n "$CSCOPE_CMD"; then | |
ec6a6fbe AK |
4113 | { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
4114 | $as_echo "$CSCOPE_CMD" >&6; } | |
795ca3e5 | 4115 | else |
ec6a6fbe AK |
4116 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4117 | $as_echo "no" >&6; } | |
795ca3e5 | 4118 | fi |
ad6254c5 | 4119 | |
7a197a62 | 4120 | |
ad6254c5 | 4121 | |
d0191583 JM |
4122 | ################################################################################ |
4123 | ||
4124 | ||
4125 | ||
4126 | ||
4127 | ||
4128 | ac_header_dirent=no | |
4129 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
ec6a6fbe AK |
4130 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
4131 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
4132 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
d0191583 | 4133 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4134 | $as_echo_n "(cached) " >&6 |
d0191583 | 4135 | else |
ad6254c5 | 4136 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4137 | /* confdefs.h. */ |
4138 | _ACEOF | |
4139 | cat confdefs.h >>conftest.$ac_ext | |
4140 | cat >>conftest.$ac_ext <<_ACEOF | |
4141 | /* end confdefs.h. */ | |
d0191583 JM |
4142 | #include <sys/types.h> |
4143 | #include <$ac_hdr> | |
4144 | ||
4145 | int | |
4146 | main () | |
4147 | { | |
4148 | if ((DIR *) 0) | |
4149 | return 0; | |
4150 | ; | |
4151 | return 0; | |
4152 | } | |
ad6254c5 | 4153 | _ACEOF |
d0191583 JM |
4154 | rm -f conftest.$ac_objext |
4155 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
4156 | case "(($ac_try" in |
4157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4158 | *) ac_try_echo=$ac_try;; | |
4159 | esac | |
ec6a6fbe AK |
4160 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4161 | $as_echo "$ac_try_echo") >&5 | |
d0191583 | 4162 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
4163 | ac_status=$? |
4164 | grep -v '^ *+' conftest.er1 >conftest.err | |
4165 | rm -f conftest.er1 | |
4166 | cat conftest.err >&5 | |
ec6a6fbe | 4167 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4168 | (exit $ac_status); } && { |
4169 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 4170 | test ! -s conftest.err |
d0191583 JM |
4171 | } && test -s conftest.$ac_objext; then |
4172 | eval "$as_ac_Header=yes" | |
ad6254c5 | 4173 | else |
ec6a6fbe | 4174 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4175 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4176 | |
d0191583 | 4177 | eval "$as_ac_Header=no" |
795ca3e5 | 4178 | fi |
7a197a62 | 4179 | |
d0191583 | 4180 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 4181 | fi |
ec6a6fbe AK |
4182 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4183 | $as_echo "$as_val"'` | |
4184 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4185 | $as_echo "$ac_res" >&6; } | |
4186 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4187 | $as_echo "$as_val"'` | |
4188 | if test "x$as_val" = x""yes; then | |
d0191583 | 4189 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4190 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 4191 | _ACEOF |
795ca3e5 | 4192 | |
d0191583 JM |
4193 | ac_header_dirent=$ac_hdr; break |
4194 | fi | |
ad6254c5 | 4195 | |
d0191583 JM |
4196 | done |
4197 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4198 | if test $ac_header_dirent = dirent.h; then | |
ec6a6fbe AK |
4199 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4200 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4201 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4202 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4203 | else |
d0191583 JM |
4204 | ac_func_search_save_LIBS=$LIBS |
4205 | cat >conftest.$ac_ext <<_ACEOF | |
4206 | /* confdefs.h. */ | |
4207 | _ACEOF | |
4208 | cat confdefs.h >>conftest.$ac_ext | |
4209 | cat >>conftest.$ac_ext <<_ACEOF | |
4210 | /* end confdefs.h. */ | |
ad6254c5 | 4211 | |
d0191583 JM |
4212 | /* Override any GCC internal prototype to avoid an error. |
4213 | Use char because int might match the return type of a GCC | |
4214 | builtin and then its argument prototype would still apply. */ | |
4215 | #ifdef __cplusplus | |
4216 | extern "C" | |
4217 | #endif | |
4218 | char opendir (); | |
4219 | int | |
4220 | main () | |
4221 | { | |
4222 | return opendir (); | |
4223 | ; | |
4224 | return 0; | |
4225 | } | |
4226 | _ACEOF | |
4227 | for ac_lib in '' dir; do | |
4228 | if test -z "$ac_lib"; then | |
4229 | ac_res="none required" | |
4230 | else | |
4231 | ac_res=-l$ac_lib | |
4232 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4233 | fi | |
4234 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4235 | if { (ac_try="$ac_link" | |
4236 | case "(($ac_try" in | |
4237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4238 | *) ac_try_echo=$ac_try;; | |
4239 | esac | |
ec6a6fbe AK |
4240 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4241 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4242 | (eval "$ac_link") 2>conftest.er1 |
4243 | ac_status=$? | |
4244 | grep -v '^ *+' conftest.er1 >conftest.err | |
4245 | rm -f conftest.er1 | |
4246 | cat conftest.err >&5 | |
ec6a6fbe | 4247 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4248 | (exit $ac_status); } && { |
4249 | test -z "$ac_c_werror_flag" || | |
4250 | test ! -s conftest.err | |
ec6a6fbe AK |
4251 | } && test -s conftest$ac_exeext && { |
4252 | test "$cross_compiling" = yes || | |
4253 | $as_test_x conftest$ac_exeext | |
4254 | }; then | |
d0191583 JM |
4255 | ac_cv_search_opendir=$ac_res |
4256 | else | |
ec6a6fbe | 4257 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4258 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 4259 | |
ad6254c5 | 4260 | |
795ca3e5 | 4261 | fi |
ad6254c5 | 4262 | |
ec6a6fbe | 4263 | rm -rf conftest.dSYM |
d0191583 JM |
4264 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4265 | conftest$ac_exeext | |
4266 | if test "${ac_cv_search_opendir+set}" = set; then | |
4267 | break | |
7a197a62 | 4268 | fi |
d0191583 JM |
4269 | done |
4270 | if test "${ac_cv_search_opendir+set}" = set; then | |
4271 | : | |
7a197a62 | 4272 | else |
d0191583 | 4273 | ac_cv_search_opendir=no |
7a197a62 | 4274 | fi |
d0191583 JM |
4275 | rm conftest.$ac_ext |
4276 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 4277 | fi |
ec6a6fbe AK |
4278 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4279 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4280 | ac_res=$ac_cv_search_opendir |
4281 | if test "$ac_res" != no; then | |
4282 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4283 | |
d0191583 | 4284 | fi |
7a197a62 | 4285 | |
7a197a62 | 4286 | else |
ec6a6fbe AK |
4287 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4288 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4289 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4290 | $as_echo_n "(cached) " >&6 |
7a197a62 | 4291 | else |
d0191583 JM |
4292 | ac_func_search_save_LIBS=$LIBS |
4293 | cat >conftest.$ac_ext <<_ACEOF | |
4294 | /* confdefs.h. */ | |
4295 | _ACEOF | |
4296 | cat confdefs.h >>conftest.$ac_ext | |
4297 | cat >>conftest.$ac_ext <<_ACEOF | |
4298 | /* end confdefs.h. */ | |
7a197a62 | 4299 | |
d0191583 JM |
4300 | /* Override any GCC internal prototype to avoid an error. |
4301 | Use char because int might match the return type of a GCC | |
4302 | builtin and then its argument prototype would still apply. */ | |
4303 | #ifdef __cplusplus | |
4304 | extern "C" | |
4305 | #endif | |
4306 | char opendir (); | |
4307 | int | |
4308 | main () | |
4309 | { | |
4310 | return opendir (); | |
4311 | ; | |
4312 | return 0; | |
4313 | } | |
4314 | _ACEOF | |
4315 | for ac_lib in '' x; do | |
4316 | if test -z "$ac_lib"; then | |
4317 | ac_res="none required" | |
4318 | else | |
4319 | ac_res=-l$ac_lib | |
4320 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4321 | fi | |
4322 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4323 | if { (ac_try="$ac_link" | |
4324 | case "(($ac_try" in | |
4325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4326 | *) ac_try_echo=$ac_try;; | |
4327 | esac | |
ec6a6fbe AK |
4328 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4329 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4330 | (eval "$ac_link") 2>conftest.er1 |
4331 | ac_status=$? | |
4332 | grep -v '^ *+' conftest.er1 >conftest.err | |
4333 | rm -f conftest.er1 | |
4334 | cat conftest.err >&5 | |
ec6a6fbe | 4335 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4336 | (exit $ac_status); } && { |
4337 | test -z "$ac_c_werror_flag" || | |
4338 | test ! -s conftest.err | |
ec6a6fbe AK |
4339 | } && test -s conftest$ac_exeext && { |
4340 | test "$cross_compiling" = yes || | |
4341 | $as_test_x conftest$ac_exeext | |
4342 | }; then | |
d0191583 JM |
4343 | ac_cv_search_opendir=$ac_res |
4344 | else | |
ec6a6fbe | 4345 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4346 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
4347 | |
4348 | ||
4349 | fi | |
4350 | ||
ec6a6fbe | 4351 | rm -rf conftest.dSYM |
d0191583 JM |
4352 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4353 | conftest$ac_exeext | |
4354 | if test "${ac_cv_search_opendir+set}" = set; then | |
4355 | break | |
7a197a62 | 4356 | fi |
d0191583 JM |
4357 | done |
4358 | if test "${ac_cv_search_opendir+set}" = set; then | |
4359 | : | |
7a197a62 | 4360 | else |
d0191583 | 4361 | ac_cv_search_opendir=no |
7a197a62 | 4362 | fi |
d0191583 JM |
4363 | rm conftest.$ac_ext |
4364 | LIBS=$ac_func_search_save_LIBS | |
4365 | fi | |
ec6a6fbe AK |
4366 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4367 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4368 | ac_res=$ac_cv_search_opendir |
4369 | if test "$ac_res" != no; then | |
4370 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4371 | |
7a197a62 | 4372 | fi |
7a197a62 | 4373 | |
d0191583 | 4374 | fi |
7a197a62 | 4375 | |
ec6a6fbe AK |
4376 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4377 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7a197a62 | 4378 | if test "${ac_cv_header_stdc+set}" = set; then |
ec6a6fbe | 4379 | $as_echo_n "(cached) " >&6 |
7a197a62 AK |
4380 | else |
4381 | cat >conftest.$ac_ext <<_ACEOF | |
4382 | /* confdefs.h. */ | |
4383 | _ACEOF | |
4384 | cat confdefs.h >>conftest.$ac_ext | |
4385 | cat >>conftest.$ac_ext <<_ACEOF | |
4386 | /* end confdefs.h. */ | |
4387 | #include <stdlib.h> | |
4388 | #include <stdarg.h> | |
4389 | #include <string.h> | |
4390 | #include <float.h> | |
4391 | ||
4392 | int | |
4393 | main () | |
4394 | { | |
4395 | ||
4396 | ; | |
4397 | return 0; | |
4398 | } | |
4399 | _ACEOF | |
4400 | rm -f conftest.$ac_objext | |
4401 | if { (ac_try="$ac_compile" | |
4402 | case "(($ac_try" in | |
4403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4404 | *) ac_try_echo=$ac_try;; | |
4405 | esac | |
ec6a6fbe AK |
4406 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4407 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 AK |
4408 | (eval "$ac_compile") 2>conftest.er1 |
4409 | ac_status=$? | |
4410 | grep -v '^ *+' conftest.er1 >conftest.err | |
4411 | rm -f conftest.er1 | |
4412 | cat conftest.err >&5 | |
ec6a6fbe | 4413 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4414 | (exit $ac_status); } && { |
4415 | test -z "$ac_c_werror_flag" || | |
4416 | test ! -s conftest.err | |
4417 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4418 | ac_cv_header_stdc=yes |
4419 | else | |
ec6a6fbe | 4420 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4421 | sed 's/^/| /' conftest.$ac_ext >&5 |
4422 | ||
4423 | ac_cv_header_stdc=no | |
4424 | fi | |
4425 | ||
4426 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4427 | ||
4428 | if test $ac_cv_header_stdc = yes; then | |
4429 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4430 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4431 | /* confdefs.h. */ |
4432 | _ACEOF | |
4433 | cat confdefs.h >>conftest.$ac_ext | |
4434 | cat >>conftest.$ac_ext <<_ACEOF | |
4435 | /* end confdefs.h. */ | |
4436 | #include <string.h> | |
8106cdd5 | 4437 | |
ad6254c5 AK |
4438 | _ACEOF |
4439 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4440 | $EGREP "memchr" >/dev/null 2>&1; then | |
4441 | : | |
4442 | else | |
4443 | ac_cv_header_stdc=no | |
80992638 | 4444 | fi |
ad6254c5 | 4445 | rm -f conftest* |
795ca3e5 AK |
4446 | |
4447 | fi | |
4448 | ||
ad6254c5 AK |
4449 | if test $ac_cv_header_stdc = yes; then |
4450 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4451 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4452 | /* confdefs.h. */ |
4453 | _ACEOF | |
4454 | cat confdefs.h >>conftest.$ac_ext | |
4455 | cat >>conftest.$ac_ext <<_ACEOF | |
4456 | /* end confdefs.h. */ | |
80992638 | 4457 | #include <stdlib.h> |
ad6254c5 AK |
4458 | |
4459 | _ACEOF | |
80992638 | 4460 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4461 | $EGREP "free" >/dev/null 2>&1; then |
4462 | : | |
795ca3e5 | 4463 | else |
ad6254c5 | 4464 | ac_cv_header_stdc=no |
795ca3e5 | 4465 | fi |
80992638 | 4466 | rm -f conftest* |
8106cdd5 | 4467 | |
795ca3e5 AK |
4468 | fi |
4469 | ||
ad6254c5 AK |
4470 | if test $ac_cv_header_stdc = yes; then |
4471 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4472 | if test "$cross_compiling" = yes; then | |
4473 | : | |
795ca3e5 | 4474 | else |
ad6254c5 | 4475 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4476 | /* confdefs.h. */ |
4477 | _ACEOF | |
4478 | cat confdefs.h >>conftest.$ac_ext | |
4479 | cat >>conftest.$ac_ext <<_ACEOF | |
4480 | /* end confdefs.h. */ | |
4481 | #include <ctype.h> | |
7a197a62 | 4482 | #include <stdlib.h> |
ad6254c5 AK |
4483 | #if ((' ' & 0x0FF) == 0x020) |
4484 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4485 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4486 | #else | |
4487 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4488 | (('a' <= (c) && (c) <= 'i') \ |
4489 | || ('j' <= (c) && (c) <= 'r') \ | |
4490 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4491 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4492 | #endif |
ad6254c5 AK |
4493 | |
4494 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4495 | int | |
4496 | main () | |
4497 | { | |
4498 | int i; | |
4499 | for (i = 0; i < 256; i++) | |
4500 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4501 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4502 | return 2; |
4503 | return 0; | |
ad6254c5 AK |
4504 | } |
4505 | _ACEOF | |
4506 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4507 | if { (ac_try="$ac_link" |
4508 | case "(($ac_try" in | |
4509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4510 | *) ac_try_echo=$ac_try;; | |
4511 | esac | |
ec6a6fbe AK |
4512 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4513 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4514 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4515 | ac_status=$? |
ec6a6fbe | 4516 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4517 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4518 | { (case "(($ac_try" in |
4519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4520 | *) ac_try_echo=$ac_try;; | |
4521 | esac | |
ec6a6fbe AK |
4522 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4523 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4524 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4525 | ac_status=$? |
ec6a6fbe | 4526 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4527 | (exit $ac_status); }; }; then |
4528 | : | |
795ca3e5 | 4529 | else |
ec6a6fbe AK |
4530 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4531 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4532 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4533 | |
ad6254c5 AK |
4534 | ( exit $ac_status ) |
4535 | ac_cv_header_stdc=no | |
80992638 | 4536 | fi |
ec6a6fbe | 4537 | rm -rf conftest.dSYM |
7a197a62 | 4538 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4539 | fi |
7a197a62 AK |
4540 | |
4541 | ||
ad6254c5 AK |
4542 | fi |
4543 | fi | |
ec6a6fbe AK |
4544 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4545 | $as_echo "$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4546 | if test $ac_cv_header_stdc = yes; then |
4547 | ||
4548 | cat >>confdefs.h <<\_ACEOF | |
4549 | #define STDC_HEADERS 1 | |
4550 | _ACEOF | |
795ca3e5 AK |
4551 | |
4552 | fi | |
4553 | ||
d911ec67 | 4554 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
ad6254c5 | 4555 | |
ad6254c5 | 4556 | |
7a197a62 | 4557 | |
8106cdd5 | 4558 | |
795ca3e5 | 4559 | |
795ca3e5 | 4560 | |
d911ec67 AK |
4561 | |
4562 | ||
4563 | ||
4564 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4565 | inttypes.h stdint.h unistd.h | |
4566 | do | |
4567 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4568 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4569 | $as_echo_n "checking for $ac_header... " >&6; } | |
4570 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ec6a6fbe | 4571 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 4572 | else |
ad6254c5 | 4573 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4574 | /* confdefs.h. */ |
4575 | _ACEOF | |
4576 | cat confdefs.h >>conftest.$ac_ext | |
4577 | cat >>conftest.$ac_ext <<_ACEOF | |
4578 | /* end confdefs.h. */ | |
d911ec67 | 4579 | $ac_includes_default |
ad6254c5 | 4580 | |
d911ec67 | 4581 | #include <$ac_header> |
ad6254c5 AK |
4582 | _ACEOF |
4583 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4584 | if { (ac_try="$ac_compile" |
4585 | case "(($ac_try" in | |
4586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4587 | *) ac_try_echo=$ac_try;; | |
4588 | esac | |
ec6a6fbe AK |
4589 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4590 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4591 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4592 | ac_status=$? |
8a2fc586 AK |
4593 | grep -v '^ *+' conftest.er1 >conftest.err |
4594 | rm -f conftest.er1 | |
4595 | cat conftest.err >&5 | |
ec6a6fbe | 4596 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4597 | (exit $ac_status); } && { |
4598 | test -z "$ac_c_werror_flag" || | |
4599 | test ! -s conftest.err | |
4600 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 4601 | eval "$as_ac_Header=yes" |
795ca3e5 | 4602 | else |
ec6a6fbe | 4603 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4604 | sed 's/^/| /' conftest.$ac_ext >&5 |
4605 | ||
d911ec67 | 4606 | eval "$as_ac_Header=no" |
795ca3e5 | 4607 | fi |
7a197a62 AK |
4608 | |
4609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4610 | fi |
d911ec67 AK |
4611 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4612 | $as_echo "$as_val"'` | |
4613 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4614 | $as_echo "$ac_res" >&6; } | |
4615 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4616 | $as_echo "$as_val"'` | |
4617 | if test "x$as_val" = x""yes; then | |
4618 | cat >>confdefs.h <<_ACEOF | |
4619 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ad6254c5 | 4620 | _ACEOF |
b896caa1 | 4621 | |
8106cdd5 | 4622 | fi |
b896caa1 | 4623 | |
d911ec67 | 4624 | done |
d0191583 JM |
4625 | |
4626 | ||
d911ec67 AK |
4627 | { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
4628 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | |
4629 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then | |
ec6a6fbe | 4630 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4631 | else |
4632 | cat >conftest.$ac_ext <<_ACEOF | |
4633 | /* confdefs.h. */ | |
4634 | _ACEOF | |
4635 | cat confdefs.h >>conftest.$ac_ext | |
4636 | cat >>conftest.$ac_ext <<_ACEOF | |
4637 | /* end confdefs.h. */ | |
d911ec67 AK |
4638 | #include <sys/types.h> |
4639 | int | |
4640 | main () | |
4641 | { | |
4642 | return makedev(0, 0); | |
4643 | ; | |
4644 | return 0; | |
4645 | } | |
d0191583 | 4646 | _ACEOF |
d911ec67 AK |
4647 | rm -f conftest.$ac_objext conftest$ac_exeext |
4648 | if { (ac_try="$ac_link" | |
d0191583 JM |
4649 | case "(($ac_try" in |
4650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4651 | *) ac_try_echo=$ac_try;; | |
4652 | esac | |
ec6a6fbe AK |
4653 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4654 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 | 4655 | (eval "$ac_link") 2>conftest.er1 |
d0191583 JM |
4656 | ac_status=$? |
4657 | grep -v '^ *+' conftest.er1 >conftest.err | |
4658 | rm -f conftest.er1 | |
4659 | cat conftest.err >&5 | |
ec6a6fbe | 4660 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4661 | (exit $ac_status); } && { |
4662 | test -z "$ac_c_werror_flag" || | |
4663 | test ! -s conftest.err | |
d911ec67 AK |
4664 | } && test -s conftest$ac_exeext && { |
4665 | test "$cross_compiling" = yes || | |
4666 | $as_test_x conftest$ac_exeext | |
4667 | }; then | |
4668 | ac_cv_header_sys_types_h_makedev=yes | |
d0191583 | 4669 | else |
ec6a6fbe | 4670 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4671 | sed 's/^/| /' conftest.$ac_ext >&5 |
4672 | ||
d911ec67 | 4673 | ac_cv_header_sys_types_h_makedev=no |
d0191583 JM |
4674 | fi |
4675 | ||
d911ec67 AK |
4676 | rm -rf conftest.dSYM |
4677 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4678 | conftest$ac_exeext conftest.$ac_ext | |
d0191583 JM |
4679 | |
4680 | fi | |
d911ec67 AK |
4681 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
4682 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | |
d0191583 | 4683 | |
d911ec67 AK |
4684 | if test $ac_cv_header_sys_types_h_makedev = no; then |
4685 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then | |
4686 | { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 | |
4687 | $as_echo_n "checking for sys/mkdev.h... " >&6; } | |
4688 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then | |
ec6a6fbe | 4689 | $as_echo_n "(cached) " >&6 |
d0191583 | 4690 | fi |
d911ec67 AK |
4691 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
4692 | $as_echo "$ac_cv_header_sys_mkdev_h" >&6; } | |
ad6254c5 | 4693 | else |
d0191583 | 4694 | # Is the header compilable? |
d911ec67 AK |
4695 | { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
4696 | $as_echo_n "checking sys/mkdev.h usability... " >&6; } | |
d0191583 | 4697 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4698 | /* confdefs.h. */ |
4699 | _ACEOF | |
4700 | cat confdefs.h >>conftest.$ac_ext | |
4701 | cat >>conftest.$ac_ext <<_ACEOF | |
4702 | /* end confdefs.h. */ | |
4703 | $ac_includes_default | |
d911ec67 | 4704 | #include <sys/mkdev.h> |
ad6254c5 AK |
4705 | _ACEOF |
4706 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4707 | if { (ac_try="$ac_compile" |
4708 | case "(($ac_try" in | |
4709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4710 | *) ac_try_echo=$ac_try;; | |
4711 | esac | |
ec6a6fbe AK |
4712 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4713 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4714 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4715 | ac_status=$? |
8a2fc586 AK |
4716 | grep -v '^ *+' conftest.er1 >conftest.err |
4717 | rm -f conftest.er1 | |
4718 | cat conftest.err >&5 | |
ec6a6fbe | 4719 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4720 | (exit $ac_status); } && { |
4721 | test -z "$ac_c_werror_flag" || | |
4722 | test ! -s conftest.err | |
4723 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4724 | ac_header_compiler=yes |
ad6254c5 | 4725 | else |
ec6a6fbe | 4726 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4727 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4728 | |
d0191583 | 4729 | ac_header_compiler=no |
ad6254c5 | 4730 | fi |
7a197a62 AK |
4731 | |
4732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4733 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4734 | $as_echo "$ac_header_compiler" >&6; } | |
d0191583 JM |
4735 | |
4736 | # Is the header present? | |
d911ec67 AK |
4737 | { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
4738 | $as_echo_n "checking sys/mkdev.h presence... " >&6; } | |
d0191583 JM |
4739 | cat >conftest.$ac_ext <<_ACEOF |
4740 | /* confdefs.h. */ | |
4741 | _ACEOF | |
4742 | cat confdefs.h >>conftest.$ac_ext | |
4743 | cat >>conftest.$ac_ext <<_ACEOF | |
4744 | /* end confdefs.h. */ | |
d911ec67 | 4745 | #include <sys/mkdev.h> |
d0191583 JM |
4746 | _ACEOF |
4747 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4748 | case "(($ac_try" in | |
4749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4750 | *) ac_try_echo=$ac_try;; | |
4751 | esac | |
ec6a6fbe AK |
4752 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4753 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4754 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4755 | ac_status=$? | |
4756 | grep -v '^ *+' conftest.er1 >conftest.err | |
4757 | rm -f conftest.er1 | |
4758 | cat conftest.err >&5 | |
ec6a6fbe | 4759 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4760 | (exit $ac_status); } >/dev/null && { |
4761 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4762 | test ! -s conftest.err | |
4763 | }; then | |
4764 | ac_header_preproc=yes | |
4765 | else | |
ec6a6fbe | 4766 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4767 | sed 's/^/| /' conftest.$ac_ext >&5 |
4768 | ||
4769 | ac_header_preproc=no | |
4770 | fi | |
4771 | ||
4772 | rm -f conftest.err conftest.$ac_ext | |
ec6a6fbe AK |
4773 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4774 | $as_echo "$ac_header_preproc" >&6; } | |
d0191583 JM |
4775 | |
4776 | # So? What about this header? | |
4777 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4778 | yes:no: ) | |
d911ec67 AK |
4779 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4780 | $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4781 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 | |
4782 | $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4783 | ac_header_preproc=yes |
4784 | ;; | |
4785 | no:yes:* ) | |
d911ec67 AK |
4786 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
4787 | $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} | |
4788 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 | |
4789 | $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} | |
4790 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 | |
4791 | $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} | |
4792 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4793 | $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4794 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 | |
4795 | $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} | |
4796 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 | |
4797 | $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4798 | |
4799 | ;; | |
4800 | esac | |
d911ec67 AK |
4801 | { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
4802 | $as_echo_n "checking for sys/mkdev.h... " >&6; } | |
4803 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then | |
ec6a6fbe | 4804 | $as_echo_n "(cached) " >&6 |
d0191583 | 4805 | else |
d911ec67 | 4806 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
a38df97f | 4807 | fi |
d911ec67 AK |
4808 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
4809 | $as_echo "$ac_cv_header_sys_mkdev_h" >&6; } | |
d0191583 JM |
4810 | |
4811 | fi | |
d911ec67 AK |
4812 | if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then |
4813 | ||
4814 | cat >>confdefs.h <<\_ACEOF | |
4815 | #define MAJOR_IN_MKDEV 1 | |
ad6254c5 | 4816 | _ACEOF |
a38df97f | 4817 | |
80992638 AK |
4818 | fi |
4819 | ||
80992638 | 4820 | |
5a52dca9 | 4821 | |
d911ec67 AK |
4822 | if test $ac_cv_header_sys_mkdev_h = no; then |
4823 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then | |
4824 | { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 | |
4825 | $as_echo_n "checking for sys/sysmacros.h... " >&6; } | |
4826 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then | |
ec6a6fbe | 4827 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4828 | fi |
d911ec67 AK |
4829 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
4830 | $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; } | |
ad6254c5 AK |
4831 | else |
4832 | # Is the header compilable? | |
d911ec67 AK |
4833 | { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
4834 | $as_echo_n "checking sys/sysmacros.h usability... " >&6; } | |
ad6254c5 | 4835 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4836 | /* confdefs.h. */ |
4837 | _ACEOF | |
4838 | cat confdefs.h >>conftest.$ac_ext | |
4839 | cat >>conftest.$ac_ext <<_ACEOF | |
4840 | /* end confdefs.h. */ | |
4841 | $ac_includes_default | |
d911ec67 | 4842 | #include <sys/sysmacros.h> |
ad6254c5 AK |
4843 | _ACEOF |
4844 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4845 | if { (ac_try="$ac_compile" |
4846 | case "(($ac_try" in | |
4847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4848 | *) ac_try_echo=$ac_try;; | |
4849 | esac | |
ec6a6fbe AK |
4850 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4851 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4852 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4853 | ac_status=$? |
8a2fc586 AK |
4854 | grep -v '^ *+' conftest.er1 >conftest.err |
4855 | rm -f conftest.er1 | |
4856 | cat conftest.err >&5 | |
ec6a6fbe | 4857 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4858 | (exit $ac_status); } && { |
4859 | test -z "$ac_c_werror_flag" || | |
4860 | test ! -s conftest.err | |
4861 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4862 | ac_header_compiler=yes |
4863 | else | |
ec6a6fbe | 4864 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4865 | sed 's/^/| /' conftest.$ac_ext >&5 |
4866 | ||
4867 | ac_header_compiler=no | |
4868 | fi | |
4869 | ||
4870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4871 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4872 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4873 | |
4874 | # Is the header present? | |
d911ec67 AK |
4875 | { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
4876 | $as_echo_n "checking sys/sysmacros.h presence... " >&6; } | |
ad6254c5 | 4877 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4878 | /* confdefs.h. */ |
4879 | _ACEOF | |
4880 | cat confdefs.h >>conftest.$ac_ext | |
4881 | cat >>conftest.$ac_ext <<_ACEOF | |
4882 | /* end confdefs.h. */ | |
d911ec67 | 4883 | #include <sys/sysmacros.h> |
ad6254c5 | 4884 | _ACEOF |
7a197a62 AK |
4885 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4886 | case "(($ac_try" in | |
4887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4888 | *) ac_try_echo=$ac_try;; | |
4889 | esac | |
ec6a6fbe AK |
4890 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4891 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4892 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4893 | ac_status=$? |
4894 | grep -v '^ *+' conftest.er1 >conftest.err | |
4895 | rm -f conftest.er1 | |
4896 | cat conftest.err >&5 | |
ec6a6fbe | 4897 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4898 | (exit $ac_status); } >/dev/null && { |
4899 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4900 | test ! -s conftest.err | |
4901 | }; then | |
ad6254c5 AK |
4902 | ac_header_preproc=yes |
4903 | else | |
ec6a6fbe | 4904 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4905 | sed 's/^/| /' conftest.$ac_ext >&5 |
4906 | ||
4907 | ac_header_preproc=no | |
4908 | fi | |
7a197a62 | 4909 | |
ad6254c5 | 4910 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
4911 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4912 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4913 | |
4914 | # So? What about this header? | |
8a2fc586 AK |
4915 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4916 | yes:no: ) | |
d911ec67 AK |
4917 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4918 | $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4919 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 | |
4920 | $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4921 | ac_header_preproc=yes |
ad6254c5 | 4922 | ;; |
8a2fc586 | 4923 | no:yes:* ) |
d911ec67 AK |
4924 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
4925 | $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} | |
4926 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 | |
4927 | $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} | |
4928 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 | |
4929 | $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} | |
4930 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4931 | $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4932 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 | |
4933 | $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} | |
4934 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 | |
4935 | $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4936 | |
ad6254c5 AK |
4937 | ;; |
4938 | esac | |
d911ec67 AK |
4939 | { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
4940 | $as_echo_n "checking for sys/sysmacros.h... " >&6; } | |
4941 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then | |
ec6a6fbe | 4942 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4943 | else |
d911ec67 | 4944 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
b896caa1 | 4945 | fi |
d911ec67 AK |
4946 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
4947 | $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; } | |
ad6254c5 AK |
4948 | |
4949 | fi | |
d911ec67 AK |
4950 | if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then |
4951 | ||
4952 | cat >>confdefs.h <<\_ACEOF | |
4953 | #define MAJOR_IN_SYSMACROS 1 | |
ad6254c5 | 4954 | _ACEOF |
b896caa1 | 4955 | |
80992638 AK |
4956 | fi |
4957 | ||
d8ac0fbc | 4958 | |
d911ec67 AK |
4959 | fi |
4960 | fi | |
d8ac0fbc | 4961 | |
d911ec67 AK |
4962 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4963 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4964 | if test "${ac_cv_header_stdc+set}" = set; then | |
ec6a6fbe | 4965 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4966 | else |
d911ec67 | 4967 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4968 | /* confdefs.h. */ |
4969 | _ACEOF | |
4970 | cat confdefs.h >>conftest.$ac_ext | |
4971 | cat >>conftest.$ac_ext <<_ACEOF | |
4972 | /* end confdefs.h. */ | |
d911ec67 AK |
4973 | #include <stdlib.h> |
4974 | #include <stdarg.h> | |
4975 | #include <string.h> | |
4976 | #include <float.h> | |
4977 | ||
4978 | int | |
4979 | main () | |
4980 | { | |
4981 | ||
4982 | ; | |
4983 | return 0; | |
4984 | } | |
ad6254c5 AK |
4985 | _ACEOF |
4986 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4987 | if { (ac_try="$ac_compile" |
4988 | case "(($ac_try" in | |
4989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4990 | *) ac_try_echo=$ac_try;; | |
4991 | esac | |
ec6a6fbe AK |
4992 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4993 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4994 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4995 | ac_status=$? |
8a2fc586 AK |
4996 | grep -v '^ *+' conftest.er1 >conftest.err |
4997 | rm -f conftest.er1 | |
4998 | cat conftest.err >&5 | |
ec6a6fbe | 4999 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5000 | (exit $ac_status); } && { |
5001 | test -z "$ac_c_werror_flag" || | |
5002 | test ! -s conftest.err | |
5003 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 5004 | ac_cv_header_stdc=yes |
ad6254c5 | 5005 | else |
ec6a6fbe | 5006 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5007 | sed 's/^/| /' conftest.$ac_ext >&5 |
5008 | ||
d911ec67 | 5009 | ac_cv_header_stdc=no |
ad6254c5 | 5010 | fi |
7a197a62 AK |
5011 | |
5012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5013 | |
d911ec67 AK |
5014 | if test $ac_cv_header_stdc = yes; then |
5015 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5016 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5017 | /* confdefs.h. */ |
5018 | _ACEOF | |
5019 | cat confdefs.h >>conftest.$ac_ext | |
5020 | cat >>conftest.$ac_ext <<_ACEOF | |
5021 | /* end confdefs.h. */ | |
d911ec67 AK |
5022 | #include <string.h> |
5023 | ||
ad6254c5 | 5024 | _ACEOF |
d911ec67 AK |
5025 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5026 | $EGREP "memchr" >/dev/null 2>&1; then | |
5027 | : | |
5028 | else | |
5029 | ac_cv_header_stdc=no | |
5030 | fi | |
5031 | rm -f conftest* | |
5032 | ||
5033 | fi | |
5034 | ||
5035 | if test $ac_cv_header_stdc = yes; then | |
5036 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5037 | cat >conftest.$ac_ext <<_ACEOF | |
5038 | /* confdefs.h. */ | |
5039 | _ACEOF | |
5040 | cat confdefs.h >>conftest.$ac_ext | |
5041 | cat >>conftest.$ac_ext <<_ACEOF | |
5042 | /* end confdefs.h. */ | |
5043 | #include <stdlib.h> | |
5044 | ||
5045 | _ACEOF | |
5046 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5047 | $EGREP "free" >/dev/null 2>&1; then | |
5048 | : | |
5049 | else | |
5050 | ac_cv_header_stdc=no | |
5051 | fi | |
5052 | rm -f conftest* | |
5053 | ||
5054 | fi | |
5055 | ||
5056 | if test $ac_cv_header_stdc = yes; then | |
5057 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5058 | if test "$cross_compiling" = yes; then | |
5059 | : | |
5060 | else | |
5061 | cat >conftest.$ac_ext <<_ACEOF | |
5062 | /* confdefs.h. */ | |
5063 | _ACEOF | |
5064 | cat confdefs.h >>conftest.$ac_ext | |
5065 | cat >>conftest.$ac_ext <<_ACEOF | |
5066 | /* end confdefs.h. */ | |
5067 | #include <ctype.h> | |
5068 | #include <stdlib.h> | |
5069 | #if ((' ' & 0x0FF) == 0x020) | |
5070 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5071 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5072 | #else | |
5073 | # define ISLOWER(c) \ | |
5074 | (('a' <= (c) && (c) <= 'i') \ | |
5075 | || ('j' <= (c) && (c) <= 'r') \ | |
5076 | || ('s' <= (c) && (c) <= 'z')) | |
5077 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5078 | #endif | |
5079 | ||
5080 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5081 | int | |
5082 | main () | |
5083 | { | |
5084 | int i; | |
5085 | for (i = 0; i < 256; i++) | |
5086 | if (XOR (islower (i), ISLOWER (i)) | |
5087 | || toupper (i) != TOUPPER (i)) | |
5088 | return 2; | |
5089 | return 0; | |
5090 | } | |
5091 | _ACEOF | |
5092 | rm -f conftest$ac_exeext | |
5093 | if { (ac_try="$ac_link" | |
7a197a62 AK |
5094 | case "(($ac_try" in |
5095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5096 | *) ac_try_echo=$ac_try;; | |
5097 | esac | |
ec6a6fbe AK |
5098 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5099 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 AK |
5100 | (eval "$ac_link") 2>&5 |
5101 | ac_status=$? | |
5102 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5103 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5104 | { (case "(($ac_try" in | |
5105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5106 | *) ac_try_echo=$ac_try;; | |
5107 | esac | |
5108 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5109 | $as_echo "$ac_try_echo") >&5 | |
5110 | (eval "$ac_try") 2>&5 | |
5111 | ac_status=$? | |
5112 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5113 | (exit $ac_status); }; }; then | |
5114 | : | |
5115 | else | |
5116 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
5117 | $as_echo "$as_me: failed program was:" >&5 | |
5118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5119 | ||
5120 | ( exit $ac_status ) | |
5121 | ac_cv_header_stdc=no | |
5122 | fi | |
5123 | rm -rf conftest.dSYM | |
5124 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5125 | fi | |
5126 | ||
5127 | ||
5128 | fi | |
5129 | fi | |
5130 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
5131 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5132 | if test $ac_cv_header_stdc = yes; then | |
5133 | ||
5134 | cat >>confdefs.h <<\_ACEOF | |
5135 | #define STDC_HEADERS 1 | |
5136 | _ACEOF | |
5137 | ||
5138 | fi | |
5139 | ||
5140 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | |
5141 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
5142 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
5143 | $as_echo_n "(cached) " >&6 | |
5144 | else | |
5145 | cat >conftest.$ac_ext <<_ACEOF | |
5146 | /* confdefs.h. */ | |
5147 | _ACEOF | |
5148 | cat confdefs.h >>conftest.$ac_ext | |
5149 | cat >>conftest.$ac_ext <<_ACEOF | |
5150 | /* end confdefs.h. */ | |
5151 | #include <sys/types.h> | |
5152 | #include <sys/wait.h> | |
5153 | #ifndef WEXITSTATUS | |
5154 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | |
5155 | #endif | |
5156 | #ifndef WIFEXITED | |
5157 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
5158 | #endif | |
5159 | ||
5160 | int | |
5161 | main () | |
5162 | { | |
5163 | int s; | |
5164 | wait (&s); | |
5165 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
5166 | ; | |
5167 | return 0; | |
5168 | } | |
5169 | _ACEOF | |
5170 | rm -f conftest.$ac_objext | |
5171 | if { (ac_try="$ac_compile" | |
5172 | case "(($ac_try" in | |
5173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5174 | *) ac_try_echo=$ac_try;; | |
5175 | esac | |
5176 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5177 | $as_echo "$ac_try_echo") >&5 | |
5178 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 AK |
5179 | ac_status=$? |
5180 | grep -v '^ *+' conftest.er1 >conftest.err | |
5181 | rm -f conftest.er1 | |
5182 | cat conftest.err >&5 | |
ec6a6fbe | 5183 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d911ec67 AK |
5184 | (exit $ac_status); } && { |
5185 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 5186 | test ! -s conftest.err |
d911ec67 AK |
5187 | } && test -s conftest.$ac_objext; then |
5188 | ac_cv_header_sys_wait_h=yes | |
ad6254c5 | 5189 | else |
ec6a6fbe | 5190 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5191 | sed 's/^/| /' conftest.$ac_ext >&5 |
5192 | ||
d911ec67 | 5193 | ac_cv_header_sys_wait_h=no |
ad6254c5 | 5194 | fi |
7a197a62 | 5195 | |
d911ec67 AK |
5196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5197 | fi | |
5198 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 | |
5199 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
5200 | if test $ac_cv_header_sys_wait_h = yes; then | |
5201 | ||
5202 | cat >>confdefs.h <<\_ACEOF | |
5203 | #define HAVE_SYS_WAIT_H 1 | |
5204 | _ACEOF | |
5205 | ||
5206 | fi | |
5207 | ||
5208 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
5209 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
5210 | if test "${ac_cv_header_time+set}" = set; then | |
5211 | $as_echo_n "(cached) " >&6 | |
5212 | else | |
5213 | cat >conftest.$ac_ext <<_ACEOF | |
5214 | /* confdefs.h. */ | |
5215 | _ACEOF | |
5216 | cat confdefs.h >>conftest.$ac_ext | |
5217 | cat >>conftest.$ac_ext <<_ACEOF | |
5218 | /* end confdefs.h. */ | |
5219 | #include <sys/types.h> | |
5220 | #include <sys/time.h> | |
5221 | #include <time.h> | |
5222 | ||
5223 | int | |
5224 | main () | |
5225 | { | |
5226 | if ((struct tm *) 0) | |
5227 | return 0; | |
5228 | ; | |
5229 | return 0; | |
5230 | } | |
5231 | _ACEOF | |
5232 | rm -f conftest.$ac_objext | |
5233 | if { (ac_try="$ac_compile" | |
5234 | case "(($ac_try" in | |
5235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5236 | *) ac_try_echo=$ac_try;; | |
5237 | esac | |
5238 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5239 | $as_echo "$ac_try_echo") >&5 | |
5240 | (eval "$ac_compile") 2>conftest.er1 | |
5241 | ac_status=$? | |
5242 | grep -v '^ *+' conftest.er1 >conftest.err | |
5243 | rm -f conftest.er1 | |
5244 | cat conftest.err >&5 | |
5245 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5246 | (exit $ac_status); } && { | |
5247 | test -z "$ac_c_werror_flag" || | |
5248 | test ! -s conftest.err | |
5249 | } && test -s conftest.$ac_objext; then | |
5250 | ac_cv_header_time=yes | |
5251 | else | |
5252 | $as_echo "$as_me: failed program was:" >&5 | |
5253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5254 | ||
5255 | ac_cv_header_time=no | |
5256 | fi | |
5257 | ||
5258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5259 | fi | |
5260 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | |
5261 | $as_echo "$ac_cv_header_time" >&6; } | |
5262 | if test $ac_cv_header_time = yes; then | |
5263 | ||
5264 | cat >>confdefs.h <<\_ACEOF | |
5265 | #define TIME_WITH_SYS_TIME 1 | |
5266 | _ACEOF | |
5267 | ||
5268 | fi | |
5269 | ||
5270 | ||
5271 | ||
5272 | ||
5273 | ||
5274 | ||
5275 | ||
5276 | ||
5277 | ||
5278 | ||
5279 | ||
5280 | ||
5281 | ||
5282 | ||
5283 | ||
5284 | ||
5285 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
5286 | langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \ | |
5287 | sys/wait.h time.h | |
5288 | do | |
5289 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5290 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5291 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5292 | $as_echo_n "checking for $ac_header... " >&6; } | |
5293 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5294 | $as_echo_n "(cached) " >&6 | |
5295 | fi | |
5296 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5297 | $as_echo "$as_val"'` | |
5298 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5299 | $as_echo "$ac_res" >&6; } | |
5300 | else | |
5301 | # Is the header compilable? | |
5302 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5303 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5304 | cat >conftest.$ac_ext <<_ACEOF | |
5305 | /* confdefs.h. */ | |
5306 | _ACEOF | |
5307 | cat confdefs.h >>conftest.$ac_ext | |
5308 | cat >>conftest.$ac_ext <<_ACEOF | |
5309 | /* end confdefs.h. */ | |
5310 | $ac_includes_default | |
5311 | #include <$ac_header> | |
5312 | _ACEOF | |
5313 | rm -f conftest.$ac_objext | |
5314 | if { (ac_try="$ac_compile" | |
5315 | case "(($ac_try" in | |
5316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5317 | *) ac_try_echo=$ac_try;; | |
5318 | esac | |
5319 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5320 | $as_echo "$ac_try_echo") >&5 | |
5321 | (eval "$ac_compile") 2>conftest.er1 | |
5322 | ac_status=$? | |
5323 | grep -v '^ *+' conftest.er1 >conftest.err | |
5324 | rm -f conftest.er1 | |
5325 | cat conftest.err >&5 | |
5326 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5327 | (exit $ac_status); } && { | |
5328 | test -z "$ac_c_werror_flag" || | |
5329 | test ! -s conftest.err | |
5330 | } && test -s conftest.$ac_objext; then | |
5331 | ac_header_compiler=yes | |
5332 | else | |
5333 | $as_echo "$as_me: failed program was:" >&5 | |
5334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5335 | ||
5336 | ac_header_compiler=no | |
5337 | fi | |
5338 | ||
5339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5340 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5341 | $as_echo "$ac_header_compiler" >&6; } | |
5342 | ||
5343 | # Is the header present? | |
5344 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5345 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5346 | cat >conftest.$ac_ext <<_ACEOF | |
5347 | /* confdefs.h. */ | |
5348 | _ACEOF | |
5349 | cat confdefs.h >>conftest.$ac_ext | |
5350 | cat >>conftest.$ac_ext <<_ACEOF | |
5351 | /* end confdefs.h. */ | |
5352 | #include <$ac_header> | |
5353 | _ACEOF | |
5354 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5355 | case "(($ac_try" in | |
5356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5357 | *) ac_try_echo=$ac_try;; | |
5358 | esac | |
5359 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5360 | $as_echo "$ac_try_echo") >&5 | |
5361 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5362 | ac_status=$? | |
5363 | grep -v '^ *+' conftest.er1 >conftest.err | |
5364 | rm -f conftest.er1 | |
5365 | cat conftest.err >&5 | |
5366 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5367 | (exit $ac_status); } >/dev/null && { | |
5368 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5369 | test ! -s conftest.err | |
5370 | }; then | |
5371 | ac_header_preproc=yes | |
5372 | else | |
5373 | $as_echo "$as_me: failed program was:" >&5 | |
5374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5375 | ||
5376 | ac_header_preproc=no | |
5377 | fi | |
5378 | ||
5379 | rm -f conftest.err conftest.$ac_ext | |
5380 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5381 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5382 | |
5383 | # So? What about this header? | |
8a2fc586 AK |
5384 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5385 | yes:no: ) | |
ec6a6fbe AK |
5386 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5387 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5388 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5389 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5390 | ac_header_preproc=yes |
ad6254c5 | 5391 | ;; |
8a2fc586 | 5392 | no:yes:* ) |
ec6a6fbe AK |
5393 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5394 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5395 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5396 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5397 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5398 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5399 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5400 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5401 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5402 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5403 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5404 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5405 | |
ad6254c5 AK |
5406 | ;; |
5407 | esac | |
d911ec67 AK |
5408 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5409 | $as_echo_n "checking for $ac_header... " >&6; } | |
5410 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5411 | $as_echo_n "(cached) " >&6 | |
5412 | else | |
5413 | eval "$as_ac_Header=\$ac_header_preproc" | |
5414 | fi | |
5415 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5416 | $as_echo "$as_val"'` | |
5417 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5418 | $as_echo "$ac_res" >&6; } | |
5419 | ||
5420 | fi | |
5421 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5422 | $as_echo "$as_val"'` | |
5423 | if test "x$as_val" = x""yes; then | |
5424 | cat >>confdefs.h <<_ACEOF | |
5425 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5426 | _ACEOF | |
5427 | ||
5428 | else | |
5429 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5430 | $as_echo "$as_me: error: bailing out" >&2;} | |
5431 | { (exit 1); exit 1; }; } | |
5432 | fi | |
5433 | ||
5434 | done | |
5435 | ||
5436 | ||
5437 | case "$host_os" in | |
5438 | linux*) | |
5439 | ||
5440 | ||
5441 | ||
5442 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
5443 | do | |
5444 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5445 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5446 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5447 | $as_echo_n "checking for $ac_header... " >&6; } | |
5448 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5449 | $as_echo_n "(cached) " >&6 | |
5450 | fi | |
5451 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5452 | $as_echo "$as_val"'` | |
5453 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5454 | $as_echo "$ac_res" >&6; } | |
5455 | else | |
5456 | # Is the header compilable? | |
5457 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5458 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5459 | cat >conftest.$ac_ext <<_ACEOF | |
5460 | /* confdefs.h. */ | |
5461 | _ACEOF | |
5462 | cat confdefs.h >>conftest.$ac_ext | |
5463 | cat >>conftest.$ac_ext <<_ACEOF | |
5464 | /* end confdefs.h. */ | |
5465 | $ac_includes_default | |
5466 | #include <$ac_header> | |
5467 | _ACEOF | |
5468 | rm -f conftest.$ac_objext | |
5469 | if { (ac_try="$ac_compile" | |
5470 | case "(($ac_try" in | |
5471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5472 | *) ac_try_echo=$ac_try;; | |
5473 | esac | |
5474 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5475 | $as_echo "$ac_try_echo") >&5 | |
5476 | (eval "$ac_compile") 2>conftest.er1 | |
5477 | ac_status=$? | |
5478 | grep -v '^ *+' conftest.er1 >conftest.err | |
5479 | rm -f conftest.er1 | |
5480 | cat conftest.err >&5 | |
5481 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5482 | (exit $ac_status); } && { | |
5483 | test -z "$ac_c_werror_flag" || | |
5484 | test ! -s conftest.err | |
5485 | } && test -s conftest.$ac_objext; then | |
5486 | ac_header_compiler=yes | |
5487 | else | |
5488 | $as_echo "$as_me: failed program was:" >&5 | |
5489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5490 | ||
5491 | ac_header_compiler=no | |
5492 | fi | |
5493 | ||
5494 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5495 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5496 | $as_echo "$ac_header_compiler" >&6; } | |
5497 | ||
5498 | # Is the header present? | |
5499 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5500 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5501 | cat >conftest.$ac_ext <<_ACEOF | |
5502 | /* confdefs.h. */ | |
5503 | _ACEOF | |
5504 | cat confdefs.h >>conftest.$ac_ext | |
5505 | cat >>conftest.$ac_ext <<_ACEOF | |
5506 | /* end confdefs.h. */ | |
5507 | #include <$ac_header> | |
5508 | _ACEOF | |
5509 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5510 | case "(($ac_try" in | |
5511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5512 | *) ac_try_echo=$ac_try;; | |
5513 | esac | |
5514 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5515 | $as_echo "$ac_try_echo") >&5 | |
5516 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5517 | ac_status=$? | |
5518 | grep -v '^ *+' conftest.er1 >conftest.err | |
5519 | rm -f conftest.er1 | |
5520 | cat conftest.err >&5 | |
5521 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5522 | (exit $ac_status); } >/dev/null && { | |
5523 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5524 | test ! -s conftest.err | |
5525 | }; then | |
5526 | ac_header_preproc=yes | |
5527 | else | |
5528 | $as_echo "$as_me: failed program was:" >&5 | |
5529 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5530 | ||
5531 | ac_header_preproc=no | |
5532 | fi | |
5533 | ||
5534 | rm -f conftest.err conftest.$ac_ext | |
5535 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5536 | $as_echo "$ac_header_preproc" >&6; } | |
5537 | ||
5538 | # So? What about this header? | |
5539 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5540 | yes:no: ) | |
5541 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5542 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5543 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5544 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5545 | ac_header_preproc=yes | |
5546 | ;; | |
5547 | no:yes:* ) | |
5548 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5549 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5550 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5551 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5552 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5553 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5554 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5555 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5556 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5557 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5558 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5559 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5560 | ||
5561 | ;; | |
5562 | esac | |
5563 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5564 | $as_echo_n "checking for $ac_header... " >&6; } | |
5565 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5566 | $as_echo_n "(cached) " >&6 | |
5567 | else | |
5568 | eval "$as_ac_Header=\$ac_header_preproc" | |
5569 | fi | |
5570 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5571 | $as_echo "$as_val"'` | |
5572 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5573 | $as_echo "$ac_res" >&6; } | |
5574 | ||
5575 | fi | |
5576 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5577 | $as_echo "$as_val"'` | |
5578 | if test "x$as_val" = x""yes; then | |
5579 | cat >>confdefs.h <<_ACEOF | |
5580 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5581 | _ACEOF | |
5582 | ||
5583 | else | |
5584 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5585 | $as_echo "$as_me: error: bailing out" >&2;} | |
5586 | { (exit 1); exit 1; }; } | |
5587 | fi | |
5588 | ||
5589 | done | |
5590 | ;; | |
5591 | darwin*) | |
5592 | ||
5593 | ||
5594 | for ac_header in machine/endian.h sys/disk.h | |
5595 | do | |
5596 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5597 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5598 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5599 | $as_echo_n "checking for $ac_header... " >&6; } | |
5600 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5601 | $as_echo_n "(cached) " >&6 | |
5602 | fi | |
5603 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5604 | $as_echo "$as_val"'` | |
5605 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5606 | $as_echo "$ac_res" >&6; } | |
5607 | else | |
5608 | # Is the header compilable? | |
5609 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5610 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5611 | cat >conftest.$ac_ext <<_ACEOF | |
5612 | /* confdefs.h. */ | |
5613 | _ACEOF | |
5614 | cat confdefs.h >>conftest.$ac_ext | |
5615 | cat >>conftest.$ac_ext <<_ACEOF | |
5616 | /* end confdefs.h. */ | |
5617 | $ac_includes_default | |
5618 | #include <$ac_header> | |
5619 | _ACEOF | |
5620 | rm -f conftest.$ac_objext | |
5621 | if { (ac_try="$ac_compile" | |
5622 | case "(($ac_try" in | |
5623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5624 | *) ac_try_echo=$ac_try;; | |
5625 | esac | |
5626 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5627 | $as_echo "$ac_try_echo") >&5 | |
5628 | (eval "$ac_compile") 2>conftest.er1 | |
5629 | ac_status=$? | |
5630 | grep -v '^ *+' conftest.er1 >conftest.err | |
5631 | rm -f conftest.er1 | |
5632 | cat conftest.err >&5 | |
5633 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5634 | (exit $ac_status); } && { | |
5635 | test -z "$ac_c_werror_flag" || | |
5636 | test ! -s conftest.err | |
5637 | } && test -s conftest.$ac_objext; then | |
5638 | ac_header_compiler=yes | |
5639 | else | |
5640 | $as_echo "$as_me: failed program was:" >&5 | |
5641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5642 | ||
5643 | ac_header_compiler=no | |
5644 | fi | |
5645 | ||
5646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5647 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5648 | $as_echo "$ac_header_compiler" >&6; } | |
5649 | ||
5650 | # Is the header present? | |
5651 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5652 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5653 | cat >conftest.$ac_ext <<_ACEOF | |
5654 | /* confdefs.h. */ | |
5655 | _ACEOF | |
5656 | cat confdefs.h >>conftest.$ac_ext | |
5657 | cat >>conftest.$ac_ext <<_ACEOF | |
5658 | /* end confdefs.h. */ | |
5659 | #include <$ac_header> | |
5660 | _ACEOF | |
5661 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5662 | case "(($ac_try" in | |
5663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5664 | *) ac_try_echo=$ac_try;; | |
5665 | esac | |
5666 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5667 | $as_echo "$ac_try_echo") >&5 | |
5668 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5669 | ac_status=$? | |
5670 | grep -v '^ *+' conftest.er1 >conftest.err | |
5671 | rm -f conftest.er1 | |
5672 | cat conftest.err >&5 | |
5673 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5674 | (exit $ac_status); } >/dev/null && { | |
5675 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5676 | test ! -s conftest.err | |
5677 | }; then | |
5678 | ac_header_preproc=yes | |
5679 | else | |
5680 | $as_echo "$as_me: failed program was:" >&5 | |
5681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5682 | ||
5683 | ac_header_preproc=no | |
5684 | fi | |
5685 | ||
5686 | rm -f conftest.err conftest.$ac_ext | |
5687 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5688 | $as_echo "$ac_header_preproc" >&6; } | |
5689 | ||
5690 | # So? What about this header? | |
5691 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5692 | yes:no: ) | |
5693 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5694 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5695 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5696 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5697 | ac_header_preproc=yes | |
5698 | ;; | |
5699 | no:yes:* ) | |
5700 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5701 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5702 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5703 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5704 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5705 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5706 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5707 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5708 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5709 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5710 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5711 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5712 | ||
5713 | ;; | |
5714 | esac | |
5715 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5716 | $as_echo_n "checking for $ac_header... " >&6; } | |
5717 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5718 | $as_echo_n "(cached) " >&6 | |
5719 | else | |
5720 | eval "$as_ac_Header=\$ac_header_preproc" | |
5721 | fi | |
5722 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5723 | $as_echo "$as_val"'` | |
5724 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5725 | $as_echo "$ac_res" >&6; } | |
5726 | ||
5727 | fi | |
5728 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5729 | $as_echo "$as_val"'` | |
5730 | if test "x$as_val" = x""yes; then | |
5731 | cat >>confdefs.h <<_ACEOF | |
5732 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5733 | _ACEOF | |
5734 | ||
5735 | else | |
5736 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5737 | $as_echo "$as_me: error: bailing out" >&2;} | |
5738 | { (exit 1); exit 1; }; } | |
5739 | fi | |
5740 | ||
5741 | done | |
5742 | ;; | |
5743 | esac | |
5744 | ||
5745 | ||
5746 | ||
5747 | ||
5748 | ||
5749 | ||
5750 | ||
5751 | ||
5752 | ||
5753 | ||
5754 | ||
5755 | ||
5756 | ||
5757 | ||
5758 | ||
5759 | ||
5760 | ||
5761 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
5762 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
5763 | sys/types.h unistd.h | |
5764 | do | |
5765 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5766 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5767 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5768 | $as_echo_n "checking for $ac_header... " >&6; } | |
5769 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5770 | $as_echo_n "(cached) " >&6 | |
5771 | fi | |
5772 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5773 | $as_echo "$as_val"'` | |
5774 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5775 | $as_echo "$ac_res" >&6; } | |
5776 | else | |
5777 | # Is the header compilable? | |
5778 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5779 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5780 | cat >conftest.$ac_ext <<_ACEOF | |
5781 | /* confdefs.h. */ | |
5782 | _ACEOF | |
5783 | cat confdefs.h >>conftest.$ac_ext | |
5784 | cat >>conftest.$ac_ext <<_ACEOF | |
5785 | /* end confdefs.h. */ | |
5786 | $ac_includes_default | |
5787 | #include <$ac_header> | |
5788 | _ACEOF | |
5789 | rm -f conftest.$ac_objext | |
5790 | if { (ac_try="$ac_compile" | |
5791 | case "(($ac_try" in | |
5792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5793 | *) ac_try_echo=$ac_try;; | |
5794 | esac | |
5795 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5796 | $as_echo "$ac_try_echo") >&5 | |
5797 | (eval "$ac_compile") 2>conftest.er1 | |
5798 | ac_status=$? | |
5799 | grep -v '^ *+' conftest.er1 >conftest.err | |
5800 | rm -f conftest.er1 | |
5801 | cat conftest.err >&5 | |
5802 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5803 | (exit $ac_status); } && { | |
5804 | test -z "$ac_c_werror_flag" || | |
5805 | test ! -s conftest.err | |
5806 | } && test -s conftest.$ac_objext; then | |
5807 | ac_header_compiler=yes | |
5808 | else | |
5809 | $as_echo "$as_me: failed program was:" >&5 | |
5810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5811 | ||
5812 | ac_header_compiler=no | |
5813 | fi | |
5814 | ||
5815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5816 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5817 | $as_echo "$ac_header_compiler" >&6; } | |
5818 | ||
5819 | # Is the header present? | |
5820 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5821 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5822 | cat >conftest.$ac_ext <<_ACEOF | |
5823 | /* confdefs.h. */ | |
5824 | _ACEOF | |
5825 | cat confdefs.h >>conftest.$ac_ext | |
5826 | cat >>conftest.$ac_ext <<_ACEOF | |
5827 | /* end confdefs.h. */ | |
5828 | #include <$ac_header> | |
5829 | _ACEOF | |
5830 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5831 | case "(($ac_try" in | |
5832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5833 | *) ac_try_echo=$ac_try;; | |
5834 | esac | |
5835 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5836 | $as_echo "$ac_try_echo") >&5 | |
5837 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5838 | ac_status=$? | |
5839 | grep -v '^ *+' conftest.er1 >conftest.err | |
5840 | rm -f conftest.er1 | |
5841 | cat conftest.err >&5 | |
5842 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5843 | (exit $ac_status); } >/dev/null && { | |
5844 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5845 | test ! -s conftest.err | |
5846 | }; then | |
5847 | ac_header_preproc=yes | |
5848 | else | |
5849 | $as_echo "$as_me: failed program was:" >&5 | |
5850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5851 | ||
5852 | ac_header_preproc=no | |
5853 | fi | |
5854 | ||
5855 | rm -f conftest.err conftest.$ac_ext | |
5856 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5857 | $as_echo "$ac_header_preproc" >&6; } | |
5858 | ||
5859 | # So? What about this header? | |
5860 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5861 | yes:no: ) | |
5862 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5863 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5864 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5865 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5866 | ac_header_preproc=yes | |
5867 | ;; | |
5868 | no:yes:* ) | |
5869 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5870 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5871 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5872 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5873 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5874 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5875 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5876 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5877 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5878 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5879 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5880 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5881 | ||
5882 | ;; | |
5883 | esac | |
5884 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5885 | $as_echo_n "checking for $ac_header... " >&6; } | |
5886 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5887 | $as_echo_n "(cached) " >&6 | |
5888 | else | |
5889 | eval "$as_ac_Header=\$ac_header_preproc" | |
5890 | fi | |
5891 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5892 | $as_echo "$as_val"'` | |
5893 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5894 | $as_echo "$ac_res" >&6; } | |
5895 | ||
5896 | fi | |
5897 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5898 | $as_echo "$as_val"'` | |
5899 | if test "x$as_val" = x""yes; then | |
5900 | cat >>confdefs.h <<_ACEOF | |
5901 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5902 | _ACEOF | |
5903 | ||
5904 | else | |
5905 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5906 | $as_echo "$as_me: error: bailing out" >&2;} | |
5907 | { (exit 1); exit 1; }; } | |
5908 | fi | |
5909 | ||
5910 | done | |
5911 | ||
5912 | ||
5913 | ||
5914 | for ac_header in termios.h sys/statvfs.h | |
5915 | do | |
5916 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5917 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5918 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5919 | $as_echo_n "checking for $ac_header... " >&6; } | |
5920 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5921 | $as_echo_n "(cached) " >&6 | |
5922 | fi | |
5923 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5924 | $as_echo "$as_val"'` | |
5925 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5926 | $as_echo "$ac_res" >&6; } | |
5927 | else | |
5928 | # Is the header compilable? | |
5929 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5930 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5931 | cat >conftest.$ac_ext <<_ACEOF | |
5932 | /* confdefs.h. */ | |
5933 | _ACEOF | |
5934 | cat confdefs.h >>conftest.$ac_ext | |
5935 | cat >>conftest.$ac_ext <<_ACEOF | |
5936 | /* end confdefs.h. */ | |
5937 | $ac_includes_default | |
5938 | #include <$ac_header> | |
5939 | _ACEOF | |
5940 | rm -f conftest.$ac_objext | |
5941 | if { (ac_try="$ac_compile" | |
5942 | case "(($ac_try" in | |
5943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5944 | *) ac_try_echo=$ac_try;; | |
5945 | esac | |
5946 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5947 | $as_echo "$ac_try_echo") >&5 | |
5948 | (eval "$ac_compile") 2>conftest.er1 | |
5949 | ac_status=$? | |
5950 | grep -v '^ *+' conftest.er1 >conftest.err | |
5951 | rm -f conftest.er1 | |
5952 | cat conftest.err >&5 | |
5953 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5954 | (exit $ac_status); } && { | |
5955 | test -z "$ac_c_werror_flag" || | |
5956 | test ! -s conftest.err | |
5957 | } && test -s conftest.$ac_objext; then | |
5958 | ac_header_compiler=yes | |
5959 | else | |
5960 | $as_echo "$as_me: failed program was:" >&5 | |
5961 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5962 | ||
5963 | ac_header_compiler=no | |
5964 | fi | |
5965 | ||
5966 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5967 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5968 | $as_echo "$ac_header_compiler" >&6; } | |
5969 | ||
5970 | # Is the header present? | |
5971 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5972 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5973 | cat >conftest.$ac_ext <<_ACEOF | |
5974 | /* confdefs.h. */ | |
5975 | _ACEOF | |
5976 | cat confdefs.h >>conftest.$ac_ext | |
5977 | cat >>conftest.$ac_ext <<_ACEOF | |
5978 | /* end confdefs.h. */ | |
5979 | #include <$ac_header> | |
5980 | _ACEOF | |
5981 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5982 | case "(($ac_try" in | |
5983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5984 | *) ac_try_echo=$ac_try;; | |
5985 | esac | |
5986 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5987 | $as_echo "$ac_try_echo") >&5 | |
5988 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5989 | ac_status=$? | |
5990 | grep -v '^ *+' conftest.er1 >conftest.err | |
5991 | rm -f conftest.er1 | |
5992 | cat conftest.err >&5 | |
5993 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5994 | (exit $ac_status); } >/dev/null && { | |
5995 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5996 | test ! -s conftest.err | |
5997 | }; then | |
5998 | ac_header_preproc=yes | |
5999 | else | |
6000 | $as_echo "$as_me: failed program was:" >&5 | |
6001 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6002 | ||
6003 | ac_header_preproc=no | |
6004 | fi | |
6005 | ||
6006 | rm -f conftest.err conftest.$ac_ext | |
6007 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6008 | $as_echo "$ac_header_preproc" >&6; } | |
6009 | ||
6010 | # So? What about this header? | |
6011 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6012 | yes:no: ) | |
6013 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6014 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6015 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6016 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6017 | ac_header_preproc=yes | |
6018 | ;; | |
6019 | no:yes:* ) | |
6020 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6021 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6022 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6023 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6024 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6025 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6026 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6027 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6028 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6029 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6030 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6031 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6032 | ||
6033 | ;; | |
6034 | esac | |
6035 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6036 | $as_echo_n "checking for $ac_header... " >&6; } | |
6037 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6038 | $as_echo_n "(cached) " >&6 | |
6039 | else | |
6040 | eval "$as_ac_Header=\$ac_header_preproc" | |
6041 | fi | |
6042 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
6043 | $as_echo "$as_val"'` | |
6044 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6045 | $as_echo "$ac_res" >&6; } | |
6046 | ||
6047 | fi | |
6048 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
6049 | $as_echo "$as_val"'` | |
6050 | if test "x$as_val" = x""yes; then | |
6051 | cat >>confdefs.h <<_ACEOF | |
6052 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6053 | _ACEOF | |
6054 | ||
6055 | fi | |
6056 | ||
6057 | done | |
6058 | ||
6059 | ||
6060 | ################################################################################ | |
6061 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
6062 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
6063 | if test "${ac_cv_c_const+set}" = set; then | |
6064 | $as_echo_n "(cached) " >&6 | |
6065 | else | |
6066 | cat >conftest.$ac_ext <<_ACEOF | |
6067 | /* confdefs.h. */ | |
6068 | _ACEOF | |
6069 | cat confdefs.h >>conftest.$ac_ext | |
6070 | cat >>conftest.$ac_ext <<_ACEOF | |
6071 | /* end confdefs.h. */ | |
6072 | ||
6073 | int | |
6074 | main () | |
6075 | { | |
6076 | /* FIXME: Include the comments suggested by Paul. */ | |
6077 | #ifndef __cplusplus | |
6078 | /* Ultrix mips cc rejects this. */ | |
6079 | typedef int charset[2]; | |
6080 | const charset cs; | |
6081 | /* SunOS 4.1.1 cc rejects this. */ | |
6082 | char const *const *pcpcc; | |
6083 | char **ppc; | |
6084 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
6085 | struct point {int x, y;}; | |
6086 | static struct point const zero = {0,0}; | |
6087 | /* AIX XL C 1.02.0.0 rejects this. | |
6088 | It does not let you subtract one const X* pointer from another in | |
6089 | an arm of an if-expression whose if-part is not a constant | |
6090 | expression */ | |
6091 | const char *g = "string"; | |
6092 | pcpcc = &g + (g ? g-g : 0); | |
6093 | /* HPUX 7.0 cc rejects these. */ | |
6094 | ++pcpcc; | |
6095 | ppc = (char**) pcpcc; | |
6096 | pcpcc = (char const *const *) ppc; | |
6097 | { /* SCO 3.2v4 cc rejects this. */ | |
6098 | char *t; | |
6099 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
6100 | ||
6101 | *t++ = 0; | |
6102 | if (s) return 0; | |
6103 | } | |
6104 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
6105 | int x[] = {25, 17}; | |
6106 | const int *foo = &x[0]; | |
6107 | ++foo; | |
6108 | } | |
6109 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
6110 | typedef const int *iptr; | |
6111 | iptr p = 0; | |
6112 | ++p; | |
6113 | } | |
6114 | { /* AIX XL C 1.02.0.0 rejects this saying | |
6115 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
6116 | struct s { int j; const int *ap[3]; }; | |
6117 | struct s *b; b->j = 5; | |
6118 | } | |
6119 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
6120 | const int foo = 10; | |
6121 | if (!foo) return 0; | |
6122 | } | |
6123 | return !cs[0] && !zero.x; | |
6124 | #endif | |
6125 | ||
6126 | ; | |
6127 | return 0; | |
6128 | } | |
6129 | _ACEOF | |
6130 | rm -f conftest.$ac_objext | |
6131 | if { (ac_try="$ac_compile" | |
6132 | case "(($ac_try" in | |
6133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6134 | *) ac_try_echo=$ac_try;; | |
6135 | esac | |
6136 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6137 | $as_echo "$ac_try_echo") >&5 | |
6138 | (eval "$ac_compile") 2>conftest.er1 | |
6139 | ac_status=$? | |
6140 | grep -v '^ *+' conftest.er1 >conftest.err | |
6141 | rm -f conftest.er1 | |
6142 | cat conftest.err >&5 | |
6143 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6144 | (exit $ac_status); } && { | |
6145 | test -z "$ac_c_werror_flag" || | |
6146 | test ! -s conftest.err | |
6147 | } && test -s conftest.$ac_objext; then | |
6148 | ac_cv_c_const=yes | |
6149 | else | |
6150 | $as_echo "$as_me: failed program was:" >&5 | |
6151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6152 | ||
6153 | ac_cv_c_const=no | |
6154 | fi | |
6155 | ||
6156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6157 | fi | |
6158 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
6159 | $as_echo "$ac_cv_c_const" >&6; } | |
6160 | if test $ac_cv_c_const = no; then | |
6161 | ||
6162 | cat >>confdefs.h <<\_ACEOF | |
6163 | #define const /**/ | |
6164 | _ACEOF | |
6165 | ||
6166 | fi | |
6167 | ||
6168 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 | |
6169 | $as_echo_n "checking for inline... " >&6; } | |
6170 | if test "${ac_cv_c_inline+set}" = set; then | |
6171 | $as_echo_n "(cached) " >&6 | |
6172 | else | |
6173 | ac_cv_c_inline=no | |
6174 | for ac_kw in inline __inline__ __inline; do | |
6175 | cat >conftest.$ac_ext <<_ACEOF | |
6176 | /* confdefs.h. */ | |
6177 | _ACEOF | |
6178 | cat confdefs.h >>conftest.$ac_ext | |
6179 | cat >>conftest.$ac_ext <<_ACEOF | |
6180 | /* end confdefs.h. */ | |
6181 | #ifndef __cplusplus | |
6182 | typedef int foo_t; | |
6183 | static $ac_kw foo_t static_foo () {return 0; } | |
6184 | $ac_kw foo_t foo () {return 0; } | |
6185 | #endif | |
6186 | ||
6187 | _ACEOF | |
6188 | rm -f conftest.$ac_objext | |
6189 | if { (ac_try="$ac_compile" | |
6190 | case "(($ac_try" in | |
6191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6192 | *) ac_try_echo=$ac_try;; | |
6193 | esac | |
6194 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6195 | $as_echo "$ac_try_echo") >&5 | |
6196 | (eval "$ac_compile") 2>conftest.er1 | |
6197 | ac_status=$? | |
6198 | grep -v '^ *+' conftest.er1 >conftest.err | |
6199 | rm -f conftest.er1 | |
6200 | cat conftest.err >&5 | |
6201 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6202 | (exit $ac_status); } && { | |
6203 | test -z "$ac_c_werror_flag" || | |
6204 | test ! -s conftest.err | |
6205 | } && test -s conftest.$ac_objext; then | |
6206 | ac_cv_c_inline=$ac_kw | |
6207 | else | |
6208 | $as_echo "$as_me: failed program was:" >&5 | |
6209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6210 | ||
6211 | ||
6212 | fi | |
6213 | ||
6214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6215 | test "$ac_cv_c_inline" != no && break | |
6216 | done | |
6217 | ||
6218 | fi | |
6219 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
6220 | $as_echo "$ac_cv_c_inline" >&6; } | |
6221 | ||
6222 | ||
6223 | case $ac_cv_c_inline in | |
6224 | inline | yes) ;; | |
6225 | *) | |
6226 | case $ac_cv_c_inline in | |
6227 | no) ac_val=;; | |
6228 | *) ac_val=$ac_cv_c_inline;; | |
6229 | esac | |
6230 | cat >>confdefs.h <<_ACEOF | |
6231 | #ifndef __cplusplus | |
6232 | #define inline $ac_val | |
6233 | #endif | |
6234 | _ACEOF | |
6235 | ;; | |
6236 | esac | |
6237 | ||
6238 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 | |
6239 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
6240 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then | |
6241 | $as_echo_n "(cached) " >&6 | |
6242 | else | |
6243 | cat >conftest.$ac_ext <<_ACEOF | |
6244 | /* confdefs.h. */ | |
6245 | _ACEOF | |
6246 | cat confdefs.h >>conftest.$ac_ext | |
6247 | cat >>conftest.$ac_ext <<_ACEOF | |
6248 | /* end confdefs.h. */ | |
6249 | $ac_includes_default | |
6250 | int | |
6251 | main () | |
6252 | { | |
6253 | static struct stat ac_aggr; | |
6254 | if (ac_aggr.st_rdev) | |
6255 | return 0; | |
6256 | ; | |
6257 | return 0; | |
6258 | } | |
6259 | _ACEOF | |
6260 | rm -f conftest.$ac_objext | |
6261 | if { (ac_try="$ac_compile" | |
6262 | case "(($ac_try" in | |
6263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6264 | *) ac_try_echo=$ac_try;; | |
6265 | esac | |
6266 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6267 | $as_echo "$ac_try_echo") >&5 | |
6268 | (eval "$ac_compile") 2>conftest.er1 | |
6269 | ac_status=$? | |
6270 | grep -v '^ *+' conftest.er1 >conftest.err | |
6271 | rm -f conftest.er1 | |
6272 | cat conftest.err >&5 | |
6273 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6274 | (exit $ac_status); } && { | |
6275 | test -z "$ac_c_werror_flag" || | |
6276 | test ! -s conftest.err | |
6277 | } && test -s conftest.$ac_objext; then | |
6278 | ac_cv_member_struct_stat_st_rdev=yes | |
6279 | else | |
6280 | $as_echo "$as_me: failed program was:" >&5 | |
6281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6282 | ||
6283 | cat >conftest.$ac_ext <<_ACEOF | |
6284 | /* confdefs.h. */ | |
6285 | _ACEOF | |
6286 | cat confdefs.h >>conftest.$ac_ext | |
6287 | cat >>conftest.$ac_ext <<_ACEOF | |
6288 | /* end confdefs.h. */ | |
6289 | $ac_includes_default | |
6290 | int | |
6291 | main () | |
6292 | { | |
6293 | static struct stat ac_aggr; | |
6294 | if (sizeof ac_aggr.st_rdev) | |
6295 | return 0; | |
6296 | ; | |
6297 | return 0; | |
6298 | } | |
6299 | _ACEOF | |
6300 | rm -f conftest.$ac_objext | |
6301 | if { (ac_try="$ac_compile" | |
6302 | case "(($ac_try" in | |
6303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6304 | *) ac_try_echo=$ac_try;; | |
6305 | esac | |
6306 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6307 | $as_echo "$ac_try_echo") >&5 | |
6308 | (eval "$ac_compile") 2>conftest.er1 | |
6309 | ac_status=$? | |
6310 | grep -v '^ *+' conftest.er1 >conftest.err | |
6311 | rm -f conftest.er1 | |
6312 | cat conftest.err >&5 | |
6313 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6314 | (exit $ac_status); } && { | |
6315 | test -z "$ac_c_werror_flag" || | |
6316 | test ! -s conftest.err | |
6317 | } && test -s conftest.$ac_objext; then | |
6318 | ac_cv_member_struct_stat_st_rdev=yes | |
6319 | else | |
6320 | $as_echo "$as_me: failed program was:" >&5 | |
6321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6322 | ||
6323 | ac_cv_member_struct_stat_st_rdev=no | |
6324 | fi | |
6325 | ||
6326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6327 | fi | |
6328 | ||
6329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6330 | fi | |
6331 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
6332 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
6333 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
6334 | ||
6335 | cat >>confdefs.h <<_ACEOF | |
6336 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
6337 | _ACEOF | |
6338 | ||
6339 | ||
6340 | fi | |
6341 | ||
6342 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 | |
6343 | $as_echo_n "checking for off_t... " >&6; } | |
6344 | if test "${ac_cv_type_off_t+set}" = set; then | |
6345 | $as_echo_n "(cached) " >&6 | |
6346 | else | |
6347 | ac_cv_type_off_t=no | |
6348 | cat >conftest.$ac_ext <<_ACEOF | |
6349 | /* confdefs.h. */ | |
6350 | _ACEOF | |
6351 | cat confdefs.h >>conftest.$ac_ext | |
6352 | cat >>conftest.$ac_ext <<_ACEOF | |
6353 | /* end confdefs.h. */ | |
6354 | $ac_includes_default | |
6355 | int | |
6356 | main () | |
6357 | { | |
6358 | if (sizeof (off_t)) | |
6359 | return 0; | |
6360 | ; | |
6361 | return 0; | |
6362 | } | |
6363 | _ACEOF | |
6364 | rm -f conftest.$ac_objext | |
6365 | if { (ac_try="$ac_compile" | |
6366 | case "(($ac_try" in | |
6367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6368 | *) ac_try_echo=$ac_try;; | |
6369 | esac | |
6370 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6371 | $as_echo "$ac_try_echo") >&5 | |
6372 | (eval "$ac_compile") 2>conftest.er1 | |
6373 | ac_status=$? | |
6374 | grep -v '^ *+' conftest.er1 >conftest.err | |
6375 | rm -f conftest.er1 | |
6376 | cat conftest.err >&5 | |
6377 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6378 | (exit $ac_status); } && { | |
6379 | test -z "$ac_c_werror_flag" || | |
6380 | test ! -s conftest.err | |
6381 | } && test -s conftest.$ac_objext; then | |
6382 | cat >conftest.$ac_ext <<_ACEOF | |
6383 | /* confdefs.h. */ | |
6384 | _ACEOF | |
6385 | cat confdefs.h >>conftest.$ac_ext | |
6386 | cat >>conftest.$ac_ext <<_ACEOF | |
6387 | /* end confdefs.h. */ | |
6388 | $ac_includes_default | |
6389 | int | |
6390 | main () | |
6391 | { | |
6392 | if (sizeof ((off_t))) | |
6393 | return 0; | |
6394 | ; | |
6395 | return 0; | |
6396 | } | |
6397 | _ACEOF | |
6398 | rm -f conftest.$ac_objext | |
6399 | if { (ac_try="$ac_compile" | |
6400 | case "(($ac_try" in | |
6401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6402 | *) ac_try_echo=$ac_try;; | |
6403 | esac | |
6404 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6405 | $as_echo "$ac_try_echo") >&5 | |
6406 | (eval "$ac_compile") 2>conftest.er1 | |
6407 | ac_status=$? | |
6408 | grep -v '^ *+' conftest.er1 >conftest.err | |
6409 | rm -f conftest.er1 | |
6410 | cat conftest.err >&5 | |
6411 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6412 | (exit $ac_status); } && { | |
6413 | test -z "$ac_c_werror_flag" || | |
6414 | test ! -s conftest.err | |
6415 | } && test -s conftest.$ac_objext; then | |
6416 | : | |
6417 | else | |
6418 | $as_echo "$as_me: failed program was:" >&5 | |
6419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6420 | ||
6421 | ac_cv_type_off_t=yes | |
6422 | fi | |
6423 | ||
6424 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6425 | else | |
6426 | $as_echo "$as_me: failed program was:" >&5 | |
6427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6428 | ||
6429 | ||
6430 | fi | |
6431 | ||
6432 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6433 | fi | |
6434 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
6435 | $as_echo "$ac_cv_type_off_t" >&6; } | |
6436 | if test "x$ac_cv_type_off_t" = x""yes; then | |
6437 | : | |
6438 | else | |
6439 | ||
6440 | cat >>confdefs.h <<_ACEOF | |
6441 | #define off_t long int | |
6442 | _ACEOF | |
6443 | ||
6444 | fi | |
6445 | ||
6446 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 | |
6447 | $as_echo_n "checking for pid_t... " >&6; } | |
6448 | if test "${ac_cv_type_pid_t+set}" = set; then | |
6449 | $as_echo_n "(cached) " >&6 | |
6450 | else | |
6451 | ac_cv_type_pid_t=no | |
6452 | cat >conftest.$ac_ext <<_ACEOF | |
6453 | /* confdefs.h. */ | |
6454 | _ACEOF | |
6455 | cat confdefs.h >>conftest.$ac_ext | |
6456 | cat >>conftest.$ac_ext <<_ACEOF | |
6457 | /* end confdefs.h. */ | |
6458 | $ac_includes_default | |
6459 | int | |
6460 | main () | |
6461 | { | |
6462 | if (sizeof (pid_t)) | |
6463 | return 0; | |
6464 | ; | |
6465 | return 0; | |
6466 | } | |
6467 | _ACEOF | |
6468 | rm -f conftest.$ac_objext | |
6469 | if { (ac_try="$ac_compile" | |
6470 | case "(($ac_try" in | |
6471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6472 | *) ac_try_echo=$ac_try;; | |
6473 | esac | |
6474 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6475 | $as_echo "$ac_try_echo") >&5 | |
6476 | (eval "$ac_compile") 2>conftest.er1 | |
6477 | ac_status=$? | |
6478 | grep -v '^ *+' conftest.er1 >conftest.err | |
6479 | rm -f conftest.er1 | |
6480 | cat conftest.err >&5 | |
6481 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6482 | (exit $ac_status); } && { | |
6483 | test -z "$ac_c_werror_flag" || | |
6484 | test ! -s conftest.err | |
6485 | } && test -s conftest.$ac_objext; then | |
6486 | cat >conftest.$ac_ext <<_ACEOF | |
6487 | /* confdefs.h. */ | |
6488 | _ACEOF | |
6489 | cat confdefs.h >>conftest.$ac_ext | |
6490 | cat >>conftest.$ac_ext <<_ACEOF | |
6491 | /* end confdefs.h. */ | |
6492 | $ac_includes_default | |
6493 | int | |
6494 | main () | |
6495 | { | |
6496 | if (sizeof ((pid_t))) | |
6497 | return 0; | |
6498 | ; | |
6499 | return 0; | |
6500 | } | |
6501 | _ACEOF | |
6502 | rm -f conftest.$ac_objext | |
6503 | if { (ac_try="$ac_compile" | |
6504 | case "(($ac_try" in | |
6505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6506 | *) ac_try_echo=$ac_try;; | |
6507 | esac | |
6508 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6509 | $as_echo "$ac_try_echo") >&5 | |
6510 | (eval "$ac_compile") 2>conftest.er1 | |
6511 | ac_status=$? | |
6512 | grep -v '^ *+' conftest.er1 >conftest.err | |
6513 | rm -f conftest.er1 | |
6514 | cat conftest.err >&5 | |
6515 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6516 | (exit $ac_status); } && { | |
6517 | test -z "$ac_c_werror_flag" || | |
6518 | test ! -s conftest.err | |
6519 | } && test -s conftest.$ac_objext; then | |
6520 | : | |
6521 | else | |
6522 | $as_echo "$as_me: failed program was:" >&5 | |
6523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6524 | ||
6525 | ac_cv_type_pid_t=yes | |
6526 | fi | |
6527 | ||
6528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6529 | else | |
6530 | $as_echo "$as_me: failed program was:" >&5 | |
6531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6532 | ||
6533 | ||
6534 | fi | |
6535 | ||
6536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6537 | fi | |
6538 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
6539 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
6540 | if test "x$ac_cv_type_pid_t" = x""yes; then | |
6541 | : | |
6542 | else | |
6543 | ||
6544 | cat >>confdefs.h <<_ACEOF | |
6545 | #define pid_t int | |
6546 | _ACEOF | |
6547 | ||
6548 | fi | |
6549 | ||
6550 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | |
6551 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
6552 | if test "${ac_cv_type_signal+set}" = set; then | |
6553 | $as_echo_n "(cached) " >&6 | |
6554 | else | |
6555 | cat >conftest.$ac_ext <<_ACEOF | |
6556 | /* confdefs.h. */ | |
6557 | _ACEOF | |
6558 | cat confdefs.h >>conftest.$ac_ext | |
6559 | cat >>conftest.$ac_ext <<_ACEOF | |
6560 | /* end confdefs.h. */ | |
6561 | #include <sys/types.h> | |
6562 | #include <signal.h> | |
6563 | ||
6564 | int | |
6565 | main () | |
6566 | { | |
6567 | return *(signal (0, 0)) (0) == 1; | |
6568 | ; | |
6569 | return 0; | |
6570 | } | |
6571 | _ACEOF | |
6572 | rm -f conftest.$ac_objext | |
6573 | if { (ac_try="$ac_compile" | |
6574 | case "(($ac_try" in | |
6575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6576 | *) ac_try_echo=$ac_try;; | |
6577 | esac | |
6578 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6579 | $as_echo "$ac_try_echo") >&5 | |
6580 | (eval "$ac_compile") 2>conftest.er1 | |
6581 | ac_status=$? | |
6582 | grep -v '^ *+' conftest.er1 >conftest.err | |
6583 | rm -f conftest.er1 | |
6584 | cat conftest.err >&5 | |
6585 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6586 | (exit $ac_status); } && { | |
6587 | test -z "$ac_c_werror_flag" || | |
6588 | test ! -s conftest.err | |
6589 | } && test -s conftest.$ac_objext; then | |
6590 | ac_cv_type_signal=int | |
6591 | else | |
6592 | $as_echo "$as_me: failed program was:" >&5 | |
6593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6594 | ||
6595 | ac_cv_type_signal=void | |
6596 | fi | |
6597 | ||
6598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6599 | fi | |
6600 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | |
6601 | $as_echo "$ac_cv_type_signal" >&6; } | |
6602 | ||
6603 | cat >>confdefs.h <<_ACEOF | |
6604 | #define RETSIGTYPE $ac_cv_type_signal | |
6605 | _ACEOF | |
6606 | ||
6607 | ||
6608 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 | |
6609 | $as_echo_n "checking for size_t... " >&6; } | |
6610 | if test "${ac_cv_type_size_t+set}" = set; then | |
6611 | $as_echo_n "(cached) " >&6 | |
6612 | else | |
6613 | ac_cv_type_size_t=no | |
6614 | cat >conftest.$ac_ext <<_ACEOF | |
6615 | /* confdefs.h. */ | |
6616 | _ACEOF | |
6617 | cat confdefs.h >>conftest.$ac_ext | |
6618 | cat >>conftest.$ac_ext <<_ACEOF | |
6619 | /* end confdefs.h. */ | |
6620 | $ac_includes_default | |
6621 | int | |
6622 | main () | |
6623 | { | |
6624 | if (sizeof (size_t)) | |
6625 | return 0; | |
6626 | ; | |
6627 | return 0; | |
6628 | } | |
6629 | _ACEOF | |
6630 | rm -f conftest.$ac_objext | |
6631 | if { (ac_try="$ac_compile" | |
6632 | case "(($ac_try" in | |
6633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6634 | *) ac_try_echo=$ac_try;; | |
6635 | esac | |
6636 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6637 | $as_echo "$ac_try_echo") >&5 | |
6638 | (eval "$ac_compile") 2>conftest.er1 | |
6639 | ac_status=$? | |
6640 | grep -v '^ *+' conftest.er1 >conftest.err | |
6641 | rm -f conftest.er1 | |
6642 | cat conftest.err >&5 | |
6643 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6644 | (exit $ac_status); } && { | |
6645 | test -z "$ac_c_werror_flag" || | |
6646 | test ! -s conftest.err | |
6647 | } && test -s conftest.$ac_objext; then | |
6648 | cat >conftest.$ac_ext <<_ACEOF | |
6649 | /* confdefs.h. */ | |
6650 | _ACEOF | |
6651 | cat confdefs.h >>conftest.$ac_ext | |
6652 | cat >>conftest.$ac_ext <<_ACEOF | |
6653 | /* end confdefs.h. */ | |
6654 | $ac_includes_default | |
6655 | int | |
6656 | main () | |
6657 | { | |
6658 | if (sizeof ((size_t))) | |
6659 | return 0; | |
6660 | ; | |
6661 | return 0; | |
6662 | } | |
6663 | _ACEOF | |
6664 | rm -f conftest.$ac_objext | |
6665 | if { (ac_try="$ac_compile" | |
6666 | case "(($ac_try" in | |
6667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6668 | *) ac_try_echo=$ac_try;; | |
6669 | esac | |
6670 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6671 | $as_echo "$ac_try_echo") >&5 | |
6672 | (eval "$ac_compile") 2>conftest.er1 | |
6673 | ac_status=$? | |
6674 | grep -v '^ *+' conftest.er1 >conftest.err | |
6675 | rm -f conftest.er1 | |
6676 | cat conftest.err >&5 | |
6677 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6678 | (exit $ac_status); } && { | |
6679 | test -z "$ac_c_werror_flag" || | |
6680 | test ! -s conftest.err | |
6681 | } && test -s conftest.$ac_objext; then | |
6682 | : | |
ad6254c5 | 6683 | else |
d911ec67 AK |
6684 | $as_echo "$as_me: failed program was:" >&5 |
6685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 6686 | |
d911ec67 | 6687 | ac_cv_type_size_t=yes |
ad6254c5 | 6688 | fi |
4922197a | 6689 | |
d911ec67 | 6690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4922197a | 6691 | else |
d911ec67 AK |
6692 | $as_echo "$as_me: failed program was:" >&5 |
6693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d0191583 JM |
6694 | |
6695 | ||
d911ec67 | 6696 | fi |
d0191583 | 6697 | |
d911ec67 AK |
6698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6699 | fi | |
6700 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
6701 | $as_echo "$ac_cv_type_size_t" >&6; } | |
6702 | if test "x$ac_cv_type_size_t" = x""yes; then | |
6703 | : | |
6704 | else | |
d0191583 | 6705 | |
d911ec67 AK |
6706 | cat >>confdefs.h <<_ACEOF |
6707 | #define size_t unsigned int | |
6708 | _ACEOF | |
d0191583 | 6709 | |
d911ec67 | 6710 | fi |
d0191583 | 6711 | |
d911ec67 AK |
6712 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
6713 | $as_echo_n "checking for mode_t... " >&6; } | |
6714 | if test "${ac_cv_type_mode_t+set}" = set; then | |
ec6a6fbe | 6715 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 6716 | else |
d911ec67 | 6717 | ac_cv_type_mode_t=no |
ad6254c5 | 6718 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6719 | /* confdefs.h. */ |
6720 | _ACEOF | |
6721 | cat confdefs.h >>conftest.$ac_ext | |
6722 | cat >>conftest.$ac_ext <<_ACEOF | |
6723 | /* end confdefs.h. */ | |
6724 | $ac_includes_default | |
d911ec67 AK |
6725 | int |
6726 | main () | |
6727 | { | |
6728 | if (sizeof (mode_t)) | |
6729 | return 0; | |
6730 | ; | |
6731 | return 0; | |
6732 | } | |
ad6254c5 AK |
6733 | _ACEOF |
6734 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6735 | if { (ac_try="$ac_compile" |
6736 | case "(($ac_try" in | |
6737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6738 | *) ac_try_echo=$ac_try;; | |
6739 | esac | |
ec6a6fbe AK |
6740 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6741 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6742 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6743 | ac_status=$? |
8a2fc586 AK |
6744 | grep -v '^ *+' conftest.er1 >conftest.err |
6745 | rm -f conftest.er1 | |
6746 | cat conftest.err >&5 | |
ec6a6fbe | 6747 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6748 | (exit $ac_status); } && { |
6749 | test -z "$ac_c_werror_flag" || | |
6750 | test ! -s conftest.err | |
6751 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 6752 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6753 | /* confdefs.h. */ |
6754 | _ACEOF | |
6755 | cat confdefs.h >>conftest.$ac_ext | |
6756 | cat >>conftest.$ac_ext <<_ACEOF | |
6757 | /* end confdefs.h. */ | |
d911ec67 AK |
6758 | $ac_includes_default |
6759 | int | |
6760 | main () | |
6761 | { | |
6762 | if (sizeof ((mode_t))) | |
6763 | return 0; | |
6764 | ; | |
6765 | return 0; | |
6766 | } | |
ad6254c5 | 6767 | _ACEOF |
d911ec67 AK |
6768 | rm -f conftest.$ac_objext |
6769 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
6770 | case "(($ac_try" in |
6771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6772 | *) ac_try_echo=$ac_try;; | |
6773 | esac | |
ec6a6fbe AK |
6774 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6775 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 | 6776 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
6777 | ac_status=$? |
6778 | grep -v '^ *+' conftest.er1 >conftest.err | |
6779 | rm -f conftest.er1 | |
6780 | cat conftest.err >&5 | |
ec6a6fbe | 6781 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d911ec67 AK |
6782 | (exit $ac_status); } && { |
6783 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 6784 | test ! -s conftest.err |
d911ec67 AK |
6785 | } && test -s conftest.$ac_objext; then |
6786 | : | |
ad6254c5 | 6787 | else |
ec6a6fbe | 6788 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6789 | sed 's/^/| /' conftest.$ac_ext >&5 |
6790 | ||
d911ec67 | 6791 | ac_cv_type_mode_t=yes |
ad6254c5 | 6792 | fi |
7a197a62 | 6793 | |
d911ec67 AK |
6794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6795 | else | |
6796 | $as_echo "$as_me: failed program was:" >&5 | |
6797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 6798 | |
7a197a62 | 6799 | |
80992638 AK |
6800 | fi |
6801 | ||
d911ec67 | 6802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6803 | fi |
d911ec67 AK |
6804 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
6805 | $as_echo "$ac_cv_type_mode_t" >&6; } | |
6806 | if test "x$ac_cv_type_mode_t" = x""yes; then | |
6807 | : | |
795ca3e5 | 6808 | else |
80992638 | 6809 | |
d911ec67 AK |
6810 | cat >>confdefs.h <<_ACEOF |
6811 | #define mode_t int | |
6812 | _ACEOF | |
ad6254c5 | 6813 | |
d911ec67 | 6814 | fi |
795ca3e5 | 6815 | |
d0191583 | 6816 | |
d911ec67 AK |
6817 | { $as_echo "$as_me:$LINENO: checking for int8_t" >&5 |
6818 | $as_echo_n "checking for int8_t... " >&6; } | |
6819 | if test "${ac_cv_c_int8_t+set}" = set; then | |
ec6a6fbe | 6820 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 6821 | else |
d911ec67 AK |
6822 | ac_cv_c_int8_t=no |
6823 | for ac_type in 'int8_t' 'int' 'long int' \ | |
6824 | 'long long int' 'short int' 'signed char'; do | |
6825 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6826 | /* confdefs.h. */ |
6827 | _ACEOF | |
6828 | cat confdefs.h >>conftest.$ac_ext | |
6829 | cat >>conftest.$ac_ext <<_ACEOF | |
6830 | /* end confdefs.h. */ | |
6831 | $ac_includes_default | |
d911ec67 AK |
6832 | int |
6833 | main () | |
6834 | { | |
6835 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))]; | |
6836 | test_array [0] = 0 | |
6837 | ||
6838 | ; | |
6839 | return 0; | |
6840 | } | |
ad6254c5 AK |
6841 | _ACEOF |
6842 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6843 | if { (ac_try="$ac_compile" |
6844 | case "(($ac_try" in | |
6845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6846 | *) ac_try_echo=$ac_try;; | |
6847 | esac | |
ec6a6fbe AK |
6848 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6849 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6850 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6851 | ac_status=$? |
8a2fc586 AK |
6852 | grep -v '^ *+' conftest.er1 >conftest.err |
6853 | rm -f conftest.er1 | |
6854 | cat conftest.err >&5 | |
ec6a6fbe | 6855 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6856 | (exit $ac_status); } && { |
6857 | test -z "$ac_c_werror_flag" || | |
6858 | test ! -s conftest.err | |
6859 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 6860 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6861 | /* confdefs.h. */ |
6862 | _ACEOF | |
6863 | cat confdefs.h >>conftest.$ac_ext | |
6864 | cat >>conftest.$ac_ext <<_ACEOF | |
6865 | /* end confdefs.h. */ | |
d911ec67 AK |
6866 | $ac_includes_default |
6867 | int | |
6868 | main () | |
6869 | { | |
6870 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1) | |
6871 | < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))]; | |
6872 | test_array [0] = 0 | |
6873 | ||
6874 | ; | |
6875 | return 0; | |
6876 | } | |
ad6254c5 | 6877 | _ACEOF |
d911ec67 AK |
6878 | rm -f conftest.$ac_objext |
6879 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
6880 | case "(($ac_try" in |
6881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6882 | *) ac_try_echo=$ac_try;; | |
6883 | esac | |
ec6a6fbe AK |
6884 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6885 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 | 6886 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
6887 | ac_status=$? |
6888 | grep -v '^ *+' conftest.er1 >conftest.err | |
6889 | rm -f conftest.er1 | |
6890 | cat conftest.err >&5 | |
ec6a6fbe | 6891 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d911ec67 AK |
6892 | (exit $ac_status); } && { |
6893 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 6894 | test ! -s conftest.err |
d911ec67 AK |
6895 | } && test -s conftest.$ac_objext; then |
6896 | : | |
ad6254c5 | 6897 | else |
ec6a6fbe | 6898 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6899 | sed 's/^/| /' conftest.$ac_ext >&5 |
6900 | ||
d911ec67 AK |
6901 | case $ac_type in |
6902 | int8_t) ac_cv_c_int8_t=yes ;; | |
6903 | *) ac_cv_c_int8_t=$ac_type ;; | |
6904 | esac | |
ad6254c5 | 6905 | |
d911ec67 | 6906 | fi |
7a197a62 | 6907 | |
d911ec67 | 6908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6909 | else |
d911ec67 AK |
6910 | $as_echo "$as_me: failed program was:" >&5 |
6911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6912 | ||
b896caa1 | 6913 | |
ad6254c5 | 6914 | fi |
ad6254c5 | 6915 | |
d911ec67 AK |
6916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6917 | test "$ac_cv_c_int8_t" != no && break | |
6918 | done | |
80992638 | 6919 | fi |
d911ec67 AK |
6920 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5 |
6921 | $as_echo "$ac_cv_c_int8_t" >&6; } | |
6922 | case $ac_cv_c_int8_t in #( | |
6923 | no|yes) ;; #( | |
6924 | *) | |
80992638 | 6925 | |
d911ec67 AK |
6926 | cat >>confdefs.h <<_ACEOF |
6927 | #define int8_t $ac_cv_c_int8_t | |
6928 | _ACEOF | |
6929 | ;; | |
6930 | esac | |
d0191583 | 6931 | |
d3c8211f | 6932 | |
d911ec67 AK |
6933 | { $as_echo "$as_me:$LINENO: checking for int16_t" >&5 |
6934 | $as_echo_n "checking for int16_t... " >&6; } | |
6935 | if test "${ac_cv_c_int16_t+set}" = set; then | |
ec6a6fbe | 6936 | $as_echo_n "(cached) " >&6 |
d3c8211f | 6937 | else |
d911ec67 AK |
6938 | ac_cv_c_int16_t=no |
6939 | for ac_type in 'int16_t' 'int' 'long int' \ | |
6940 | 'long long int' 'short int' 'signed char'; do | |
6941 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6942 | /* confdefs.h. */ |
6943 | _ACEOF | |
6944 | cat confdefs.h >>conftest.$ac_ext | |
6945 | cat >>conftest.$ac_ext <<_ACEOF | |
6946 | /* end confdefs.h. */ | |
d911ec67 | 6947 | $ac_includes_default |
ad6254c5 AK |
6948 | int |
6949 | main () | |
6950 | { | |
d911ec67 AK |
6951 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
6952 | test_array [0] = 0 | |
ad6254c5 AK |
6953 | |
6954 | ; | |
6955 | return 0; | |
6956 | } | |
6957 | _ACEOF | |
6958 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6959 | if { (ac_try="$ac_compile" |
6960 | case "(($ac_try" in | |
6961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6962 | *) ac_try_echo=$ac_try;; | |
6963 | esac | |
ec6a6fbe AK |
6964 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6965 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6966 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6967 | ac_status=$? |
8a2fc586 AK |
6968 | grep -v '^ *+' conftest.er1 >conftest.err |
6969 | rm -f conftest.er1 | |
6970 | cat conftest.err >&5 | |
ec6a6fbe | 6971 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6972 | (exit $ac_status); } && { |
6973 | test -z "$ac_c_werror_flag" || | |
6974 | test ! -s conftest.err | |
6975 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 6976 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6977 | /* confdefs.h. */ |
6978 | _ACEOF | |
6979 | cat confdefs.h >>conftest.$ac_ext | |
6980 | cat >>conftest.$ac_ext <<_ACEOF | |
6981 | /* end confdefs.h. */ | |
d911ec67 AK |
6982 | $ac_includes_default |
6983 | int | |
6984 | main () | |
6985 | { | |
6986 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1) | |
6987 | < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))]; | |
6988 | test_array [0] = 0 | |
80992638 | 6989 | |
d911ec67 AK |
6990 | ; |
6991 | return 0; | |
6992 | } | |
ad6254c5 AK |
6993 | _ACEOF |
6994 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6995 | if { (ac_try="$ac_compile" |
6996 | case "(($ac_try" in | |
6997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6998 | *) ac_try_echo=$ac_try;; | |
6999 | esac | |
ec6a6fbe AK |
7000 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7001 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7002 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7003 | ac_status=$? |
8a2fc586 AK |
7004 | grep -v '^ *+' conftest.er1 >conftest.err |
7005 | rm -f conftest.er1 | |
7006 | cat conftest.err >&5 | |
ec6a6fbe | 7007 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7008 | (exit $ac_status); } && { |
7009 | test -z "$ac_c_werror_flag" || | |
7010 | test ! -s conftest.err | |
7011 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 7012 | : |
ad6254c5 | 7013 | else |
ec6a6fbe | 7014 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 7015 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 7016 | |
d911ec67 AK |
7017 | case $ac_type in |
7018 | int16_t) ac_cv_c_int16_t=yes ;; | |
7019 | *) ac_cv_c_int16_t=$ac_type ;; | |
7020 | esac | |
7a197a62 | 7021 | |
8ce0cbda | 7022 | fi |
7a197a62 AK |
7023 | |
7024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7025 | else |
7026 | $as_echo "$as_me: failed program was:" >&5 | |
7027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8ce0cbda | 7028 | |
8a2fc586 | 7029 | |
d911ec67 | 7030 | fi |
8a2fc586 | 7031 | |
d911ec67 AK |
7032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7033 | test "$ac_cv_c_int16_t" != no && break | |
7034 | done | |
7035 | fi | |
7036 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5 | |
7037 | $as_echo "$ac_cv_c_int16_t" >&6; } | |
7038 | case $ac_cv_c_int16_t in #( | |
7039 | no|yes) ;; #( | |
8a2fc586 | 7040 | *) |
d911ec67 AK |
7041 | |
7042 | cat >>confdefs.h <<_ACEOF | |
7043 | #define int16_t $ac_cv_c_int16_t | |
c1c065a3 | 7044 | _ACEOF |
d911ec67 AK |
7045 | ;; |
7046 | esac | |
d0191583 | 7047 | |
d911ec67 AK |
7048 | |
7049 | { $as_echo "$as_me:$LINENO: checking for int32_t" >&5 | |
7050 | $as_echo_n "checking for int32_t... " >&6; } | |
7051 | if test "${ac_cv_c_int32_t+set}" = set; then | |
ec6a6fbe | 7052 | $as_echo_n "(cached) " >&6 |
d0191583 | 7053 | else |
d911ec67 AK |
7054 | ac_cv_c_int32_t=no |
7055 | for ac_type in 'int32_t' 'int' 'long int' \ | |
7056 | 'long long int' 'short int' 'signed char'; do | |
7057 | cat >conftest.$ac_ext <<_ACEOF | |
d0191583 JM |
7058 | /* confdefs.h. */ |
7059 | _ACEOF | |
7060 | cat confdefs.h >>conftest.$ac_ext | |
7061 | cat >>conftest.$ac_ext <<_ACEOF | |
7062 | /* end confdefs.h. */ | |
7063 | $ac_includes_default | |
7064 | int | |
7065 | main () | |
7066 | { | |
d911ec67 AK |
7067 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
7068 | test_array [0] = 0 | |
7069 | ||
d0191583 JM |
7070 | ; |
7071 | return 0; | |
7072 | } | |
7073 | _ACEOF | |
7074 | rm -f conftest.$ac_objext | |
7075 | if { (ac_try="$ac_compile" | |
7076 | case "(($ac_try" in | |
7077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7078 | *) ac_try_echo=$ac_try;; | |
7079 | esac | |
ec6a6fbe AK |
7080 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7081 | $as_echo "$ac_try_echo") >&5 | |
7082 | (eval "$ac_compile") 2>conftest.er1 | |
7083 | ac_status=$? | |
7084 | grep -v '^ *+' conftest.er1 >conftest.err | |
7085 | rm -f conftest.er1 | |
7086 | cat conftest.err >&5 | |
7087 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7088 | (exit $ac_status); } && { | |
7089 | test -z "$ac_c_werror_flag" || | |
7090 | test ! -s conftest.err | |
7091 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 7092 | cat >conftest.$ac_ext <<_ACEOF |
ec6a6fbe AK |
7093 | /* confdefs.h. */ |
7094 | _ACEOF | |
7095 | cat confdefs.h >>conftest.$ac_ext | |
7096 | cat >>conftest.$ac_ext <<_ACEOF | |
7097 | /* end confdefs.h. */ | |
7098 | $ac_includes_default | |
7099 | int | |
7100 | main () | |
7101 | { | |
d911ec67 AK |
7102 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
7103 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; | |
7104 | test_array [0] = 0 | |
7105 | ||
ec6a6fbe AK |
7106 | ; |
7107 | return 0; | |
7108 | } | |
7109 | _ACEOF | |
7110 | rm -f conftest.$ac_objext | |
7111 | if { (ac_try="$ac_compile" | |
7112 | case "(($ac_try" in | |
7113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7114 | *) ac_try_echo=$ac_try;; | |
7115 | esac | |
7116 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7117 | $as_echo "$ac_try_echo") >&5 | |
7118 | (eval "$ac_compile") 2>conftest.er1 | |
7119 | ac_status=$? | |
7120 | grep -v '^ *+' conftest.er1 >conftest.err | |
7121 | rm -f conftest.er1 | |
7122 | cat conftest.err >&5 | |
7123 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7124 | (exit $ac_status); } && { | |
7125 | test -z "$ac_c_werror_flag" || | |
7126 | test ! -s conftest.err | |
7127 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 7128 | : |
ec6a6fbe AK |
7129 | else |
7130 | $as_echo "$as_me: failed program was:" >&5 | |
7131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7132 | ||
d911ec67 AK |
7133 | case $ac_type in |
7134 | int32_t) ac_cv_c_int32_t=yes ;; | |
7135 | *) ac_cv_c_int32_t=$ac_type ;; | |
7136 | esac | |
7137 | ||
ec6a6fbe AK |
7138 | fi |
7139 | ||
7140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7141 | else |
7142 | $as_echo "$as_me: failed program was:" >&5 | |
7143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7144 | ||
7145 | ||
ec6a6fbe AK |
7146 | fi |
7147 | ||
7148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7149 | test "$ac_cv_c_int32_t" != no && break |
7150 | done | |
ec6a6fbe | 7151 | fi |
d911ec67 AK |
7152 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
7153 | $as_echo "$ac_cv_c_int32_t" >&6; } | |
7154 | case $ac_cv_c_int32_t in #( | |
7155 | no|yes) ;; #( | |
7156 | *) | |
ec6a6fbe AK |
7157 | |
7158 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7159 | #define int32_t $ac_cv_c_int32_t |
ec6a6fbe | 7160 | _ACEOF |
d911ec67 AK |
7161 | ;; |
7162 | esac | |
ec6a6fbe AK |
7163 | |
7164 | ||
d911ec67 AK |
7165 | { $as_echo "$as_me:$LINENO: checking for int64_t" >&5 |
7166 | $as_echo_n "checking for int64_t... " >&6; } | |
7167 | if test "${ac_cv_c_int64_t+set}" = set; then | |
ec6a6fbe AK |
7168 | $as_echo_n "(cached) " >&6 |
7169 | else | |
d911ec67 AK |
7170 | ac_cv_c_int64_t=no |
7171 | for ac_type in 'int64_t' 'int' 'long int' \ | |
7172 | 'long long int' 'short int' 'signed char'; do | |
7173 | cat >conftest.$ac_ext <<_ACEOF | |
ec6a6fbe AK |
7174 | /* confdefs.h. */ |
7175 | _ACEOF | |
7176 | cat confdefs.h >>conftest.$ac_ext | |
7177 | cat >>conftest.$ac_ext <<_ACEOF | |
7178 | /* end confdefs.h. */ | |
7179 | $ac_includes_default | |
7180 | int | |
7181 | main () | |
7182 | { | |
d911ec67 AK |
7183 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))]; |
7184 | test_array [0] = 0 | |
7185 | ||
ec6a6fbe AK |
7186 | ; |
7187 | return 0; | |
7188 | } | |
7189 | _ACEOF | |
7190 | rm -f conftest.$ac_objext | |
7191 | if { (ac_try="$ac_compile" | |
7192 | case "(($ac_try" in | |
7193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7194 | *) ac_try_echo=$ac_try;; | |
7195 | esac | |
7196 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7197 | $as_echo "$ac_try_echo") >&5 | |
7198 | (eval "$ac_compile") 2>conftest.er1 | |
7199 | ac_status=$? | |
7200 | grep -v '^ *+' conftest.er1 >conftest.err | |
7201 | rm -f conftest.er1 | |
7202 | cat conftest.err >&5 | |
7203 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7204 | (exit $ac_status); } && { | |
7205 | test -z "$ac_c_werror_flag" || | |
7206 | test ! -s conftest.err | |
7207 | } && test -s conftest.$ac_objext; then | |
7208 | cat >conftest.$ac_ext <<_ACEOF | |
7209 | /* confdefs.h. */ | |
7210 | _ACEOF | |
7211 | cat confdefs.h >>conftest.$ac_ext | |
7212 | cat >>conftest.$ac_ext <<_ACEOF | |
7213 | /* end confdefs.h. */ | |
7214 | $ac_includes_default | |
7215 | int | |
7216 | main () | |
7217 | { | |
d911ec67 AK |
7218 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1) |
7219 | < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))]; | |
7220 | test_array [0] = 0 | |
7221 | ||
ec6a6fbe AK |
7222 | ; |
7223 | return 0; | |
7224 | } | |
7225 | _ACEOF | |
7226 | rm -f conftest.$ac_objext | |
7227 | if { (ac_try="$ac_compile" | |
7228 | case "(($ac_try" in | |
7229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7230 | *) ac_try_echo=$ac_try;; | |
7231 | esac | |
7232 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7233 | $as_echo "$ac_try_echo") >&5 | |
7234 | (eval "$ac_compile") 2>conftest.er1 | |
7235 | ac_status=$? | |
7236 | grep -v '^ *+' conftest.er1 >conftest.err | |
7237 | rm -f conftest.er1 | |
7238 | cat conftest.err >&5 | |
7239 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7240 | (exit $ac_status); } && { | |
7241 | test -z "$ac_c_werror_flag" || | |
7242 | test ! -s conftest.err | |
7243 | } && test -s conftest.$ac_objext; then | |
7244 | : | |
7245 | else | |
7246 | $as_echo "$as_me: failed program was:" >&5 | |
7247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7248 | ||
d911ec67 AK |
7249 | case $ac_type in |
7250 | int64_t) ac_cv_c_int64_t=yes ;; | |
7251 | *) ac_cv_c_int64_t=$ac_type ;; | |
7252 | esac | |
7253 | ||
ec6a6fbe AK |
7254 | fi |
7255 | ||
7256 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7257 | else | |
7258 | $as_echo "$as_me: failed program was:" >&5 | |
7259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7260 | ||
7261 | ||
7262 | fi | |
7263 | ||
7264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7265 | test "$ac_cv_c_int64_t" != no && break |
7266 | done | |
ec6a6fbe | 7267 | fi |
d911ec67 AK |
7268 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5 |
7269 | $as_echo "$ac_cv_c_int64_t" >&6; } | |
7270 | case $ac_cv_c_int64_t in #( | |
7271 | no|yes) ;; #( | |
7272 | *) | |
ec6a6fbe AK |
7273 | |
7274 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7275 | #define int64_t $ac_cv_c_int64_t |
ec6a6fbe | 7276 | _ACEOF |
d911ec67 AK |
7277 | ;; |
7278 | esac | |
ec6a6fbe | 7279 | |
d911ec67 AK |
7280 | { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5 |
7281 | $as_echo_n "checking for ssize_t... " >&6; } | |
7282 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
ec6a6fbe AK |
7283 | $as_echo_n "(cached) " >&6 |
7284 | else | |
d911ec67 | 7285 | ac_cv_type_ssize_t=no |
ec6a6fbe AK |
7286 | cat >conftest.$ac_ext <<_ACEOF |
7287 | /* confdefs.h. */ | |
7288 | _ACEOF | |
7289 | cat confdefs.h >>conftest.$ac_ext | |
7290 | cat >>conftest.$ac_ext <<_ACEOF | |
7291 | /* end confdefs.h. */ | |
7292 | $ac_includes_default | |
7293 | int | |
7294 | main () | |
7295 | { | |
d911ec67 | 7296 | if (sizeof (ssize_t)) |
ec6a6fbe AK |
7297 | return 0; |
7298 | ; | |
7299 | return 0; | |
7300 | } | |
7301 | _ACEOF | |
7302 | rm -f conftest.$ac_objext | |
7303 | if { (ac_try="$ac_compile" | |
7304 | case "(($ac_try" in | |
7305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7306 | *) ac_try_echo=$ac_try;; | |
7307 | esac | |
7308 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7309 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
7310 | (eval "$ac_compile") 2>conftest.er1 |
7311 | ac_status=$? | |
7312 | grep -v '^ *+' conftest.er1 >conftest.err | |
7313 | rm -f conftest.er1 | |
7314 | cat conftest.err >&5 | |
ec6a6fbe | 7315 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
7316 | (exit $ac_status); } && { |
7317 | test -z "$ac_c_werror_flag" || | |
7318 | test ! -s conftest.err | |
7319 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 7320 | cat >conftest.$ac_ext <<_ACEOF |
d0191583 JM |
7321 | /* confdefs.h. */ |
7322 | _ACEOF | |
7323 | cat confdefs.h >>conftest.$ac_ext | |
7324 | cat >>conftest.$ac_ext <<_ACEOF | |
7325 | /* end confdefs.h. */ | |
7326 | $ac_includes_default | |
7327 | int | |
7328 | main () | |
7329 | { | |
d911ec67 | 7330 | if (sizeof ((ssize_t))) |
ec6a6fbe | 7331 | return 0; |
d0191583 JM |
7332 | ; |
7333 | return 0; | |
7334 | } | |
7335 | _ACEOF | |
7336 | rm -f conftest.$ac_objext | |
7337 | if { (ac_try="$ac_compile" | |
7338 | case "(($ac_try" in | |
7339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7340 | *) ac_try_echo=$ac_try;; | |
7341 | esac | |
ec6a6fbe AK |
7342 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7343 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
7344 | (eval "$ac_compile") 2>conftest.er1 |
7345 | ac_status=$? | |
7346 | grep -v '^ *+' conftest.er1 >conftest.err | |
7347 | rm -f conftest.er1 | |
7348 | cat conftest.err >&5 | |
ec6a6fbe | 7349 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
7350 | (exit $ac_status); } && { |
7351 | test -z "$ac_c_werror_flag" || | |
7352 | test ! -s conftest.err | |
7353 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 7354 | : |
d0191583 | 7355 | else |
ec6a6fbe | 7356 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
7357 | sed 's/^/| /' conftest.$ac_ext >&5 |
7358 | ||
d911ec67 | 7359 | ac_cv_type_ssize_t=yes |
d0191583 JM |
7360 | fi |
7361 | ||
7362 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7363 | else |
7364 | $as_echo "$as_me: failed program was:" >&5 | |
7365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7366 | ||
7367 | ||
d0191583 JM |
7368 | fi |
7369 | ||
7370 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7371 | fi | |
d911ec67 AK |
7372 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
7373 | $as_echo "$ac_cv_type_ssize_t" >&6; } | |
7374 | if test "x$ac_cv_type_ssize_t" = x""yes; then | |
ec6a6fbe AK |
7375 | : |
7376 | else | |
d0191583 JM |
7377 | |
7378 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7379 | #define ssize_t int |
d0191583 JM |
7380 | _ACEOF |
7381 | ||
d0191583 | 7382 | fi |
8ce0cbda | 7383 | |
d911ec67 AK |
7384 | { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
7385 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
7386 | if test "${ac_cv_type_uid_t+set}" = set; then | |
ec6a6fbe | 7387 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7388 | else |
b145d876 ZK |
7389 | cat >conftest.$ac_ext <<_ACEOF |
7390 | /* confdefs.h. */ | |
7391 | _ACEOF | |
7392 | cat confdefs.h >>conftest.$ac_ext | |
7393 | cat >>conftest.$ac_ext <<_ACEOF | |
7394 | /* end confdefs.h. */ | |
ec6a6fbe | 7395 | #include <sys/types.h> |
ec6a6fbe | 7396 | |
ad6254c5 | 7397 | _ACEOF |
d911ec67 AK |
7398 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7399 | $EGREP "uid_t" >/dev/null 2>&1; then | |
7400 | ac_cv_type_uid_t=yes | |
b145d876 | 7401 | else |
d911ec67 | 7402 | ac_cv_type_uid_t=no |
ad6254c5 | 7403 | fi |
d911ec67 | 7404 | rm -f conftest* |
b145d876 | 7405 | |
b145d876 | 7406 | fi |
d911ec67 AK |
7407 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
7408 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
7409 | if test $ac_cv_type_uid_t = no; then | |
80992638 | 7410 | |
d911ec67 AK |
7411 | cat >>confdefs.h <<\_ACEOF |
7412 | #define uid_t int | |
ad6254c5 | 7413 | _ACEOF |
199e490e | 7414 | |
b896caa1 | 7415 | |
d911ec67 AK |
7416 | cat >>confdefs.h <<\_ACEOF |
7417 | #define gid_t int | |
7418 | _ACEOF | |
7419 | ||
7420 | fi | |
7421 | ||
7422 | ||
7423 | { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5 | |
7424 | $as_echo_n "checking for uint8_t... " >&6; } | |
7425 | if test "${ac_cv_c_uint8_t+set}" = set; then | |
ec6a6fbe | 7426 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7427 | else |
d911ec67 AK |
7428 | ac_cv_c_uint8_t=no |
7429 | for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \ | |
7430 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7431 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
7432 | /* confdefs.h. */ |
7433 | _ACEOF | |
7434 | cat confdefs.h >>conftest.$ac_ext | |
7435 | cat >>conftest.$ac_ext <<_ACEOF | |
7436 | /* end confdefs.h. */ | |
7437 | $ac_includes_default | |
7438 | int | |
7439 | main () | |
7440 | { | |
d911ec67 AK |
7441 | static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)]; |
7442 | test_array [0] = 0 | |
7443 | ||
ad6254c5 AK |
7444 | ; |
7445 | return 0; | |
7446 | } | |
7447 | _ACEOF | |
7448 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7449 | if { (ac_try="$ac_compile" |
7450 | case "(($ac_try" in | |
7451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7452 | *) ac_try_echo=$ac_try;; | |
7453 | esac | |
ec6a6fbe AK |
7454 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7455 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7456 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7457 | ac_status=$? |
8a2fc586 AK |
7458 | grep -v '^ *+' conftest.er1 >conftest.err |
7459 | rm -f conftest.er1 | |
7460 | cat conftest.err >&5 | |
ec6a6fbe | 7461 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7462 | (exit $ac_status); } && { |
7463 | test -z "$ac_c_werror_flag" || | |
7464 | test ! -s conftest.err | |
7465 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7466 | case $ac_type in |
7467 | uint8_t) ac_cv_c_uint8_t=yes ;; | |
7468 | *) ac_cv_c_uint8_t=$ac_type ;; | |
7469 | esac | |
7470 | ||
7471 | else | |
7472 | $as_echo "$as_me: failed program was:" >&5 | |
7473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7474 | ||
7475 | ||
7476 | fi | |
7477 | ||
7478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7479 | test "$ac_cv_c_uint8_t" != no && break | |
7480 | done | |
7481 | fi | |
7482 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5 | |
7483 | $as_echo "$ac_cv_c_uint8_t" >&6; } | |
7484 | case $ac_cv_c_uint8_t in #( | |
7485 | no|yes) ;; #( | |
7486 | *) | |
7487 | ||
7488 | cat >>confdefs.h <<\_ACEOF | |
7489 | #define _UINT8_T 1 | |
7490 | _ACEOF | |
7491 | ||
7492 | ||
7493 | cat >>confdefs.h <<_ACEOF | |
7494 | #define uint8_t $ac_cv_c_uint8_t | |
7495 | _ACEOF | |
7496 | ;; | |
7497 | esac | |
7498 | ||
7499 | ||
7500 | { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5 | |
7501 | $as_echo_n "checking for uint16_t... " >&6; } | |
7502 | if test "${ac_cv_c_uint16_t+set}" = set; then | |
7503 | $as_echo_n "(cached) " >&6 | |
7504 | else | |
7505 | ac_cv_c_uint16_t=no | |
7506 | for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ | |
7507 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7508 | cat >conftest.$ac_ext <<_ACEOF | |
d0191583 JM |
7509 | /* confdefs.h. */ |
7510 | _ACEOF | |
7511 | cat confdefs.h >>conftest.$ac_ext | |
7512 | cat >>conftest.$ac_ext <<_ACEOF | |
7513 | /* end confdefs.h. */ | |
ec6a6fbe | 7514 | $ac_includes_default |
d0191583 JM |
7515 | int |
7516 | main () | |
7517 | { | |
d911ec67 AK |
7518 | static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; |
7519 | test_array [0] = 0 | |
7520 | ||
d0191583 JM |
7521 | ; |
7522 | return 0; | |
7523 | } | |
7524 | _ACEOF | |
7525 | rm -f conftest.$ac_objext | |
7526 | if { (ac_try="$ac_compile" | |
7527 | case "(($ac_try" in | |
7528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7529 | *) ac_try_echo=$ac_try;; | |
7530 | esac | |
ec6a6fbe AK |
7531 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7532 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
7533 | (eval "$ac_compile") 2>conftest.er1 |
7534 | ac_status=$? | |
7535 | grep -v '^ *+' conftest.er1 >conftest.err | |
7536 | rm -f conftest.er1 | |
7537 | cat conftest.err >&5 | |
ec6a6fbe | 7538 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
7539 | (exit $ac_status); } && { |
7540 | test -z "$ac_c_werror_flag" || | |
7541 | test ! -s conftest.err | |
7542 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7543 | case $ac_type in |
7544 | uint16_t) ac_cv_c_uint16_t=yes ;; | |
7545 | *) ac_cv_c_uint16_t=$ac_type ;; | |
7546 | esac | |
ec6a6fbe | 7547 | |
ec6a6fbe AK |
7548 | else |
7549 | $as_echo "$as_me: failed program was:" >&5 | |
7550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7551 | ||
7552 | ||
d0191583 JM |
7553 | fi |
7554 | ||
7555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7556 | test "$ac_cv_c_uint16_t" != no && break |
7557 | done | |
d0191583 | 7558 | fi |
d911ec67 AK |
7559 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
7560 | $as_echo "$ac_cv_c_uint16_t" >&6; } | |
7561 | case $ac_cv_c_uint16_t in #( | |
7562 | no|yes) ;; #( | |
7563 | *) | |
7564 | ||
d0191583 JM |
7565 | |
7566 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7567 | #define uint16_t $ac_cv_c_uint16_t |
d0191583 | 7568 | _ACEOF |
d911ec67 AK |
7569 | ;; |
7570 | esac | |
d0191583 JM |
7571 | |
7572 | ||
d911ec67 AK |
7573 | { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5 |
7574 | $as_echo_n "checking for uint32_t... " >&6; } | |
7575 | if test "${ac_cv_c_uint32_t+set}" = set; then | |
ec6a6fbe | 7576 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 7577 | else |
d911ec67 AK |
7578 | ac_cv_c_uint32_t=no |
7579 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ | |
7580 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7581 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
7582 | /* confdefs.h. */ |
7583 | _ACEOF | |
7584 | cat confdefs.h >>conftest.$ac_ext | |
7585 | cat >>conftest.$ac_ext <<_ACEOF | |
7586 | /* end confdefs.h. */ | |
7587 | $ac_includes_default | |
7588 | int | |
7589 | main () | |
7590 | { | |
d911ec67 AK |
7591 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
7592 | test_array [0] = 0 | |
7593 | ||
ad6254c5 AK |
7594 | ; |
7595 | return 0; | |
7596 | } | |
7597 | _ACEOF | |
7598 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7599 | if { (ac_try="$ac_compile" |
7600 | case "(($ac_try" in | |
7601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7602 | *) ac_try_echo=$ac_try;; | |
7603 | esac | |
ec6a6fbe AK |
7604 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7605 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7606 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7607 | ac_status=$? |
8a2fc586 AK |
7608 | grep -v '^ *+' conftest.er1 >conftest.err |
7609 | rm -f conftest.er1 | |
7610 | cat conftest.err >&5 | |
ec6a6fbe | 7611 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7612 | (exit $ac_status); } && { |
7613 | test -z "$ac_c_werror_flag" || | |
7614 | test ! -s conftest.err | |
7615 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7616 | case $ac_type in |
7617 | uint32_t) ac_cv_c_uint32_t=yes ;; | |
7618 | *) ac_cv_c_uint32_t=$ac_type ;; | |
7619 | esac | |
7620 | ||
7621 | else | |
7622 | $as_echo "$as_me: failed program was:" >&5 | |
7623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7624 | ||
7625 | ||
7626 | fi | |
7627 | ||
7628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7629 | test "$ac_cv_c_uint32_t" != no && break | |
7630 | done | |
7631 | fi | |
7632 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 | |
7633 | $as_echo "$ac_cv_c_uint32_t" >&6; } | |
7634 | case $ac_cv_c_uint32_t in #( | |
7635 | no|yes) ;; #( | |
7636 | *) | |
7637 | ||
7638 | cat >>confdefs.h <<\_ACEOF | |
7639 | #define _UINT32_T 1 | |
7640 | _ACEOF | |
7641 | ||
7642 | ||
7643 | cat >>confdefs.h <<_ACEOF | |
7644 | #define uint32_t $ac_cv_c_uint32_t | |
7645 | _ACEOF | |
7646 | ;; | |
7647 | esac | |
7648 | ||
7649 | ||
7650 | { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5 | |
7651 | $as_echo_n "checking for uint64_t... " >&6; } | |
7652 | if test "${ac_cv_c_uint64_t+set}" = set; then | |
7653 | $as_echo_n "(cached) " >&6 | |
7654 | else | |
7655 | ac_cv_c_uint64_t=no | |
7656 | for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \ | |
7657 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7658 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
7659 | /* confdefs.h. */ |
7660 | _ACEOF | |
7661 | cat confdefs.h >>conftest.$ac_ext | |
7662 | cat >>conftest.$ac_ext <<_ACEOF | |
7663 | /* end confdefs.h. */ | |
7664 | $ac_includes_default | |
7665 | int | |
7666 | main () | |
7667 | { | |
d911ec67 AK |
7668 | static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)]; |
7669 | test_array [0] = 0 | |
7670 | ||
ad6254c5 AK |
7671 | ; |
7672 | return 0; | |
7673 | } | |
7674 | _ACEOF | |
7675 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7676 | if { (ac_try="$ac_compile" |
7677 | case "(($ac_try" in | |
7678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7679 | *) ac_try_echo=$ac_try;; | |
7680 | esac | |
ec6a6fbe AK |
7681 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7682 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7683 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7684 | ac_status=$? |
8a2fc586 AK |
7685 | grep -v '^ *+' conftest.er1 >conftest.err |
7686 | rm -f conftest.er1 | |
7687 | cat conftest.err >&5 | |
ec6a6fbe | 7688 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7689 | (exit $ac_status); } && { |
7690 | test -z "$ac_c_werror_flag" || | |
7691 | test ! -s conftest.err | |
7692 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7693 | case $ac_type in |
7694 | uint64_t) ac_cv_c_uint64_t=yes ;; | |
7695 | *) ac_cv_c_uint64_t=$ac_type ;; | |
7696 | esac | |
ec6a6fbe | 7697 | |
fddafd51 | 7698 | else |
ec6a6fbe | 7699 | $as_echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
7700 | sed 's/^/| /' conftest.$ac_ext >&5 |
7701 | ||
ec6a6fbe | 7702 | |
80992638 | 7703 | fi |
7a197a62 AK |
7704 | |
7705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7706 | test "$ac_cv_c_uint64_t" != no && break |
7707 | done | |
ad6254c5 | 7708 | fi |
d911ec67 AK |
7709 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5 |
7710 | $as_echo "$ac_cv_c_uint64_t" >&6; } | |
7711 | case $ac_cv_c_uint64_t in #( | |
7712 | no|yes) ;; #( | |
7713 | *) | |
80992638 | 7714 | |
d911ec67 AK |
7715 | cat >>confdefs.h <<\_ACEOF |
7716 | #define _UINT64_T 1 | |
ad6254c5 AK |
7717 | _ACEOF |
7718 | ||
d911ec67 AK |
7719 | |
7720 | cat >>confdefs.h <<_ACEOF | |
7721 | #define uint64_t $ac_cv_c_uint64_t | |
7722 | _ACEOF | |
7723 | ;; | |
7724 | esac | |
ad6254c5 | 7725 | |
ec6a6fbe AK |
7726 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
7727 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
ad6254c5 | 7728 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 7729 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7730 | else |
7731 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7732 | /* confdefs.h. */ |
7733 | _ACEOF | |
7734 | cat confdefs.h >>conftest.$ac_ext | |
7735 | cat >>conftest.$ac_ext <<_ACEOF | |
7736 | /* end confdefs.h. */ | |
7737 | $ac_includes_default | |
7738 | int | |
7739 | main () | |
7740 | { | |
7741 | static struct stat ac_aggr; | |
7742 | if (ac_aggr.st_rdev) | |
7743 | return 0; | |
7744 | ; | |
7745 | return 0; | |
7746 | } | |
7747 | _ACEOF | |
7748 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7749 | if { (ac_try="$ac_compile" |
7750 | case "(($ac_try" in | |
7751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7752 | *) ac_try_echo=$ac_try;; | |
7753 | esac | |
ec6a6fbe AK |
7754 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7755 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7756 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7757 | ac_status=$? |
8a2fc586 AK |
7758 | grep -v '^ *+' conftest.er1 >conftest.err |
7759 | rm -f conftest.er1 | |
7760 | cat conftest.err >&5 | |
ec6a6fbe | 7761 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7762 | (exit $ac_status); } && { |
7763 | test -z "$ac_c_werror_flag" || | |
7764 | test ! -s conftest.err | |
7765 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7766 | ac_cv_member_struct_stat_st_rdev=yes |
7767 | else | |
ec6a6fbe | 7768 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7769 | sed 's/^/| /' conftest.$ac_ext >&5 |
7770 | ||
7a197a62 | 7771 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7772 | /* confdefs.h. */ |
7773 | _ACEOF | |
7774 | cat confdefs.h >>conftest.$ac_ext | |
7775 | cat >>conftest.$ac_ext <<_ACEOF | |
7776 | /* end confdefs.h. */ | |
7777 | $ac_includes_default | |
7778 | int | |
7779 | main () | |
7780 | { | |
7781 | static struct stat ac_aggr; | |
7782 | if (sizeof ac_aggr.st_rdev) | |
7783 | return 0; | |
7784 | ; | |
7785 | return 0; | |
7786 | } | |
7787 | _ACEOF | |
7788 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7789 | if { (ac_try="$ac_compile" |
7790 | case "(($ac_try" in | |
7791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7792 | *) ac_try_echo=$ac_try;; | |
7793 | esac | |
ec6a6fbe AK |
7794 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7795 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7796 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7797 | ac_status=$? |
8a2fc586 AK |
7798 | grep -v '^ *+' conftest.er1 >conftest.err |
7799 | rm -f conftest.er1 | |
7800 | cat conftest.err >&5 | |
ec6a6fbe | 7801 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7802 | (exit $ac_status); } && { |
7803 | test -z "$ac_c_werror_flag" || | |
7804 | test ! -s conftest.err | |
7805 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7806 | ac_cv_member_struct_stat_st_rdev=yes |
7807 | else | |
ec6a6fbe | 7808 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7809 | sed 's/^/| /' conftest.$ac_ext >&5 |
7810 | ||
7a197a62 | 7811 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 7812 | fi |
7a197a62 AK |
7813 | |
7814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 7815 | fi |
7a197a62 AK |
7816 | |
7817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 7818 | fi |
ec6a6fbe AK |
7819 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
7820 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
7821 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
ad6254c5 AK |
7822 | |
7823 | cat >>confdefs.h <<_ACEOF | |
7824 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
7825 | _ACEOF | |
7826 | ||
7827 | ||
ad6254c5 AK |
7828 | fi |
7829 | ||
ec6a6fbe AK |
7830 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
7831 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
ad6254c5 | 7832 | if test "${ac_cv_struct_tm+set}" = set; then |
ec6a6fbe | 7833 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7834 | else |
7835 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7836 | /* confdefs.h. */ |
7837 | _ACEOF | |
7838 | cat confdefs.h >>conftest.$ac_ext | |
7839 | cat >>conftest.$ac_ext <<_ACEOF | |
7840 | /* end confdefs.h. */ | |
7841 | #include <sys/types.h> | |
7842 | #include <time.h> | |
7843 | ||
7844 | int | |
7845 | main () | |
7846 | { | |
25fbec5b AK |
7847 | struct tm tm; |
7848 | int *p = &tm.tm_sec; | |
ec6a6fbe | 7849 | return !p; |
ad6254c5 AK |
7850 | ; |
7851 | return 0; | |
7852 | } | |
7853 | _ACEOF | |
7854 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7855 | if { (ac_try="$ac_compile" |
7856 | case "(($ac_try" in | |
7857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7858 | *) ac_try_echo=$ac_try;; | |
7859 | esac | |
ec6a6fbe AK |
7860 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7861 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7862 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7863 | ac_status=$? |
8a2fc586 AK |
7864 | grep -v '^ *+' conftest.er1 >conftest.err |
7865 | rm -f conftest.er1 | |
7866 | cat conftest.err >&5 | |
ec6a6fbe | 7867 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7868 | (exit $ac_status); } && { |
7869 | test -z "$ac_c_werror_flag" || | |
7870 | test ! -s conftest.err | |
d911ec67 AK |
7871 | } && test -s conftest.$ac_objext; then |
7872 | ac_cv_struct_tm=time.h | |
7873 | else | |
7874 | $as_echo "$as_me: failed program was:" >&5 | |
7875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7876 | ||
7877 | ac_cv_struct_tm=sys/time.h | |
7878 | fi | |
7879 | ||
7880 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7881 | fi | |
7882 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | |
7883 | $as_echo "$ac_cv_struct_tm" >&6; } | |
7884 | if test $ac_cv_struct_tm = sys/time.h; then | |
7885 | ||
7886 | cat >>confdefs.h <<\_ACEOF | |
7887 | #define TM_IN_SYS_TIME 1 | |
7888 | _ACEOF | |
7889 | ||
7890 | fi | |
7891 | ||
7892 | ||
7893 | ################################################################################ | |
7894 | { $as_echo "$as_me:$LINENO: checking for library containing floor" >&5 | |
7895 | $as_echo_n "checking for library containing floor... " >&6; } | |
7896 | if test "${ac_cv_search_floor+set}" = set; then | |
7897 | $as_echo_n "(cached) " >&6 | |
7898 | else | |
7899 | ac_func_search_save_LIBS=$LIBS | |
7900 | cat >conftest.$ac_ext <<_ACEOF | |
7901 | /* confdefs.h. */ | |
7902 | _ACEOF | |
7903 | cat confdefs.h >>conftest.$ac_ext | |
7904 | cat >>conftest.$ac_ext <<_ACEOF | |
7905 | /* end confdefs.h. */ | |
7906 | ||
7907 | /* Override any GCC internal prototype to avoid an error. | |
7908 | Use char because int might match the return type of a GCC | |
7909 | builtin and then its argument prototype would still apply. */ | |
7910 | #ifdef __cplusplus | |
7911 | extern "C" | |
7912 | #endif | |
7913 | char floor (); | |
7914 | int | |
7915 | main () | |
7916 | { | |
7917 | return floor (); | |
7918 | ; | |
7919 | return 0; | |
7920 | } | |
7921 | _ACEOF | |
7922 | for ac_lib in '' m; do | |
7923 | if test -z "$ac_lib"; then | |
7924 | ac_res="none required" | |
7925 | else | |
7926 | ac_res=-l$ac_lib | |
7927 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7928 | fi | |
7929 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7930 | if { (ac_try="$ac_link" | |
7931 | case "(($ac_try" in | |
7932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7933 | *) ac_try_echo=$ac_try;; | |
7934 | esac | |
7935 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7936 | $as_echo "$ac_try_echo") >&5 | |
7937 | (eval "$ac_link") 2>conftest.er1 | |
7938 | ac_status=$? | |
7939 | grep -v '^ *+' conftest.er1 >conftest.err | |
7940 | rm -f conftest.er1 | |
7941 | cat conftest.err >&5 | |
7942 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7943 | (exit $ac_status); } && { | |
7944 | test -z "$ac_c_werror_flag" || | |
7945 | test ! -s conftest.err | |
7946 | } && test -s conftest$ac_exeext && { | |
7947 | test "$cross_compiling" = yes || | |
7948 | $as_test_x conftest$ac_exeext | |
7949 | }; then | |
7950 | ac_cv_search_floor=$ac_res | |
ad6254c5 | 7951 | else |
ec6a6fbe | 7952 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7953 | sed 's/^/| /' conftest.$ac_ext >&5 |
7954 | ||
7a197a62 | 7955 | |
ad6254c5 | 7956 | fi |
ad6254c5 | 7957 | |
d911ec67 AK |
7958 | rm -rf conftest.dSYM |
7959 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7960 | conftest$ac_exeext | |
7961 | if test "${ac_cv_search_floor+set}" = set; then | |
7962 | break | |
7963 | fi | |
7964 | done | |
7965 | if test "${ac_cv_search_floor+set}" = set; then | |
7966 | : | |
7967 | else | |
7968 | ac_cv_search_floor=no | |
7969 | fi | |
7970 | rm conftest.$ac_ext | |
7971 | LIBS=$ac_func_search_save_LIBS | |
7972 | fi | |
7973 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_floor" >&5 | |
7974 | $as_echo "$ac_cv_search_floor" >&6; } | |
7975 | ac_res=$ac_cv_search_floor | |
7976 | if test "$ac_res" != no; then | |
7977 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
ad6254c5 | 7978 | |
d911ec67 AK |
7979 | else |
7980 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
7981 | $as_echo "$as_me: error: bailing out" >&2;} | |
7982 | { (exit 1); exit 1; }; } | |
ad6254c5 | 7983 | fi |
809fae91 | 7984 | |
795ca3e5 | 7985 | |
ad6254c5 AK |
7986 | |
7987 | ||
7988 | ||
7989 | ||
7990 | ||
7991 | ||
7992 | ||
7993 | ||
7994 | ||
7995 | ||
7996 | ||
7997 | ||
7998 | ||
7999 | ||
d0191583 JM |
8000 | |
8001 | ||
8002 | ||
d911ec67 AK |
8003 | |
8004 | ||
8005 | ||
8006 | ||
8007 | ||
8008 | ||
8009 | ||
8010 | for ac_func in floor ftruncate gethostname getpagesize \ | |
8011 | gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \ | |
8012 | strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \ | |
8013 | strstr strtol strtoul uname | |
ad6254c5 | 8014 | do |
ec6a6fbe AK |
8015 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8016 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8017 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8018 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8019 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 8020 | else |
ad6254c5 | 8021 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8022 | /* confdefs.h. */ |
8023 | _ACEOF | |
8024 | cat confdefs.h >>conftest.$ac_ext | |
8025 | cat >>conftest.$ac_ext <<_ACEOF | |
8026 | /* end confdefs.h. */ | |
8a2fc586 AK |
8027 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8028 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8029 | #define $ac_func innocuous_$ac_func | |
8030 | ||
ad6254c5 AK |
8031 | /* System header to define __stub macros and hopefully few prototypes, |
8032 | which can conflict with char $ac_func (); below. | |
8033 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8034 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8035 | |
ad6254c5 AK |
8036 | #ifdef __STDC__ |
8037 | # include <limits.h> | |
8038 | #else | |
8039 | # include <assert.h> | |
8040 | #endif | |
8a2fc586 AK |
8041 | |
8042 | #undef $ac_func | |
8043 | ||
7a197a62 AK |
8044 | /* Override any GCC internal prototype to avoid an error. |
8045 | Use char because int might match the return type of a GCC | |
8046 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8047 | #ifdef __cplusplus |
8048 | extern "C" | |
ad6254c5 | 8049 | #endif |
ad6254c5 AK |
8050 | char $ac_func (); |
8051 | /* The GNU C library defines this for functions which it implements | |
8052 | to always fail with ENOSYS. Some functions are actually named | |
8053 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8054 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8055 | choke me |
ad6254c5 AK |
8056 | #endif |
8057 | ||
8058 | int | |
8059 | main () | |
8060 | { | |
7a197a62 | 8061 | return $ac_func (); |
ad6254c5 AK |
8062 | ; |
8063 | return 0; | |
8064 | } | |
8065 | _ACEOF | |
8066 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8067 | if { (ac_try="$ac_link" |
8068 | case "(($ac_try" in | |
8069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8070 | *) ac_try_echo=$ac_try;; | |
8071 | esac | |
ec6a6fbe AK |
8072 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8073 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8074 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8075 | ac_status=$? |
8a2fc586 AK |
8076 | grep -v '^ *+' conftest.er1 >conftest.err |
8077 | rm -f conftest.er1 | |
8078 | cat conftest.err >&5 | |
ec6a6fbe | 8079 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8080 | (exit $ac_status); } && { |
8081 | test -z "$ac_c_werror_flag" || | |
8082 | test ! -s conftest.err | |
ec6a6fbe AK |
8083 | } && test -s conftest$ac_exeext && { |
8084 | test "$cross_compiling" = yes || | |
8085 | $as_test_x conftest$ac_exeext | |
8086 | }; then | |
fc54be10 AK |
8087 | eval "$as_ac_var=yes" |
8088 | else | |
ec6a6fbe | 8089 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
8090 | sed 's/^/| /' conftest.$ac_ext >&5 |
8091 | ||
8092 | eval "$as_ac_var=no" | |
8093 | fi | |
8094 | ||
ec6a6fbe | 8095 | rm -rf conftest.dSYM |
25fbec5b | 8096 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
8097 | conftest$ac_exeext conftest.$ac_ext |
8098 | fi | |
ec6a6fbe AK |
8099 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8100 | $as_echo "$as_val"'` | |
8101 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8102 | $as_echo "$ac_res" >&6; } | |
8103 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8104 | $as_echo "$as_val"'` | |
8105 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8106 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8107 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8108 | _ACEOF |
8109 | ||
8110 | else | |
ec6a6fbe AK |
8111 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
8112 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
8113 | { (exit 1); exit 1; }; } |
8114 | fi | |
8115 | done | |
795ca3e5 | 8116 | |
a0f9708e AK |
8117 | |
8118 | for ac_func in siginterrupt | |
8119 | do | |
8120 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
8121 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8122 | $as_echo_n "checking for $ac_func... " >&6; } | |
8123 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
8124 | $as_echo_n "(cached) " >&6 | |
8125 | else | |
8126 | cat >conftest.$ac_ext <<_ACEOF | |
8127 | /* confdefs.h. */ | |
8128 | _ACEOF | |
8129 | cat confdefs.h >>conftest.$ac_ext | |
8130 | cat >>conftest.$ac_ext <<_ACEOF | |
8131 | /* end confdefs.h. */ | |
8132 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8133 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8134 | #define $ac_func innocuous_$ac_func | |
8135 | ||
8136 | /* System header to define __stub macros and hopefully few prototypes, | |
8137 | which can conflict with char $ac_func (); below. | |
8138 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8139 | <limits.h> exists even on freestanding compilers. */ | |
8140 | ||
8141 | #ifdef __STDC__ | |
8142 | # include <limits.h> | |
8143 | #else | |
8144 | # include <assert.h> | |
8145 | #endif | |
8146 | ||
8147 | #undef $ac_func | |
8148 | ||
8149 | /* Override any GCC internal prototype to avoid an error. | |
8150 | Use char because int might match the return type of a GCC | |
8151 | builtin and then its argument prototype would still apply. */ | |
8152 | #ifdef __cplusplus | |
8153 | extern "C" | |
8154 | #endif | |
8155 | char $ac_func (); | |
8156 | /* The GNU C library defines this for functions which it implements | |
8157 | to always fail with ENOSYS. Some functions are actually named | |
8158 | something starting with __ and the normal name is an alias. */ | |
8159 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8160 | choke me | |
8161 | #endif | |
8162 | ||
8163 | int | |
8164 | main () | |
8165 | { | |
8166 | return $ac_func (); | |
8167 | ; | |
8168 | return 0; | |
8169 | } | |
8170 | _ACEOF | |
8171 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8172 | if { (ac_try="$ac_link" | |
8173 | case "(($ac_try" in | |
8174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8175 | *) ac_try_echo=$ac_try;; | |
8176 | esac | |
8177 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8178 | $as_echo "$ac_try_echo") >&5 | |
8179 | (eval "$ac_link") 2>conftest.er1 | |
8180 | ac_status=$? | |
8181 | grep -v '^ *+' conftest.er1 >conftest.err | |
8182 | rm -f conftest.er1 | |
8183 | cat conftest.err >&5 | |
8184 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8185 | (exit $ac_status); } && { | |
8186 | test -z "$ac_c_werror_flag" || | |
8187 | test ! -s conftest.err | |
8188 | } && test -s conftest$ac_exeext && { | |
8189 | test "$cross_compiling" = yes || | |
8190 | $as_test_x conftest$ac_exeext | |
8191 | }; then | |
8192 | eval "$as_ac_var=yes" | |
8193 | else | |
8194 | $as_echo "$as_me: failed program was:" >&5 | |
8195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8196 | ||
8197 | eval "$as_ac_var=no" | |
8198 | fi | |
8199 | ||
8200 | rm -rf conftest.dSYM | |
8201 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8202 | conftest$ac_exeext conftest.$ac_ext | |
8203 | fi | |
8204 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
8205 | $as_echo "$as_val"'` | |
8206 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8207 | $as_echo "$ac_res" >&6; } | |
8208 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8209 | $as_echo "$as_val"'` | |
8210 | if test "x$as_val" = x""yes; then | |
8211 | cat >>confdefs.h <<_ACEOF | |
8212 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8213 | _ACEOF | |
8214 | ||
8215 | fi | |
8216 | done | |
8217 | ||
ad6254c5 AK |
8218 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
8219 | # for constant arguments. Useless! | |
ec6a6fbe AK |
8220 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
8221 | $as_echo_n "checking for working alloca.h... " >&6; } | |
ad6254c5 | 8222 | if test "${ac_cv_working_alloca_h+set}" = set; then |
ec6a6fbe | 8223 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8224 | else |
8225 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8226 | /* confdefs.h. */ |
8227 | _ACEOF | |
8228 | cat confdefs.h >>conftest.$ac_ext | |
8229 | cat >>conftest.$ac_ext <<_ACEOF | |
8230 | /* end confdefs.h. */ | |
8231 | #include <alloca.h> | |
8232 | int | |
8233 | main () | |
8234 | { | |
8235 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 8236 | if (p) return 0; |
ad6254c5 AK |
8237 | ; |
8238 | return 0; | |
8239 | } | |
8240 | _ACEOF | |
8241 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8242 | if { (ac_try="$ac_link" |
8243 | case "(($ac_try" in | |
8244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8245 | *) ac_try_echo=$ac_try;; | |
8246 | esac | |
ec6a6fbe AK |
8247 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8248 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8249 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8250 | ac_status=$? |
8a2fc586 AK |
8251 | grep -v '^ *+' conftest.er1 >conftest.err |
8252 | rm -f conftest.er1 | |
8253 | cat conftest.err >&5 | |
ec6a6fbe | 8254 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8255 | (exit $ac_status); } && { |
8256 | test -z "$ac_c_werror_flag" || | |
8257 | test ! -s conftest.err | |
ec6a6fbe AK |
8258 | } && test -s conftest$ac_exeext && { |
8259 | test "$cross_compiling" = yes || | |
8260 | $as_test_x conftest$ac_exeext | |
8261 | }; then | |
ad6254c5 AK |
8262 | ac_cv_working_alloca_h=yes |
8263 | else | |
ec6a6fbe | 8264 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 8265 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 8266 | |
7a197a62 | 8267 | ac_cv_working_alloca_h=no |
ad6254c5 | 8268 | fi |
7a197a62 | 8269 | |
ec6a6fbe | 8270 | rm -rf conftest.dSYM |
25fbec5b | 8271 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8272 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8273 | fi |
ec6a6fbe AK |
8274 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
8275 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
8276 | if test $ac_cv_working_alloca_h = yes; then |
8277 | ||
8278 | cat >>confdefs.h <<\_ACEOF | |
8279 | #define HAVE_ALLOCA_H 1 | |
8280 | _ACEOF | |
8281 | ||
8282 | fi | |
8283 | ||
ec6a6fbe AK |
8284 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
8285 | $as_echo_n "checking for alloca... " >&6; } | |
ad6254c5 | 8286 | if test "${ac_cv_func_alloca_works+set}" = set; then |
ec6a6fbe | 8287 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8288 | else |
8289 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8290 | /* confdefs.h. */ |
8291 | _ACEOF | |
8292 | cat confdefs.h >>conftest.$ac_ext | |
8293 | cat >>conftest.$ac_ext <<_ACEOF | |
8294 | /* end confdefs.h. */ | |
8295 | #ifdef __GNUC__ | |
8296 | # define alloca __builtin_alloca | |
8297 | #else | |
8298 | # ifdef _MSC_VER | |
8299 | # include <malloc.h> | |
8300 | # define alloca _alloca | |
8301 | # else | |
25fbec5b | 8302 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
8303 | # include <alloca.h> |
8304 | # else | |
8305 | # ifdef _AIX | |
8306 | #pragma alloca | |
8307 | # else | |
8308 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
8309 | char *alloca (); | |
8310 | # endif | |
8311 | # endif | |
8312 | # endif | |
8313 | # endif | |
8314 | #endif | |
8315 | ||
8316 | int | |
8317 | main () | |
8318 | { | |
8319 | char *p = (char *) alloca (1); | |
7a197a62 | 8320 | if (p) return 0; |
ad6254c5 AK |
8321 | ; |
8322 | return 0; | |
8323 | } | |
8324 | _ACEOF | |
8325 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8326 | if { (ac_try="$ac_link" |
8327 | case "(($ac_try" in | |
8328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8329 | *) ac_try_echo=$ac_try;; | |
8330 | esac | |
ec6a6fbe AK |
8331 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8332 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8333 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8334 | ac_status=$? |
8a2fc586 AK |
8335 | grep -v '^ *+' conftest.er1 >conftest.err |
8336 | rm -f conftest.er1 | |
8337 | cat conftest.err >&5 | |
ec6a6fbe | 8338 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8339 | (exit $ac_status); } && { |
8340 | test -z "$ac_c_werror_flag" || | |
8341 | test ! -s conftest.err | |
ec6a6fbe AK |
8342 | } && test -s conftest$ac_exeext && { |
8343 | test "$cross_compiling" = yes || | |
8344 | $as_test_x conftest$ac_exeext | |
8345 | }; then | |
ad6254c5 AK |
8346 | ac_cv_func_alloca_works=yes |
8347 | else | |
ec6a6fbe | 8348 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8349 | sed 's/^/| /' conftest.$ac_ext >&5 |
8350 | ||
7a197a62 | 8351 | ac_cv_func_alloca_works=no |
ad6254c5 | 8352 | fi |
7a197a62 | 8353 | |
ec6a6fbe | 8354 | rm -rf conftest.dSYM |
25fbec5b | 8355 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8356 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8357 | fi |
ec6a6fbe AK |
8358 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
8359 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
8360 | |
8361 | if test $ac_cv_func_alloca_works = yes; then | |
8362 | ||
8363 | cat >>confdefs.h <<\_ACEOF | |
8364 | #define HAVE_ALLOCA 1 | |
8365 | _ACEOF | |
8366 | ||
8367 | else | |
8368 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
8369 | # that cause trouble. Some versions do not even contain alloca or | |
8370 | # contain a buggy version. If you still want to use their alloca, | |
8371 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
8372 | ||
7a197a62 | 8373 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
8374 | |
8375 | cat >>confdefs.h <<\_ACEOF | |
8376 | #define C_ALLOCA 1 | |
8377 | _ACEOF | |
8378 | ||
8379 | ||
ec6a6fbe AK |
8380 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
8381 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
ad6254c5 | 8382 | if test "${ac_cv_os_cray+set}" = set; then |
ec6a6fbe | 8383 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8384 | else |
8385 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8386 | /* confdefs.h. */ |
8387 | _ACEOF | |
8388 | cat confdefs.h >>conftest.$ac_ext | |
8389 | cat >>conftest.$ac_ext <<_ACEOF | |
8390 | /* end confdefs.h. */ | |
7a197a62 | 8391 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
8392 | webecray |
8393 | #else | |
8394 | wenotbecray | |
8395 | #endif | |
8396 | ||
8397 | _ACEOF | |
795ca3e5 | 8398 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
8399 | $EGREP "webecray" >/dev/null 2>&1; then |
8400 | ac_cv_os_cray=yes | |
8401 | else | |
8402 | ac_cv_os_cray=no | |
795ca3e5 AK |
8403 | fi |
8404 | rm -f conftest* | |
8405 | ||
795ca3e5 | 8406 | fi |
ec6a6fbe AK |
8407 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
8408 | $as_echo "$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
8409 | if test $ac_cv_os_cray = yes; then |
8410 | for ac_func in _getb67 GETB67 getb67; do | |
ec6a6fbe AK |
8411 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8412 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8413 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8414 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8415 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8416 | else |
8417 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8418 | /* confdefs.h. */ |
8419 | _ACEOF | |
8420 | cat confdefs.h >>conftest.$ac_ext | |
8421 | cat >>conftest.$ac_ext <<_ACEOF | |
8422 | /* end confdefs.h. */ | |
8a2fc586 AK |
8423 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8424 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8425 | #define $ac_func innocuous_$ac_func | |
8426 | ||
ad6254c5 AK |
8427 | /* System header to define __stub macros and hopefully few prototypes, |
8428 | which can conflict with char $ac_func (); below. | |
8429 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8430 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8431 | |
ad6254c5 AK |
8432 | #ifdef __STDC__ |
8433 | # include <limits.h> | |
8434 | #else | |
8435 | # include <assert.h> | |
8436 | #endif | |
8a2fc586 AK |
8437 | |
8438 | #undef $ac_func | |
8439 | ||
7a197a62 AK |
8440 | /* Override any GCC internal prototype to avoid an error. |
8441 | Use char because int might match the return type of a GCC | |
8442 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8443 | #ifdef __cplusplus |
8444 | extern "C" | |
ad6254c5 | 8445 | #endif |
ad6254c5 AK |
8446 | char $ac_func (); |
8447 | /* The GNU C library defines this for functions which it implements | |
8448 | to always fail with ENOSYS. Some functions are actually named | |
8449 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8450 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8451 | choke me |
ad6254c5 AK |
8452 | #endif |
8453 | ||
8454 | int | |
8455 | main () | |
8456 | { | |
7a197a62 | 8457 | return $ac_func (); |
ad6254c5 AK |
8458 | ; |
8459 | return 0; | |
8460 | } | |
8461 | _ACEOF | |
8462 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8463 | if { (ac_try="$ac_link" |
8464 | case "(($ac_try" in | |
8465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8466 | *) ac_try_echo=$ac_try;; | |
8467 | esac | |
ec6a6fbe AK |
8468 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8469 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8470 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8471 | ac_status=$? |
8a2fc586 AK |
8472 | grep -v '^ *+' conftest.er1 >conftest.err |
8473 | rm -f conftest.er1 | |
8474 | cat conftest.err >&5 | |
ec6a6fbe | 8475 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8476 | (exit $ac_status); } && { |
8477 | test -z "$ac_c_werror_flag" || | |
8478 | test ! -s conftest.err | |
ec6a6fbe AK |
8479 | } && test -s conftest$ac_exeext && { |
8480 | test "$cross_compiling" = yes || | |
8481 | $as_test_x conftest$ac_exeext | |
8482 | }; then | |
ad6254c5 AK |
8483 | eval "$as_ac_var=yes" |
8484 | else | |
ec6a6fbe | 8485 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8486 | sed 's/^/| /' conftest.$ac_ext >&5 |
8487 | ||
7a197a62 | 8488 | eval "$as_ac_var=no" |
ad6254c5 | 8489 | fi |
7a197a62 | 8490 | |
ec6a6fbe | 8491 | rm -rf conftest.dSYM |
25fbec5b | 8492 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8493 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8494 | fi |
ec6a6fbe AK |
8495 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8496 | $as_echo "$as_val"'` | |
8497 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8498 | $as_echo "$ac_res" >&6; } | |
8499 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8500 | $as_echo "$as_val"'` | |
8501 | if test "x$as_val" = x""yes; then | |
80992638 | 8502 | |
ad6254c5 AK |
8503 | cat >>confdefs.h <<_ACEOF |
8504 | #define CRAY_STACKSEG_END $ac_func | |
8505 | _ACEOF | |
8506 | ||
8507 | break | |
8508 | fi | |
8509 | ||
8510 | done | |
8511 | fi | |
8512 | ||
ec6a6fbe AK |
8513 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
8514 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
ad6254c5 | 8515 | if test "${ac_cv_c_stack_direction+set}" = set; then |
ec6a6fbe | 8516 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8517 | else |
8518 | if test "$cross_compiling" = yes; then | |
8519 | ac_cv_c_stack_direction=0 | |
8520 | else | |
8521 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8522 | /* confdefs.h. */ |
8523 | _ACEOF | |
8524 | cat confdefs.h >>conftest.$ac_ext | |
8525 | cat >>conftest.$ac_ext <<_ACEOF | |
8526 | /* end confdefs.h. */ | |
7a197a62 | 8527 | $ac_includes_default |
ad6254c5 AK |
8528 | int |
8529 | find_stack_direction () | |
8530 | { | |
8531 | static char *addr = 0; | |
8532 | auto char dummy; | |
8533 | if (addr == 0) | |
8534 | { | |
8535 | addr = &dummy; | |
8536 | return find_stack_direction (); | |
8537 | } | |
8538 | else | |
8539 | return (&dummy > addr) ? 1 : -1; | |
8540 | } | |
8541 | ||
8542 | int | |
8543 | main () | |
8544 | { | |
7a197a62 | 8545 | return find_stack_direction () < 0; |
ad6254c5 AK |
8546 | } |
8547 | _ACEOF | |
8548 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8549 | if { (ac_try="$ac_link" |
8550 | case "(($ac_try" in | |
8551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8552 | *) ac_try_echo=$ac_try;; | |
8553 | esac | |
ec6a6fbe AK |
8554 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8555 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8556 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8557 | ac_status=$? |
ec6a6fbe | 8558 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8559 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8560 | { (case "(($ac_try" in |
8561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8562 | *) ac_try_echo=$ac_try;; | |
8563 | esac | |
ec6a6fbe AK |
8564 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8565 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8566 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8567 | ac_status=$? |
ec6a6fbe | 8568 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8569 | (exit $ac_status); }; }; then |
8570 | ac_cv_c_stack_direction=1 | |
8571 | else | |
ec6a6fbe AK |
8572 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8573 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8574 | sed 's/^/| /' conftest.$ac_ext >&5 |
8575 | ||
8576 | ( exit $ac_status ) | |
8577 | ac_cv_c_stack_direction=-1 | |
8578 | fi | |
ec6a6fbe | 8579 | rm -rf conftest.dSYM |
7a197a62 | 8580 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8581 | fi |
7a197a62 AK |
8582 | |
8583 | ||
ad6254c5 | 8584 | fi |
ec6a6fbe AK |
8585 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
8586 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 | 8587 | |
d911ec67 AK |
8588 | cat >>confdefs.h <<_ACEOF |
8589 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
8590 | _ACEOF | |
8591 | ||
8592 | ||
8593 | fi | |
8594 | ||
8595 | { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5 | |
8596 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
8597 | if test "${ac_cv_func_closedir_void+set}" = set; then | |
8598 | $as_echo_n "(cached) " >&6 | |
8599 | else | |
8600 | if test "$cross_compiling" = yes; then | |
8601 | ac_cv_func_closedir_void=yes | |
8602 | else | |
8603 | cat >conftest.$ac_ext <<_ACEOF | |
8604 | /* confdefs.h. */ | |
8605 | _ACEOF | |
8606 | cat confdefs.h >>conftest.$ac_ext | |
8607 | cat >>conftest.$ac_ext <<_ACEOF | |
8608 | /* end confdefs.h. */ | |
8609 | $ac_includes_default | |
8610 | #include <$ac_header_dirent> | |
8611 | #ifndef __cplusplus | |
8612 | int closedir (); | |
8613 | #endif | |
8614 | ||
8615 | int | |
8616 | main () | |
8617 | { | |
8618 | return closedir (opendir (".")) != 0; | |
8619 | ; | |
8620 | return 0; | |
8621 | } | |
8622 | _ACEOF | |
8623 | rm -f conftest$ac_exeext | |
8624 | if { (ac_try="$ac_link" | |
8625 | case "(($ac_try" in | |
8626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8627 | *) ac_try_echo=$ac_try;; | |
8628 | esac | |
8629 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8630 | $as_echo "$ac_try_echo") >&5 | |
8631 | (eval "$ac_link") 2>&5 | |
8632 | ac_status=$? | |
8633 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8634 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8635 | { (case "(($ac_try" in | |
8636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8637 | *) ac_try_echo=$ac_try;; | |
8638 | esac | |
8639 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8640 | $as_echo "$ac_try_echo") >&5 | |
8641 | (eval "$ac_try") 2>&5 | |
8642 | ac_status=$? | |
8643 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8644 | (exit $ac_status); }; }; then | |
8645 | ac_cv_func_closedir_void=no | |
8646 | else | |
8647 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
8648 | $as_echo "$as_me: failed program was:" >&5 | |
8649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8650 | ||
8651 | ( exit $ac_status ) | |
8652 | ac_cv_func_closedir_void=yes | |
8653 | fi | |
8654 | rm -rf conftest.dSYM | |
8655 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8656 | fi | |
8657 | ||
8658 | ||
8659 | fi | |
8660 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 | |
8661 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
8662 | if test $ac_cv_func_closedir_void = yes; then | |
8663 | ||
8664 | cat >>confdefs.h <<\_ACEOF | |
8665 | #define CLOSEDIR_VOID 1 | |
8666 | _ACEOF | |
8667 | ||
8668 | fi | |
8669 | ||
8670 | ||
8671 | for ac_header in unistd.h | |
8672 | do | |
8673 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8674 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8675 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8676 | $as_echo_n "checking for $ac_header... " >&6; } | |
8677 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8678 | $as_echo_n "(cached) " >&6 | |
8679 | fi | |
8680 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8681 | $as_echo "$as_val"'` | |
8682 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8683 | $as_echo "$ac_res" >&6; } | |
8684 | else | |
8685 | # Is the header compilable? | |
8686 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8687 | $as_echo_n "checking $ac_header usability... " >&6; } | |
8688 | cat >conftest.$ac_ext <<_ACEOF | |
8689 | /* confdefs.h. */ | |
8690 | _ACEOF | |
8691 | cat confdefs.h >>conftest.$ac_ext | |
8692 | cat >>conftest.$ac_ext <<_ACEOF | |
8693 | /* end confdefs.h. */ | |
8694 | $ac_includes_default | |
8695 | #include <$ac_header> | |
8696 | _ACEOF | |
8697 | rm -f conftest.$ac_objext | |
8698 | if { (ac_try="$ac_compile" | |
8699 | case "(($ac_try" in | |
8700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8701 | *) ac_try_echo=$ac_try;; | |
8702 | esac | |
8703 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8704 | $as_echo "$ac_try_echo") >&5 | |
8705 | (eval "$ac_compile") 2>conftest.er1 | |
8706 | ac_status=$? | |
8707 | grep -v '^ *+' conftest.er1 >conftest.err | |
8708 | rm -f conftest.er1 | |
8709 | cat conftest.err >&5 | |
8710 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8711 | (exit $ac_status); } && { | |
8712 | test -z "$ac_c_werror_flag" || | |
8713 | test ! -s conftest.err | |
8714 | } && test -s conftest.$ac_objext; then | |
8715 | ac_header_compiler=yes | |
8716 | else | |
8717 | $as_echo "$as_me: failed program was:" >&5 | |
8718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8719 | ||
8720 | ac_header_compiler=no | |
8721 | fi | |
8722 | ||
8723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8724 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8725 | $as_echo "$ac_header_compiler" >&6; } | |
8726 | ||
8727 | # Is the header present? | |
8728 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8729 | $as_echo_n "checking $ac_header presence... " >&6; } | |
8730 | cat >conftest.$ac_ext <<_ACEOF | |
8731 | /* confdefs.h. */ | |
8732 | _ACEOF | |
8733 | cat confdefs.h >>conftest.$ac_ext | |
8734 | cat >>conftest.$ac_ext <<_ACEOF | |
8735 | /* end confdefs.h. */ | |
8736 | #include <$ac_header> | |
8737 | _ACEOF | |
8738 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
8739 | case "(($ac_try" in | |
8740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8741 | *) ac_try_echo=$ac_try;; | |
8742 | esac | |
8743 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8744 | $as_echo "$ac_try_echo") >&5 | |
8745 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
8746 | ac_status=$? | |
8747 | grep -v '^ *+' conftest.er1 >conftest.err | |
8748 | rm -f conftest.er1 | |
8749 | cat conftest.err >&5 | |
8750 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8751 | (exit $ac_status); } >/dev/null && { | |
8752 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8753 | test ! -s conftest.err | |
8754 | }; then | |
8755 | ac_header_preproc=yes | |
8756 | else | |
8757 | $as_echo "$as_me: failed program was:" >&5 | |
8758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8759 | ||
8760 | ac_header_preproc=no | |
8761 | fi | |
8762 | ||
8763 | rm -f conftest.err conftest.$ac_ext | |
8764 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8765 | $as_echo "$ac_header_preproc" >&6; } | |
8766 | ||
8767 | # So? What about this header? | |
8768 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8769 | yes:no: ) | |
8770 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8771 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8772 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8773 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8774 | ac_header_preproc=yes | |
8775 | ;; | |
8776 | no:yes:* ) | |
8777 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8778 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8779 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8780 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8781 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8782 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8783 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8784 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8785 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8786 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8787 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8788 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8789 | ||
8790 | ;; | |
8791 | esac | |
8792 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8793 | $as_echo_n "checking for $ac_header... " >&6; } | |
8794 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8795 | $as_echo_n "(cached) " >&6 | |
8796 | else | |
8797 | eval "$as_ac_Header=\$ac_header_preproc" | |
8798 | fi | |
8799 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8800 | $as_echo "$as_val"'` | |
8801 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8802 | $as_echo "$ac_res" >&6; } | |
8803 | ||
8804 | fi | |
8805 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
8806 | $as_echo "$as_val"'` | |
8807 | if test "x$as_val" = x""yes; then | |
8808 | cat >>confdefs.h <<_ACEOF | |
8809 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ad6254c5 AK |
8810 | _ACEOF |
8811 | ||
ad6254c5 AK |
8812 | fi |
8813 | ||
d911ec67 AK |
8814 | done |
8815 | ||
8816 | { $as_echo "$as_me:$LINENO: checking for working chown" >&5 | |
8817 | $as_echo_n "checking for working chown... " >&6; } | |
8818 | if test "${ac_cv_func_chown_works+set}" = set; then | |
ec6a6fbe | 8819 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8820 | else |
8821 | if test "$cross_compiling" = yes; then | |
d911ec67 | 8822 | ac_cv_func_chown_works=no |
ad6254c5 AK |
8823 | else |
8824 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8825 | /* confdefs.h. */ |
8826 | _ACEOF | |
8827 | cat confdefs.h >>conftest.$ac_ext | |
8828 | cat >>conftest.$ac_ext <<_ACEOF | |
8829 | /* end confdefs.h. */ | |
8830 | $ac_includes_default | |
d911ec67 | 8831 | #include <fcntl.h> |
ad6254c5 AK |
8832 | |
8833 | int | |
8834 | main () | |
8835 | { | |
d911ec67 AK |
8836 | char *f = "conftest.chown"; |
8837 | struct stat before, after; | |
8838 | ||
8839 | if (creat (f, 0600) < 0) | |
8840 | return 1; | |
8841 | if (stat (f, &before) < 0) | |
8842 | return 1; | |
8843 | if (chown (f, (uid_t) -1, (gid_t) -1) == -1) | |
8844 | return 1; | |
8845 | if (stat (f, &after) < 0) | |
8846 | return 1; | |
8847 | return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); | |
8848 | ||
ad6254c5 AK |
8849 | ; |
8850 | return 0; | |
8851 | } | |
8852 | _ACEOF | |
8853 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8854 | if { (ac_try="$ac_link" |
8855 | case "(($ac_try" in | |
8856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8857 | *) ac_try_echo=$ac_try;; | |
8858 | esac | |
ec6a6fbe AK |
8859 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8860 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8861 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8862 | ac_status=$? |
ec6a6fbe | 8863 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8864 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8865 | { (case "(($ac_try" in |
8866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8867 | *) ac_try_echo=$ac_try;; | |
8868 | esac | |
ec6a6fbe AK |
8869 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8870 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8871 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8872 | ac_status=$? |
ec6a6fbe | 8873 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8874 | (exit $ac_status); }; }; then |
d911ec67 | 8875 | ac_cv_func_chown_works=yes |
ad6254c5 | 8876 | else |
ec6a6fbe AK |
8877 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8878 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8879 | sed 's/^/| /' conftest.$ac_ext >&5 |
8880 | ||
8881 | ( exit $ac_status ) | |
d911ec67 | 8882 | ac_cv_func_chown_works=no |
ad6254c5 | 8883 | fi |
ec6a6fbe | 8884 | rm -rf conftest.dSYM |
7a197a62 | 8885 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8886 | fi |
7a197a62 AK |
8887 | |
8888 | ||
d911ec67 AK |
8889 | rm -f conftest.chown |
8890 | ||
ad6254c5 | 8891 | fi |
d911ec67 AK |
8892 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5 |
8893 | $as_echo "$ac_cv_func_chown_works" >&6; } | |
8894 | if test $ac_cv_func_chown_works = yes; then | |
ad6254c5 AK |
8895 | |
8896 | cat >>confdefs.h <<\_ACEOF | |
d911ec67 | 8897 | #define HAVE_CHOWN 1 |
ad6254c5 AK |
8898 | _ACEOF |
8899 | ||
8900 | fi | |
8901 | ||
8902 | ||
7a197a62 | 8903 | for ac_header in vfork.h |
ad6254c5 | 8904 | do |
ec6a6fbe | 8905 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 8906 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
8907 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8908 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8909 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8910 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8911 | fi |
ec6a6fbe AK |
8912 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8913 | $as_echo "$as_val"'` | |
8914 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8915 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8916 | else |
8917 | # Is the header compilable? | |
ec6a6fbe AK |
8918 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8919 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 8920 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8921 | /* confdefs.h. */ |
8922 | _ACEOF | |
8923 | cat confdefs.h >>conftest.$ac_ext | |
8924 | cat >>conftest.$ac_ext <<_ACEOF | |
8925 | /* end confdefs.h. */ | |
8926 | $ac_includes_default | |
8927 | #include <$ac_header> | |
8928 | _ACEOF | |
8929 | rm -f conftest.$ac_objext | |
7a197a62 AK |
8930 | if { (ac_try="$ac_compile" |
8931 | case "(($ac_try" in | |
8932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8933 | *) ac_try_echo=$ac_try;; | |
8934 | esac | |
ec6a6fbe AK |
8935 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8936 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8937 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 8938 | ac_status=$? |
8a2fc586 AK |
8939 | grep -v '^ *+' conftest.er1 >conftest.err |
8940 | rm -f conftest.er1 | |
8941 | cat conftest.err >&5 | |
ec6a6fbe | 8942 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8943 | (exit $ac_status); } && { |
8944 | test -z "$ac_c_werror_flag" || | |
8945 | test ! -s conftest.err | |
8946 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
8947 | ac_header_compiler=yes |
8948 | else | |
ec6a6fbe | 8949 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8950 | sed 's/^/| /' conftest.$ac_ext >&5 |
8951 | ||
7a197a62 | 8952 | ac_header_compiler=no |
ad6254c5 | 8953 | fi |
7a197a62 AK |
8954 | |
8955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
8956 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8957 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
8958 | |
8959 | # Is the header present? | |
ec6a6fbe AK |
8960 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8961 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 8962 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8963 | /* confdefs.h. */ |
8964 | _ACEOF | |
8965 | cat confdefs.h >>conftest.$ac_ext | |
8966 | cat >>conftest.$ac_ext <<_ACEOF | |
8967 | /* end confdefs.h. */ | |
8968 | #include <$ac_header> | |
8969 | _ACEOF | |
7a197a62 AK |
8970 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8971 | case "(($ac_try" in | |
8972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8973 | *) ac_try_echo=$ac_try;; | |
8974 | esac | |
ec6a6fbe AK |
8975 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8976 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8977 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
8978 | ac_status=$? |
8979 | grep -v '^ *+' conftest.er1 >conftest.err | |
8980 | rm -f conftest.er1 | |
8981 | cat conftest.err >&5 | |
ec6a6fbe | 8982 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8983 | (exit $ac_status); } >/dev/null && { |
8984 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8985 | test ! -s conftest.err | |
8986 | }; then | |
ad6254c5 AK |
8987 | ac_header_preproc=yes |
8988 | else | |
ec6a6fbe | 8989 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8990 | sed 's/^/| /' conftest.$ac_ext >&5 |
8991 | ||
8992 | ac_header_preproc=no | |
8993 | fi | |
7a197a62 | 8994 | |
ad6254c5 | 8995 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
8996 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8997 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
8998 | |
8999 | # So? What about this header? | |
8a2fc586 AK |
9000 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9001 | yes:no: ) | |
ec6a6fbe AK |
9002 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9003 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9004 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9005 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9006 | ac_header_preproc=yes |
ad6254c5 | 9007 | ;; |
8a2fc586 | 9008 | no:yes:* ) |
ec6a6fbe AK |
9009 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9010 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9011 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9012 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9013 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9014 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9015 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9016 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9017 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9018 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9019 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9020 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9021 | |
ad6254c5 AK |
9022 | ;; |
9023 | esac | |
ec6a6fbe AK |
9024 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9025 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9026 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9027 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9028 | else |
8a2fc586 | 9029 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9030 | fi |
ec6a6fbe AK |
9031 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9032 | $as_echo "$as_val"'` | |
9033 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9034 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 9035 | |
795ca3e5 | 9036 | fi |
ec6a6fbe AK |
9037 | as_val=`eval 'as_val=${'$as_ac_Header'} |
9038 | $as_echo "$as_val"'` | |
9039 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 9040 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9041 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
9042 | _ACEOF |
9043 | ||
9044 | fi | |
9045 | ||
9046 | done | |
795ca3e5 | 9047 | |
ad6254c5 AK |
9048 | |
9049 | ||
9050 | for ac_func in fork vfork | |
9051 | do | |
ec6a6fbe AK |
9052 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9053 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9054 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 9055 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9056 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 9057 | else |
ad6254c5 | 9058 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9059 | /* confdefs.h. */ |
9060 | _ACEOF | |
9061 | cat confdefs.h >>conftest.$ac_ext | |
9062 | cat >>conftest.$ac_ext <<_ACEOF | |
9063 | /* end confdefs.h. */ | |
8a2fc586 AK |
9064 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9065 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9066 | #define $ac_func innocuous_$ac_func | |
9067 | ||
ad6254c5 AK |
9068 | /* System header to define __stub macros and hopefully few prototypes, |
9069 | which can conflict with char $ac_func (); below. | |
9070 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9071 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9072 | |
ad6254c5 AK |
9073 | #ifdef __STDC__ |
9074 | # include <limits.h> | |
9075 | #else | |
9076 | # include <assert.h> | |
795ca3e5 | 9077 | #endif |
8a2fc586 AK |
9078 | |
9079 | #undef $ac_func | |
9080 | ||
7a197a62 AK |
9081 | /* Override any GCC internal prototype to avoid an error. |
9082 | Use char because int might match the return type of a GCC | |
9083 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 9084 | #ifdef __cplusplus |
ad6254c5 | 9085 | extern "C" |
ad6254c5 | 9086 | #endif |
ad6254c5 AK |
9087 | char $ac_func (); |
9088 | /* The GNU C library defines this for functions which it implements | |
9089 | to always fail with ENOSYS. Some functions are actually named | |
9090 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 9091 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 9092 | choke me |
795ca3e5 AK |
9093 | #endif |
9094 | ||
ad6254c5 AK |
9095 | int |
9096 | main () | |
9097 | { | |
7a197a62 | 9098 | return $ac_func (); |
ad6254c5 AK |
9099 | ; |
9100 | return 0; | |
9101 | } | |
9102 | _ACEOF | |
9103 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9104 | if { (ac_try="$ac_link" |
9105 | case "(($ac_try" in | |
9106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9107 | *) ac_try_echo=$ac_try;; | |
9108 | esac | |
ec6a6fbe AK |
9109 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9110 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9111 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9112 | ac_status=$? |
8a2fc586 AK |
9113 | grep -v '^ *+' conftest.er1 >conftest.err |
9114 | rm -f conftest.er1 | |
9115 | cat conftest.err >&5 | |
ec6a6fbe | 9116 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9117 | (exit $ac_status); } && { |
9118 | test -z "$ac_c_werror_flag" || | |
9119 | test ! -s conftest.err | |
ec6a6fbe AK |
9120 | } && test -s conftest$ac_exeext && { |
9121 | test "$cross_compiling" = yes || | |
9122 | $as_test_x conftest$ac_exeext | |
9123 | }; then | |
ad6254c5 | 9124 | eval "$as_ac_var=yes" |
795ca3e5 | 9125 | else |
ec6a6fbe | 9126 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9127 | sed 's/^/| /' conftest.$ac_ext >&5 |
9128 | ||
7a197a62 | 9129 | eval "$as_ac_var=no" |
795ca3e5 | 9130 | fi |
7a197a62 | 9131 | |
ec6a6fbe | 9132 | rm -rf conftest.dSYM |
25fbec5b | 9133 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9134 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 9135 | fi |
ec6a6fbe AK |
9136 | ac_res=`eval 'as_val=${'$as_ac_var'} |
9137 | $as_echo "$as_val"'` | |
9138 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9139 | $as_echo "$ac_res" >&6; } | |
9140 | as_val=`eval 'as_val=${'$as_ac_var'} | |
9141 | $as_echo "$as_val"'` | |
9142 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 9143 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9144 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
9145 | _ACEOF |
9146 | ||
9147 | fi | |
9148 | done | |
9149 | ||
9150 | if test "x$ac_cv_func_fork" = xyes; then | |
ec6a6fbe AK |
9151 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
9152 | $as_echo_n "checking for working fork... " >&6; } | |
ad6254c5 | 9153 | if test "${ac_cv_func_fork_works+set}" = set; then |
ec6a6fbe | 9154 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9155 | else |
9156 | if test "$cross_compiling" = yes; then | |
9157 | ac_cv_func_fork_works=cross | |
9158 | else | |
9159 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
9160 | /* confdefs.h. */ |
9161 | _ACEOF | |
9162 | cat confdefs.h >>conftest.$ac_ext | |
9163 | cat >>conftest.$ac_ext <<_ACEOF | |
9164 | /* end confdefs.h. */ | |
9165 | $ac_includes_default | |
9166 | int | |
9167 | main () | |
9168 | { | |
9169 | ||
9170 | /* By Ruediger Kuhlmann. */ | |
9171 | return fork () < 0; | |
9172 | ||
9173 | ; | |
9174 | return 0; | |
9175 | } | |
ad6254c5 AK |
9176 | _ACEOF |
9177 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9178 | if { (ac_try="$ac_link" |
9179 | case "(($ac_try" in | |
9180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9181 | *) ac_try_echo=$ac_try;; | |
9182 | esac | |
ec6a6fbe AK |
9183 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9184 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9185 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9186 | ac_status=$? |
ec6a6fbe | 9187 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9188 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9189 | { (case "(($ac_try" in |
9190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9191 | *) ac_try_echo=$ac_try;; | |
9192 | esac | |
ec6a6fbe AK |
9193 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9194 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9195 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9196 | ac_status=$? |
ec6a6fbe | 9197 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9198 | (exit $ac_status); }; }; then |
9199 | ac_cv_func_fork_works=yes | |
9200 | else | |
ec6a6fbe AK |
9201 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9202 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9203 | sed 's/^/| /' conftest.$ac_ext >&5 |
9204 | ||
9205 | ( exit $ac_status ) | |
9206 | ac_cv_func_fork_works=no | |
9207 | fi | |
ec6a6fbe | 9208 | rm -rf conftest.dSYM |
7a197a62 | 9209 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9210 | fi |
7a197a62 AK |
9211 | |
9212 | ||
ad6254c5 | 9213 | fi |
ec6a6fbe AK |
9214 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
9215 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
9216 | |
9217 | else | |
9218 | ac_cv_func_fork_works=$ac_cv_func_fork | |
9219 | fi | |
9220 | if test "x$ac_cv_func_fork_works" = xcross; then | |
9221 | case $host in | |
9222 | *-*-amigaos* | *-*-msdosdjgpp*) | |
9223 | # Override, as these systems have only a dummy fork() stub | |
9224 | ac_cv_func_fork_works=no | |
9225 | ;; | |
9226 | *) | |
9227 | ac_cv_func_fork_works=yes | |
9228 | ;; | |
9229 | esac | |
ec6a6fbe AK |
9230 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
9231 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
9232 | fi |
9233 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
9234 | if test "x$ac_cv_func_vfork" = xyes; then | |
ec6a6fbe AK |
9235 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
9236 | $as_echo_n "checking for working vfork... " >&6; } | |
ad6254c5 | 9237 | if test "${ac_cv_func_vfork_works+set}" = set; then |
ec6a6fbe | 9238 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9239 | else |
9240 | if test "$cross_compiling" = yes; then | |
9241 | ac_cv_func_vfork_works=cross | |
9242 | else | |
9243 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9244 | /* confdefs.h. */ |
9245 | _ACEOF | |
9246 | cat confdefs.h >>conftest.$ac_ext | |
9247 | cat >>conftest.$ac_ext <<_ACEOF | |
9248 | /* end confdefs.h. */ | |
9249 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 9250 | $ac_includes_default |
ad6254c5 | 9251 | #include <sys/wait.h> |
25fbec5b | 9252 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
9253 | # include <vfork.h> |
9254 | #endif | |
9255 | /* On some sparc systems, changes by the child to local and incoming | |
9256 | argument registers are propagated back to the parent. The compiler | |
9257 | is told about this with #include <vfork.h>, but some compilers | |
9258 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
9259 | static variable whose address is put into a register that is | |
9260 | clobbered by the vfork. */ | |
9261 | static void | |
9262 | #ifdef __cplusplus | |
9263 | sparc_address_test (int arg) | |
9264 | # else | |
9265 | sparc_address_test (arg) int arg; | |
9266 | #endif | |
9267 | { | |
9268 | static pid_t child; | |
9269 | if (!child) { | |
9270 | child = vfork (); | |
9271 | if (child < 0) { | |
9272 | perror ("vfork"); | |
9273 | _exit(2); | |
9274 | } | |
9275 | if (!child) { | |
9276 | arg = getpid(); | |
9277 | write(-1, "", 0); | |
9278 | _exit (arg); | |
9279 | } | |
9280 | } | |
9281 | } | |
9282 | ||
9283 | int | |
9284 | main () | |
9285 | { | |
9286 | pid_t parent = getpid (); | |
9287 | pid_t child; | |
9288 | ||
9289 | sparc_address_test (0); | |
9290 | ||
9291 | child = vfork (); | |
9292 | ||
9293 | if (child == 0) { | |
9294 | /* Here is another test for sparc vfork register problems. This | |
9295 | test uses lots of local variables, at least as many local | |
9296 | variables as main has allocated so far including compiler | |
9297 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
9298 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
9299 | reuse the register of parent for one of the local variables, | |
9300 | since it will think that parent can't possibly be used any more | |
9301 | in this routine. Assigning to the local variable will thus | |
9302 | munge parent in the parent process. */ | |
9303 | pid_t | |
9304 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
9305 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
9306 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
9307 | use the same hardware register for all 8 local variables. */ | |
9308 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
9309 | || p != p5 || p != p6 || p != p7) | |
9310 | _exit(1); | |
9311 | ||
9312 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
9313 | from child file descriptors. If the child closes a descriptor | |
9314 | before it execs or exits, this munges the parent's descriptor | |
9315 | as well. Test for this by closing stdout in the child. */ | |
9316 | _exit(close(fileno(stdout)) != 0); | |
9317 | } else { | |
9318 | int status; | |
9319 | struct stat st; | |
9320 | ||
9321 | while (wait(&status) != child) | |
9322 | ; | |
7a197a62 | 9323 | return ( |
ad6254c5 AK |
9324 | /* Was there some problem with vforking? */ |
9325 | child < 0 | |
9326 | ||
9327 | /* Did the child fail? (This shouldn't happen.) */ | |
9328 | || status | |
9329 | ||
9330 | /* Did the vfork/compiler bug occur? */ | |
9331 | || parent != getpid() | |
9332 | ||
9333 | /* Did the file descriptor bug occur? */ | |
9334 | || fstat(fileno(stdout), &st) != 0 | |
9335 | ); | |
9336 | } | |
9337 | } | |
9338 | _ACEOF | |
9339 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9340 | if { (ac_try="$ac_link" |
9341 | case "(($ac_try" in | |
9342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9343 | *) ac_try_echo=$ac_try;; | |
9344 | esac | |
ec6a6fbe AK |
9345 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9346 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9347 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9348 | ac_status=$? |
ec6a6fbe | 9349 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9350 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9351 | { (case "(($ac_try" in |
9352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9353 | *) ac_try_echo=$ac_try;; | |
9354 | esac | |
ec6a6fbe AK |
9355 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9356 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9357 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9358 | ac_status=$? |
ec6a6fbe | 9359 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9360 | (exit $ac_status); }; }; then |
9361 | ac_cv_func_vfork_works=yes | |
9362 | else | |
ec6a6fbe AK |
9363 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9364 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9365 | sed 's/^/| /' conftest.$ac_ext >&5 |
9366 | ||
9367 | ( exit $ac_status ) | |
9368 | ac_cv_func_vfork_works=no | |
9369 | fi | |
ec6a6fbe | 9370 | rm -rf conftest.dSYM |
7a197a62 | 9371 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9372 | fi |
7a197a62 AK |
9373 | |
9374 | ||
ad6254c5 | 9375 | fi |
ec6a6fbe AK |
9376 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
9377 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
9378 | |
9379 | fi; | |
9380 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 9381 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ec6a6fbe AK |
9382 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
9383 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
9384 | fi |
9385 | ||
9386 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
9387 | ||
9388 | cat >>confdefs.h <<\_ACEOF | |
9389 | #define HAVE_WORKING_VFORK 1 | |
9390 | _ACEOF | |
9391 | ||
9392 | else | |
9393 | ||
9394 | cat >>confdefs.h <<\_ACEOF | |
9395 | #define vfork fork | |
9396 | _ACEOF | |
9397 | ||
9398 | fi | |
9399 | if test "x$ac_cv_func_fork_works" = xyes; then | |
9400 | ||
9401 | cat >>confdefs.h <<\_ACEOF | |
9402 | #define HAVE_WORKING_FORK 1 | |
9403 | _ACEOF | |
9404 | ||
9405 | fi | |
9406 | ||
ec6a6fbe AK |
9407 | { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
9408 | $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } | |
ad6254c5 | 9409 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
ec6a6fbe | 9410 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9411 | else |
9412 | rm -f conftest.sym conftest.file | |
9413 | echo >conftest.file | |
9414 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
9415 | if test "$cross_compiling" = yes; then | |
9416 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
9417 | else | |
9418 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9419 | /* confdefs.h. */ |
9420 | _ACEOF | |
9421 | cat confdefs.h >>conftest.$ac_ext | |
9422 | cat >>conftest.$ac_ext <<_ACEOF | |
9423 | /* end confdefs.h. */ | |
9424 | $ac_includes_default | |
9425 | int | |
9426 | main () | |
9427 | { | |
9428 | struct stat sbuf; | |
9429 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
9430 | That is better in the sense that it means we will not |
9431 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 9432 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
9433 | ; |
9434 | return 0; | |
9435 | } | |
9436 | _ACEOF | |
9437 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9438 | if { (ac_try="$ac_link" |
9439 | case "(($ac_try" in | |
9440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9441 | *) ac_try_echo=$ac_try;; | |
9442 | esac | |
ec6a6fbe AK |
9443 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9444 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9445 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9446 | ac_status=$? |
ec6a6fbe | 9447 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9448 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9449 | { (case "(($ac_try" in |
9450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9451 | *) ac_try_echo=$ac_try;; | |
9452 | esac | |
ec6a6fbe AK |
9453 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9454 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9455 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9456 | ac_status=$? |
ec6a6fbe | 9457 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9458 | (exit $ac_status); }; }; then |
9459 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
9460 | else | |
ec6a6fbe AK |
9461 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9462 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9463 | sed 's/^/| /' conftest.$ac_ext >&5 |
9464 | ||
9465 | ( exit $ac_status ) | |
9466 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
9467 | fi | |
ec6a6fbe | 9468 | rm -rf conftest.dSYM |
7a197a62 | 9469 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9470 | fi |
7a197a62 AK |
9471 | |
9472 | ||
ad6254c5 AK |
9473 | else |
9474 | # If the `ln -s' command failed, then we probably don't even | |
9475 | # have an lstat function. | |
9476 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
9477 | fi | |
9478 | rm -f conftest.sym conftest.file | |
9479 | ||
9480 | fi | |
ec6a6fbe AK |
9481 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
9482 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
9483 | |
9484 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
9485 | ||
9486 | cat >>confdefs.h <<_ACEOF | |
9487 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
9488 | _ACEOF | |
9489 | ||
9490 | ||
9491 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 9492 | case " $LIBOBJS " in |
8a2fc586 | 9493 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
9494 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
9495 | ;; | |
8a2fc586 AK |
9496 | esac |
9497 | ||
ad6254c5 AK |
9498 | fi |
9499 | ||
ec6a6fbe AK |
9500 | { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
9501 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
ad6254c5 | 9502 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
ec6a6fbe | 9503 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9504 | else |
9505 | if test "$cross_compiling" = yes; then | |
9506 | ac_cv_func_lstat_empty_string_bug=yes | |
9507 | else | |
9508 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9509 | /* confdefs.h. */ |
9510 | _ACEOF | |
9511 | cat confdefs.h >>conftest.$ac_ext | |
9512 | cat >>conftest.$ac_ext <<_ACEOF | |
9513 | /* end confdefs.h. */ | |
9514 | $ac_includes_default | |
9515 | int | |
9516 | main () | |
9517 | { | |
9518 | struct stat sbuf; | |
7a197a62 | 9519 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
9520 | ; |
9521 | return 0; | |
9522 | } | |
9523 | _ACEOF | |
9524 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9525 | if { (ac_try="$ac_link" |
9526 | case "(($ac_try" in | |
9527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9528 | *) ac_try_echo=$ac_try;; | |
9529 | esac | |
ec6a6fbe AK |
9530 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9531 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9532 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9533 | ac_status=$? |
ec6a6fbe | 9534 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9535 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9536 | { (case "(($ac_try" in |
9537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9538 | *) ac_try_echo=$ac_try;; | |
9539 | esac | |
ec6a6fbe AK |
9540 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9541 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9542 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9543 | ac_status=$? |
ec6a6fbe | 9544 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9545 | (exit $ac_status); }; }; then |
7a197a62 | 9546 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 9547 | else |
ec6a6fbe AK |
9548 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9549 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9550 | sed 's/^/| /' conftest.$ac_ext >&5 |
9551 | ||
9552 | ( exit $ac_status ) | |
7a197a62 | 9553 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 9554 | fi |
ec6a6fbe | 9555 | rm -rf conftest.dSYM |
7a197a62 | 9556 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9557 | fi |
7a197a62 AK |
9558 | |
9559 | ||
ad6254c5 | 9560 | fi |
ec6a6fbe AK |
9561 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
9562 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 9563 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 9564 | case " $LIBOBJS " in |
8a2fc586 | 9565 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
9566 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
9567 | ;; | |
8a2fc586 AK |
9568 | esac |
9569 | ||
ad6254c5 AK |
9570 | |
9571 | cat >>confdefs.h <<_ACEOF | |
9572 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
9573 | _ACEOF | |
9574 | ||
9575 | fi | |
9576 | ||
9577 | ||
9578 | for ac_header in stdlib.h | |
9579 | do | |
ec6a6fbe | 9580 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9581 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
9582 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9583 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9584 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9585 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9586 | fi |
ec6a6fbe AK |
9587 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9588 | $as_echo "$as_val"'` | |
9589 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9590 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9591 | else |
9592 | # Is the header compilable? | |
ec6a6fbe AK |
9593 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9594 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 9595 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9596 | /* confdefs.h. */ |
9597 | _ACEOF | |
9598 | cat confdefs.h >>conftest.$ac_ext | |
9599 | cat >>conftest.$ac_ext <<_ACEOF | |
9600 | /* end confdefs.h. */ | |
9601 | $ac_includes_default | |
9602 | #include <$ac_header> | |
9603 | _ACEOF | |
9604 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9605 | if { (ac_try="$ac_compile" |
9606 | case "(($ac_try" in | |
9607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9608 | *) ac_try_echo=$ac_try;; | |
9609 | esac | |
ec6a6fbe AK |
9610 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9611 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9612 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9613 | ac_status=$? |
8a2fc586 AK |
9614 | grep -v '^ *+' conftest.er1 >conftest.err |
9615 | rm -f conftest.er1 | |
9616 | cat conftest.err >&5 | |
ec6a6fbe | 9617 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9618 | (exit $ac_status); } && { |
9619 | test -z "$ac_c_werror_flag" || | |
9620 | test ! -s conftest.err | |
9621 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9622 | ac_header_compiler=yes |
9623 | else | |
ec6a6fbe | 9624 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9625 | sed 's/^/| /' conftest.$ac_ext >&5 |
9626 | ||
7a197a62 | 9627 | ac_header_compiler=no |
ad6254c5 | 9628 | fi |
7a197a62 AK |
9629 | |
9630 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
9631 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9632 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9633 | |
9634 | # Is the header present? | |
ec6a6fbe AK |
9635 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9636 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 9637 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9638 | /* confdefs.h. */ |
9639 | _ACEOF | |
9640 | cat confdefs.h >>conftest.$ac_ext | |
9641 | cat >>conftest.$ac_ext <<_ACEOF | |
9642 | /* end confdefs.h. */ | |
9643 | #include <$ac_header> | |
9644 | _ACEOF | |
7a197a62 AK |
9645 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9646 | case "(($ac_try" in | |
9647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9648 | *) ac_try_echo=$ac_try;; | |
9649 | esac | |
ec6a6fbe AK |
9650 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9651 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9652 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9653 | ac_status=$? |
9654 | grep -v '^ *+' conftest.er1 >conftest.err | |
9655 | rm -f conftest.er1 | |
9656 | cat conftest.err >&5 | |
ec6a6fbe | 9657 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9658 | (exit $ac_status); } >/dev/null && { |
9659 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9660 | test ! -s conftest.err | |
9661 | }; then | |
ad6254c5 AK |
9662 | ac_header_preproc=yes |
9663 | else | |
ec6a6fbe | 9664 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9665 | sed 's/^/| /' conftest.$ac_ext >&5 |
9666 | ||
9667 | ac_header_preproc=no | |
9668 | fi | |
7a197a62 | 9669 | |
ad6254c5 | 9670 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
9671 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9672 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9673 | |
9674 | # So? What about this header? | |
8a2fc586 AK |
9675 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9676 | yes:no: ) | |
ec6a6fbe AK |
9677 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9678 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9679 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9680 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9681 | ac_header_preproc=yes |
ad6254c5 | 9682 | ;; |
8a2fc586 | 9683 | no:yes:* ) |
ec6a6fbe AK |
9684 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9685 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9686 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9687 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9688 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9689 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9690 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9691 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9692 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9693 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9694 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9695 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9696 | |
ad6254c5 AK |
9697 | ;; |
9698 | esac | |
ec6a6fbe AK |
9699 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9700 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9701 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9702 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9703 | else |
8a2fc586 | 9704 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9705 | fi |
ec6a6fbe AK |
9706 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9707 | $as_echo "$as_val"'` | |
9708 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9709 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9710 | |
9711 | fi | |
ec6a6fbe AK |
9712 | as_val=`eval 'as_val=${'$as_ac_Header'} |
9713 | $as_echo "$as_val"'` | |
9714 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 9715 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9716 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
9717 | _ACEOF |
9718 | ||
9719 | fi | |
9720 | ||
9721 | done | |
9722 | ||
ec6a6fbe AK |
9723 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
9724 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
ad6254c5 | 9725 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
ec6a6fbe | 9726 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9727 | else |
9728 | if test "$cross_compiling" = yes; then | |
9729 | ac_cv_func_malloc_0_nonnull=no | |
9730 | else | |
9731 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9732 | /* confdefs.h. */ |
9733 | _ACEOF | |
9734 | cat confdefs.h >>conftest.$ac_ext | |
9735 | cat >>conftest.$ac_ext <<_ACEOF | |
9736 | /* end confdefs.h. */ | |
25fbec5b | 9737 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
9738 | # include <stdlib.h> |
9739 | #else | |
9740 | char *malloc (); | |
9741 | #endif | |
9742 | ||
9743 | int | |
9744 | main () | |
9745 | { | |
7a197a62 | 9746 | return ! malloc (0); |
ad6254c5 AK |
9747 | ; |
9748 | return 0; | |
9749 | } | |
9750 | _ACEOF | |
9751 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9752 | if { (ac_try="$ac_link" |
9753 | case "(($ac_try" in | |
9754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9755 | *) ac_try_echo=$ac_try;; | |
9756 | esac | |
ec6a6fbe AK |
9757 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9758 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9759 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9760 | ac_status=$? |
ec6a6fbe | 9761 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9762 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9763 | { (case "(($ac_try" in |
9764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9765 | *) ac_try_echo=$ac_try;; | |
9766 | esac | |
ec6a6fbe AK |
9767 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9768 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9769 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9770 | ac_status=$? |
ec6a6fbe | 9771 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9772 | (exit $ac_status); }; }; then |
9773 | ac_cv_func_malloc_0_nonnull=yes | |
9774 | else | |
ec6a6fbe AK |
9775 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9776 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9777 | sed 's/^/| /' conftest.$ac_ext >&5 |
9778 | ||
9779 | ( exit $ac_status ) | |
9780 | ac_cv_func_malloc_0_nonnull=no | |
9781 | fi | |
ec6a6fbe | 9782 | rm -rf conftest.dSYM |
7a197a62 | 9783 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9784 | fi |
7a197a62 AK |
9785 | |
9786 | ||
ad6254c5 | 9787 | fi |
ec6a6fbe AK |
9788 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
9789 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
9790 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
9791 | ||
9792 | cat >>confdefs.h <<\_ACEOF | |
9793 | #define HAVE_MALLOC 1 | |
9794 | _ACEOF | |
9795 | ||
9796 | else | |
9797 | cat >>confdefs.h <<\_ACEOF | |
9798 | #define HAVE_MALLOC 0 | |
9799 | _ACEOF | |
9800 | ||
7a197a62 | 9801 | case " $LIBOBJS " in |
8a2fc586 | 9802 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
9803 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
9804 | ;; | |
8a2fc586 AK |
9805 | esac |
9806 | ||
ad6254c5 AK |
9807 | |
9808 | cat >>confdefs.h <<\_ACEOF | |
9809 | #define malloc rpl_malloc | |
9810 | _ACEOF | |
9811 | ||
9812 | fi | |
9813 | ||
9814 | ||
9815 | ||
ec6a6fbe AK |
9816 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
9817 | $as_echo_n "checking for working memcmp... " >&6; } | |
ad6254c5 | 9818 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
ec6a6fbe | 9819 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9820 | else |
9821 | if test "$cross_compiling" = yes; then | |
9822 | ac_cv_func_memcmp_working=no | |
9823 | else | |
9824 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9825 | /* confdefs.h. */ |
9826 | _ACEOF | |
9827 | cat confdefs.h >>conftest.$ac_ext | |
9828 | cat >>conftest.$ac_ext <<_ACEOF | |
9829 | /* end confdefs.h. */ | |
8a2fc586 | 9830 | $ac_includes_default |
ad6254c5 AK |
9831 | int |
9832 | main () | |
9833 | { | |
9834 | ||
9835 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 9836 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 9837 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 9838 | return 1; |
ad6254c5 AK |
9839 | |
9840 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
9841 | or more and with at least one buffer not starting on a 4-byte boundary. | |
9842 | William Lewis provided this test program. */ | |
9843 | { | |
9844 | char foo[21]; | |
9845 | char bar[21]; | |
9846 | int i; | |
9847 | for (i = 0; i < 4; i++) | |
9848 | { | |
8a2fc586 AK |
9849 | char *a = foo + i; |
9850 | char *b = bar + i; | |
9851 | strcpy (a, "--------01111111"); | |
9852 | strcpy (b, "--------10000000"); | |
9853 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 9854 | return 1; |
ad6254c5 | 9855 | } |
7a197a62 | 9856 | return 0; |
ad6254c5 AK |
9857 | } |
9858 | ||
9859 | ; | |
9860 | return 0; | |
9861 | } | |
9862 | _ACEOF | |
9863 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9864 | if { (ac_try="$ac_link" |
9865 | case "(($ac_try" in | |
9866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9867 | *) ac_try_echo=$ac_try;; | |
9868 | esac | |
ec6a6fbe AK |
9869 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9870 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9871 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9872 | ac_status=$? |
ec6a6fbe | 9873 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9874 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9875 | { (case "(($ac_try" in |
9876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9877 | *) ac_try_echo=$ac_try;; | |
9878 | esac | |
ec6a6fbe AK |
9879 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9880 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9881 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9882 | ac_status=$? |
ec6a6fbe | 9883 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9884 | (exit $ac_status); }; }; then |
9885 | ac_cv_func_memcmp_working=yes | |
9886 | else | |
ec6a6fbe AK |
9887 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9888 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9889 | sed 's/^/| /' conftest.$ac_ext >&5 |
9890 | ||
9891 | ( exit $ac_status ) | |
9892 | ac_cv_func_memcmp_working=no | |
9893 | fi | |
ec6a6fbe | 9894 | rm -rf conftest.dSYM |
7a197a62 | 9895 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9896 | fi |
7a197a62 AK |
9897 | |
9898 | ||
ad6254c5 | 9899 | fi |
ec6a6fbe AK |
9900 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
9901 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 9902 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 9903 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
9904 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
9905 | ;; | |
8a2fc586 AK |
9906 | esac |
9907 | ||
ad6254c5 AK |
9908 | |
9909 | ||
9910 | ||
9911 | for ac_header in stdlib.h unistd.h | |
9912 | do | |
ec6a6fbe | 9913 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9914 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
9915 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9916 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9917 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9918 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9919 | fi |
ec6a6fbe AK |
9920 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9921 | $as_echo "$as_val"'` | |
9922 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9923 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9924 | else |
9925 | # Is the header compilable? | |
ec6a6fbe AK |
9926 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9927 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 9928 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9929 | /* confdefs.h. */ |
9930 | _ACEOF | |
9931 | cat confdefs.h >>conftest.$ac_ext | |
9932 | cat >>conftest.$ac_ext <<_ACEOF | |
9933 | /* end confdefs.h. */ | |
9934 | $ac_includes_default | |
9935 | #include <$ac_header> | |
9936 | _ACEOF | |
9937 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9938 | if { (ac_try="$ac_compile" |
9939 | case "(($ac_try" in | |
9940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9941 | *) ac_try_echo=$ac_try;; | |
9942 | esac | |
ec6a6fbe AK |
9943 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9944 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9945 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9946 | ac_status=$? |
8a2fc586 AK |
9947 | grep -v '^ *+' conftest.er1 >conftest.err |
9948 | rm -f conftest.er1 | |
9949 | cat conftest.err >&5 | |
ec6a6fbe | 9950 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9951 | (exit $ac_status); } && { |
9952 | test -z "$ac_c_werror_flag" || | |
9953 | test ! -s conftest.err | |
9954 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9955 | ac_header_compiler=yes |
9956 | else | |
ec6a6fbe | 9957 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9958 | sed 's/^/| /' conftest.$ac_ext >&5 |
9959 | ||
7a197a62 | 9960 | ac_header_compiler=no |
ad6254c5 | 9961 | fi |
7a197a62 AK |
9962 | |
9963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
9964 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9965 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9966 | |
9967 | # Is the header present? | |
ec6a6fbe AK |
9968 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9969 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 9970 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9971 | /* confdefs.h. */ |
9972 | _ACEOF | |
9973 | cat confdefs.h >>conftest.$ac_ext | |
9974 | cat >>conftest.$ac_ext <<_ACEOF | |
9975 | /* end confdefs.h. */ | |
9976 | #include <$ac_header> | |
9977 | _ACEOF | |
7a197a62 AK |
9978 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9979 | case "(($ac_try" in | |
9980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9981 | *) ac_try_echo=$ac_try;; | |
9982 | esac | |
ec6a6fbe AK |
9983 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9984 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9985 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9986 | ac_status=$? |
9987 | grep -v '^ *+' conftest.er1 >conftest.err | |
9988 | rm -f conftest.er1 | |
9989 | cat conftest.err >&5 | |
ec6a6fbe | 9990 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9991 | (exit $ac_status); } >/dev/null && { |
9992 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9993 | test ! -s conftest.err | |
9994 | }; then | |
ad6254c5 AK |
9995 | ac_header_preproc=yes |
9996 | else | |
ec6a6fbe | 9997 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9998 | sed 's/^/| /' conftest.$ac_ext >&5 |
9999 | ||
10000 | ac_header_preproc=no | |
10001 | fi | |
7a197a62 | 10002 | |
ad6254c5 | 10003 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
10004 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10005 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
10006 | |
10007 | # So? What about this header? | |
8a2fc586 AK |
10008 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10009 | yes:no: ) | |
ec6a6fbe AK |
10010 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10011 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10012 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10013 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 10014 | ac_header_preproc=yes |
ad6254c5 | 10015 | ;; |
8a2fc586 | 10016 | no:yes:* ) |
ec6a6fbe AK |
10017 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10018 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10019 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10020 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10021 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10022 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10023 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10024 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10025 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10026 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10027 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10028 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10029 | |
ad6254c5 AK |
10030 | ;; |
10031 | esac | |
ec6a6fbe AK |
10032 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10033 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10034 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10035 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10036 | else |
8a2fc586 | 10037 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10038 | fi |
ec6a6fbe AK |
10039 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10040 | $as_echo "$as_val"'` | |
10041 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10042 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10043 | |
10044 | fi | |
ec6a6fbe AK |
10045 | as_val=`eval 'as_val=${'$as_ac_Header'} |
10046 | $as_echo "$as_val"'` | |
10047 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 10048 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10049 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10050 | _ACEOF |
10051 | ||
10052 | fi | |
10053 | ||
10054 | done | |
10055 | ||
10056 | ||
10057 | for ac_func in getpagesize | |
10058 | do | |
ec6a6fbe AK |
10059 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10060 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10061 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 10062 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10063 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10064 | else |
10065 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10066 | /* confdefs.h. */ |
10067 | _ACEOF | |
10068 | cat confdefs.h >>conftest.$ac_ext | |
10069 | cat >>conftest.$ac_ext <<_ACEOF | |
10070 | /* end confdefs.h. */ | |
8a2fc586 AK |
10071 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10072 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10073 | #define $ac_func innocuous_$ac_func | |
10074 | ||
ad6254c5 AK |
10075 | /* System header to define __stub macros and hopefully few prototypes, |
10076 | which can conflict with char $ac_func (); below. | |
10077 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10078 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10079 | |
ad6254c5 AK |
10080 | #ifdef __STDC__ |
10081 | # include <limits.h> | |
10082 | #else | |
10083 | # include <assert.h> | |
10084 | #endif | |
8a2fc586 AK |
10085 | |
10086 | #undef $ac_func | |
10087 | ||
7a197a62 AK |
10088 | /* Override any GCC internal prototype to avoid an error. |
10089 | Use char because int might match the return type of a GCC | |
10090 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10091 | #ifdef __cplusplus |
10092 | extern "C" | |
ad6254c5 | 10093 | #endif |
ad6254c5 AK |
10094 | char $ac_func (); |
10095 | /* The GNU C library defines this for functions which it implements | |
10096 | to always fail with ENOSYS. Some functions are actually named | |
10097 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10098 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 10099 | choke me |
ad6254c5 AK |
10100 | #endif |
10101 | ||
10102 | int | |
10103 | main () | |
10104 | { | |
7a197a62 | 10105 | return $ac_func (); |
ad6254c5 AK |
10106 | ; |
10107 | return 0; | |
10108 | } | |
10109 | _ACEOF | |
10110 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10111 | if { (ac_try="$ac_link" |
10112 | case "(($ac_try" in | |
10113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10114 | *) ac_try_echo=$ac_try;; | |
10115 | esac | |
ec6a6fbe AK |
10116 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10117 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10118 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10119 | ac_status=$? |
8a2fc586 AK |
10120 | grep -v '^ *+' conftest.er1 >conftest.err |
10121 | rm -f conftest.er1 | |
10122 | cat conftest.err >&5 | |
ec6a6fbe | 10123 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10124 | (exit $ac_status); } && { |
10125 | test -z "$ac_c_werror_flag" || | |
10126 | test ! -s conftest.err | |
ec6a6fbe AK |
10127 | } && test -s conftest$ac_exeext && { |
10128 | test "$cross_compiling" = yes || | |
10129 | $as_test_x conftest$ac_exeext | |
10130 | }; then | |
ad6254c5 AK |
10131 | eval "$as_ac_var=yes" |
10132 | else | |
ec6a6fbe | 10133 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10134 | sed 's/^/| /' conftest.$ac_ext >&5 |
10135 | ||
7a197a62 | 10136 | eval "$as_ac_var=no" |
ad6254c5 | 10137 | fi |
7a197a62 | 10138 | |
ec6a6fbe | 10139 | rm -rf conftest.dSYM |
25fbec5b | 10140 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10141 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10142 | fi |
ec6a6fbe AK |
10143 | ac_res=`eval 'as_val=${'$as_ac_var'} |
10144 | $as_echo "$as_val"'` | |
10145 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10146 | $as_echo "$ac_res" >&6; } | |
10147 | as_val=`eval 'as_val=${'$as_ac_var'} | |
10148 | $as_echo "$as_val"'` | |
10149 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 10150 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10151 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
10152 | _ACEOF |
10153 | ||
10154 | fi | |
10155 | done | |
10156 | ||
ec6a6fbe AK |
10157 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
10158 | $as_echo_n "checking for working mmap... " >&6; } | |
ad6254c5 | 10159 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
ec6a6fbe | 10160 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10161 | else |
10162 | if test "$cross_compiling" = yes; then | |
10163 | ac_cv_func_mmap_fixed_mapped=no | |
10164 | else | |
10165 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10166 | /* confdefs.h. */ |
10167 | _ACEOF | |
10168 | cat confdefs.h >>conftest.$ac_ext | |
10169 | cat >>conftest.$ac_ext <<_ACEOF | |
10170 | /* end confdefs.h. */ | |
10171 | $ac_includes_default | |
10172 | /* malloc might have been renamed as rpl_malloc. */ | |
10173 | #undef malloc | |
10174 | ||
10175 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
10176 | Here is a matrix of mmap possibilities: | |
10177 | mmap private not fixed | |
10178 | mmap private fixed at somewhere currently unmapped | |
10179 | mmap private fixed at somewhere already mapped | |
10180 | mmap shared not fixed | |
10181 | mmap shared fixed at somewhere currently unmapped | |
10182 | mmap shared fixed at somewhere already mapped | |
10183 | For private mappings, we should verify that changes cannot be read() | |
10184 | back from the file, nor mmap's back from the file at a different | |
10185 | address. (There have been systems where private was not correctly | |
10186 | implemented like the infamous i386 svr4.0, and systems where the | |
10187 | VM page cache was not coherent with the file system buffer cache | |
10188 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
10189 | For shared mappings, we should conversely verify that changes get | |
10190 | propagated back to all the places they're supposed to be. | |
10191 | ||
10192 | Grep wants private fixed already mapped. | |
10193 | The main things grep needs to know about mmap are: | |
10194 | * does it exist and is it safe to write into the mmap'd area | |
10195 | * how to use it (BSD variants) */ | |
10196 | ||
10197 | #include <fcntl.h> | |
10198 | #include <sys/mman.h> | |
10199 | ||
25fbec5b | 10200 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
10201 | char *malloc (); |
10202 | #endif | |
10203 | ||
10204 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 10205 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 10206 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 10207 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
10208 | # define HAVE_SYS_PARAM_H 1 |
10209 | # endif | |
10210 | ||
10211 | # ifdef _SC_PAGESIZE | |
10212 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
10213 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 10214 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
10215 | # include <sys/param.h> |
10216 | # ifdef EXEC_PAGESIZE | |
10217 | # define getpagesize() EXEC_PAGESIZE | |
10218 | # else /* no EXEC_PAGESIZE */ | |
10219 | # ifdef NBPG | |
10220 | # define getpagesize() NBPG * CLSIZE | |
10221 | # ifndef CLSIZE | |
10222 | # define CLSIZE 1 | |
10223 | # endif /* no CLSIZE */ | |
10224 | # else /* no NBPG */ | |
10225 | # ifdef NBPC | |
10226 | # define getpagesize() NBPC | |
10227 | # else /* no NBPC */ | |
10228 | # ifdef PAGESIZE | |
10229 | # define getpagesize() PAGESIZE | |
10230 | # endif /* PAGESIZE */ | |
10231 | # endif /* no NBPC */ | |
10232 | # endif /* no NBPG */ | |
10233 | # endif /* no EXEC_PAGESIZE */ | |
10234 | # else /* no HAVE_SYS_PARAM_H */ | |
10235 | # define getpagesize() 8192 /* punt totally */ | |
10236 | # endif /* no HAVE_SYS_PARAM_H */ | |
10237 | # endif /* no _SC_PAGESIZE */ | |
10238 | ||
10239 | #endif /* no HAVE_GETPAGESIZE */ | |
10240 | ||
10241 | int | |
10242 | main () | |
10243 | { | |
10244 | char *data, *data2, *data3; | |
10245 | int i, pagesize; | |
10246 | int fd; | |
10247 | ||
10248 | pagesize = getpagesize (); | |
10249 | ||
10250 | /* First, make a file with some known garbage in it. */ | |
10251 | data = (char *) malloc (pagesize); | |
10252 | if (!data) | |
7a197a62 | 10253 | return 1; |
ad6254c5 AK |
10254 | for (i = 0; i < pagesize; ++i) |
10255 | *(data + i) = rand (); | |
10256 | umask (0); | |
10257 | fd = creat ("conftest.mmap", 0600); | |
10258 | if (fd < 0) | |
7a197a62 | 10259 | return 1; |
ad6254c5 | 10260 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 10261 | return 1; |
ad6254c5 AK |
10262 | close (fd); |
10263 | ||
10264 | /* Next, try to mmap the file at a fixed address which already has | |
10265 | something else allocated at it. If we can, also make sure that | |
10266 | we see the same garbage. */ | |
10267 | fd = open ("conftest.mmap", O_RDWR); | |
10268 | if (fd < 0) | |
7a197a62 | 10269 | return 1; |
ad6254c5 AK |
10270 | data2 = (char *) malloc (2 * pagesize); |
10271 | if (!data2) | |
7a197a62 AK |
10272 | return 1; |
10273 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 10274 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 10275 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 10276 | return 1; |
ad6254c5 AK |
10277 | for (i = 0; i < pagesize; ++i) |
10278 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 10279 | return 1; |
ad6254c5 | 10280 | |
d911ec67 AK |
10281 | /* Finally, make sure that changes to the mapped area do not |
10282 | percolate back to the file as seen by read(). (This is a bug on | |
10283 | some variants of i386 svr4.0.) */ | |
10284 | for (i = 0; i < pagesize; ++i) | |
10285 | *(data2 + i) = *(data2 + i) + 1; | |
10286 | data3 = (char *) malloc (pagesize); | |
10287 | if (!data3) | |
10288 | return 1; | |
10289 | if (read (fd, data3, pagesize) != pagesize) | |
10290 | return 1; | |
10291 | for (i = 0; i < pagesize; ++i) | |
10292 | if (*(data + i) != *(data3 + i)) | |
10293 | return 1; | |
10294 | close (fd); | |
10295 | return 0; | |
10296 | } | |
10297 | _ACEOF | |
10298 | rm -f conftest$ac_exeext | |
10299 | if { (ac_try="$ac_link" | |
10300 | case "(($ac_try" in | |
10301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10302 | *) ac_try_echo=$ac_try;; | |
10303 | esac | |
10304 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10305 | $as_echo "$ac_try_echo") >&5 | |
10306 | (eval "$ac_link") 2>&5 | |
10307 | ac_status=$? | |
10308 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10309 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
10310 | { (case "(($ac_try" in | |
10311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10312 | *) ac_try_echo=$ac_try;; | |
10313 | esac | |
10314 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10315 | $as_echo "$ac_try_echo") >&5 | |
10316 | (eval "$ac_try") 2>&5 | |
10317 | ac_status=$? | |
10318 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10319 | (exit $ac_status); }; }; then | |
10320 | ac_cv_func_mmap_fixed_mapped=yes | |
10321 | else | |
10322 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
10323 | $as_echo "$as_me: failed program was:" >&5 | |
10324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10325 | ||
10326 | ( exit $ac_status ) | |
10327 | ac_cv_func_mmap_fixed_mapped=no | |
10328 | fi | |
10329 | rm -rf conftest.dSYM | |
10330 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
10331 | fi | |
10332 | ||
10333 | ||
10334 | fi | |
10335 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
10336 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
10337 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
10338 | ||
10339 | cat >>confdefs.h <<\_ACEOF | |
10340 | #define HAVE_MMAP 1 | |
10341 | _ACEOF | |
10342 | ||
10343 | fi | |
10344 | rm -f conftest.mmap | |
10345 | ||
10346 | ||
10347 | for ac_header in stdlib.h | |
10348 | do | |
10349 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10350 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10351 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10352 | $as_echo_n "checking for $ac_header... " >&6; } | |
10353 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10354 | $as_echo_n "(cached) " >&6 | |
10355 | fi | |
10356 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10357 | $as_echo "$as_val"'` | |
10358 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10359 | $as_echo "$ac_res" >&6; } | |
10360 | else | |
10361 | # Is the header compilable? | |
10362 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10363 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10364 | cat >conftest.$ac_ext <<_ACEOF | |
10365 | /* confdefs.h. */ | |
10366 | _ACEOF | |
10367 | cat confdefs.h >>conftest.$ac_ext | |
10368 | cat >>conftest.$ac_ext <<_ACEOF | |
10369 | /* end confdefs.h. */ | |
10370 | $ac_includes_default | |
10371 | #include <$ac_header> | |
10372 | _ACEOF | |
10373 | rm -f conftest.$ac_objext | |
10374 | if { (ac_try="$ac_compile" | |
10375 | case "(($ac_try" in | |
10376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10377 | *) ac_try_echo=$ac_try;; | |
10378 | esac | |
10379 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10380 | $as_echo "$ac_try_echo") >&5 | |
10381 | (eval "$ac_compile") 2>conftest.er1 | |
10382 | ac_status=$? | |
10383 | grep -v '^ *+' conftest.er1 >conftest.err | |
10384 | rm -f conftest.er1 | |
10385 | cat conftest.err >&5 | |
10386 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10387 | (exit $ac_status); } && { | |
10388 | test -z "$ac_c_werror_flag" || | |
10389 | test ! -s conftest.err | |
10390 | } && test -s conftest.$ac_objext; then | |
10391 | ac_header_compiler=yes | |
10392 | else | |
10393 | $as_echo "$as_me: failed program was:" >&5 | |
10394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10395 | ||
10396 | ac_header_compiler=no | |
10397 | fi | |
10398 | ||
10399 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10400 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10401 | $as_echo "$ac_header_compiler" >&6; } | |
10402 | ||
10403 | # Is the header present? | |
10404 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10405 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10406 | cat >conftest.$ac_ext <<_ACEOF | |
10407 | /* confdefs.h. */ | |
10408 | _ACEOF | |
10409 | cat confdefs.h >>conftest.$ac_ext | |
10410 | cat >>conftest.$ac_ext <<_ACEOF | |
10411 | /* end confdefs.h. */ | |
10412 | #include <$ac_header> | |
10413 | _ACEOF | |
10414 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10415 | case "(($ac_try" in | |
10416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10417 | *) ac_try_echo=$ac_try;; | |
10418 | esac | |
10419 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10420 | $as_echo "$ac_try_echo") >&5 | |
10421 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10422 | ac_status=$? | |
10423 | grep -v '^ *+' conftest.er1 >conftest.err | |
10424 | rm -f conftest.er1 | |
10425 | cat conftest.err >&5 | |
10426 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10427 | (exit $ac_status); } >/dev/null && { | |
10428 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10429 | test ! -s conftest.err | |
10430 | }; then | |
10431 | ac_header_preproc=yes | |
10432 | else | |
10433 | $as_echo "$as_me: failed program was:" >&5 | |
10434 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10435 | ||
10436 | ac_header_preproc=no | |
10437 | fi | |
10438 | ||
10439 | rm -f conftest.err conftest.$ac_ext | |
10440 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10441 | $as_echo "$ac_header_preproc" >&6; } | |
10442 | ||
10443 | # So? What about this header? | |
10444 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10445 | yes:no: ) | |
10446 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10447 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10448 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10449 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10450 | ac_header_preproc=yes | |
10451 | ;; | |
10452 | no:yes:* ) | |
10453 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10454 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10455 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10456 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10457 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10458 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10459 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10460 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10461 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10462 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10463 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10464 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10465 | ||
10466 | ;; | |
10467 | esac | |
10468 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10469 | $as_echo_n "checking for $ac_header... " >&6; } | |
10470 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10471 | $as_echo_n "(cached) " >&6 | |
10472 | else | |
10473 | eval "$as_ac_Header=\$ac_header_preproc" | |
10474 | fi | |
10475 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10476 | $as_echo "$as_val"'` | |
10477 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10478 | $as_echo "$ac_res" >&6; } | |
10479 | ||
10480 | fi | |
10481 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10482 | $as_echo "$as_val"'` | |
10483 | if test "x$as_val" = x""yes; then | |
10484 | cat >>confdefs.h <<_ACEOF | |
10485 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10486 | _ACEOF | |
10487 | ||
10488 | fi | |
10489 | ||
10490 | done | |
10491 | ||
10492 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 | |
10493 | $as_echo_n "checking for GNU libc compatible realloc... " >&6; } | |
10494 | if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then | |
10495 | $as_echo_n "(cached) " >&6 | |
10496 | else | |
10497 | if test "$cross_compiling" = yes; then | |
10498 | ac_cv_func_realloc_0_nonnull=no | |
10499 | else | |
10500 | cat >conftest.$ac_ext <<_ACEOF | |
10501 | /* confdefs.h. */ | |
10502 | _ACEOF | |
10503 | cat confdefs.h >>conftest.$ac_ext | |
10504 | cat >>conftest.$ac_ext <<_ACEOF | |
10505 | /* end confdefs.h. */ | |
10506 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | |
10507 | # include <stdlib.h> | |
10508 | #else | |
10509 | char *realloc (); | |
10510 | #endif | |
10511 | ||
10512 | int | |
10513 | main () | |
10514 | { | |
10515 | return ! realloc (0, 0); | |
10516 | ; | |
7a197a62 | 10517 | return 0; |
ad6254c5 AK |
10518 | } |
10519 | _ACEOF | |
10520 | rm -f conftest$ac_exeext | |
7a197a62 AK |
10521 | if { (ac_try="$ac_link" |
10522 | case "(($ac_try" in | |
10523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10524 | *) ac_try_echo=$ac_try;; | |
10525 | esac | |
ec6a6fbe AK |
10526 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10527 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10528 | (eval "$ac_link") 2>&5 |
ad6254c5 | 10529 | ac_status=$? |
ec6a6fbe | 10530 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10531 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
10532 | { (case "(($ac_try" in |
10533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10534 | *) ac_try_echo=$ac_try;; | |
10535 | esac | |
ec6a6fbe AK |
10536 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10537 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10538 | (eval "$ac_try") 2>&5 |
ad6254c5 | 10539 | ac_status=$? |
ec6a6fbe | 10540 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10541 | (exit $ac_status); }; }; then |
d911ec67 | 10542 | ac_cv_func_realloc_0_nonnull=yes |
ad6254c5 | 10543 | else |
ec6a6fbe AK |
10544 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
10545 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
10546 | sed 's/^/| /' conftest.$ac_ext >&5 |
10547 | ||
10548 | ( exit $ac_status ) | |
d911ec67 | 10549 | ac_cv_func_realloc_0_nonnull=no |
ad6254c5 | 10550 | fi |
ec6a6fbe | 10551 | rm -rf conftest.dSYM |
7a197a62 | 10552 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 10553 | fi |
7a197a62 AK |
10554 | |
10555 | ||
ad6254c5 | 10556 | fi |
d911ec67 AK |
10557 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 |
10558 | $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } | |
10559 | if test $ac_cv_func_realloc_0_nonnull = yes; then | |
ad6254c5 AK |
10560 | |
10561 | cat >>confdefs.h <<\_ACEOF | |
d911ec67 AK |
10562 | #define HAVE_REALLOC 1 |
10563 | _ACEOF | |
10564 | ||
10565 | else | |
10566 | cat >>confdefs.h <<\_ACEOF | |
10567 | #define HAVE_REALLOC 0 | |
10568 | _ACEOF | |
10569 | ||
10570 | case " $LIBOBJS " in | |
10571 | *" realloc.$ac_objext "* ) ;; | |
10572 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" | |
10573 | ;; | |
10574 | esac | |
10575 | ||
10576 | ||
10577 | cat >>confdefs.h <<\_ACEOF | |
10578 | #define realloc rpl_realloc | |
ad6254c5 AK |
10579 | _ACEOF |
10580 | ||
10581 | fi | |
d911ec67 AK |
10582 | |
10583 | ||
ad6254c5 | 10584 | |
ec6a6fbe AK |
10585 | { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
10586 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
ad6254c5 | 10587 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
ec6a6fbe | 10588 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10589 | else |
10590 | if test "$cross_compiling" = yes; then | |
10591 | ac_cv_func_stat_empty_string_bug=yes | |
10592 | else | |
10593 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10594 | /* confdefs.h. */ |
10595 | _ACEOF | |
10596 | cat confdefs.h >>conftest.$ac_ext | |
10597 | cat >>conftest.$ac_ext <<_ACEOF | |
10598 | /* end confdefs.h. */ | |
10599 | $ac_includes_default | |
10600 | int | |
10601 | main () | |
10602 | { | |
10603 | struct stat sbuf; | |
7a197a62 | 10604 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
10605 | ; |
10606 | return 0; | |
10607 | } | |
10608 | _ACEOF | |
10609 | rm -f conftest$ac_exeext | |
7a197a62 AK |
10610 | if { (ac_try="$ac_link" |
10611 | case "(($ac_try" in | |
10612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10613 | *) ac_try_echo=$ac_try;; | |
10614 | esac | |
ec6a6fbe AK |
10615 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10616 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10617 | (eval "$ac_link") 2>&5 |
ad6254c5 | 10618 | ac_status=$? |
ec6a6fbe | 10619 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10620 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
10621 | { (case "(($ac_try" in |
10622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10623 | *) ac_try_echo=$ac_try;; | |
10624 | esac | |
ec6a6fbe AK |
10625 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10626 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10627 | (eval "$ac_try") 2>&5 |
ad6254c5 | 10628 | ac_status=$? |
ec6a6fbe | 10629 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10630 | (exit $ac_status); }; }; then |
7a197a62 | 10631 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 10632 | else |
ec6a6fbe AK |
10633 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
10634 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
10635 | sed 's/^/| /' conftest.$ac_ext >&5 |
10636 | ||
10637 | ( exit $ac_status ) | |
7a197a62 | 10638 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 10639 | fi |
ec6a6fbe | 10640 | rm -rf conftest.dSYM |
7a197a62 | 10641 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 10642 | fi |
7a197a62 AK |
10643 | |
10644 | ||
ad6254c5 | 10645 | fi |
ec6a6fbe AK |
10646 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
10647 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 10648 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 10649 | case " $LIBOBJS " in |
8a2fc586 | 10650 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
10651 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
10652 | ;; | |
8a2fc586 AK |
10653 | esac |
10654 | ||
ad6254c5 AK |
10655 | |
10656 | cat >>confdefs.h <<_ACEOF | |
10657 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
10658 | _ACEOF | |
10659 | ||
10660 | fi | |
10661 | ||
ec6a6fbe AK |
10662 | { $as_echo "$as_me:$LINENO: checking for working strtod" >&5 |
10663 | $as_echo_n "checking for working strtod... " >&6; } | |
ad6254c5 | 10664 | if test "${ac_cv_func_strtod+set}" = set; then |
ec6a6fbe | 10665 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10666 | else |
10667 | if test "$cross_compiling" = yes; then | |
10668 | ac_cv_func_strtod=no | |
10669 | else | |
10670 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10671 | /* confdefs.h. */ |
10672 | _ACEOF | |
10673 | cat confdefs.h >>conftest.$ac_ext | |
10674 | cat >>conftest.$ac_ext <<_ACEOF | |
10675 | /* end confdefs.h. */ | |
10676 | ||
7a197a62 AK |
10677 | $ac_includes_default |
10678 | #ifndef strtod | |
ad6254c5 | 10679 | double strtod (); |
7a197a62 | 10680 | #endif |
ad6254c5 AK |
10681 | int |
10682 | main() | |
10683 | { | |
10684 | { | |
10685 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
10686 | char *string = " +69"; | |
10687 | char *term; | |
10688 | double value; | |
10689 | value = strtod (string, &term); | |
10690 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 10691 | return 1; |
ad6254c5 AK |
10692 | } |
10693 | ||
10694 | { | |
10695 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
10696 | terminating character under some conditions. */ | |
10697 | char *string = "NaN"; | |
10698 | char *term; | |
10699 | strtod (string, &term); | |
10700 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 10701 | return 1; |
ad6254c5 | 10702 | } |
7a197a62 | 10703 | return 0; |
ad6254c5 AK |
10704 | } |
10705 | ||
10706 | _ACEOF | |
10707 | rm -f conftest$ac_exeext | |
7a197a62 AK |
10708 | if { (ac_try="$ac_link" |
10709 | case "(($ac_try" in | |
10710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10711 | *) ac_try_echo=$ac_try;; | |
10712 | esac | |
ec6a6fbe AK |
10713 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10714 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10715 | (eval "$ac_link") 2>&5 |
ad6254c5 | 10716 | ac_status=$? |
ec6a6fbe | 10717 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10718 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
10719 | { (case "(($ac_try" in |
10720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10721 | *) ac_try_echo=$ac_try;; | |
10722 | esac | |
ec6a6fbe AK |
10723 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10724 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10725 | (eval "$ac_try") 2>&5 |
ad6254c5 | 10726 | ac_status=$? |
ec6a6fbe | 10727 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
10728 | (exit $ac_status); }; }; then |
10729 | ac_cv_func_strtod=yes | |
10730 | else | |
ec6a6fbe AK |
10731 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
10732 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
10733 | sed 's/^/| /' conftest.$ac_ext >&5 |
10734 | ||
10735 | ( exit $ac_status ) | |
10736 | ac_cv_func_strtod=no | |
10737 | fi | |
ec6a6fbe | 10738 | rm -rf conftest.dSYM |
7a197a62 | 10739 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 10740 | fi |
7a197a62 AK |
10741 | |
10742 | ||
ad6254c5 | 10743 | fi |
ec6a6fbe AK |
10744 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
10745 | $as_echo "$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 10746 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 10747 | case " $LIBOBJS " in |
8a2fc586 | 10748 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
10749 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
10750 | ;; | |
8a2fc586 AK |
10751 | esac |
10752 | ||
ec6a6fbe AK |
10753 | { $as_echo "$as_me:$LINENO: checking for pow" >&5 |
10754 | $as_echo_n "checking for pow... " >&6; } | |
ad6254c5 | 10755 | if test "${ac_cv_func_pow+set}" = set; then |
ec6a6fbe | 10756 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10757 | else |
10758 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10759 | /* confdefs.h. */ |
10760 | _ACEOF | |
10761 | cat confdefs.h >>conftest.$ac_ext | |
10762 | cat >>conftest.$ac_ext <<_ACEOF | |
10763 | /* end confdefs.h. */ | |
8a2fc586 AK |
10764 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
10765 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10766 | #define pow innocuous_pow | |
10767 | ||
ad6254c5 AK |
10768 | /* System header to define __stub macros and hopefully few prototypes, |
10769 | which can conflict with char pow (); below. | |
10770 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10771 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10772 | |
ad6254c5 AK |
10773 | #ifdef __STDC__ |
10774 | # include <limits.h> | |
10775 | #else | |
10776 | # include <assert.h> | |
10777 | #endif | |
8a2fc586 AK |
10778 | |
10779 | #undef pow | |
10780 | ||
7a197a62 AK |
10781 | /* Override any GCC internal prototype to avoid an error. |
10782 | Use char because int might match the return type of a GCC | |
10783 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10784 | #ifdef __cplusplus |
10785 | extern "C" | |
ad6254c5 | 10786 | #endif |
ad6254c5 AK |
10787 | char pow (); |
10788 | /* The GNU C library defines this for functions which it implements | |
10789 | to always fail with ENOSYS. Some functions are actually named | |
10790 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10791 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 10792 | choke me |
ad6254c5 AK |
10793 | #endif |
10794 | ||
10795 | int | |
10796 | main () | |
10797 | { | |
7a197a62 | 10798 | return pow (); |
ad6254c5 AK |
10799 | ; |
10800 | return 0; | |
10801 | } | |
10802 | _ACEOF | |
10803 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10804 | if { (ac_try="$ac_link" |
10805 | case "(($ac_try" in | |
10806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10807 | *) ac_try_echo=$ac_try;; | |
10808 | esac | |
ec6a6fbe AK |
10809 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10810 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10811 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10812 | ac_status=$? |
8a2fc586 AK |
10813 | grep -v '^ *+' conftest.er1 >conftest.err |
10814 | rm -f conftest.er1 | |
10815 | cat conftest.err >&5 | |
ec6a6fbe | 10816 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10817 | (exit $ac_status); } && { |
10818 | test -z "$ac_c_werror_flag" || | |
10819 | test ! -s conftest.err | |
ec6a6fbe AK |
10820 | } && test -s conftest$ac_exeext && { |
10821 | test "$cross_compiling" = yes || | |
10822 | $as_test_x conftest$ac_exeext | |
10823 | }; then | |
ad6254c5 AK |
10824 | ac_cv_func_pow=yes |
10825 | else | |
ec6a6fbe | 10826 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10827 | sed 's/^/| /' conftest.$ac_ext >&5 |
10828 | ||
7a197a62 | 10829 | ac_cv_func_pow=no |
ad6254c5 | 10830 | fi |
7a197a62 | 10831 | |
ec6a6fbe | 10832 | rm -rf conftest.dSYM |
25fbec5b | 10833 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10834 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10835 | fi |
ec6a6fbe AK |
10836 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
10837 | $as_echo "$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
10838 | |
10839 | if test $ac_cv_func_pow = no; then | |
ec6a6fbe AK |
10840 | { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
10841 | $as_echo_n "checking for pow in -lm... " >&6; } | |
ad6254c5 | 10842 | if test "${ac_cv_lib_m_pow+set}" = set; then |
ec6a6fbe | 10843 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10844 | else |
10845 | ac_check_lib_save_LIBS=$LIBS | |
10846 | LIBS="-lm $LIBS" | |
10847 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10848 | /* confdefs.h. */ |
10849 | _ACEOF | |
10850 | cat confdefs.h >>conftest.$ac_ext | |
10851 | cat >>conftest.$ac_ext <<_ACEOF | |
10852 | /* end confdefs.h. */ | |
10853 | ||
7a197a62 AK |
10854 | /* Override any GCC internal prototype to avoid an error. |
10855 | Use char because int might match the return type of a GCC | |
10856 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10857 | #ifdef __cplusplus |
10858 | extern "C" | |
10859 | #endif | |
ad6254c5 AK |
10860 | char pow (); |
10861 | int | |
10862 | main () | |
10863 | { | |
7a197a62 | 10864 | return pow (); |
ad6254c5 AK |
10865 | ; |
10866 | return 0; | |
10867 | } | |
10868 | _ACEOF | |
10869 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10870 | if { (ac_try="$ac_link" |
10871 | case "(($ac_try" in | |
10872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10873 | *) ac_try_echo=$ac_try;; | |
10874 | esac | |
ec6a6fbe AK |
10875 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10876 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10877 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10878 | ac_status=$? |
8a2fc586 AK |
10879 | grep -v '^ *+' conftest.er1 >conftest.err |
10880 | rm -f conftest.er1 | |
10881 | cat conftest.err >&5 | |
ec6a6fbe | 10882 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10883 | (exit $ac_status); } && { |
10884 | test -z "$ac_c_werror_flag" || | |
10885 | test ! -s conftest.err | |
ec6a6fbe AK |
10886 | } && test -s conftest$ac_exeext && { |
10887 | test "$cross_compiling" = yes || | |
10888 | $as_test_x conftest$ac_exeext | |
10889 | }; then | |
ad6254c5 AK |
10890 | ac_cv_lib_m_pow=yes |
10891 | else | |
ec6a6fbe | 10892 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10893 | sed 's/^/| /' conftest.$ac_ext >&5 |
10894 | ||
7a197a62 | 10895 | ac_cv_lib_m_pow=no |
ad6254c5 | 10896 | fi |
7a197a62 | 10897 | |
ec6a6fbe | 10898 | rm -rf conftest.dSYM |
25fbec5b | 10899 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10900 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10901 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 10902 | fi |
ec6a6fbe AK |
10903 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
10904 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
10905 | if test "x$ac_cv_lib_m_pow" = x""yes; then | |
d0191583 JM |
10906 | POW_LIB=-lm |
10907 | else | |
ec6a6fbe AK |
10908 | { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
10909 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 10910 | fi |
72b2cb61 | 10911 | |
d0191583 | 10912 | fi |
72b2cb61 | 10913 | |
ad6254c5 AK |
10914 | fi |
10915 | ||
ad6254c5 | 10916 | |
d0191583 JM |
10917 | for ac_func in vprintf |
10918 | do | |
ec6a6fbe AK |
10919 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10920 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10921 | $as_echo_n "checking for $ac_func... " >&6; } | |
d0191583 | 10922 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10923 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10924 | else |
d0191583 JM |
10925 | cat >conftest.$ac_ext <<_ACEOF |
10926 | /* confdefs.h. */ | |
10927 | _ACEOF | |
10928 | cat confdefs.h >>conftest.$ac_ext | |
10929 | cat >>conftest.$ac_ext <<_ACEOF | |
10930 | /* end confdefs.h. */ | |
10931 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10932 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10933 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 10934 | |
d0191583 JM |
10935 | /* System header to define __stub macros and hopefully few prototypes, |
10936 | which can conflict with char $ac_func (); below. | |
10937 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10938 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 10939 | |
d0191583 JM |
10940 | #ifdef __STDC__ |
10941 | # include <limits.h> | |
10942 | #else | |
10943 | # include <assert.h> | |
10944 | #endif | |
ad6254c5 | 10945 | |
d0191583 | 10946 | #undef $ac_func |
72b2cb61 | 10947 | |
d0191583 JM |
10948 | /* Override any GCC internal prototype to avoid an error. |
10949 | Use char because int might match the return type of a GCC | |
10950 | builtin and then its argument prototype would still apply. */ | |
10951 | #ifdef __cplusplus | |
10952 | extern "C" | |
10953 | #endif | |
10954 | char $ac_func (); | |
10955 | /* The GNU C library defines this for functions which it implements | |
10956 | to always fail with ENOSYS. Some functions are actually named | |
10957 | something starting with __ and the normal name is an alias. */ | |
10958 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
10959 | choke me | |
10960 | #endif | |
10961 | ||
10962 | int | |
10963 | main () | |
10964 | { | |
10965 | return $ac_func (); | |
10966 | ; | |
10967 | return 0; | |
10968 | } | |
72b2cb61 | 10969 | _ACEOF |
d0191583 JM |
10970 | rm -f conftest.$ac_objext conftest$ac_exeext |
10971 | if { (ac_try="$ac_link" | |
10972 | case "(($ac_try" in | |
10973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10974 | *) ac_try_echo=$ac_try;; | |
10975 | esac | |
ec6a6fbe AK |
10976 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10977 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
10978 | (eval "$ac_link") 2>conftest.er1 |
10979 | ac_status=$? | |
10980 | grep -v '^ *+' conftest.er1 >conftest.err | |
10981 | rm -f conftest.er1 | |
10982 | cat conftest.err >&5 | |
ec6a6fbe | 10983 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
10984 | (exit $ac_status); } && { |
10985 | test -z "$ac_c_werror_flag" || | |
10986 | test ! -s conftest.err | |
ec6a6fbe AK |
10987 | } && test -s conftest$ac_exeext && { |
10988 | test "$cross_compiling" = yes || | |
10989 | $as_test_x conftest$ac_exeext | |
10990 | }; then | |
d0191583 JM |
10991 | eval "$as_ac_var=yes" |
10992 | else | |
ec6a6fbe | 10993 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 10994 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 10995 | |
d0191583 | 10996 | eval "$as_ac_var=no" |
ad6254c5 AK |
10997 | fi |
10998 | ||
ec6a6fbe | 10999 | rm -rf conftest.dSYM |
d0191583 JM |
11000 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11001 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 11002 | fi |
ec6a6fbe AK |
11003 | ac_res=`eval 'as_val=${'$as_ac_var'} |
11004 | $as_echo "$as_val"'` | |
11005 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11006 | $as_echo "$ac_res" >&6; } | |
11007 | as_val=`eval 'as_val=${'$as_ac_var'} | |
11008 | $as_echo "$as_val"'` | |
11009 | if test "x$as_val" = x""yes; then | |
d0191583 | 11010 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 11011 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 11012 | _ACEOF |
7a197a62 | 11013 | |
ec6a6fbe AK |
11014 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
11015 | $as_echo_n "checking for _doprnt... " >&6; } | |
d0191583 | 11016 | if test "${ac_cv_func__doprnt+set}" = set; then |
ec6a6fbe | 11017 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11018 | else |
d0191583 JM |
11019 | cat >conftest.$ac_ext <<_ACEOF |
11020 | /* confdefs.h. */ | |
11021 | _ACEOF | |
11022 | cat confdefs.h >>conftest.$ac_ext | |
11023 | cat >>conftest.$ac_ext <<_ACEOF | |
11024 | /* end confdefs.h. */ | |
11025 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
11026 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11027 | #define _doprnt innocuous__doprnt | |
7a197a62 | 11028 | |
d0191583 JM |
11029 | /* System header to define __stub macros and hopefully few prototypes, |
11030 | which can conflict with char _doprnt (); below. | |
11031 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11032 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 11033 | |
d0191583 JM |
11034 | #ifdef __STDC__ |
11035 | # include <limits.h> | |
11036 | #else | |
11037 | # include <assert.h> | |
11038 | #endif | |
72b2cb61 | 11039 | |
d0191583 JM |
11040 | #undef _doprnt |
11041 | ||
11042 | /* Override any GCC internal prototype to avoid an error. | |
11043 | Use char because int might match the return type of a GCC | |
11044 | builtin and then its argument prototype would still apply. */ | |
11045 | #ifdef __cplusplus | |
11046 | extern "C" | |
11047 | #endif | |
11048 | char _doprnt (); | |
11049 | /* The GNU C library defines this for functions which it implements | |
11050 | to always fail with ENOSYS. Some functions are actually named | |
11051 | something starting with __ and the normal name is an alias. */ | |
11052 | #if defined __stub__doprnt || defined __stub____doprnt | |
11053 | choke me | |
11054 | #endif | |
11055 | ||
11056 | int | |
11057 | main () | |
11058 | { | |
11059 | return _doprnt (); | |
11060 | ; | |
11061 | return 0; | |
11062 | } | |
72b2cb61 | 11063 | _ACEOF |
d0191583 JM |
11064 | rm -f conftest.$ac_objext conftest$ac_exeext |
11065 | if { (ac_try="$ac_link" | |
11066 | case "(($ac_try" in | |
11067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11068 | *) ac_try_echo=$ac_try;; | |
11069 | esac | |
ec6a6fbe AK |
11070 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11071 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
11072 | (eval "$ac_link") 2>conftest.er1 |
11073 | ac_status=$? | |
11074 | grep -v '^ *+' conftest.er1 >conftest.err | |
11075 | rm -f conftest.er1 | |
11076 | cat conftest.err >&5 | |
ec6a6fbe | 11077 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
11078 | (exit $ac_status); } && { |
11079 | test -z "$ac_c_werror_flag" || | |
11080 | test ! -s conftest.err | |
ec6a6fbe AK |
11081 | } && test -s conftest$ac_exeext && { |
11082 | test "$cross_compiling" = yes || | |
11083 | $as_test_x conftest$ac_exeext | |
11084 | }; then | |
d0191583 JM |
11085 | ac_cv_func__doprnt=yes |
11086 | else | |
ec6a6fbe | 11087 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 11088 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 11089 | |
d0191583 | 11090 | ac_cv_func__doprnt=no |
ad6254c5 AK |
11091 | fi |
11092 | ||
ec6a6fbe | 11093 | rm -rf conftest.dSYM |
d0191583 JM |
11094 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11095 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 11096 | fi |
ec6a6fbe AK |
11097 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
11098 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
11099 | if test "x$ac_cv_func__doprnt" = x""yes; then | |
7a197a62 | 11100 | |
d0191583 JM |
11101 | cat >>confdefs.h <<\_ACEOF |
11102 | #define HAVE_DOPRNT 1 | |
11103 | _ACEOF | |
ad6254c5 | 11104 | |
7a197a62 AK |
11105 | fi |
11106 | ||
d0191583 JM |
11107 | fi |
11108 | done | |
8b1a3214 | 11109 | |
ad6254c5 | 11110 | |
7a197a62 | 11111 | |
9c961554 | 11112 | ################################################################################ |
ec6a6fbe AK |
11113 | { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
11114 | $as_echo_n "checking whether to use static linking... " >&6; } | |
9c961554 MB |
11115 | # Check whether --enable-static_link was given. |
11116 | if test "${enable_static_link+set}" = set; then | |
11117 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
11118 | else | |
11119 | STATIC_LINK=no | |
11120 | fi | |
11121 | ||
ec6a6fbe AK |
11122 | { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
11123 | $as_echo "$STATIC_LINK" >&6; } | |
9c961554 | 11124 | |
d0191583 | 11125 | ################################################################################ |
ad6254c5 | 11126 | |
ad6254c5 AK |
11127 | |
11128 | ################################################################################ | |
ec6a6fbe AK |
11129 | { $as_echo "$as_me:$LINENO: checking file owner" >&5 |
11130 | $as_echo_n "checking file owner... " >&6; } | |
d0191583 JM |
11131 | |
11132 | # Check whether --with-user was given. | |
11133 | if test "${with_user+set}" = set; then | |
71082be4 | 11134 | withval=$with_user; OWNER=$withval |
7a197a62 AK |
11135 | fi |
11136 | ||
ec6a6fbe AK |
11137 | { $as_echo "$as_me:$LINENO: result: $OWNER" >&5 |
11138 | $as_echo "$OWNER" >&6; } | |
ad6254c5 | 11139 | |
d0191583 | 11140 | if test x$OWNER != x; then |
23b059e7 | 11141 | INSTALL="$INSTALL -o $OWNER" |
ad6254c5 AK |
11142 | fi |
11143 | ||
11144 | ################################################################################ | |
ec6a6fbe AK |
11145 | { $as_echo "$as_me:$LINENO: checking group owner" >&5 |
11146 | $as_echo_n "checking group owner... " >&6; } | |
ad6254c5 | 11147 | |
d0191583 JM |
11148 | # Check whether --with-group was given. |
11149 | if test "${with_group+set}" = set; then | |
71082be4 | 11150 | withval=$with_group; GROUP=$withval |
7a197a62 AK |
11151 | fi |
11152 | ||
ec6a6fbe AK |
11153 | { $as_echo "$as_me:$LINENO: result: $GROUP" >&5 |
11154 | $as_echo "$GROUP" >&6; } | |
d0191583 JM |
11155 | |
11156 | if test x$GROUP != x; then | |
23b059e7 | 11157 | INSTALL="$INSTALL -g $GROUP" |
d0191583 | 11158 | fi |
ad6254c5 | 11159 | |
24bbc4d7 | 11160 | ################################################################################ |
ec6a6fbe AK |
11161 | { $as_echo "$as_me:$LINENO: checking device node uid" >&5 |
11162 | $as_echo_n "checking device node uid... " >&6; } | |
24bbc4d7 AK |
11163 | |
11164 | ||
11165 | # Check whether --with-device-uid was given. | |
11166 | if test "${with_device_uid+set}" = set; then | |
71082be4 | 11167 | withval=$with_device_uid; DM_DEVICE_UID=$withval |
24bbc4d7 | 11168 | else |
71082be4 | 11169 | DM_DEVICE_UID=0 |
24bbc4d7 AK |
11170 | fi |
11171 | ||
ec6a6fbe AK |
11172 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5 |
11173 | $as_echo "$DM_DEVICE_UID" >&6; } | |
24bbc4d7 AK |
11174 | |
11175 | ################################################################################ | |
ec6a6fbe AK |
11176 | { $as_echo "$as_me:$LINENO: checking device node gid" >&5 |
11177 | $as_echo_n "checking device node gid... " >&6; } | |
24bbc4d7 AK |
11178 | |
11179 | ||
11180 | # Check whether --with-device-gid was given. | |
11181 | if test "${with_device_gid+set}" = set; then | |
71082be4 | 11182 | withval=$with_device_gid; DM_DEVICE_GID=$withval |
24bbc4d7 | 11183 | else |
71082be4 | 11184 | DM_DEVICE_GID=0 |
24bbc4d7 AK |
11185 | fi |
11186 | ||
ec6a6fbe AK |
11187 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5 |
11188 | $as_echo "$DM_DEVICE_GID" >&6; } | |
24bbc4d7 | 11189 | |
93bd259b | 11190 | ################################################################################ |
ec6a6fbe AK |
11191 | { $as_echo "$as_me:$LINENO: checking device node mode" >&5 |
11192 | $as_echo_n "checking device node mode... " >&6; } | |
93bd259b AK |
11193 | |
11194 | ||
11195 | # Check whether --with-device-mode was given. | |
11196 | if test "${with_device_mode+set}" = set; then | |
71082be4 | 11197 | withval=$with_device_mode; DM_DEVICE_MODE=$withval |
93bd259b | 11198 | else |
71082be4 | 11199 | DM_DEVICE_MODE=0600 |
93bd259b AK |
11200 | fi |
11201 | ||
ec6a6fbe AK |
11202 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5 |
11203 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
93bd259b | 11204 | |
ad6254c5 | 11205 | ################################################################################ |
ec6a6fbe AK |
11206 | { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
11207 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
d0191583 JM |
11208 | # Check whether --enable-lvm1_fallback was given. |
11209 | if test "${enable_lvm1_fallback+set}" = set; then | |
11210 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
11211 | else | |
11212 | LVM1_FALLBACK=no | |
7a197a62 AK |
11213 | fi |
11214 | ||
ec6a6fbe AK |
11215 | { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
11216 | $as_echo "$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 11217 | |
d0191583 | 11218 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
11219 | |
11220 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 11221 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
11222 | _ACEOF |
11223 | ||
ad6254c5 AK |
11224 | fi |
11225 | ||
11226 | ################################################################################ | |
ec6a6fbe AK |
11227 | { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
11228 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
d0191583 JM |
11229 | |
11230 | # Check whether --with-lvm1 was given. | |
11231 | if test "${with_lvm1+set}" = set; then | |
71082be4 | 11232 | withval=$with_lvm1; LVM1=$withval |
d0191583 | 11233 | else |
71082be4 | 11234 | LVM1=internal |
7a197a62 AK |
11235 | fi |
11236 | ||
ec6a6fbe AK |
11237 | { $as_echo "$as_me:$LINENO: result: $LVM1" >&5 |
11238 | $as_echo "$LVM1" >&6; } | |
ad6254c5 | 11239 | |
d0191583 | 11240 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
ec6a6fbe | 11241 | then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 11242 | " >&5 |
ec6a6fbe | 11243 | $as_echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
11244 | " >&2;} |
11245 | { (exit 1); exit 1; }; } | |
11246 | fi; | |
11247 | ||
11248 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
11249 | |
11250 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 11251 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
11252 | _ACEOF |
11253 | ||
ad6254c5 AK |
11254 | fi |
11255 | ||
11256 | ################################################################################ | |
ec6a6fbe AK |
11257 | { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
11258 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
d0191583 JM |
11259 | |
11260 | # Check whether --with-pool was given. | |
11261 | if test "${with_pool+set}" = set; then | |
71082be4 | 11262 | withval=$with_pool; POOL=$withval |
ad6254c5 | 11263 | else |
71082be4 | 11264 | POOL=internal |
7a197a62 AK |
11265 | fi |
11266 | ||
ec6a6fbe AK |
11267 | { $as_echo "$as_me:$LINENO: result: $POOL" >&5 |
11268 | $as_echo "$POOL" >&6; } | |
ad6254c5 | 11269 | |
d0191583 | 11270 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
ec6a6fbe | 11271 | then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 11272 | " >&5 |
ec6a6fbe | 11273 | $as_echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
11274 | " >&2;} |
11275 | { (exit 1); exit 1; }; } | |
11276 | fi; | |
7a197a62 | 11277 | |
d0191583 JM |
11278 | if test x$POOL = xinternal; then |
11279 | ||
11280 | cat >>confdefs.h <<\_ACEOF | |
11281 | #define POOL_INTERNAL 1 | |
11282 | _ACEOF | |
11283 | ||
11284 | fi | |
ad6254c5 | 11285 | |
06f62ad1 | 11286 | ################################################################################ |
ec6a6fbe AK |
11287 | { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
11288 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
d0191583 JM |
11289 | |
11290 | # Check whether --with-cluster was given. | |
11291 | if test "${with_cluster+set}" = set; then | |
71082be4 | 11292 | withval=$with_cluster; CLUSTER=$withval |
7a197a62 AK |
11293 | fi |
11294 | ||
ec6a6fbe AK |
11295 | { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
11296 | $as_echo "$CLUSTER" >&6; } | |
06f62ad1 | 11297 | |
d0191583 | 11298 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
ec6a6fbe | 11299 | then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 11300 | " >&5 |
ec6a6fbe | 11301 | $as_echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
11302 | " >&2;} |
11303 | { (exit 1); exit 1; }; } | |
d0191583 | 11304 | fi; |
06f62ad1 | 11305 | |
d0191583 | 11306 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
11307 | |
11308 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 11309 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
11310 | _ACEOF |
11311 | ||
15d91f5a | 11312 | fi |
ad6254c5 AK |
11313 | |
11314 | ################################################################################ | |
ec6a6fbe AK |
11315 | { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
11316 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
ad6254c5 | 11317 | |
d0191583 JM |
11318 | # Check whether --with-snapshots was given. |
11319 | if test "${with_snapshots+set}" = set; then | |
71082be4 | 11320 | withval=$with_snapshots; SNAPSHOTS=$withval |
d0191583 | 11321 | else |
71082be4 | 11322 | SNAPSHOTS=internal |
ad6254c5 AK |
11323 | fi |
11324 | ||
ec6a6fbe AK |
11325 | { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
11326 | $as_echo "$SNAPSHOTS" >&6; } | |
ad6254c5 | 11327 | |
d0191583 | 11328 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
ec6a6fbe | 11329 | then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 11330 | " >&5 |
ec6a6fbe | 11331 | $as_echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
11332 | " >&2;} |
11333 | { (exit 1); exit 1; }; } | |
11334 | fi; | |
11335 | ||
11336 | if test x$SNAPSHOTS = xinternal; then | |
11337 | ||
11338 | cat >>confdefs.h <<\_ACEOF | |
11339 | #define SNAPSHOT_INTERNAL 1 | |
11340 | _ACEOF | |
ad6254c5 | 11341 | |
ad6254c5 | 11342 | fi |
7a197a62 | 11343 | |
d0191583 | 11344 | ################################################################################ |
ec6a6fbe AK |
11345 | { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
11346 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
d0191583 JM |
11347 | |
11348 | # Check whether --with-mirrors was given. | |
11349 | if test "${with_mirrors+set}" = set; then | |
71082be4 | 11350 | withval=$with_mirrors; MIRRORS=$withval |
d0191583 | 11351 | else |
71082be4 | 11352 | MIRRORS=internal |
ad6254c5 | 11353 | fi |
ad6254c5 | 11354 | |
ec6a6fbe AK |
11355 | { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
11356 | $as_echo "$MIRRORS" >&6; } | |
ad6254c5 | 11357 | |
d0191583 | 11358 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
ec6a6fbe | 11359 | then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 11360 | " >&5 |
ec6a6fbe | 11361 | $as_echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
11362 | " >&2;} |
11363 | { (exit 1); exit 1; }; } | |
11364 | fi; | |
ad6254c5 | 11365 | |
d0191583 | 11366 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 11367 | |
d0191583 JM |
11368 | cat >>confdefs.h <<\_ACEOF |
11369 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 11370 | _ACEOF |
8a2fc586 | 11371 | |
d0191583 | 11372 | fi |
8a2fc586 | 11373 | |
8fea97b7 ZK |
11374 | ################################################################################ |
11375 | { $as_echo "$as_me:$LINENO: checking whether to include replicators" >&5 | |
11376 | $as_echo_n "checking whether to include replicators... " >&6; } | |
11377 | ||
11378 | # Check whether --with-replicators was given. | |
11379 | if test "${with_replicators+set}" = set; then | |
11380 | withval=$with_replicators; REPLICATORS=$withval | |
11381 | else | |
71082be4 | 11382 | REPLICATORS=none |
8fea97b7 ZK |
11383 | fi |
11384 | ||
11385 | { $as_echo "$as_me:$LINENO: result: $REPLICATORS" >&5 | |
11386 | $as_echo "$REPLICATORS" >&6; } | |
11387 | ||
11388 | case "$REPLICATORS" in | |
11389 | none|shared) ;; | |
11390 | internal) | |
11391 | cat >>confdefs.h <<\_ACEOF | |
11392 | #define REPLICATOR_INTERNAL 1 | |
11393 | _ACEOF | |
11394 | ;; | |
11395 | *) { { $as_echo "$as_me:$LINENO: error: --with-replicators parameter invalid ($REPLICATORS)" >&5 | |
11396 | $as_echo "$as_me: error: --with-replicators parameter invalid ($REPLICATORS)" >&2;} | |
11397 | { (exit 1); exit 1; }; } ;; | |
11398 | esac | |
11399 | ||
d0191583 | 11400 | ################################################################################ |
ec6a6fbe AK |
11401 | { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
11402 | $as_echo_n "checking whether to enable readline... " >&6; } | |
d0191583 JM |
11403 | # Check whether --enable-readline was given. |
11404 | if test "${enable_readline+set}" = set; then | |
11405 | enableval=$enable_readline; READLINE=$enableval | |
11406 | else | |
06e459df | 11407 | READLINE=maybe |
d0191583 | 11408 | fi |
8a2fc586 | 11409 | |
ec6a6fbe AK |
11410 | { $as_echo "$as_me:$LINENO: result: $READLINE" >&5 |
11411 | $as_echo "$READLINE" >&6; } | |
8a2fc586 | 11412 | |
d0191583 | 11413 | ################################################################################ |
ec6a6fbe AK |
11414 | { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
11415 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
d0191583 JM |
11416 | # Check whether --enable-realtime was given. |
11417 | if test "${enable_realtime+set}" = set; then | |
11418 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 11419 | fi |
ad6254c5 | 11420 | |
ec6a6fbe AK |
11421 | { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5 |
11422 | $as_echo "$REALTIME" >&6; } | |
d0191583 JM |
11423 | |
11424 | ################################################################################ | |
90c80887 | 11425 | pkg_config_init() { |
e2997b73 AK |
11426 | |
11427 | ||
11428 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
11429 | if test -n "$ac_tool_prefix"; then | |
11430 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
11431 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
11432 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11433 | $as_echo_n "checking for $ac_word... " >&6; } | |
11434 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
11435 | $as_echo_n "(cached) " >&6 | |
11436 | else | |
11437 | case $PKG_CONFIG in | |
11438 | [\\/]* | ?:[\\/]*) | |
11439 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11440 | ;; | |
11441 | *) | |
11442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11443 | for as_dir in $PATH | |
11444 | do | |
11445 | IFS=$as_save_IFS | |
11446 | test -z "$as_dir" && as_dir=. | |
11447 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11448 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11449 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11450 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11451 | break 2 | |
11452 | fi | |
11453 | done | |
11454 | done | |
11455 | IFS=$as_save_IFS | |
11456 | ||
11457 | ;; | |
11458 | esac | |
11459 | fi | |
11460 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
11461 | if test -n "$PKG_CONFIG"; then | |
11462 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
11463 | $as_echo "$PKG_CONFIG" >&6; } | |
11464 | else | |
11465 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11466 | $as_echo "no" >&6; } | |
11467 | fi | |
11468 | ||
11469 | ||
11470 | fi | |
11471 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
11472 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
11473 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
11474 | set dummy pkg-config; ac_word=$2 | |
11475 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11476 | $as_echo_n "checking for $ac_word... " >&6; } | |
11477 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
11478 | $as_echo_n "(cached) " >&6 | |
11479 | else | |
11480 | case $ac_pt_PKG_CONFIG in | |
11481 | [\\/]* | ?:[\\/]*) | |
11482 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
11483 | ;; | |
11484 | *) | |
11485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11486 | for as_dir in $PATH | |
11487 | do | |
11488 | IFS=$as_save_IFS | |
11489 | test -z "$as_dir" && as_dir=. | |
11490 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11491 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11492 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11493 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11494 | break 2 | |
11495 | fi | |
11496 | done | |
11497 | done | |
11498 | IFS=$as_save_IFS | |
11499 | ||
11500 | ;; | |
11501 | esac | |
11502 | fi | |
11503 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
11504 | if test -n "$ac_pt_PKG_CONFIG"; then | |
11505 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
11506 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
11507 | else | |
11508 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11509 | $as_echo "no" >&6; } | |
11510 | fi | |
11511 | ||
11512 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
11513 | PKG_CONFIG="" | |
11514 | else | |
11515 | case $cross_compiling:$ac_tool_warned in | |
11516 | yes:) | |
11517 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
11518 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
11519 | ac_tool_warned=yes ;; | |
11520 | esac | |
11521 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
11522 | fi | |
11523 | else | |
11524 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
11525 | fi | |
11526 | ||
11527 | fi | |
11528 | if test -n "$PKG_CONFIG"; then | |
11529 | _pkg_min_version=0.9.0 | |
11530 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
11531 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
11532 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
11533 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11534 | $as_echo "yes" >&6; } | |
11535 | else | |
11536 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11537 | $as_echo "no" >&6; } | |
11538 | PKG_CONFIG="" | |
11539 | fi | |
8c4e8a18 | 11540 | |
e2997b73 AK |
11541 | fi |
11542 | ||
11543 | pkg_failed=no | |
a946372e AK |
11544 | { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5 |
11545 | $as_echo_n "checking for PKGCONFIGINIT... " >&6; } | |
e2997b73 | 11546 | |
a946372e AK |
11547 | if test -n "$PKGCONFIGINIT_CFLAGS"; then |
11548 | pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS" | |
e2997b73 AK |
11549 | elif test -n "$PKG_CONFIG"; then |
11550 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11551 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
11552 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
11553 | ac_status=$? |
11554 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11555 | (exit $ac_status); }; then | |
a946372e | 11556 | pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
11557 | else |
11558 | pkg_failed=yes | |
11559 | fi | |
11560 | else | |
11561 | pkg_failed=untried | |
11562 | fi | |
a946372e AK |
11563 | if test -n "$PKGCONFIGINIT_LIBS"; then |
11564 | pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS" | |
e2997b73 AK |
11565 | elif test -n "$PKG_CONFIG"; then |
11566 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11567 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
11568 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
11569 | ac_status=$? |
11570 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11571 | (exit $ac_status); }; then | |
a946372e | 11572 | pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
11573 | else |
11574 | pkg_failed=yes | |
11575 | fi | |
11576 | else | |
11577 | pkg_failed=untried | |
11578 | fi | |
11579 | ||
11580 | ||
11581 | ||
11582 | if test $pkg_failed = yes; then | |
11583 | ||
11584 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11585 | _pkg_short_errors_supported=yes | |
11586 | else | |
11587 | _pkg_short_errors_supported=no | |
11588 | fi | |
11589 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 11590 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1` |
e2997b73 | 11591 | else |
a946372e | 11592 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1` |
e2997b73 AK |
11593 | fi |
11594 | # Put the nasty error message in config.log where it belongs | |
a946372e | 11595 | echo "$PKGCONFIGINIT_PKG_ERRORS" >&5 |
e2997b73 | 11596 | |
8c4e8a18 FDN |
11597 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11598 | $as_echo "no" >&6; } | |
11599 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 | |
a946372e | 11600 | $as_echo "pkg-config initialized" >&6; } |
e2997b73 | 11601 | elif test $pkg_failed = untried; then |
a946372e AK |
11602 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 |
11603 | $as_echo "pkg-config initialized" >&6; } | |
e2997b73 | 11604 | else |
a946372e AK |
11605 | PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS |
11606 | PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS | |
e2997b73 AK |
11607 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
11608 | $as_echo "yes" >&6; } | |
8c4e8a18 | 11609 | : |
e2997b73 | 11610 | fi |
90c80887 AK |
11611 | PKGCONFIG_INIT=1 |
11612 | } | |
11613 | ||
11614 | ################################################################################ | |
11615 | { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 | |
11616 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
11617 | ||
11618 | # Check whether --with-clvmd was given. | |
11619 | if test "${with_clvmd+set}" = set; then | |
71082be4 | 11620 | withval=$with_clvmd; CLVMD=$withval |
90c80887 | 11621 | else |
71082be4 | 11622 | CLVMD=none |
90c80887 AK |
11623 | fi |
11624 | ||
11625 | if test x$CLVMD = xyes; then | |
11626 | CLVMD=all | |
11627 | fi | |
11628 | { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5 | |
11629 | $as_echo "$CLVMD" >&6; } | |
11630 | ||
11631 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then | |
11632 | CLUSTER=internal | |
11633 | fi | |
11634 | ||
11635 | if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then | |
11636 | pkg_config_init | |
11637 | fi | |
11638 | ||
11639 | ||
11640 | if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then | |
11641 | BUILDGULM=yes | |
11642 | fi | |
11643 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then | |
11644 | BUILDCOROSYNC=yes | |
11645 | fi | |
11646 | if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then | |
11647 | BUILDOPENAIS=yes | |
11648 | fi | |
11649 | if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then | |
11650 | BUILDCMAN=yes | |
11651 | fi | |
11652 | ||
11653 | if test x$BUILDGULM = xyes; then | |
11654 | if test x$BUILDCOROSYNC = xyes || \ | |
11655 | test x$BUILDOPENAIS = xyes; then | |
11656 | { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5 | |
11657 | $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;} | |
11658 | { (exit 1); exit 1; }; } | |
11659 | fi | |
a946372e | 11660 | fi |
e2997b73 | 11661 | |
a946372e AK |
11662 | soft_bailout() { |
11663 | NOTFOUND=1 | |
11664 | } | |
e2997b73 | 11665 | |
a946372e AK |
11666 | hard_bailout() { |
11667 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
11668 | $as_echo "$as_me: error: bailing out" >&2;} | |
11669 | { (exit 1); exit 1; }; } | |
11670 | } | |
11671 | ||
11672 | if test x$CLVMD = xall; then | |
11673 | bailout=soft_bailout | |
11674 | BUILDGULM=yes | |
11675 | BUILDCMAN=yes | |
11676 | BUILDCOROSYNC=yes | |
11677 | BUILDOPENAIS=yes | |
e2997b73 | 11678 | else |
a946372e | 11679 | bailout=hard_bailout |
e2997b73 | 11680 | fi |
a946372e AK |
11681 | |
11682 | check_lib_no_libs() { | |
11683 | lib_no_libs_arg1=$1 | |
11684 | shift | |
11685 | lib_no_libs_arg2=$1 | |
11686 | shift | |
11687 | lib_no_libs_args=$@ | |
11688 | ||
11689 | as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh` | |
11690 | { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5 | |
11691 | $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; } | |
11692 | if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then | |
11693 | $as_echo_n "(cached) " >&6 | |
11694 | else | |
11695 | ac_check_lib_save_LIBS=$LIBS | |
11696 | LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS" | |
11697 | cat >conftest.$ac_ext <<_ACEOF | |
11698 | /* confdefs.h. */ | |
11699 | _ACEOF | |
11700 | cat confdefs.h >>conftest.$ac_ext | |
11701 | cat >>conftest.$ac_ext <<_ACEOF | |
11702 | /* end confdefs.h. */ | |
11703 | ||
11704 | /* Override any GCC internal prototype to avoid an error. | |
11705 | Use char because int might match the return type of a GCC | |
11706 | builtin and then its argument prototype would still apply. */ | |
11707 | #ifdef __cplusplus | |
11708 | extern "C" | |
11709 | #endif | |
11710 | char $lib_no_libs_arg2 (); | |
11711 | int | |
11712 | main () | |
11713 | { | |
11714 | return $lib_no_libs_arg2 (); | |
11715 | ; | |
11716 | return 0; | |
11717 | } | |
11718 | _ACEOF | |
11719 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11720 | if { (ac_try="$ac_link" | |
11721 | case "(($ac_try" in | |
11722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11723 | *) ac_try_echo=$ac_try;; | |
11724 | esac | |
11725 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11726 | $as_echo "$ac_try_echo") >&5 | |
11727 | (eval "$ac_link") 2>conftest.er1 | |
e2997b73 | 11728 | ac_status=$? |
a946372e AK |
11729 | grep -v '^ *+' conftest.er1 >conftest.err |
11730 | rm -f conftest.er1 | |
11731 | cat conftest.err >&5 | |
e2997b73 | 11732 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a946372e AK |
11733 | (exit $ac_status); } && { |
11734 | test -z "$ac_c_werror_flag" || | |
11735 | test ! -s conftest.err | |
11736 | } && test -s conftest$ac_exeext && { | |
11737 | test "$cross_compiling" = yes || | |
11738 | $as_test_x conftest$ac_exeext | |
11739 | }; then | |
11740 | eval "$as_ac_Lib=yes" | |
e2997b73 | 11741 | else |
a946372e AK |
11742 | $as_echo "$as_me: failed program was:" >&5 |
11743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
e2997b73 | 11744 | |
a946372e AK |
11745 | eval "$as_ac_Lib=no" |
11746 | fi | |
e2997b73 | 11747 | |
a946372e AK |
11748 | rm -rf conftest.dSYM |
11749 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11750 | conftest$ac_exeext conftest.$ac_ext | |
11751 | LIBS=$ac_check_lib_save_LIBS | |
11752 | fi | |
11753 | ac_res=`eval 'as_val=${'$as_ac_Lib'} | |
11754 | $as_echo "$as_val"'` | |
11755 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11756 | $as_echo "$ac_res" >&6; } | |
11757 | as_val=`eval 'as_val=${'$as_ac_Lib'} | |
11758 | $as_echo "$as_val"'` | |
11759 | if test "x$as_val" = x""yes; then | |
11760 | cat >>confdefs.h <<_ACEOF | |
11761 | #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1 | |
11762 | _ACEOF | |
e2997b73 | 11763 | |
a946372e | 11764 | LIBS="-l$lib_no_libs_arg1 $LIBS" |
e2997b73 | 11765 | |
e2997b73 | 11766 | else |
a946372e | 11767 | $bailout |
e2997b73 | 11768 | fi |
e2997b73 | 11769 | |
a946372e AK |
11770 | LIBS=$ac_check_lib_save_LIBS |
11771 | } | |
11772 | ||
11773 | if test x$BUILDGULM = xyes; then | |
e2997b73 AK |
11774 | |
11775 | pkg_failed=no | |
a946372e AK |
11776 | { $as_echo "$as_me:$LINENO: checking for CCS" >&5 |
11777 | $as_echo_n "checking for CCS... " >&6; } | |
e2997b73 | 11778 | |
a946372e AK |
11779 | if test -n "$CCS_CFLAGS"; then |
11780 | pkg_cv_CCS_CFLAGS="$CCS_CFLAGS" | |
e2997b73 AK |
11781 | elif test -n "$PKG_CONFIG"; then |
11782 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11783 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
11784 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
11785 | ac_status=$? |
11786 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11787 | (exit $ac_status); }; then | |
a946372e | 11788 | pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null` |
e2997b73 AK |
11789 | else |
11790 | pkg_failed=yes | |
11791 | fi | |
11792 | else | |
11793 | pkg_failed=untried | |
11794 | fi | |
a946372e AK |
11795 | if test -n "$CCS_LIBS"; then |
11796 | pkg_cv_CCS_LIBS="$CCS_LIBS" | |
e2997b73 AK |
11797 | elif test -n "$PKG_CONFIG"; then |
11798 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11799 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
11800 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
11801 | ac_status=$? |
11802 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11803 | (exit $ac_status); }; then | |
a946372e | 11804 | pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null` |
e2997b73 AK |
11805 | else |
11806 | pkg_failed=yes | |
11807 | fi | |
11808 | else | |
11809 | pkg_failed=untried | |
11810 | fi | |
11811 | ||
11812 | ||
11813 | ||
11814 | if test $pkg_failed = yes; then | |
11815 | ||
11816 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11817 | _pkg_short_errors_supported=yes | |
11818 | else | |
11819 | _pkg_short_errors_supported=no | |
11820 | fi | |
11821 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 11822 | CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1` |
e2997b73 | 11823 | else |
a946372e | 11824 | CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1` |
e2997b73 AK |
11825 | fi |
11826 | # Put the nasty error message in config.log where it belongs | |
a946372e | 11827 | echo "$CCS_PKG_ERRORS" >&5 |
e2997b73 | 11828 | |
8c4e8a18 FDN |
11829 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11830 | $as_echo "no" >&6; } | |
11831 | NOTFOUND=0 | |
e2997b73 | 11832 | |
a946372e AK |
11833 | for ac_header in ccs.h |
11834 | do | |
11835 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11836 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11837 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11838 | $as_echo_n "checking for $ac_header... " >&6; } | |
11839 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11840 | $as_echo_n "(cached) " >&6 | |
d0191583 | 11841 | fi |
a946372e AK |
11842 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11843 | $as_echo "$as_val"'` | |
11844 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11845 | $as_echo "$ac_res" >&6; } | |
fc54be10 | 11846 | else |
a946372e AK |
11847 | # Is the header compilable? |
11848 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11849 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11850 | cat >conftest.$ac_ext <<_ACEOF | |
11851 | /* confdefs.h. */ | |
11852 | _ACEOF | |
11853 | cat confdefs.h >>conftest.$ac_ext | |
11854 | cat >>conftest.$ac_ext <<_ACEOF | |
11855 | /* end confdefs.h. */ | |
11856 | $ac_includes_default | |
11857 | #include <$ac_header> | |
11858 | _ACEOF | |
11859 | rm -f conftest.$ac_objext | |
11860 | if { (ac_try="$ac_compile" | |
11861 | case "(($ac_try" in | |
11862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11863 | *) ac_try_echo=$ac_try;; | |
11864 | esac | |
11865 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11866 | $as_echo "$ac_try_echo") >&5 | |
11867 | (eval "$ac_compile") 2>conftest.er1 | |
11868 | ac_status=$? | |
11869 | grep -v '^ *+' conftest.er1 >conftest.err | |
11870 | rm -f conftest.er1 | |
11871 | cat conftest.err >&5 | |
11872 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11873 | (exit $ac_status); } && { | |
11874 | test -z "$ac_c_werror_flag" || | |
11875 | test ! -s conftest.err | |
11876 | } && test -s conftest.$ac_objext; then | |
11877 | ac_header_compiler=yes | |
11878 | else | |
11879 | $as_echo "$as_me: failed program was:" >&5 | |
11880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d0191583 | 11881 | |
a946372e | 11882 | ac_header_compiler=no |
d0191583 JM |
11883 | fi |
11884 | ||
a946372e AK |
11885 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11886 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11887 | $as_echo "$ac_header_compiler" >&6; } | |
fddafd51 | 11888 | |
a946372e AK |
11889 | # Is the header present? |
11890 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11891 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11892 | cat >conftest.$ac_ext <<_ACEOF | |
11893 | /* confdefs.h. */ | |
11894 | _ACEOF | |
11895 | cat confdefs.h >>conftest.$ac_ext | |
11896 | cat >>conftest.$ac_ext <<_ACEOF | |
11897 | /* end confdefs.h. */ | |
11898 | #include <$ac_header> | |
11899 | _ACEOF | |
11900 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11901 | case "(($ac_try" in | |
11902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11903 | *) ac_try_echo=$ac_try;; | |
11904 | esac | |
11905 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11906 | $as_echo "$ac_try_echo") >&5 | |
11907 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11908 | ac_status=$? | |
11909 | grep -v '^ *+' conftest.er1 >conftest.err | |
11910 | rm -f conftest.er1 | |
11911 | cat conftest.err >&5 | |
11912 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11913 | (exit $ac_status); } >/dev/null && { | |
11914 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11915 | test ! -s conftest.err | |
11916 | }; then | |
11917 | ac_header_preproc=yes | |
11918 | else | |
11919 | $as_echo "$as_me: failed program was:" >&5 | |
11920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11921 | ||
11922 | ac_header_preproc=no | |
11923 | fi | |
11924 | ||
11925 | rm -f conftest.err conftest.$ac_ext | |
11926 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11927 | $as_echo "$ac_header_preproc" >&6; } | |
11928 | ||
11929 | # So? What about this header? | |
11930 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11931 | yes:no: ) | |
11932 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11933 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11934 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11935 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11936 | ac_header_preproc=yes | |
11937 | ;; | |
11938 | no:yes:* ) | |
11939 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11940 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11941 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11942 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11943 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11944 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11945 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11946 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11947 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11948 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11949 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11950 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11951 | ||
11952 | ;; | |
11953 | esac | |
11954 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11955 | $as_echo_n "checking for $ac_header... " >&6; } | |
11956 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11957 | $as_echo_n "(cached) " >&6 | |
11958 | else | |
11959 | eval "$as_ac_Header=\$ac_header_preproc" | |
11960 | fi | |
11961 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11962 | $as_echo "$as_val"'` | |
11963 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11964 | $as_echo "$ac_res" >&6; } | |
11965 | ||
11966 | fi | |
11967 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11968 | $as_echo "$as_val"'` | |
11969 | if test "x$as_val" = x""yes; then | |
11970 | cat >>confdefs.h <<_ACEOF | |
11971 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11972 | _ACEOF | |
11973 | ||
11974 | else | |
11975 | $bailout | |
11976 | fi | |
11977 | ||
11978 | done | |
11979 | ||
11980 | check_lib_no_libs ccs ccs_connect | |
11981 | if test $NOTFOUND = 0; then | |
11982 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
11983 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
11984 | CCS_LIBS="-lccs" | |
11985 | HAVE_CCS=yes | |
11986 | fi | |
11987 | elif test $pkg_failed = untried; then | |
11988 | NOTFOUND=0 | |
11989 | ||
11990 | for ac_header in ccs.h | |
11991 | do | |
11992 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11993 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11994 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11995 | $as_echo_n "checking for $ac_header... " >&6; } | |
11996 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11997 | $as_echo_n "(cached) " >&6 | |
11998 | fi | |
11999 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12000 | $as_echo "$as_val"'` | |
12001 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12002 | $as_echo "$ac_res" >&6; } | |
12003 | else | |
12004 | # Is the header compilable? | |
12005 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12006 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12007 | cat >conftest.$ac_ext <<_ACEOF | |
12008 | /* confdefs.h. */ | |
12009 | _ACEOF | |
12010 | cat confdefs.h >>conftest.$ac_ext | |
12011 | cat >>conftest.$ac_ext <<_ACEOF | |
12012 | /* end confdefs.h. */ | |
12013 | $ac_includes_default | |
12014 | #include <$ac_header> | |
12015 | _ACEOF | |
12016 | rm -f conftest.$ac_objext | |
12017 | if { (ac_try="$ac_compile" | |
12018 | case "(($ac_try" in | |
12019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12020 | *) ac_try_echo=$ac_try;; | |
12021 | esac | |
12022 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12023 | $as_echo "$ac_try_echo") >&5 | |
12024 | (eval "$ac_compile") 2>conftest.er1 | |
12025 | ac_status=$? | |
12026 | grep -v '^ *+' conftest.er1 >conftest.err | |
12027 | rm -f conftest.er1 | |
12028 | cat conftest.err >&5 | |
12029 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12030 | (exit $ac_status); } && { | |
12031 | test -z "$ac_c_werror_flag" || | |
12032 | test ! -s conftest.err | |
12033 | } && test -s conftest.$ac_objext; then | |
12034 | ac_header_compiler=yes | |
12035 | else | |
12036 | $as_echo "$as_me: failed program was:" >&5 | |
12037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12038 | ||
12039 | ac_header_compiler=no | |
12040 | fi | |
12041 | ||
12042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12043 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12044 | $as_echo "$ac_header_compiler" >&6; } | |
12045 | ||
12046 | # Is the header present? | |
12047 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12048 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12049 | cat >conftest.$ac_ext <<_ACEOF | |
12050 | /* confdefs.h. */ | |
12051 | _ACEOF | |
12052 | cat confdefs.h >>conftest.$ac_ext | |
12053 | cat >>conftest.$ac_ext <<_ACEOF | |
12054 | /* end confdefs.h. */ | |
12055 | #include <$ac_header> | |
12056 | _ACEOF | |
12057 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12058 | case "(($ac_try" in | |
12059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12060 | *) ac_try_echo=$ac_try;; | |
12061 | esac | |
12062 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12063 | $as_echo "$ac_try_echo") >&5 | |
12064 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12065 | ac_status=$? | |
12066 | grep -v '^ *+' conftest.er1 >conftest.err | |
12067 | rm -f conftest.er1 | |
12068 | cat conftest.err >&5 | |
12069 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12070 | (exit $ac_status); } >/dev/null && { | |
12071 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12072 | test ! -s conftest.err | |
12073 | }; then | |
12074 | ac_header_preproc=yes | |
12075 | else | |
12076 | $as_echo "$as_me: failed program was:" >&5 | |
12077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12078 | ||
12079 | ac_header_preproc=no | |
12080 | fi | |
12081 | ||
12082 | rm -f conftest.err conftest.$ac_ext | |
12083 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12084 | $as_echo "$ac_header_preproc" >&6; } | |
12085 | ||
12086 | # So? What about this header? | |
12087 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12088 | yes:no: ) | |
12089 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12090 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12091 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12092 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12093 | ac_header_preproc=yes | |
12094 | ;; | |
12095 | no:yes:* ) | |
12096 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12097 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12098 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12099 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12100 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12101 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12102 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12103 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12104 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12105 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12106 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12107 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12108 | ||
12109 | ;; | |
12110 | esac | |
12111 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12112 | $as_echo_n "checking for $ac_header... " >&6; } | |
12113 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12114 | $as_echo_n "(cached) " >&6 | |
12115 | else | |
12116 | eval "$as_ac_Header=\$ac_header_preproc" | |
12117 | fi | |
12118 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12119 | $as_echo "$as_val"'` | |
12120 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12121 | $as_echo "$ac_res" >&6; } | |
12122 | ||
12123 | fi | |
12124 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12125 | $as_echo "$as_val"'` | |
12126 | if test "x$as_val" = x""yes; then | |
12127 | cat >>confdefs.h <<_ACEOF | |
12128 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12129 | _ACEOF | |
12130 | ||
12131 | else | |
12132 | $bailout | |
12133 | fi | |
12134 | ||
12135 | done | |
12136 | ||
12137 | check_lib_no_libs ccs ccs_connect | |
12138 | if test $NOTFOUND = 0; then | |
12139 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
12140 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
12141 | CCS_LIBS="-lccs" | |
12142 | HAVE_CCS=yes | |
12143 | fi | |
12144 | else | |
12145 | CCS_CFLAGS=$pkg_cv_CCS_CFLAGS | |
12146 | CCS_LIBS=$pkg_cv_CCS_LIBS | |
12147 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12148 | $as_echo "yes" >&6; } | |
12149 | HAVE_CCS=yes | |
12150 | fi | |
12151 | ||
12152 | pkg_failed=no | |
12153 | { $as_echo "$as_me:$LINENO: checking for GULM" >&5 | |
12154 | $as_echo_n "checking for GULM... " >&6; } | |
12155 | ||
12156 | if test -n "$GULM_CFLAGS"; then | |
12157 | pkg_cv_GULM_CFLAGS="$GULM_CFLAGS" | |
12158 | elif test -n "$PKG_CONFIG"; then | |
12159 | if test -n "$PKG_CONFIG" && \ | |
12160 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
12161 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
12162 | ac_status=$? | |
12163 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12164 | (exit $ac_status); }; then | |
12165 | pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null` | |
12166 | else | |
12167 | pkg_failed=yes | |
12168 | fi | |
12169 | else | |
12170 | pkg_failed=untried | |
12171 | fi | |
12172 | if test -n "$GULM_LIBS"; then | |
12173 | pkg_cv_GULM_LIBS="$GULM_LIBS" | |
12174 | elif test -n "$PKG_CONFIG"; then | |
12175 | if test -n "$PKG_CONFIG" && \ | |
12176 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
12177 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
12178 | ac_status=$? | |
12179 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12180 | (exit $ac_status); }; then | |
12181 | pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null` | |
12182 | else | |
12183 | pkg_failed=yes | |
12184 | fi | |
12185 | else | |
12186 | pkg_failed=untried | |
12187 | fi | |
12188 | ||
12189 | ||
12190 | ||
12191 | if test $pkg_failed = yes; then | |
12192 | ||
12193 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12194 | _pkg_short_errors_supported=yes | |
12195 | else | |
12196 | _pkg_short_errors_supported=no | |
12197 | fi | |
12198 | if test $_pkg_short_errors_supported = yes; then | |
12199 | GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1` | |
12200 | else | |
12201 | GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1` | |
12202 | fi | |
12203 | # Put the nasty error message in config.log where it belongs | |
12204 | echo "$GULM_PKG_ERRORS" >&5 | |
12205 | ||
8c4e8a18 FDN |
12206 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12207 | $as_echo "no" >&6; } | |
12208 | NOTFOUND=0 | |
a946372e AK |
12209 | |
12210 | for ac_header in libgulm.h | |
12211 | do | |
12212 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12213 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12214 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12215 | $as_echo_n "checking for $ac_header... " >&6; } | |
12216 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12217 | $as_echo_n "(cached) " >&6 | |
12218 | fi | |
12219 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12220 | $as_echo "$as_val"'` | |
12221 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12222 | $as_echo "$ac_res" >&6; } | |
12223 | else | |
12224 | # Is the header compilable? | |
12225 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12226 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12227 | cat >conftest.$ac_ext <<_ACEOF | |
12228 | /* confdefs.h. */ | |
12229 | _ACEOF | |
12230 | cat confdefs.h >>conftest.$ac_ext | |
12231 | cat >>conftest.$ac_ext <<_ACEOF | |
12232 | /* end confdefs.h. */ | |
12233 | $ac_includes_default | |
12234 | #include <$ac_header> | |
12235 | _ACEOF | |
12236 | rm -f conftest.$ac_objext | |
12237 | if { (ac_try="$ac_compile" | |
12238 | case "(($ac_try" in | |
12239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12240 | *) ac_try_echo=$ac_try;; | |
12241 | esac | |
12242 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12243 | $as_echo "$ac_try_echo") >&5 | |
12244 | (eval "$ac_compile") 2>conftest.er1 | |
12245 | ac_status=$? | |
12246 | grep -v '^ *+' conftest.er1 >conftest.err | |
12247 | rm -f conftest.er1 | |
12248 | cat conftest.err >&5 | |
12249 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12250 | (exit $ac_status); } && { | |
12251 | test -z "$ac_c_werror_flag" || | |
12252 | test ! -s conftest.err | |
12253 | } && test -s conftest.$ac_objext; then | |
12254 | ac_header_compiler=yes | |
12255 | else | |
12256 | $as_echo "$as_me: failed program was:" >&5 | |
12257 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12258 | ||
12259 | ac_header_compiler=no | |
12260 | fi | |
12261 | ||
12262 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12263 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12264 | $as_echo "$ac_header_compiler" >&6; } | |
12265 | ||
12266 | # Is the header present? | |
12267 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12268 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12269 | cat >conftest.$ac_ext <<_ACEOF | |
12270 | /* confdefs.h. */ | |
12271 | _ACEOF | |
12272 | cat confdefs.h >>conftest.$ac_ext | |
12273 | cat >>conftest.$ac_ext <<_ACEOF | |
12274 | /* end confdefs.h. */ | |
12275 | #include <$ac_header> | |
12276 | _ACEOF | |
12277 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12278 | case "(($ac_try" in | |
12279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12280 | *) ac_try_echo=$ac_try;; | |
12281 | esac | |
12282 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12283 | $as_echo "$ac_try_echo") >&5 | |
12284 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12285 | ac_status=$? | |
12286 | grep -v '^ *+' conftest.er1 >conftest.err | |
12287 | rm -f conftest.er1 | |
12288 | cat conftest.err >&5 | |
12289 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12290 | (exit $ac_status); } >/dev/null && { | |
12291 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12292 | test ! -s conftest.err | |
12293 | }; then | |
12294 | ac_header_preproc=yes | |
12295 | else | |
12296 | $as_echo "$as_me: failed program was:" >&5 | |
12297 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12298 | ||
12299 | ac_header_preproc=no | |
12300 | fi | |
12301 | ||
12302 | rm -f conftest.err conftest.$ac_ext | |
12303 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12304 | $as_echo "$ac_header_preproc" >&6; } | |
12305 | ||
12306 | # So? What about this header? | |
12307 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12308 | yes:no: ) | |
12309 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12310 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12311 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12312 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12313 | ac_header_preproc=yes | |
12314 | ;; | |
12315 | no:yes:* ) | |
12316 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12317 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12318 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12319 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12320 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12321 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12322 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12323 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12324 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12325 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12326 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12327 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12328 | ||
12329 | ;; | |
12330 | esac | |
12331 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12332 | $as_echo_n "checking for $ac_header... " >&6; } | |
12333 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12334 | $as_echo_n "(cached) " >&6 | |
12335 | else | |
12336 | eval "$as_ac_Header=\$ac_header_preproc" | |
12337 | fi | |
12338 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12339 | $as_echo "$as_val"'` | |
12340 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12341 | $as_echo "$ac_res" >&6; } | |
12342 | ||
12343 | fi | |
12344 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12345 | $as_echo "$as_val"'` | |
12346 | if test "x$as_val" = x""yes; then | |
12347 | cat >>confdefs.h <<_ACEOF | |
12348 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12349 | _ACEOF | |
12350 | ||
12351 | else | |
12352 | $bailout | |
12353 | fi | |
12354 | ||
12355 | done | |
12356 | ||
12357 | check_lib_no_libs gulm lg_core_login | |
12358 | if test $NOTFOUND = 0; then | |
12359 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
12360 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
12361 | GULM_LIBS="-lgulm" | |
12362 | HAVE_GULM=yes | |
12363 | fi | |
12364 | elif test $pkg_failed = untried; then | |
12365 | NOTFOUND=0 | |
12366 | ||
12367 | for ac_header in libgulm.h | |
12368 | do | |
12369 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12370 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12371 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12372 | $as_echo_n "checking for $ac_header... " >&6; } | |
12373 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12374 | $as_echo_n "(cached) " >&6 | |
12375 | fi | |
12376 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12377 | $as_echo "$as_val"'` | |
12378 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12379 | $as_echo "$ac_res" >&6; } | |
12380 | else | |
12381 | # Is the header compilable? | |
12382 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12383 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12384 | cat >conftest.$ac_ext <<_ACEOF | |
12385 | /* confdefs.h. */ | |
12386 | _ACEOF | |
12387 | cat confdefs.h >>conftest.$ac_ext | |
12388 | cat >>conftest.$ac_ext <<_ACEOF | |
12389 | /* end confdefs.h. */ | |
12390 | $ac_includes_default | |
12391 | #include <$ac_header> | |
12392 | _ACEOF | |
12393 | rm -f conftest.$ac_objext | |
12394 | if { (ac_try="$ac_compile" | |
12395 | case "(($ac_try" in | |
12396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12397 | *) ac_try_echo=$ac_try;; | |
12398 | esac | |
12399 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12400 | $as_echo "$ac_try_echo") >&5 | |
12401 | (eval "$ac_compile") 2>conftest.er1 | |
12402 | ac_status=$? | |
12403 | grep -v '^ *+' conftest.er1 >conftest.err | |
12404 | rm -f conftest.er1 | |
12405 | cat conftest.err >&5 | |
12406 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12407 | (exit $ac_status); } && { | |
12408 | test -z "$ac_c_werror_flag" || | |
12409 | test ! -s conftest.err | |
12410 | } && test -s conftest.$ac_objext; then | |
12411 | ac_header_compiler=yes | |
12412 | else | |
12413 | $as_echo "$as_me: failed program was:" >&5 | |
12414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12415 | ||
12416 | ac_header_compiler=no | |
12417 | fi | |
12418 | ||
12419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12420 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12421 | $as_echo "$ac_header_compiler" >&6; } | |
12422 | ||
12423 | # Is the header present? | |
12424 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12425 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12426 | cat >conftest.$ac_ext <<_ACEOF | |
12427 | /* confdefs.h. */ | |
12428 | _ACEOF | |
12429 | cat confdefs.h >>conftest.$ac_ext | |
12430 | cat >>conftest.$ac_ext <<_ACEOF | |
12431 | /* end confdefs.h. */ | |
12432 | #include <$ac_header> | |
12433 | _ACEOF | |
12434 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12435 | case "(($ac_try" in | |
12436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12437 | *) ac_try_echo=$ac_try;; | |
12438 | esac | |
12439 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12440 | $as_echo "$ac_try_echo") >&5 | |
12441 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12442 | ac_status=$? | |
12443 | grep -v '^ *+' conftest.er1 >conftest.err | |
12444 | rm -f conftest.er1 | |
12445 | cat conftest.err >&5 | |
12446 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12447 | (exit $ac_status); } >/dev/null && { | |
12448 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12449 | test ! -s conftest.err | |
12450 | }; then | |
12451 | ac_header_preproc=yes | |
12452 | else | |
12453 | $as_echo "$as_me: failed program was:" >&5 | |
12454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12455 | ||
12456 | ac_header_preproc=no | |
12457 | fi | |
12458 | ||
12459 | rm -f conftest.err conftest.$ac_ext | |
12460 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12461 | $as_echo "$ac_header_preproc" >&6; } | |
12462 | ||
12463 | # So? What about this header? | |
12464 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12465 | yes:no: ) | |
12466 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12467 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12468 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12469 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12470 | ac_header_preproc=yes | |
12471 | ;; | |
12472 | no:yes:* ) | |
12473 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12474 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12475 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12476 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12477 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12478 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12479 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12480 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12481 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12482 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12483 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12484 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12485 | ||
12486 | ;; | |
12487 | esac | |
12488 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12489 | $as_echo_n "checking for $ac_header... " >&6; } | |
12490 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12491 | $as_echo_n "(cached) " >&6 | |
12492 | else | |
12493 | eval "$as_ac_Header=\$ac_header_preproc" | |
12494 | fi | |
12495 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12496 | $as_echo "$as_val"'` | |
12497 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12498 | $as_echo "$ac_res" >&6; } | |
12499 | ||
12500 | fi | |
12501 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12502 | $as_echo "$as_val"'` | |
12503 | if test "x$as_val" = x""yes; then | |
12504 | cat >>confdefs.h <<_ACEOF | |
12505 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12506 | _ACEOF | |
12507 | ||
12508 | else | |
12509 | $bailout | |
12510 | fi | |
12511 | ||
12512 | done | |
12513 | ||
12514 | check_lib_no_libs gulm lg_core_login | |
12515 | if test $NOTFOUND = 0; then | |
12516 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
12517 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
12518 | GULM_LIBS="-lgulm" | |
12519 | HAVE_GULM=yes | |
12520 | fi | |
12521 | else | |
12522 | GULM_CFLAGS=$pkg_cv_GULM_CFLAGS | |
12523 | GULM_LIBS=$pkg_cv_GULM_LIBS | |
12524 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12525 | $as_echo "yes" >&6; } | |
12526 | HAVE_GULM=yes | |
12527 | fi | |
12528 | fi | |
12529 | ||
12530 | if test x$BUILDCMAN = xyes; then | |
12531 | ||
12532 | pkg_failed=no | |
12533 | { $as_echo "$as_me:$LINENO: checking for CMAN" >&5 | |
12534 | $as_echo_n "checking for CMAN... " >&6; } | |
12535 | ||
12536 | if test -n "$CMAN_CFLAGS"; then | |
12537 | pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS" | |
12538 | elif test -n "$PKG_CONFIG"; then | |
12539 | if test -n "$PKG_CONFIG" && \ | |
12540 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
12541 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
12542 | ac_status=$? | |
12543 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12544 | (exit $ac_status); }; then | |
12545 | pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null` | |
12546 | else | |
12547 | pkg_failed=yes | |
12548 | fi | |
12549 | else | |
12550 | pkg_failed=untried | |
12551 | fi | |
12552 | if test -n "$CMAN_LIBS"; then | |
12553 | pkg_cv_CMAN_LIBS="$CMAN_LIBS" | |
12554 | elif test -n "$PKG_CONFIG"; then | |
12555 | if test -n "$PKG_CONFIG" && \ | |
12556 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
12557 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
12558 | ac_status=$? | |
12559 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12560 | (exit $ac_status); }; then | |
12561 | pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null` | |
12562 | else | |
12563 | pkg_failed=yes | |
12564 | fi | |
12565 | else | |
12566 | pkg_failed=untried | |
12567 | fi | |
12568 | ||
12569 | ||
12570 | ||
12571 | if test $pkg_failed = yes; then | |
12572 | ||
12573 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12574 | _pkg_short_errors_supported=yes | |
12575 | else | |
12576 | _pkg_short_errors_supported=no | |
12577 | fi | |
12578 | if test $_pkg_short_errors_supported = yes; then | |
12579 | CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1` | |
12580 | else | |
12581 | CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1` | |
12582 | fi | |
12583 | # Put the nasty error message in config.log where it belongs | |
12584 | echo "$CMAN_PKG_ERRORS" >&5 | |
12585 | ||
8c4e8a18 FDN |
12586 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12587 | $as_echo "no" >&6; } | |
12588 | NOTFOUND=0 | |
a946372e AK |
12589 | |
12590 | for ac_header in libcman.h | |
12591 | do | |
12592 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12593 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12594 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12595 | $as_echo_n "checking for $ac_header... " >&6; } | |
12596 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12597 | $as_echo_n "(cached) " >&6 | |
12598 | fi | |
12599 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12600 | $as_echo "$as_val"'` | |
12601 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12602 | $as_echo "$ac_res" >&6; } | |
12603 | else | |
12604 | # Is the header compilable? | |
12605 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12606 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12607 | cat >conftest.$ac_ext <<_ACEOF | |
12608 | /* confdefs.h. */ | |
12609 | _ACEOF | |
12610 | cat confdefs.h >>conftest.$ac_ext | |
12611 | cat >>conftest.$ac_ext <<_ACEOF | |
12612 | /* end confdefs.h. */ | |
12613 | $ac_includes_default | |
12614 | #include <$ac_header> | |
12615 | _ACEOF | |
12616 | rm -f conftest.$ac_objext | |
12617 | if { (ac_try="$ac_compile" | |
12618 | case "(($ac_try" in | |
12619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12620 | *) ac_try_echo=$ac_try;; | |
12621 | esac | |
12622 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12623 | $as_echo "$ac_try_echo") >&5 | |
12624 | (eval "$ac_compile") 2>conftest.er1 | |
12625 | ac_status=$? | |
12626 | grep -v '^ *+' conftest.er1 >conftest.err | |
12627 | rm -f conftest.er1 | |
12628 | cat conftest.err >&5 | |
12629 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12630 | (exit $ac_status); } && { | |
12631 | test -z "$ac_c_werror_flag" || | |
12632 | test ! -s conftest.err | |
12633 | } && test -s conftest.$ac_objext; then | |
12634 | ac_header_compiler=yes | |
12635 | else | |
12636 | $as_echo "$as_me: failed program was:" >&5 | |
12637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12638 | ||
12639 | ac_header_compiler=no | |
12640 | fi | |
12641 | ||
12642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12643 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12644 | $as_echo "$ac_header_compiler" >&6; } | |
12645 | ||
12646 | # Is the header present? | |
12647 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12648 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12649 | cat >conftest.$ac_ext <<_ACEOF | |
12650 | /* confdefs.h. */ | |
12651 | _ACEOF | |
12652 | cat confdefs.h >>conftest.$ac_ext | |
12653 | cat >>conftest.$ac_ext <<_ACEOF | |
12654 | /* end confdefs.h. */ | |
12655 | #include <$ac_header> | |
12656 | _ACEOF | |
12657 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12658 | case "(($ac_try" in | |
12659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12660 | *) ac_try_echo=$ac_try;; | |
12661 | esac | |
12662 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12663 | $as_echo "$ac_try_echo") >&5 | |
12664 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12665 | ac_status=$? | |
12666 | grep -v '^ *+' conftest.er1 >conftest.err | |
12667 | rm -f conftest.er1 | |
12668 | cat conftest.err >&5 | |
12669 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12670 | (exit $ac_status); } >/dev/null && { | |
12671 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12672 | test ! -s conftest.err | |
12673 | }; then | |
12674 | ac_header_preproc=yes | |
12675 | else | |
12676 | $as_echo "$as_me: failed program was:" >&5 | |
12677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12678 | ||
12679 | ac_header_preproc=no | |
12680 | fi | |
12681 | ||
12682 | rm -f conftest.err conftest.$ac_ext | |
12683 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12684 | $as_echo "$ac_header_preproc" >&6; } | |
12685 | ||
12686 | # So? What about this header? | |
12687 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12688 | yes:no: ) | |
12689 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12690 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12691 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12692 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12693 | ac_header_preproc=yes | |
12694 | ;; | |
12695 | no:yes:* ) | |
12696 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12697 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12698 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12699 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12700 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12701 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12702 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12703 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12704 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12705 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12706 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12707 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12708 | ||
12709 | ;; | |
12710 | esac | |
12711 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12712 | $as_echo_n "checking for $ac_header... " >&6; } | |
12713 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12714 | $as_echo_n "(cached) " >&6 | |
12715 | else | |
12716 | eval "$as_ac_Header=\$ac_header_preproc" | |
12717 | fi | |
12718 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12719 | $as_echo "$as_val"'` | |
12720 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12721 | $as_echo "$ac_res" >&6; } | |
12722 | ||
12723 | fi | |
12724 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12725 | $as_echo "$as_val"'` | |
12726 | if test "x$as_val" = x""yes; then | |
12727 | cat >>confdefs.h <<_ACEOF | |
12728 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12729 | _ACEOF | |
12730 | ||
12731 | else | |
12732 | $bailout | |
12733 | fi | |
12734 | ||
12735 | done | |
12736 | ||
12737 | check_lib_no_libs cman cman_init | |
12738 | if test $NOTFOUND = 0; then | |
12739 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
12740 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
12741 | CMAN_LIBS="-lcman" | |
12742 | HAVE_CMAN=yes | |
12743 | fi | |
12744 | elif test $pkg_failed = untried; then | |
12745 | NOTFOUND=0 | |
12746 | ||
12747 | for ac_header in libcman.h | |
12748 | do | |
12749 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12750 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12751 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12752 | $as_echo_n "checking for $ac_header... " >&6; } | |
12753 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12754 | $as_echo_n "(cached) " >&6 | |
12755 | fi | |
12756 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12757 | $as_echo "$as_val"'` | |
12758 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12759 | $as_echo "$ac_res" >&6; } | |
12760 | else | |
12761 | # Is the header compilable? | |
12762 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12763 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12764 | cat >conftest.$ac_ext <<_ACEOF | |
12765 | /* confdefs.h. */ | |
12766 | _ACEOF | |
12767 | cat confdefs.h >>conftest.$ac_ext | |
12768 | cat >>conftest.$ac_ext <<_ACEOF | |
12769 | /* end confdefs.h. */ | |
12770 | $ac_includes_default | |
12771 | #include <$ac_header> | |
12772 | _ACEOF | |
12773 | rm -f conftest.$ac_objext | |
12774 | if { (ac_try="$ac_compile" | |
12775 | case "(($ac_try" in | |
12776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12777 | *) ac_try_echo=$ac_try;; | |
12778 | esac | |
12779 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12780 | $as_echo "$ac_try_echo") >&5 | |
12781 | (eval "$ac_compile") 2>conftest.er1 | |
12782 | ac_status=$? | |
12783 | grep -v '^ *+' conftest.er1 >conftest.err | |
12784 | rm -f conftest.er1 | |
12785 | cat conftest.err >&5 | |
12786 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12787 | (exit $ac_status); } && { | |
12788 | test -z "$ac_c_werror_flag" || | |
12789 | test ! -s conftest.err | |
12790 | } && test -s conftest.$ac_objext; then | |
12791 | ac_header_compiler=yes | |
12792 | else | |
12793 | $as_echo "$as_me: failed program was:" >&5 | |
12794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12795 | ||
12796 | ac_header_compiler=no | |
12797 | fi | |
12798 | ||
12799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12800 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12801 | $as_echo "$ac_header_compiler" >&6; } | |
12802 | ||
12803 | # Is the header present? | |
12804 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12805 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12806 | cat >conftest.$ac_ext <<_ACEOF | |
12807 | /* confdefs.h. */ | |
12808 | _ACEOF | |
12809 | cat confdefs.h >>conftest.$ac_ext | |
12810 | cat >>conftest.$ac_ext <<_ACEOF | |
12811 | /* end confdefs.h. */ | |
12812 | #include <$ac_header> | |
12813 | _ACEOF | |
12814 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12815 | case "(($ac_try" in | |
12816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12817 | *) ac_try_echo=$ac_try;; | |
12818 | esac | |
12819 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12820 | $as_echo "$ac_try_echo") >&5 | |
12821 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12822 | ac_status=$? | |
12823 | grep -v '^ *+' conftest.er1 >conftest.err | |
12824 | rm -f conftest.er1 | |
12825 | cat conftest.err >&5 | |
12826 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12827 | (exit $ac_status); } >/dev/null && { | |
12828 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12829 | test ! -s conftest.err | |
12830 | }; then | |
12831 | ac_header_preproc=yes | |
12832 | else | |
12833 | $as_echo "$as_me: failed program was:" >&5 | |
12834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12835 | ||
12836 | ac_header_preproc=no | |
12837 | fi | |
12838 | ||
12839 | rm -f conftest.err conftest.$ac_ext | |
12840 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12841 | $as_echo "$ac_header_preproc" >&6; } | |
12842 | ||
12843 | # So? What about this header? | |
12844 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12845 | yes:no: ) | |
12846 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12847 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12848 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12849 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12850 | ac_header_preproc=yes | |
12851 | ;; | |
12852 | no:yes:* ) | |
12853 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12854 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12855 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12856 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12857 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12858 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12859 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12860 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12861 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12862 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12863 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12864 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12865 | ||
12866 | ;; | |
12867 | esac | |
12868 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12869 | $as_echo_n "checking for $ac_header... " >&6; } | |
12870 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12871 | $as_echo_n "(cached) " >&6 | |
12872 | else | |
12873 | eval "$as_ac_Header=\$ac_header_preproc" | |
12874 | fi | |
12875 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12876 | $as_echo "$as_val"'` | |
12877 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12878 | $as_echo "$ac_res" >&6; } | |
12879 | ||
12880 | fi | |
12881 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12882 | $as_echo "$as_val"'` | |
12883 | if test "x$as_val" = x""yes; then | |
12884 | cat >>confdefs.h <<_ACEOF | |
12885 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12886 | _ACEOF | |
12887 | ||
12888 | else | |
12889 | $bailout | |
12890 | fi | |
12891 | ||
12892 | done | |
12893 | ||
12894 | check_lib_no_libs cman cman_init | |
12895 | if test $NOTFOUND = 0; then | |
12896 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
12897 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
12898 | CMAN_LIBS="-lcman" | |
12899 | HAVE_CMAN=yes | |
12900 | fi | |
12901 | else | |
12902 | CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS | |
12903 | CMAN_LIBS=$pkg_cv_CMAN_LIBS | |
12904 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12905 | $as_echo "yes" >&6; } | |
12906 | HAVE_CMAN=yes | |
12907 | fi | |
12908 | CHECKCONFDB=yes | |
12909 | CHECKDLM=yes | |
12910 | fi | |
12911 | ||
12912 | if test x$BUILDCOROSYNC = xyes || \ | |
12913 | test x$BUILDOPENAIS = xyes; then | |
12914 | ||
12915 | pkg_failed=no | |
12916 | { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5 | |
12917 | $as_echo_n "checking for COROSYNC... " >&6; } | |
12918 | ||
12919 | if test -n "$COROSYNC_CFLAGS"; then | |
12920 | pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS" | |
12921 | elif test -n "$PKG_CONFIG"; then | |
12922 | if test -n "$PKG_CONFIG" && \ | |
12923 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
12924 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
12925 | ac_status=$? | |
12926 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12927 | (exit $ac_status); }; then | |
12928 | pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null` | |
12929 | else | |
12930 | pkg_failed=yes | |
12931 | fi | |
12932 | else | |
12933 | pkg_failed=untried | |
12934 | fi | |
12935 | if test -n "$COROSYNC_LIBS"; then | |
12936 | pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS" | |
12937 | elif test -n "$PKG_CONFIG"; then | |
12938 | if test -n "$PKG_CONFIG" && \ | |
12939 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
12940 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
12941 | ac_status=$? | |
12942 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12943 | (exit $ac_status); }; then | |
12944 | pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null` | |
12945 | else | |
12946 | pkg_failed=yes | |
12947 | fi | |
12948 | else | |
12949 | pkg_failed=untried | |
12950 | fi | |
12951 | ||
12952 | ||
12953 | ||
12954 | if test $pkg_failed = yes; then | |
12955 | ||
12956 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12957 | _pkg_short_errors_supported=yes | |
12958 | else | |
12959 | _pkg_short_errors_supported=no | |
12960 | fi | |
12961 | if test $_pkg_short_errors_supported = yes; then | |
12962 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1` | |
12963 | else | |
12964 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1` | |
12965 | fi | |
12966 | # Put the nasty error message in config.log where it belongs | |
12967 | echo "$COROSYNC_PKG_ERRORS" >&5 | |
12968 | ||
8c4e8a18 | 12969 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 12970 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
12971 | $bailout |
12972 | elif test $pkg_failed = untried; then | |
a946372e AK |
12973 | $bailout |
12974 | else | |
12975 | COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS | |
12976 | COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS | |
12977 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12978 | $as_echo "yes" >&6; } | |
12979 | HAVE_COROSYNC=yes | |
12980 | fi | |
12981 | CHECKCONFDB=yes | |
12982 | fi | |
12983 | ||
12984 | if test x$BUILDCOROSYNC = xyes; then | |
12985 | ||
12986 | pkg_failed=no | |
12987 | { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5 | |
12988 | $as_echo_n "checking for QUORUM... " >&6; } | |
12989 | ||
12990 | if test -n "$QUORUM_CFLAGS"; then | |
12991 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
12992 | elif test -n "$PKG_CONFIG"; then | |
12993 | if test -n "$PKG_CONFIG" && \ | |
12994 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
12995 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
12996 | ac_status=$? | |
12997 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12998 | (exit $ac_status); }; then | |
12999 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
13000 | else | |
13001 | pkg_failed=yes | |
13002 | fi | |
13003 | else | |
13004 | pkg_failed=untried | |
13005 | fi | |
13006 | if test -n "$QUORUM_LIBS"; then | |
13007 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
13008 | elif test -n "$PKG_CONFIG"; then | |
13009 | if test -n "$PKG_CONFIG" && \ | |
13010 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
13011 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
13012 | ac_status=$? | |
13013 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13014 | (exit $ac_status); }; then | |
13015 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
13016 | else | |
13017 | pkg_failed=yes | |
13018 | fi | |
13019 | else | |
13020 | pkg_failed=untried | |
13021 | fi | |
13022 | ||
13023 | ||
13024 | ||
13025 | if test $pkg_failed = yes; then | |
13026 | ||
13027 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13028 | _pkg_short_errors_supported=yes | |
13029 | else | |
13030 | _pkg_short_errors_supported=no | |
13031 | fi | |
13032 | if test $_pkg_short_errors_supported = yes; then | |
13033 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
13034 | else | |
13035 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
13036 | fi | |
13037 | # Put the nasty error message in config.log where it belongs | |
13038 | echo "$QUORUM_PKG_ERRORS" >&5 | |
13039 | ||
8c4e8a18 | 13040 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 13041 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
13042 | $bailout |
13043 | elif test $pkg_failed = untried; then | |
a946372e AK |
13044 | $bailout |
13045 | else | |
13046 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
13047 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
13048 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13049 | $as_echo "yes" >&6; } | |
13050 | HAVE_QUORUM=yes | |
13051 | fi | |
13052 | CHECKCPG=yes | |
13053 | CHECKDLM=yes | |
13054 | fi | |
13055 | ||
13056 | if test x$BUILDOPENAIS = xyes; then | |
13057 | ||
13058 | pkg_failed=no | |
13059 | { $as_echo "$as_me:$LINENO: checking for SALCK" >&5 | |
13060 | $as_echo_n "checking for SALCK... " >&6; } | |
13061 | ||
13062 | if test -n "$SALCK_CFLAGS"; then | |
13063 | pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS" | |
13064 | elif test -n "$PKG_CONFIG"; then | |
13065 | if test -n "$PKG_CONFIG" && \ | |
13066 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
13067 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
13068 | ac_status=$? | |
13069 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13070 | (exit $ac_status); }; then | |
13071 | pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null` | |
13072 | else | |
13073 | pkg_failed=yes | |
13074 | fi | |
13075 | else | |
13076 | pkg_failed=untried | |
13077 | fi | |
13078 | if test -n "$SALCK_LIBS"; then | |
13079 | pkg_cv_SALCK_LIBS="$SALCK_LIBS" | |
13080 | elif test -n "$PKG_CONFIG"; then | |
13081 | if test -n "$PKG_CONFIG" && \ | |
13082 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
13083 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
13084 | ac_status=$? | |
13085 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13086 | (exit $ac_status); }; then | |
13087 | pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null` | |
13088 | else | |
13089 | pkg_failed=yes | |
13090 | fi | |
13091 | else | |
13092 | pkg_failed=untried | |
13093 | fi | |
13094 | ||
13095 | ||
13096 | ||
13097 | if test $pkg_failed = yes; then | |
13098 | ||
13099 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13100 | _pkg_short_errors_supported=yes | |
13101 | else | |
13102 | _pkg_short_errors_supported=no | |
13103 | fi | |
13104 | if test $_pkg_short_errors_supported = yes; then | |
13105 | SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1` | |
13106 | else | |
13107 | SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1` | |
13108 | fi | |
13109 | # Put the nasty error message in config.log where it belongs | |
13110 | echo "$SALCK_PKG_ERRORS" >&5 | |
13111 | ||
8c4e8a18 | 13112 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 13113 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
13114 | $bailout |
13115 | elif test $pkg_failed = untried; then | |
a946372e AK |
13116 | $bailout |
13117 | else | |
13118 | SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS | |
13119 | SALCK_LIBS=$pkg_cv_SALCK_LIBS | |
13120 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13121 | $as_echo "yes" >&6; } | |
13122 | HAVE_SALCK=yes | |
13123 | fi | |
13124 | CHECKCPG=yes | |
13125 | fi | |
13126 | ||
13127 | ||
13128 | ||
13129 | if test x$CHECKCONFDB = xyes; then | |
13130 | ||
13131 | pkg_failed=no | |
13132 | { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5 | |
13133 | $as_echo_n "checking for CONFDB... " >&6; } | |
13134 | ||
13135 | if test -n "$CONFDB_CFLAGS"; then | |
13136 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
13137 | elif test -n "$PKG_CONFIG"; then | |
13138 | if test -n "$PKG_CONFIG" && \ | |
13139 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
13140 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
13141 | ac_status=$? | |
13142 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13143 | (exit $ac_status); }; then | |
13144 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
13145 | else | |
13146 | pkg_failed=yes | |
13147 | fi | |
13148 | else | |
13149 | pkg_failed=untried | |
13150 | fi | |
13151 | if test -n "$CONFDB_LIBS"; then | |
13152 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
13153 | elif test -n "$PKG_CONFIG"; then | |
13154 | if test -n "$PKG_CONFIG" && \ | |
13155 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
13156 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
13157 | ac_status=$? | |
13158 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13159 | (exit $ac_status); }; then | |
13160 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
13161 | else | |
13162 | pkg_failed=yes | |
13163 | fi | |
13164 | else | |
13165 | pkg_failed=untried | |
13166 | fi | |
13167 | ||
13168 | ||
13169 | ||
13170 | if test $pkg_failed = yes; then | |
13171 | ||
13172 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13173 | _pkg_short_errors_supported=yes | |
13174 | else | |
13175 | _pkg_short_errors_supported=no | |
13176 | fi | |
13177 | if test $_pkg_short_errors_supported = yes; then | |
13178 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
13179 | else | |
13180 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
13181 | fi | |
13182 | # Put the nasty error message in config.log where it belongs | |
13183 | echo "$CONFDB_PKG_ERRORS" >&5 | |
13184 | ||
8c4e8a18 | 13185 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 13186 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
13187 | HAVE_CONFDB=no |
13188 | elif test $pkg_failed = untried; then | |
a946372e AK |
13189 | HAVE_CONFDB=no |
13190 | else | |
13191 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
13192 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
13193 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13194 | $as_echo "yes" >&6; } | |
13195 | HAVE_CONFDB=yes | |
13196 | fi | |
13197 | ||
13198 | ||
13199 | for ac_header in corosync/confdb.h | |
13200 | do | |
13201 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13202 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13203 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13204 | $as_echo_n "checking for $ac_header... " >&6; } | |
13205 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13206 | $as_echo_n "(cached) " >&6 | |
13207 | fi | |
13208 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13209 | $as_echo "$as_val"'` | |
13210 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13211 | $as_echo "$ac_res" >&6; } | |
13212 | else | |
13213 | # Is the header compilable? | |
13214 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13215 | $as_echo_n "checking $ac_header usability... " >&6; } | |
13216 | cat >conftest.$ac_ext <<_ACEOF | |
13217 | /* confdefs.h. */ | |
13218 | _ACEOF | |
13219 | cat confdefs.h >>conftest.$ac_ext | |
13220 | cat >>conftest.$ac_ext <<_ACEOF | |
13221 | /* end confdefs.h. */ | |
13222 | $ac_includes_default | |
13223 | #include <$ac_header> | |
13224 | _ACEOF | |
13225 | rm -f conftest.$ac_objext | |
13226 | if { (ac_try="$ac_compile" | |
13227 | case "(($ac_try" in | |
13228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13229 | *) ac_try_echo=$ac_try;; | |
13230 | esac | |
13231 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13232 | $as_echo "$ac_try_echo") >&5 | |
13233 | (eval "$ac_compile") 2>conftest.er1 | |
13234 | ac_status=$? | |
13235 | grep -v '^ *+' conftest.er1 >conftest.err | |
13236 | rm -f conftest.er1 | |
13237 | cat conftest.err >&5 | |
13238 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13239 | (exit $ac_status); } && { | |
13240 | test -z "$ac_c_werror_flag" || | |
13241 | test ! -s conftest.err | |
13242 | } && test -s conftest.$ac_objext; then | |
13243 | ac_header_compiler=yes | |
13244 | else | |
13245 | $as_echo "$as_me: failed program was:" >&5 | |
13246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13247 | ||
13248 | ac_header_compiler=no | |
13249 | fi | |
13250 | ||
13251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13252 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13253 | $as_echo "$ac_header_compiler" >&6; } | |
13254 | ||
13255 | # Is the header present? | |
13256 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13257 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13258 | cat >conftest.$ac_ext <<_ACEOF | |
13259 | /* confdefs.h. */ | |
13260 | _ACEOF | |
13261 | cat confdefs.h >>conftest.$ac_ext | |
13262 | cat >>conftest.$ac_ext <<_ACEOF | |
13263 | /* end confdefs.h. */ | |
13264 | #include <$ac_header> | |
13265 | _ACEOF | |
13266 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13267 | case "(($ac_try" in | |
13268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13269 | *) ac_try_echo=$ac_try;; | |
13270 | esac | |
13271 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13272 | $as_echo "$ac_try_echo") >&5 | |
13273 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13274 | ac_status=$? | |
13275 | grep -v '^ *+' conftest.er1 >conftest.err | |
13276 | rm -f conftest.er1 | |
13277 | cat conftest.err >&5 | |
13278 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13279 | (exit $ac_status); } >/dev/null && { | |
13280 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13281 | test ! -s conftest.err | |
13282 | }; then | |
13283 | ac_header_preproc=yes | |
13284 | else | |
13285 | $as_echo "$as_me: failed program was:" >&5 | |
13286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13287 | ||
13288 | ac_header_preproc=no | |
13289 | fi | |
13290 | ||
13291 | rm -f conftest.err conftest.$ac_ext | |
13292 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13293 | $as_echo "$ac_header_preproc" >&6; } | |
13294 | ||
13295 | # So? What about this header? | |
13296 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13297 | yes:no: ) | |
13298 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13299 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13300 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13301 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13302 | ac_header_preproc=yes | |
13303 | ;; | |
13304 | no:yes:* ) | |
13305 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13306 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13307 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13308 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13309 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13310 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13311 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13312 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13313 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13314 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13315 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13316 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13317 | ||
13318 | ;; | |
13319 | esac | |
13320 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13321 | $as_echo_n "checking for $ac_header... " >&6; } | |
13322 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13323 | $as_echo_n "(cached) " >&6 | |
13324 | else | |
13325 | eval "$as_ac_Header=\$ac_header_preproc" | |
13326 | fi | |
13327 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13328 | $as_echo "$as_val"'` | |
13329 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13330 | $as_echo "$ac_res" >&6; } | |
13331 | ||
13332 | fi | |
13333 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
13334 | $as_echo "$as_val"'` | |
13335 | if test "x$as_val" = x""yes; then | |
13336 | cat >>confdefs.h <<_ACEOF | |
13337 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13338 | _ACEOF | |
13339 | HAVE_CONFDB_H=yes | |
13340 | else | |
13341 | HAVE_CONFDB_H=no | |
13342 | fi | |
13343 | ||
13344 | done | |
13345 | ||
13346 | ||
13347 | if test x$HAVE_CONFDB != xyes && \ | |
13348 | test x$HAVE_CONFDB_H = xyes; then | |
13349 | check_lib_no_libs confdb confdb_initialize | |
13350 | { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5 | |
13351 | $as_echo "no pkg for confdb, using -lconfdb" >&6; } | |
13352 | CONFDB_LIBS="-lconfdb" | |
13353 | HAVE_CONFDB=yes | |
13354 | fi | |
13355 | ||
13356 | if test x$BUILDCOROSYNC = xyes && \ | |
13357 | test x$HAVE_CONFDB != xyes && | |
13358 | test x$CLVMD != xall; then | |
13359 | { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5 | |
13360 | $as_echo "$as_me: error: bailing out... confdb library is required" >&2;} | |
13361 | { (exit 1); exit 1; }; } | |
13362 | fi | |
13363 | fi | |
13364 | ||
13365 | if test x$CHECKCPG = xyes; then | |
13366 | ||
13367 | pkg_failed=no | |
13368 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
13369 | $as_echo_n "checking for CPG... " >&6; } | |
13370 | ||
13371 | if test -n "$CPG_CFLAGS"; then | |
13372 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
13373 | elif test -n "$PKG_CONFIG"; then | |
13374 | if test -n "$PKG_CONFIG" && \ | |
13375 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
13376 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
13377 | ac_status=$? | |
13378 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13379 | (exit $ac_status); }; then | |
13380 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
13381 | else | |
13382 | pkg_failed=yes | |
13383 | fi | |
13384 | else | |
13385 | pkg_failed=untried | |
13386 | fi | |
13387 | if test -n "$CPG_LIBS"; then | |
13388 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
13389 | elif test -n "$PKG_CONFIG"; then | |
13390 | if test -n "$PKG_CONFIG" && \ | |
13391 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
13392 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
13393 | ac_status=$? | |
13394 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13395 | (exit $ac_status); }; then | |
13396 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
13397 | else | |
13398 | pkg_failed=yes | |
13399 | fi | |
13400 | else | |
13401 | pkg_failed=untried | |
13402 | fi | |
13403 | ||
13404 | ||
13405 | ||
13406 | if test $pkg_failed = yes; then | |
13407 | ||
13408 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13409 | _pkg_short_errors_supported=yes | |
13410 | else | |
13411 | _pkg_short_errors_supported=no | |
13412 | fi | |
13413 | if test $_pkg_short_errors_supported = yes; then | |
13414 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
13415 | else | |
13416 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
13417 | fi | |
13418 | # Put the nasty error message in config.log where it belongs | |
13419 | echo "$CPG_PKG_ERRORS" >&5 | |
13420 | ||
8c4e8a18 | 13421 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 13422 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
13423 | $bailout |
13424 | elif test $pkg_failed = untried; then | |
a946372e AK |
13425 | $bailout |
13426 | else | |
13427 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
13428 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
13429 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13430 | $as_echo "yes" >&6; } | |
13431 | HAVE_CPG=yes | |
13432 | fi | |
13433 | fi | |
13434 | ||
13435 | if test x$CHECKDLM = xyes; then | |
13436 | ||
13437 | pkg_failed=no | |
13438 | { $as_echo "$as_me:$LINENO: checking for DLM" >&5 | |
13439 | $as_echo_n "checking for DLM... " >&6; } | |
13440 | ||
13441 | if test -n "$DLM_CFLAGS"; then | |
13442 | pkg_cv_DLM_CFLAGS="$DLM_CFLAGS" | |
13443 | elif test -n "$PKG_CONFIG"; then | |
13444 | if test -n "$PKG_CONFIG" && \ | |
13445 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
13446 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
13447 | ac_status=$? | |
13448 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13449 | (exit $ac_status); }; then | |
13450 | pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null` | |
13451 | else | |
13452 | pkg_failed=yes | |
13453 | fi | |
13454 | else | |
13455 | pkg_failed=untried | |
13456 | fi | |
13457 | if test -n "$DLM_LIBS"; then | |
13458 | pkg_cv_DLM_LIBS="$DLM_LIBS" | |
13459 | elif test -n "$PKG_CONFIG"; then | |
13460 | if test -n "$PKG_CONFIG" && \ | |
13461 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
13462 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
13463 | ac_status=$? | |
13464 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13465 | (exit $ac_status); }; then | |
13466 | pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null` | |
13467 | else | |
13468 | pkg_failed=yes | |
13469 | fi | |
13470 | else | |
13471 | pkg_failed=untried | |
13472 | fi | |
13473 | ||
13474 | ||
13475 | ||
13476 | if test $pkg_failed = yes; then | |
13477 | ||
13478 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13479 | _pkg_short_errors_supported=yes | |
13480 | else | |
13481 | _pkg_short_errors_supported=no | |
13482 | fi | |
13483 | if test $_pkg_short_errors_supported = yes; then | |
13484 | DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1` | |
13485 | else | |
13486 | DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1` | |
13487 | fi | |
13488 | # Put the nasty error message in config.log where it belongs | |
13489 | echo "$DLM_PKG_ERRORS" >&5 | |
13490 | ||
8c4e8a18 FDN |
13491 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13492 | $as_echo "no" >&6; } | |
13493 | NOTFOUND=0 | |
a946372e AK |
13494 | |
13495 | for ac_header in libdlm.h | |
13496 | do | |
13497 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13498 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13499 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13500 | $as_echo_n "checking for $ac_header... " >&6; } | |
13501 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13502 | $as_echo_n "(cached) " >&6 | |
13503 | fi | |
13504 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13505 | $as_echo "$as_val"'` | |
13506 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13507 | $as_echo "$ac_res" >&6; } | |
13508 | else | |
13509 | # Is the header compilable? | |
13510 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13511 | $as_echo_n "checking $ac_header usability... " >&6; } | |
13512 | cat >conftest.$ac_ext <<_ACEOF | |
13513 | /* confdefs.h. */ | |
13514 | _ACEOF | |
13515 | cat confdefs.h >>conftest.$ac_ext | |
13516 | cat >>conftest.$ac_ext <<_ACEOF | |
13517 | /* end confdefs.h. */ | |
13518 | $ac_includes_default | |
13519 | #include <$ac_header> | |
13520 | _ACEOF | |
13521 | rm -f conftest.$ac_objext | |
13522 | if { (ac_try="$ac_compile" | |
13523 | case "(($ac_try" in | |
13524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13525 | *) ac_try_echo=$ac_try;; | |
13526 | esac | |
13527 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13528 | $as_echo "$ac_try_echo") >&5 | |
13529 | (eval "$ac_compile") 2>conftest.er1 | |
13530 | ac_status=$? | |
13531 | grep -v '^ *+' conftest.er1 >conftest.err | |
13532 | rm -f conftest.er1 | |
13533 | cat conftest.err >&5 | |
13534 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13535 | (exit $ac_status); } && { | |
13536 | test -z "$ac_c_werror_flag" || | |
13537 | test ! -s conftest.err | |
13538 | } && test -s conftest.$ac_objext; then | |
13539 | ac_header_compiler=yes | |
13540 | else | |
13541 | $as_echo "$as_me: failed program was:" >&5 | |
13542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13543 | ||
13544 | ac_header_compiler=no | |
13545 | fi | |
13546 | ||
13547 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13548 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13549 | $as_echo "$ac_header_compiler" >&6; } | |
13550 | ||
13551 | # Is the header present? | |
13552 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13553 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13554 | cat >conftest.$ac_ext <<_ACEOF | |
13555 | /* confdefs.h. */ | |
13556 | _ACEOF | |
13557 | cat confdefs.h >>conftest.$ac_ext | |
13558 | cat >>conftest.$ac_ext <<_ACEOF | |
13559 | /* end confdefs.h. */ | |
13560 | #include <$ac_header> | |
13561 | _ACEOF | |
13562 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13563 | case "(($ac_try" in | |
13564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13565 | *) ac_try_echo=$ac_try;; | |
13566 | esac | |
13567 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13568 | $as_echo "$ac_try_echo") >&5 | |
13569 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13570 | ac_status=$? | |
13571 | grep -v '^ *+' conftest.er1 >conftest.err | |
13572 | rm -f conftest.er1 | |
13573 | cat conftest.err >&5 | |
13574 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13575 | (exit $ac_status); } >/dev/null && { | |
13576 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13577 | test ! -s conftest.err | |
13578 | }; then | |
13579 | ac_header_preproc=yes | |
13580 | else | |
13581 | $as_echo "$as_me: failed program was:" >&5 | |
13582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13583 | ||
13584 | ac_header_preproc=no | |
13585 | fi | |
13586 | ||
13587 | rm -f conftest.err conftest.$ac_ext | |
13588 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13589 | $as_echo "$ac_header_preproc" >&6; } | |
13590 | ||
13591 | # So? What about this header? | |
13592 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13593 | yes:no: ) | |
13594 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13595 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13596 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13597 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13598 | ac_header_preproc=yes | |
13599 | ;; | |
13600 | no:yes:* ) | |
13601 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13602 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13603 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13604 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13605 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13606 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13607 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13608 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13609 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13610 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13611 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13612 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13613 | ||
13614 | ;; | |
13615 | esac | |
13616 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13617 | $as_echo_n "checking for $ac_header... " >&6; } | |
13618 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13619 | $as_echo_n "(cached) " >&6 | |
13620 | else | |
13621 | eval "$as_ac_Header=\$ac_header_preproc" | |
13622 | fi | |
13623 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13624 | $as_echo "$as_val"'` | |
13625 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13626 | $as_echo "$ac_res" >&6; } | |
13627 | ||
13628 | fi | |
13629 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
13630 | $as_echo "$as_val"'` | |
13631 | if test "x$as_val" = x""yes; then | |
13632 | cat >>confdefs.h <<_ACEOF | |
13633 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13634 | _ACEOF | |
13635 | ||
13636 | else | |
13637 | $bailout | |
13638 | fi | |
13639 | ||
13640 | done | |
13641 | ||
13642 | check_lib_no_libs dlm dlm_lock -lpthread | |
13643 | if test $NOTFOUND = 0; then | |
13644 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
13645 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
13646 | DLM_LIBS="-ldlm -lpthread" | |
13647 | HAVE_DLM=yes | |
13648 | fi | |
13649 | elif test $pkg_failed = untried; then | |
13650 | NOTFOUND=0 | |
13651 | ||
13652 | for ac_header in libdlm.h | |
13653 | do | |
13654 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13655 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13656 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13657 | $as_echo_n "checking for $ac_header... " >&6; } | |
13658 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13659 | $as_echo_n "(cached) " >&6 | |
13660 | fi | |
13661 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13662 | $as_echo "$as_val"'` | |
13663 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13664 | $as_echo "$ac_res" >&6; } | |
13665 | else | |
13666 | # Is the header compilable? | |
13667 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13668 | $as_echo_n "checking $ac_header usability... " >&6; } | |
13669 | cat >conftest.$ac_ext <<_ACEOF | |
13670 | /* confdefs.h. */ | |
13671 | _ACEOF | |
13672 | cat confdefs.h >>conftest.$ac_ext | |
13673 | cat >>conftest.$ac_ext <<_ACEOF | |
13674 | /* end confdefs.h. */ | |
13675 | $ac_includes_default | |
13676 | #include <$ac_header> | |
13677 | _ACEOF | |
13678 | rm -f conftest.$ac_objext | |
13679 | if { (ac_try="$ac_compile" | |
13680 | case "(($ac_try" in | |
13681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13682 | *) ac_try_echo=$ac_try;; | |
13683 | esac | |
13684 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13685 | $as_echo "$ac_try_echo") >&5 | |
13686 | (eval "$ac_compile") 2>conftest.er1 | |
13687 | ac_status=$? | |
13688 | grep -v '^ *+' conftest.er1 >conftest.err | |
13689 | rm -f conftest.er1 | |
13690 | cat conftest.err >&5 | |
13691 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13692 | (exit $ac_status); } && { | |
13693 | test -z "$ac_c_werror_flag" || | |
13694 | test ! -s conftest.err | |
13695 | } && test -s conftest.$ac_objext; then | |
13696 | ac_header_compiler=yes | |
13697 | else | |
13698 | $as_echo "$as_me: failed program was:" >&5 | |
13699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13700 | ||
13701 | ac_header_compiler=no | |
13702 | fi | |
13703 | ||
13704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13705 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13706 | $as_echo "$ac_header_compiler" >&6; } | |
13707 | ||
13708 | # Is the header present? | |
13709 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13710 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13711 | cat >conftest.$ac_ext <<_ACEOF | |
13712 | /* confdefs.h. */ | |
13713 | _ACEOF | |
13714 | cat confdefs.h >>conftest.$ac_ext | |
13715 | cat >>conftest.$ac_ext <<_ACEOF | |
13716 | /* end confdefs.h. */ | |
13717 | #include <$ac_header> | |
13718 | _ACEOF | |
13719 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13720 | case "(($ac_try" in | |
13721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13722 | *) ac_try_echo=$ac_try;; | |
13723 | esac | |
13724 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13725 | $as_echo "$ac_try_echo") >&5 | |
13726 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13727 | ac_status=$? | |
13728 | grep -v '^ *+' conftest.er1 >conftest.err | |
13729 | rm -f conftest.er1 | |
13730 | cat conftest.err >&5 | |
13731 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13732 | (exit $ac_status); } >/dev/null && { | |
13733 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13734 | test ! -s conftest.err | |
13735 | }; then | |
13736 | ac_header_preproc=yes | |
13737 | else | |
13738 | $as_echo "$as_me: failed program was:" >&5 | |
13739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13740 | ||
13741 | ac_header_preproc=no | |
13742 | fi | |
13743 | ||
13744 | rm -f conftest.err conftest.$ac_ext | |
13745 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13746 | $as_echo "$ac_header_preproc" >&6; } | |
13747 | ||
13748 | # So? What about this header? | |
13749 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13750 | yes:no: ) | |
13751 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13752 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13753 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13754 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13755 | ac_header_preproc=yes | |
13756 | ;; | |
13757 | no:yes:* ) | |
13758 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13759 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13760 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13761 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13762 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13763 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13764 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13765 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13766 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13767 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13768 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13769 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13770 | ||
13771 | ;; | |
13772 | esac | |
13773 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13774 | $as_echo_n "checking for $ac_header... " >&6; } | |
13775 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13776 | $as_echo_n "(cached) " >&6 | |
13777 | else | |
13778 | eval "$as_ac_Header=\$ac_header_preproc" | |
13779 | fi | |
13780 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13781 | $as_echo "$as_val"'` | |
13782 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13783 | $as_echo "$ac_res" >&6; } | |
13784 | ||
13785 | fi | |
13786 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
13787 | $as_echo "$as_val"'` | |
13788 | if test "x$as_val" = x""yes; then | |
13789 | cat >>confdefs.h <<_ACEOF | |
13790 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13791 | _ACEOF | |
13792 | ||
13793 | else | |
13794 | $bailout | |
13795 | fi | |
13796 | ||
13797 | done | |
13798 | ||
13799 | check_lib_no_libs dlm dlm_lock -lpthread | |
13800 | if test $NOTFOUND = 0; then | |
13801 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
13802 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
13803 | DLM_LIBS="-ldlm -lpthread" | |
13804 | HAVE_DLM=yes | |
13805 | fi | |
13806 | else | |
13807 | DLM_CFLAGS=$pkg_cv_DLM_CFLAGS | |
13808 | DLM_LIBS=$pkg_cv_DLM_LIBS | |
13809 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13810 | $as_echo "yes" >&6; } | |
13811 | HAVE_DLM=yes | |
13812 | fi | |
13813 | fi | |
13814 | ||
13815 | if test x$CLVMD = xall; then | |
8c222979 | 13816 | CLVMD=none |
a946372e AK |
13817 | if test x$HAVE_CCS = xyes && \ |
13818 | test x$HAVE_GULM = xyes; then | |
8c222979 FDN |
13819 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5 |
13820 | $as_echo "Enabling clvmd gulm cluster manager" >&6; } | |
13821 | CLVMD="$CLVMD,gulm" | |
a946372e AK |
13822 | fi |
13823 | if test x$HAVE_CMAN = xyes && \ | |
13824 | test x$HAVE_DLM = xyes; then | |
8c222979 FDN |
13825 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5 |
13826 | $as_echo "Enabling clvmd cman cluster manager" >&6; } | |
13827 | CLVMD="$CLVMD,cman" | |
a946372e AK |
13828 | fi |
13829 | if test x$HAVE_COROSYNC = xyes && \ | |
13830 | test x$HAVE_QUORUM = xyes && \ | |
13831 | test x$HAVE_CPG = xyes && \ | |
13832 | test x$HAVE_DLM = xyes && \ | |
13833 | test x$HAVE_CONFDB = xyes; then | |
8c222979 FDN |
13834 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5 |
13835 | $as_echo "Enabling clvmd corosync cluster manager" >&6; } | |
13836 | CLVMD="$CLVMD,corosync" | |
a946372e AK |
13837 | fi |
13838 | if test x$HAVE_COROSYNC = xyes && \ | |
13839 | test x$HAVE_CPG = xyes && \ | |
13840 | test x$HAVE_SALCK = xyes; then | |
8c222979 FDN |
13841 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5 |
13842 | $as_echo "Enabling clvmd openais cluster manager" >&6; } | |
13843 | CLVMD="$CLVMD,openais" | |
13844 | fi | |
13845 | if test x$CLVMD = xnone; then | |
13846 | { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5 | |
13847 | $as_echo "Disabling clvmd build. No cluster manager detected." >&6; } | |
a946372e | 13848 | fi |
a946372e AK |
13849 | fi |
13850 | ||
8c4e8a18 FDN |
13851 | ################################################################################ |
13852 | if test "x$CLVMD" != xnone; then | |
13853 | ||
13854 | # Check whether --with-clvmd-pidfile was given. | |
13855 | if test "${with_clvmd_pidfile+set}" = set; then | |
13856 | withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval | |
13857 | else | |
13858 | CLVMD_PIDFILE="/var/run/clvmd.pid" | |
13859 | fi | |
13860 | ||
13861 | ||
13862 | cat >>confdefs.h <<_ACEOF | |
13863 | #define CLVMD_PIDFILE "$CLVMD_PIDFILE" | |
13864 | _ACEOF | |
13865 | ||
13866 | fi | |
13867 | ||
a946372e | 13868 | ################################################################################ |
66fd4529 AK |
13869 | { $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5 |
13870 | $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; } | |
13871 | # Check whether --enable-cmirrord was given. | |
13872 | if test "${enable_cmirrord+set}" = set; then | |
13873 | enableval=$enable_cmirrord; CMIRRORD=$enableval | |
13874 | else | |
13875 | CMIRRORD=no | |
13876 | fi | |
13877 | ||
13878 | { $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5 | |
13879 | $as_echo "$CMIRRORD" >&6; } | |
13880 | ||
13881 | BUILD_CMIRRORD=$CMIRRORD | |
13882 | ||
13883 | ################################################################################ | |
66fd4529 AK |
13884 | if test "x$BUILD_CMIRRORD" = xyes; then |
13885 | ||
13886 | # Check whether --with-cmirrord-pidfile was given. | |
13887 | if test "${with_cmirrord_pidfile+set}" = set; then | |
71082be4 | 13888 | withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval |
66fd4529 | 13889 | else |
71082be4 | 13890 | CMIRRORD_PIDFILE="/var/run/cmirrord.pid" |
a946372e AK |
13891 | fi |
13892 | ||
71082be4 ZK |
13893 | |
13894 | cat >>confdefs.h <<_ACEOF | |
13895 | #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE" | |
13896 | _ACEOF | |
13897 | ||
66fd4529 | 13898 | fi |
a946372e | 13899 | |
66fd4529 AK |
13900 | ################################################################################ |
13901 | if [ "x$BUILD_CMIRRORD" = xyes ]; then | |
90c80887 AK |
13902 | if test x$PKGCONFIG_INIT != x1; then |
13903 | pkg_config_init | |
13904 | fi | |
13905 | ||
13906 | pkg_failed=no | |
13907 | { $as_echo "$as_me:$LINENO: checking for SACKPT" >&5 | |
13908 | $as_echo_n "checking for SACKPT... " >&6; } | |
13909 | ||
13910 | if test -n "$SACKPT_CFLAGS"; then | |
13911 | pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS" | |
13912 | elif test -n "$PKG_CONFIG"; then | |
13913 | if test -n "$PKG_CONFIG" && \ | |
13914 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
13915 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
13916 | ac_status=$? | |
13917 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13918 | (exit $ac_status); }; then | |
13919 | pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null` | |
13920 | else | |
13921 | pkg_failed=yes | |
13922 | fi | |
13923 | else | |
13924 | pkg_failed=untried | |
13925 | fi | |
13926 | if test -n "$SACKPT_LIBS"; then | |
13927 | pkg_cv_SACKPT_LIBS="$SACKPT_LIBS" | |
13928 | elif test -n "$PKG_CONFIG"; then | |
13929 | if test -n "$PKG_CONFIG" && \ | |
13930 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
13931 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
13932 | ac_status=$? | |
13933 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13934 | (exit $ac_status); }; then | |
13935 | pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null` | |
13936 | else | |
13937 | pkg_failed=yes | |
13938 | fi | |
13939 | else | |
13940 | pkg_failed=untried | |
13941 | fi | |
13942 | ||
13943 | ||
13944 | ||
13945 | if test $pkg_failed = yes; then | |
13946 | ||
13947 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13948 | _pkg_short_errors_supported=yes | |
13949 | else | |
13950 | _pkg_short_errors_supported=no | |
13951 | fi | |
13952 | if test $_pkg_short_errors_supported = yes; then | |
13953 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1` | |
13954 | else | |
13955 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1` | |
13956 | fi | |
13957 | # Put the nasty error message in config.log where it belongs | |
13958 | echo "$SACKPT_PKG_ERRORS" >&5 | |
13959 | ||
13960 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met: | |
13961 | ||
13962 | $SACKPT_PKG_ERRORS | |
13963 | ||
13964 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
13965 | installed software in a non-standard prefix. | |
13966 | ||
13967 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
13968 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
8c4e8a18 FDN |
13969 | See the pkg-config man page for more details. |
13970 | " >&5 | |
90c80887 AK |
13971 | $as_echo "$as_me: error: Package requirements (libSaCkpt) were not met: |
13972 | ||
13973 | $SACKPT_PKG_ERRORS | |
13974 | ||
13975 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
13976 | installed software in a non-standard prefix. | |
13977 | ||
13978 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
13979 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
8c4e8a18 FDN |
13980 | See the pkg-config man page for more details. |
13981 | " >&2;} | |
90c80887 AK |
13982 | { (exit 1); exit 1; }; } |
13983 | elif test $pkg_failed = untried; then | |
13984 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
13985 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13986 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
13987 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
13988 | path to pkg-config. | |
13989 | ||
13990 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
13991 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
13992 | See the pkg-config man page for more details. | |
13993 | ||
13994 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
13995 | See \`config.log' for more details." >&5 | |
13996 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
13997 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
13998 | path to pkg-config. | |
13999 | ||
14000 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
14001 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
14002 | See the pkg-config man page for more details. | |
14003 | ||
14004 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
14005 | See \`config.log' for more details." >&2;} | |
14006 | { (exit 1); exit 1; }; }; } | |
14007 | else | |
14008 | SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS | |
14009 | SACKPT_LIBS=$pkg_cv_SACKPT_LIBS | |
14010 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14011 | $as_echo "yes" >&6; } | |
8c4e8a18 | 14012 | : |
90c80887 AK |
14013 | fi |
14014 | if test x$HAVE_CPG != xyes; then | |
a946372e AK |
14015 | |
14016 | pkg_failed=no | |
14017 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
14018 | $as_echo_n "checking for CPG... " >&6; } | |
14019 | ||
14020 | if test -n "$CPG_CFLAGS"; then | |
14021 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
14022 | elif test -n "$PKG_CONFIG"; then | |
14023 | if test -n "$PKG_CONFIG" && \ | |
14024 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
14025 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
14026 | ac_status=$? | |
14027 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14028 | (exit $ac_status); }; then | |
14029 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
14030 | else | |
14031 | pkg_failed=yes | |
14032 | fi | |
14033 | else | |
14034 | pkg_failed=untried | |
14035 | fi | |
14036 | if test -n "$CPG_LIBS"; then | |
14037 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
14038 | elif test -n "$PKG_CONFIG"; then | |
14039 | if test -n "$PKG_CONFIG" && \ | |
14040 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
14041 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
14042 | ac_status=$? | |
14043 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14044 | (exit $ac_status); }; then | |
14045 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
14046 | else | |
14047 | pkg_failed=yes | |
14048 | fi | |
14049 | else | |
14050 | pkg_failed=untried | |
14051 | fi | |
14052 | ||
14053 | ||
14054 | ||
14055 | if test $pkg_failed = yes; then | |
14056 | ||
14057 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
14058 | _pkg_short_errors_supported=yes | |
14059 | else | |
14060 | _pkg_short_errors_supported=no | |
14061 | fi | |
14062 | if test $_pkg_short_errors_supported = yes; then | |
14063 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
14064 | else | |
14065 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
14066 | fi | |
14067 | # Put the nasty error message in config.log where it belongs | |
14068 | echo "$CPG_PKG_ERRORS" >&5 | |
14069 | ||
90c80887 AK |
14070 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met: |
14071 | ||
14072 | $CPG_PKG_ERRORS | |
14073 | ||
14074 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
14075 | installed software in a non-standard prefix. | |
14076 | ||
14077 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14078 | and CPG_LIBS to avoid the need to call pkg-config. | |
8c4e8a18 FDN |
14079 | See the pkg-config man page for more details. |
14080 | " >&5 | |
90c80887 AK |
14081 | $as_echo "$as_me: error: Package requirements (libcpg) were not met: |
14082 | ||
14083 | $CPG_PKG_ERRORS | |
14084 | ||
14085 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
14086 | installed software in a non-standard prefix. | |
14087 | ||
14088 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14089 | and CPG_LIBS to avoid the need to call pkg-config. | |
8c4e8a18 FDN |
14090 | See the pkg-config man page for more details. |
14091 | " >&2;} | |
90c80887 | 14092 | { (exit 1); exit 1; }; } |
a946372e | 14093 | elif test $pkg_failed = untried; then |
90c80887 AK |
14094 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
14095 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14096 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
14097 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
14098 | path to pkg-config. | |
14099 | ||
14100 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14101 | and CPG_LIBS to avoid the need to call pkg-config. | |
14102 | See the pkg-config man page for more details. | |
14103 | ||
14104 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
14105 | See \`config.log' for more details." >&5 | |
14106 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
14107 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
14108 | path to pkg-config. | |
14109 | ||
14110 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14111 | and CPG_LIBS to avoid the need to call pkg-config. | |
14112 | See the pkg-config man page for more details. | |
14113 | ||
14114 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
14115 | See \`config.log' for more details." >&2;} | |
14116 | { (exit 1); exit 1; }; }; } | |
a946372e AK |
14117 | else |
14118 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
14119 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
14120 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14121 | $as_echo "yes" >&6; } | |
8c4e8a18 | 14122 | : |
a946372e | 14123 | fi |
90c80887 | 14124 | fi |
a946372e AK |
14125 | fi |
14126 | ||
14127 | ################################################################################ | |
14128 | { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5 | |
14129 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
14130 | # Check whether --enable-debug was given. | |
14131 | if test "${enable_debug+set}" = set; then | |
14132 | enableval=$enable_debug; DEBUG=$enableval | |
14133 | else | |
14134 | DEBUG=no | |
14135 | fi | |
14136 | ||
14137 | { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5 | |
14138 | $as_echo "$DEBUG" >&6; } | |
14139 | ||
14140 | if test x$DEBUG = xyes; then | |
14141 | COPTIMISE_FLAG= | |
14142 | else | |
14143 | CSCOPE_CMD= | |
14144 | fi | |
14145 | ||
14146 | ################################################################################ | |
14147 | { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5 | |
14148 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
14149 | ||
14150 | # Check whether --with-optimisation was given. | |
14151 | if test "${with_optimisation+set}" = set; then | |
71082be4 | 14152 | withval=$with_optimisation; COPTIMISE_FLAG=$withval |
a946372e AK |
14153 | fi |
14154 | ||
14155 | { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 | |
14156 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
14157 | ||
14158 | ################################################################################ | |
14159 | { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 | |
14160 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
14161 | # Check whether --enable-profiling was given. | |
14162 | if test "${enable_profiling+set}" = set; then | |
5556819a | 14163 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 14164 | else |
5556819a | 14165 | PROFILING=no |
fddafd51 ZK |
14166 | fi |
14167 | ||
ec6a6fbe AK |
14168 | { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5 |
14169 | $as_echo "$PROFILING" >&6; } | |
5556819a AK |
14170 | |
14171 | if test "x$PROFILING" = xyes; then | |
14172 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
14173 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 14174 | set dummy lcov; ac_word=$2 |
ec6a6fbe AK |
14175 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14176 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 14177 | if test "${ac_cv_path_LCOV+set}" = set; then |
ec6a6fbe | 14178 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
14179 | else |
14180 | case $LCOV in | |
14181 | [\\/]* | ?:[\\/]*) | |
14182 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
14183 | ;; | |
14184 | *) | |
14185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14186 | for as_dir in $PATH | |
14187 | do | |
14188 | IFS=$as_save_IFS | |
14189 | test -z "$as_dir" && as_dir=. | |
14190 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14191 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14192 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 14193 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
14194 | break 2 |
14195 | fi | |
14196 | done | |
14197 | done | |
14198 | IFS=$as_save_IFS | |
14199 | ||
14200 | ;; | |
14201 | esac | |
14202 | fi | |
14203 | LCOV=$ac_cv_path_LCOV | |
14204 | if test -n "$LCOV"; then | |
ec6a6fbe AK |
14205 | { $as_echo "$as_me:$LINENO: result: $LCOV" >&5 |
14206 | $as_echo "$LCOV" >&6; } | |
fddafd51 | 14207 | else |
ec6a6fbe AK |
14208 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14209 | $as_echo "no" >&6; } | |
fddafd51 ZK |
14210 | fi |
14211 | ||
14212 | ||
5556819a | 14213 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 14214 | set dummy genhtml; ac_word=$2 |
ec6a6fbe AK |
14215 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14216 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 14217 | if test "${ac_cv_path_GENHTML+set}" = set; then |
ec6a6fbe | 14218 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
14219 | else |
14220 | case $GENHTML in | |
14221 | [\\/]* | ?:[\\/]*) | |
14222 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
14223 | ;; | |
14224 | *) | |
14225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14226 | for as_dir in $PATH | |
14227 | do | |
14228 | IFS=$as_save_IFS | |
14229 | test -z "$as_dir" && as_dir=. | |
14230 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14231 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14232 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 14233 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
14234 | break 2 |
14235 | fi | |
14236 | done | |
14237 | done | |
14238 | IFS=$as_save_IFS | |
14239 | ||
14240 | ;; | |
14241 | esac | |
14242 | fi | |
14243 | GENHTML=$ac_cv_path_GENHTML | |
14244 | if test -n "$GENHTML"; then | |
ec6a6fbe AK |
14245 | { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5 |
14246 | $as_echo "$GENHTML" >&6; } | |
fddafd51 | 14247 | else |
ec6a6fbe AK |
14248 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14249 | $as_echo "no" >&6; } | |
fddafd51 ZK |
14250 | fi |
14251 | ||
14252 | ||
fd4728e1 | 14253 | if test -z "$LCOV" -o -z "$GENHTML"; then |
ec6a6fbe AK |
14254 | { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5 |
14255 | $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;} | |
b145d876 ZK |
14256 | { (exit 1); exit 1; }; } |
14257 | fi | |
fd4728e1 ZK |
14258 | # Extract the first word of "genpng", so it can be a program name with args. |
14259 | set dummy genpng; ac_word=$2 | |
14260 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14261 | $as_echo_n "checking for $ac_word... " >&6; } | |
14262 | if test "${ac_cv_path_GENPNG+set}" = set; then | |
14263 | $as_echo_n "(cached) " >&6 | |
14264 | else | |
14265 | case $GENPNG in | |
14266 | [\\/]* | ?:[\\/]*) | |
14267 | ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path. | |
14268 | ;; | |
14269 | *) | |
14270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14271 | for as_dir in $PATH | |
14272 | do | |
14273 | IFS=$as_save_IFS | |
14274 | test -z "$as_dir" && as_dir=. | |
14275 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14276 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14277 | ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext" | |
14278 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14279 | break 2 | |
14280 | fi | |
14281 | done | |
14282 | done | |
14283 | IFS=$as_save_IFS | |
14284 | ||
14285 | ;; | |
14286 | esac | |
14287 | fi | |
14288 | GENPNG=$ac_cv_path_GENPNG | |
14289 | if test -n "$GENPNG"; then | |
14290 | { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5 | |
14291 | $as_echo "$GENPNG" >&6; } | |
14292 | else | |
14293 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14294 | $as_echo "no" >&6; } | |
14295 | fi | |
14296 | ||
14297 | ||
14298 | if test -n "$GENPNG"; then | |
14299 | { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5 | |
14300 | $as_echo_n "checking whether $GENPNG has all required modules... " >&6; } | |
14301 | if $GENPNG --help > /dev/null 2>&1 ; then | |
14302 | { $as_echo "$as_me:$LINENO: result: ok" >&5 | |
14303 | $as_echo "ok" >&6; } | |
14304 | GENHTML="$GENHTML --frames" | |
14305 | else | |
14306 | { $as_echo "$as_me:$LINENO: result: not supported" >&5 | |
14307 | $as_echo "not supported" >&6; } | |
14308 | { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5 | |
14309 | $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;} | |
14310 | GENPNG= | |
14311 | fi | |
14312 | fi | |
5556819a | 14313 | fi |
d0191583 | 14314 | |
54b362f9 AK |
14315 | ################################################################################ |
14316 | { $as_echo "$as_me:$LINENO: checking whether to enable unit testing" >&5 | |
14317 | $as_echo_n "checking whether to enable unit testing... " >&6; } | |
14318 | # Check whether --enable-testing was given. | |
14319 | if test "${enable_testing+set}" = set; then | |
14320 | enableval=$enable_testing; TESTING=$enableval | |
14321 | else | |
14322 | TESTING=no | |
14323 | fi | |
14324 | ||
14325 | { $as_echo "$as_me:$LINENO: result: $TESTING" >&5 | |
14326 | $as_echo "$TESTING" >&6; } | |
14327 | ||
14328 | if test "$TESTING" = yes; then | |
14329 | # Extract the first word of "ruby1.9", so it can be a program name with args. | |
14330 | set dummy ruby1.9; ac_word=$2 | |
14331 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14332 | $as_echo_n "checking for $ac_word... " >&6; } | |
14333 | if test "${ac_cv_path_RUBY19+set}" = set; then | |
14334 | $as_echo_n "(cached) " >&6 | |
14335 | else | |
14336 | case $RUBY19 in | |
14337 | [\\/]* | ?:[\\/]*) | |
14338 | ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path. | |
14339 | ;; | |
14340 | *) | |
14341 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14342 | for as_dir in $PATH | |
14343 | do | |
14344 | IFS=$as_save_IFS | |
14345 | test -z "$as_dir" && as_dir=. | |
14346 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14347 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14348 | ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext" | |
14349 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14350 | break 2 | |
14351 | fi | |
14352 | done | |
14353 | done | |
14354 | IFS=$as_save_IFS | |
14355 | ||
14356 | ;; | |
14357 | esac | |
14358 | fi | |
14359 | RUBY19=$ac_cv_path_RUBY19 | |
14360 | if test -n "$RUBY19"; then | |
14361 | { $as_echo "$as_me:$LINENO: result: $RUBY19" >&5 | |
14362 | $as_echo "$RUBY19" >&6; } | |
14363 | else | |
14364 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14365 | $as_echo "no" >&6; } | |
14366 | fi | |
14367 | ||
14368 | ||
14369 | # Extract the first word of "valgrind", so it can be a program name with args. | |
14370 | set dummy valgrind; ac_word=$2 | |
14371 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14372 | $as_echo_n "checking for $ac_word... " >&6; } | |
14373 | if test "${ac_cv_path_VALGRIND+set}" = set; then | |
14374 | $as_echo_n "(cached) " >&6 | |
14375 | else | |
14376 | case $VALGRIND in | |
14377 | [\\/]* | ?:[\\/]*) | |
14378 | ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path. | |
14379 | ;; | |
14380 | *) | |
14381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14382 | for as_dir in $PATH | |
14383 | do | |
14384 | IFS=$as_save_IFS | |
14385 | test -z "$as_dir" && as_dir=. | |
14386 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14387 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14388 | ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext" | |
14389 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14390 | break 2 | |
14391 | fi | |
14392 | done | |
14393 | done | |
14394 | IFS=$as_save_IFS | |
14395 | ||
14396 | ;; | |
14397 | esac | |
14398 | fi | |
14399 | VALGRIND=$ac_cv_path_VALGRIND | |
14400 | if test -n "$VALGRIND"; then | |
14401 | { $as_echo "$as_me:$LINENO: result: $VALGRIND" >&5 | |
14402 | $as_echo "$VALGRIND" >&6; } | |
14403 | else | |
14404 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14405 | $as_echo "no" >&6; } | |
14406 | fi | |
14407 | ||
14408 | ||
14409 | if test -z "$RUBY19" -o -z "$VALGRIND"; then | |
14410 | { { $as_echo "$as_me:$LINENO: error: ruby1.9 and valgrind are required for testing" >&5 | |
14411 | $as_echo "$as_me: error: ruby1.9 and valgrind are required for testing" >&2;} | |
14412 | { (exit 1); exit 1; }; } | |
14413 | fi | |
14414 | fi | |
14415 | ||
d1e8046f AK |
14416 | ################################################################################ |
14417 | { $as_echo "$as_me:$LINENO: checking whether to enable valgrind awareness of pools" >&5 | |
14418 | $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; } | |
14419 | # Check whether --enable-valgrind_pool was given. | |
14420 | if test "${enable_valgrind_pool+set}" = set; then | |
14421 | enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval | |
14422 | else | |
14423 | VALGRIND_POOL=no | |
14424 | fi | |
14425 | ||
14426 | { $as_echo "$as_me:$LINENO: result: $VALGRIND_POOL" >&5 | |
14427 | $as_echo "$VALGRIND_POOL" >&6; } | |
14428 | ||
14429 | if test "$VALGRIND_POOL" = yes; then | |
14430 | ||
14431 | for ac_header in valgrind/memcheck.h | |
14432 | do | |
14433 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14434 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
14435 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14436 | $as_echo_n "checking for $ac_header... " >&6; } | |
14437 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
14438 | $as_echo_n "(cached) " >&6 | |
14439 | fi | |
14440 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
14441 | $as_echo "$as_val"'` | |
14442 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14443 | $as_echo "$ac_res" >&6; } | |
14444 | else | |
14445 | # Is the header compilable? | |
14446 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14447 | $as_echo_n "checking $ac_header usability... " >&6; } | |
14448 | cat >conftest.$ac_ext <<_ACEOF | |
14449 | /* confdefs.h. */ | |
14450 | _ACEOF | |
14451 | cat confdefs.h >>conftest.$ac_ext | |
14452 | cat >>conftest.$ac_ext <<_ACEOF | |
14453 | /* end confdefs.h. */ | |
14454 | $ac_includes_default | |
14455 | #include <$ac_header> | |
14456 | _ACEOF | |
14457 | rm -f conftest.$ac_objext | |
14458 | if { (ac_try="$ac_compile" | |
14459 | case "(($ac_try" in | |
14460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14461 | *) ac_try_echo=$ac_try;; | |
14462 | esac | |
14463 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14464 | $as_echo "$ac_try_echo") >&5 | |
14465 | (eval "$ac_compile") 2>conftest.er1 | |
14466 | ac_status=$? | |
14467 | grep -v '^ *+' conftest.er1 >conftest.err | |
14468 | rm -f conftest.er1 | |
14469 | cat conftest.err >&5 | |
14470 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14471 | (exit $ac_status); } && { | |
14472 | test -z "$ac_c_werror_flag" || | |
14473 | test ! -s conftest.err | |
14474 | } && test -s conftest.$ac_objext; then | |
14475 | ac_header_compiler=yes | |
14476 | else | |
14477 | $as_echo "$as_me: failed program was:" >&5 | |
14478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14479 | ||
14480 | ac_header_compiler=no | |
14481 | fi | |
14482 | ||
14483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14484 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14485 | $as_echo "$ac_header_compiler" >&6; } | |
14486 | ||
14487 | # Is the header present? | |
14488 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14489 | $as_echo_n "checking $ac_header presence... " >&6; } | |
14490 | cat >conftest.$ac_ext <<_ACEOF | |
14491 | /* confdefs.h. */ | |
14492 | _ACEOF | |
14493 | cat confdefs.h >>conftest.$ac_ext | |
14494 | cat >>conftest.$ac_ext <<_ACEOF | |
14495 | /* end confdefs.h. */ | |
14496 | #include <$ac_header> | |
14497 | _ACEOF | |
14498 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
14499 | case "(($ac_try" in | |
14500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14501 | *) ac_try_echo=$ac_try;; | |
14502 | esac | |
14503 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14504 | $as_echo "$ac_try_echo") >&5 | |
14505 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
14506 | ac_status=$? | |
14507 | grep -v '^ *+' conftest.er1 >conftest.err | |
14508 | rm -f conftest.er1 | |
14509 | cat conftest.err >&5 | |
14510 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14511 | (exit $ac_status); } >/dev/null && { | |
14512 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14513 | test ! -s conftest.err | |
14514 | }; then | |
14515 | ac_header_preproc=yes | |
14516 | else | |
14517 | $as_echo "$as_me: failed program was:" >&5 | |
14518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14519 | ||
14520 | ac_header_preproc=no | |
14521 | fi | |
14522 | ||
14523 | rm -f conftest.err conftest.$ac_ext | |
14524 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14525 | $as_echo "$ac_header_preproc" >&6; } | |
14526 | ||
14527 | # So? What about this header? | |
14528 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14529 | yes:no: ) | |
14530 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14531 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14532 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14533 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14534 | ac_header_preproc=yes | |
14535 | ;; | |
14536 | no:yes:* ) | |
14537 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14538 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14539 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14540 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14541 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14542 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14543 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14544 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14545 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14546 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14547 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14548 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
14549 | ||
14550 | ;; | |
14551 | esac | |
14552 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14553 | $as_echo_n "checking for $ac_header... " >&6; } | |
14554 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
14555 | $as_echo_n "(cached) " >&6 | |
14556 | else | |
14557 | eval "$as_ac_Header=\$ac_header_preproc" | |
14558 | fi | |
14559 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
14560 | $as_echo "$as_val"'` | |
14561 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14562 | $as_echo "$ac_res" >&6; } | |
14563 | ||
14564 | fi | |
14565 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
14566 | $as_echo "$as_val"'` | |
14567 | if test "x$as_val" = x""yes; then | |
14568 | cat >>confdefs.h <<_ACEOF | |
14569 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14570 | _ACEOF | |
14571 | ||
14572 | else | |
14573 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
14574 | $as_echo "$as_me: error: bailing out" >&2;} | |
14575 | { (exit 1); exit 1; }; } | |
14576 | fi | |
14577 | ||
14578 | done | |
14579 | ||
14580 | ||
14581 | cat >>confdefs.h <<\_ACEOF | |
14582 | #define VALGRIND_POOL 1 | |
14583 | _ACEOF | |
14584 | ||
14585 | fi | |
14586 | ||
d0191583 | 14587 | ################################################################################ |
ec6a6fbe AK |
14588 | { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
14589 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
d0191583 JM |
14590 | # Check whether --enable-devmapper was given. |
14591 | if test "${enable_devmapper+set}" = set; then | |
14592 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
14593 | fi |
14594 | ||
ec6a6fbe AK |
14595 | { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
14596 | $as_echo "$DEVMAPPER" >&6; } | |
d0191583 JM |
14597 | |
14598 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
14599 | |
14600 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 14601 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
14602 | _ACEOF |
14603 | ||
14604 | fi | |
14605 | ||
a5f46f6a AK |
14606 | ################################################################################ |
14607 | { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5 | |
14608 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
14609 | # Check whether --enable-udev_sync was given. | |
14610 | if test "${enable_udev_sync+set}" = set; then | |
14611 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
14612 | else | |
14613 | UDEV_SYNC=no | |
14614 | fi | |
14615 | ||
14616 | { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5 | |
14617 | $as_echo "$UDEV_SYNC" >&6; } | |
14618 | ||
90c80887 AK |
14619 | if test x$UDEV_SYNC = xyes; then |
14620 | { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5 | |
14621 | $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; } | |
14622 | if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then | |
14623 | $as_echo_n "(cached) " >&6 | |
14624 | else | |
14625 | ac_check_lib_save_LIBS=$LIBS | |
14626 | LIBS="-ludev $LIBS" | |
14627 | cat >conftest.$ac_ext <<_ACEOF | |
14628 | /* confdefs.h. */ | |
14629 | _ACEOF | |
14630 | cat confdefs.h >>conftest.$ac_ext | |
14631 | cat >>conftest.$ac_ext <<_ACEOF | |
14632 | /* end confdefs.h. */ | |
14633 | ||
14634 | /* Override any GCC internal prototype to avoid an error. | |
14635 | Use char because int might match the return type of a GCC | |
14636 | builtin and then its argument prototype would still apply. */ | |
14637 | #ifdef __cplusplus | |
14638 | extern "C" | |
14639 | #endif | |
14640 | char udev_queue_get_udev_is_active (); | |
14641 | int | |
14642 | main () | |
14643 | { | |
14644 | return udev_queue_get_udev_is_active (); | |
14645 | ; | |
14646 | return 0; | |
14647 | } | |
14648 | _ACEOF | |
14649 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14650 | if { (ac_try="$ac_link" | |
14651 | case "(($ac_try" in | |
14652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14653 | *) ac_try_echo=$ac_try;; | |
14654 | esac | |
14655 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14656 | $as_echo "$ac_try_echo") >&5 | |
14657 | (eval "$ac_link") 2>conftest.er1 | |
14658 | ac_status=$? | |
14659 | grep -v '^ *+' conftest.er1 >conftest.err | |
14660 | rm -f conftest.er1 | |
14661 | cat conftest.err >&5 | |
14662 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14663 | (exit $ac_status); } && { | |
14664 | test -z "$ac_c_werror_flag" || | |
14665 | test ! -s conftest.err | |
14666 | } && test -s conftest$ac_exeext && { | |
14667 | test "$cross_compiling" = yes || | |
14668 | $as_test_x conftest$ac_exeext | |
14669 | }; then | |
14670 | ac_cv_lib_udev_udev_queue_get_udev_is_active=yes | |
14671 | else | |
14672 | $as_echo "$as_me: failed program was:" >&5 | |
14673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14674 | ||
14675 | ac_cv_lib_udev_udev_queue_get_udev_is_active=no | |
14676 | fi | |
14677 | ||
14678 | rm -rf conftest.dSYM | |
14679 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14680 | conftest$ac_exeext conftest.$ac_ext | |
14681 | LIBS=$ac_check_lib_save_LIBS | |
14682 | fi | |
14683 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5 | |
14684 | $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; } | |
14685 | if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then | |
f7f0854e | 14686 | UDEV_PC="libudev"; UDEV_LIBS="-ludev" |
90c80887 | 14687 | else |
5161ecb9 PR |
14688 | { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5 |
14689 | $as_echo "$as_me: error: bailing out... libudev library is required" >&2;} | |
14690 | { (exit 1); exit 1; }; } | |
90c80887 AK |
14691 | fi |
14692 | ||
14693 | ||
90c80887 | 14694 | cat >>confdefs.h <<\_ACEOF |
5161ecb9 | 14695 | #define UDEV_SYNC_SUPPORT 1 |
90c80887 AK |
14696 | _ACEOF |
14697 | ||
90c80887 AK |
14698 | fi |
14699 | ||
5161ecb9 PR |
14700 | { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5 |
14701 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
14702 | # Check whether --enable-udev_rules was given. | |
14703 | if test "${enable_udev_rules+set}" = set; then | |
14704 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
14705 | else | |
14706 | UDEV_RULES=$UDEV_SYNC | |
14707 | fi | |
14708 | ||
14709 | { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5 | |
14710 | $as_echo "$UDEV_RULES" >&6; } | |
14711 | ||
93bd259b AK |
14712 | ################################################################################ |
14713 | # Check whether --enable-compat was given. | |
14714 | if test "${enable_compat+set}" = set; then | |
14715 | enableval=$enable_compat; DM_COMPAT=$enableval | |
14716 | else | |
14717 | DM_COMPAT=no | |
14718 | fi | |
14719 | ||
14720 | ||
95eaa683 AK |
14721 | ################################################################################ |
14722 | # Check whether --enable-units-compat was given. | |
14723 | if test "${enable_units_compat+set}" = set; then | |
14724 | enableval=$enable_units_compat; UNITS_COMPAT=$enableval | |
14725 | else | |
14726 | UNITS_COMPAT=no | |
14727 | fi | |
14728 | ||
14729 | ||
14730 | if test x$UNITS_COMPAT = xyes; then | |
14731 | ||
14732 | cat >>confdefs.h <<\_ACEOF | |
14733 | #define DEFAULT_SI_UNIT_CONSISTENCY 0 | |
14734 | _ACEOF | |
14735 | ||
14736 | fi | |
14737 | ||
93bd259b AK |
14738 | ################################################################################ |
14739 | # Check whether --enable-ioctl was given. | |
14740 | if test "${enable_ioctl+set}" = set; then | |
14741 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
14742 | fi | |
14743 | ||
14744 | ||
d0191583 | 14745 | ################################################################################ |
ec6a6fbe AK |
14746 | { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
14747 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
d0191583 JM |
14748 | # Check whether --enable-o_direct was given. |
14749 | if test "${enable_o_direct+set}" = set; then | |
14750 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 14751 | fi |
ad6254c5 | 14752 | |
ec6a6fbe AK |
14753 | { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
14754 | $as_echo "$ODIRECT" >&6; } | |
ad6254c5 | 14755 | |
d0191583 | 14756 | if test x$ODIRECT = xyes; then |
ad6254c5 | 14757 | |
d0191583 JM |
14758 | cat >>confdefs.h <<\_ACEOF |
14759 | #define O_DIRECT_SUPPORT 1 | |
14760 | _ACEOF | |
ad6254c5 | 14761 | |
d0191583 | 14762 | fi |
ad6254c5 | 14763 | |
572fefeb AK |
14764 | ################################################################################ |
14765 | { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5 | |
14766 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
14767 | # Check whether --enable-applib was given. | |
14768 | if test "${enable_applib+set}" = set; then | |
14769 | enableval=$enable_applib; APPLIB=$enableval | |
14770 | else | |
14771 | APPLIB=no | |
14772 | fi | |
14773 | ||
14774 | { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5 | |
14775 | $as_echo "$APPLIB" >&6; } | |
14776 | ||
14777 | test x$APPLIB = xyes \ | |
14778 | && LVM2APP_LIB=-llvm2app \ | |
14779 | || LVM2APP_LIB= | |
14780 | ||
d0191583 | 14781 | ################################################################################ |
ec6a6fbe AK |
14782 | { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
14783 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
d0191583 JM |
14784 | # Check whether --enable-cmdlib was given. |
14785 | if test "${enable_cmdlib+set}" = set; then | |
14786 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 14787 | else |
d0191583 JM |
14788 | CMDLIB=no |
14789 | fi | |
8a2fc586 | 14790 | |
ec6a6fbe AK |
14791 | { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
14792 | $as_echo "$CMDLIB" >&6; } | |
8a2fc586 | 14793 | |
2a9a80c9 | 14794 | test x$CMDLIB = xyes \ |
d179cc7a JM |
14795 | && LVM2CMD_LIB=-llvm2cmd \ |
14796 | || LVM2CMD_LIB= | |
14797 | ||
93bd259b AK |
14798 | ################################################################################ |
14799 | # Check whether --enable-pkgconfig was given. | |
14800 | if test "${enable_pkgconfig+set}" = set; then | |
14801 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
14802 | else | |
14803 | PKGCONFIG=no | |
14804 | fi | |
14805 | ||
2a9a80c9 | 14806 | |
23b059e7 ZK |
14807 | ################################################################################ |
14808 | # Check whether --enable-write_install was given. | |
14809 | if test "${enable_write_install+set}" = set; then | |
14810 | enableval=$enable_write_install; WRITE_INSTALL=$enableval | |
14811 | else | |
14812 | WRITE_INSTALL=no | |
14813 | fi | |
14814 | ||
14815 | ||
d0191583 | 14816 | ################################################################################ |
ec6a6fbe AK |
14817 | { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
14818 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
d0191583 JM |
14819 | # Check whether --enable-fsadm was given. |
14820 | if test "${enable_fsadm+set}" = set; then | |
14821 | enableval=$enable_fsadm; FSADM=$enableval | |
14822 | fi | |
8a2fc586 | 14823 | |
ec6a6fbe AK |
14824 | { $as_echo "$as_me:$LINENO: result: $FSADM" >&5 |
14825 | $as_echo "$FSADM" >&6; } | |
8a2fc586 | 14826 | |
d0191583 | 14827 | ################################################################################ |
ec6a6fbe AK |
14828 | { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
14829 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
d0191583 JM |
14830 | # Check whether --enable-dmeventd was given. |
14831 | if test "${enable_dmeventd+set}" = set; then | |
14832 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
14833 | fi | |
ad6254c5 | 14834 | |
ec6a6fbe AK |
14835 | { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
14836 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 14837 | |
93bd259b AK |
14838 | BUILD_DMEVENTD=$DMEVENTD |
14839 | ||
2a9a80c9 PR |
14840 | if test x$DMEVENTD = xyes; then |
14841 | if test x$MIRRORS != xinternal; then | |
ec6a6fbe | 14842 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 14843 | " >&5 |
ec6a6fbe | 14844 | $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 14845 | " >&2;} |
d0191583 | 14846 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
14847 | fi |
14848 | if test x$CMDLIB = xno; then | |
ec6a6fbe | 14849 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 | 14850 | " >&5 |
ec6a6fbe | 14851 | $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 PR |
14852 | " >&2;} |
14853 | { (exit 1); exit 1; }; } | |
14854 | fi | |
ad6254c5 | 14855 | fi |
7a197a62 | 14856 | |
d0191583 JM |
14857 | if test x$DMEVENTD = xyes; then |
14858 | ||
14859 | cat >>confdefs.h <<\_ACEOF | |
14860 | #define DMEVENTD 1 | |
ad6254c5 AK |
14861 | _ACEOF |
14862 | ||
ad6254c5 | 14863 | fi |
93bd259b AK |
14864 | |
14865 | ################################################################################ | |
14866 | ||
ec6a6fbe AK |
14867 | { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5 |
14868 | $as_echo_n "checking for getline in -lc... " >&6; } | |
93bd259b | 14869 | if test "${ac_cv_lib_c_getline+set}" = set; then |
ec6a6fbe | 14870 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
14871 | else |
14872 | ac_check_lib_save_LIBS=$LIBS | |
14873 | LIBS="-lc $LIBS" | |
14874 | cat >conftest.$ac_ext <<_ACEOF | |
14875 | /* confdefs.h. */ | |
14876 | _ACEOF | |
14877 | cat confdefs.h >>conftest.$ac_ext | |
14878 | cat >>conftest.$ac_ext <<_ACEOF | |
14879 | /* end confdefs.h. */ | |
14880 | ||
14881 | /* Override any GCC internal prototype to avoid an error. | |
14882 | Use char because int might match the return type of a GCC | |
14883 | builtin and then its argument prototype would still apply. */ | |
14884 | #ifdef __cplusplus | |
14885 | extern "C" | |
14886 | #endif | |
14887 | char getline (); | |
14888 | int | |
14889 | main () | |
14890 | { | |
14891 | return getline (); | |
14892 | ; | |
14893 | return 0; | |
14894 | } | |
14895 | _ACEOF | |
14896 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14897 | if { (ac_try="$ac_link" | |
14898 | case "(($ac_try" in | |
14899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14900 | *) ac_try_echo=$ac_try;; | |
14901 | esac | |
ec6a6fbe AK |
14902 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14903 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
14904 | (eval "$ac_link") 2>conftest.er1 |
14905 | ac_status=$? | |
14906 | grep -v '^ *+' conftest.er1 >conftest.err | |
14907 | rm -f conftest.er1 | |
14908 | cat conftest.err >&5 | |
ec6a6fbe | 14909 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
14910 | (exit $ac_status); } && { |
14911 | test -z "$ac_c_werror_flag" || | |
14912 | test ! -s conftest.err | |
ec6a6fbe AK |
14913 | } && test -s conftest$ac_exeext && { |
14914 | test "$cross_compiling" = yes || | |
14915 | $as_test_x conftest$ac_exeext | |
14916 | }; then | |
93bd259b AK |
14917 | ac_cv_lib_c_getline=yes |
14918 | else | |
ec6a6fbe | 14919 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
14920 | sed 's/^/| /' conftest.$ac_ext >&5 |
14921 | ||
14922 | ac_cv_lib_c_getline=no | |
14923 | fi | |
14924 | ||
ec6a6fbe | 14925 | rm -rf conftest.dSYM |
93bd259b AK |
14926 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14927 | conftest$ac_exeext conftest.$ac_ext | |
14928 | LIBS=$ac_check_lib_save_LIBS | |
14929 | fi | |
ec6a6fbe AK |
14930 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5 |
14931 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
14932 | if test "x$ac_cv_lib_c_getline" = x""yes; then | |
93bd259b AK |
14933 | |
14934 | cat >>confdefs.h <<\_ACEOF | |
14935 | #define HAVE_GETLINE 1 | |
14936 | _ACEOF | |
14937 | ||
14938 | fi | |
14939 | ||
14940 | ||
14941 | ################################################################################ | |
14942 | ||
ec6a6fbe AK |
14943 | { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5 |
14944 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
93bd259b | 14945 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then |
ec6a6fbe | 14946 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
14947 | else |
14948 | ac_check_lib_save_LIBS=$LIBS | |
14949 | LIBS="-lc $LIBS" | |
14950 | cat >conftest.$ac_ext <<_ACEOF | |
14951 | /* confdefs.h. */ | |
14952 | _ACEOF | |
14953 | cat confdefs.h >>conftest.$ac_ext | |
14954 | cat >>conftest.$ac_ext <<_ACEOF | |
14955 | /* end confdefs.h. */ | |
14956 | ||
14957 | /* Override any GCC internal prototype to avoid an error. | |
14958 | Use char because int might match the return type of a GCC | |
14959 | builtin and then its argument prototype would still apply. */ | |
14960 | #ifdef __cplusplus | |
14961 | extern "C" | |
14962 | #endif | |
14963 | char canonicalize_file_name (); | |
14964 | int | |
14965 | main () | |
14966 | { | |
14967 | return canonicalize_file_name (); | |
14968 | ; | |
14969 | return 0; | |
14970 | } | |
14971 | _ACEOF | |
14972 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14973 | if { (ac_try="$ac_link" | |
14974 | case "(($ac_try" in | |
14975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14976 | *) ac_try_echo=$ac_try;; | |
14977 | esac | |
ec6a6fbe AK |
14978 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14979 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
14980 | (eval "$ac_link") 2>conftest.er1 |
14981 | ac_status=$? | |
14982 | grep -v '^ *+' conftest.er1 >conftest.err | |
14983 | rm -f conftest.er1 | |
14984 | cat conftest.err >&5 | |
ec6a6fbe | 14985 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
14986 | (exit $ac_status); } && { |
14987 | test -z "$ac_c_werror_flag" || | |
14988 | test ! -s conftest.err | |
ec6a6fbe AK |
14989 | } && test -s conftest$ac_exeext && { |
14990 | test "$cross_compiling" = yes || | |
14991 | $as_test_x conftest$ac_exeext | |
14992 | }; then | |
93bd259b AK |
14993 | ac_cv_lib_c_canonicalize_file_name=yes |
14994 | else | |
ec6a6fbe | 14995 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
14996 | sed 's/^/| /' conftest.$ac_ext >&5 |
14997 | ||
14998 | ac_cv_lib_c_canonicalize_file_name=no | |
14999 | fi | |
15000 | ||
ec6a6fbe | 15001 | rm -rf conftest.dSYM |
93bd259b AK |
15002 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
15003 | conftest$ac_exeext conftest.$ac_ext | |
15004 | LIBS=$ac_check_lib_save_LIBS | |
15005 | fi | |
ec6a6fbe AK |
15006 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5 |
15007 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
15008 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then | |
93bd259b AK |
15009 | |
15010 | cat >>confdefs.h <<\_ACEOF | |
15011 | #define HAVE_CANONICALIZE_FILE_NAME 1 | |
15012 | _ACEOF | |
15013 | ||
15014 | fi | |
15015 | ||
15016 | ||
d0191583 JM |
15017 | ################################################################################ |
15018 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
15019 | then exec_prefix=""; | |
15020 | fi; | |
ad6254c5 | 15021 | |
ad6254c5 | 15022 | ################################################################################ |
ec6a6fbe AK |
15023 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
15024 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
ad6254c5 | 15025 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
ec6a6fbe | 15026 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
15027 | else |
15028 | ac_check_lib_save_LIBS=$LIBS | |
15029 | LIBS="-ldl $LIBS" | |
15030 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
15031 | /* confdefs.h. */ |
15032 | _ACEOF | |
15033 | cat confdefs.h >>conftest.$ac_ext | |
15034 | cat >>conftest.$ac_ext <<_ACEOF | |
15035 | /* end confdefs.h. */ | |
15036 | ||
7a197a62 AK |
15037 | /* Override any GCC internal prototype to avoid an error. |
15038 | Use char because int might match the return type of a GCC | |
15039 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
15040 | #ifdef __cplusplus |
15041 | extern "C" | |
15042 | #endif | |
ad6254c5 AK |
15043 | char dlopen (); |
15044 | int | |
15045 | main () | |
15046 | { | |
7a197a62 | 15047 | return dlopen (); |
ad6254c5 AK |
15048 | ; |
15049 | return 0; | |
15050 | } | |
15051 | _ACEOF | |
15052 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15053 | if { (ac_try="$ac_link" |
15054 | case "(($ac_try" in | |
15055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15056 | *) ac_try_echo=$ac_try;; | |
15057 | esac | |
ec6a6fbe AK |
15058 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15059 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15060 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 15061 | ac_status=$? |
8a2fc586 AK |
15062 | grep -v '^ *+' conftest.er1 >conftest.err |
15063 | rm -f conftest.er1 | |
15064 | cat conftest.err >&5 | |
ec6a6fbe | 15065 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15066 | (exit $ac_status); } && { |
15067 | test -z "$ac_c_werror_flag" || | |
15068 | test ! -s conftest.err | |
ec6a6fbe AK |
15069 | } && test -s conftest$ac_exeext && { |
15070 | test "$cross_compiling" = yes || | |
15071 | $as_test_x conftest$ac_exeext | |
15072 | }; then | |
ad6254c5 AK |
15073 | ac_cv_lib_dl_dlopen=yes |
15074 | else | |
ec6a6fbe | 15075 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15076 | sed 's/^/| /' conftest.$ac_ext >&5 |
15077 | ||
7a197a62 | 15078 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 15079 | fi |
7a197a62 | 15080 | |
ec6a6fbe | 15081 | rm -rf conftest.dSYM |
25fbec5b | 15082 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 15083 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
15084 | LIBS=$ac_check_lib_save_LIBS |
15085 | fi | |
ec6a6fbe AK |
15086 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
15087 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
15088 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
ad6254c5 | 15089 | |
72b2cb61 AK |
15090 | |
15091 | cat >>confdefs.h <<\_ACEOF | |
15092 | #define HAVE_LIBDL 1 | |
15093 | _ACEOF | |
15094 | ||
19a2c6e0 ZK |
15095 | DL_LIBS="-ldl" |
15096 | HAVE_LIBDL=yes | |
ad6254c5 | 15097 | else |
19a2c6e0 ZK |
15098 | |
15099 | DL_LIBS= | |
ad6254c5 AK |
15100 | HAVE_LIBDL=no |
15101 | fi | |
15102 | ||
19a2c6e0 | 15103 | |
ad6254c5 AK |
15104 | ################################################################################ |
15105 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
15106 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
15107 | \) -a "x$STATIC_LINK" = xyes ]; | |
ec6a6fbe | 15108 | then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 15109 | " >&5 |
ec6a6fbe | 15110 | $as_echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
15111 | " >&2;} |
15112 | { (exit 1); exit 1; }; } | |
15113 | fi | |
15114 | ||
f30875db ZK |
15115 | ################################################################################ |
15116 | if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then | |
15117 | { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5 | |
15118 | $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } | |
15119 | if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then | |
15120 | $as_echo_n "(cached) " >&6 | |
15121 | else | |
15122 | ac_check_lib_save_LIBS=$LIBS | |
15123 | LIBS="-lpthread $LIBS" | |
15124 | cat >conftest.$ac_ext <<_ACEOF | |
15125 | /* confdefs.h. */ | |
15126 | _ACEOF | |
15127 | cat confdefs.h >>conftest.$ac_ext | |
15128 | cat >>conftest.$ac_ext <<_ACEOF | |
15129 | /* end confdefs.h. */ | |
15130 | ||
15131 | /* Override any GCC internal prototype to avoid an error. | |
15132 | Use char because int might match the return type of a GCC | |
15133 | builtin and then its argument prototype would still apply. */ | |
15134 | #ifdef __cplusplus | |
15135 | extern "C" | |
15136 | #endif | |
15137 | char pthread_mutex_lock (); | |
15138 | int | |
15139 | main () | |
15140 | { | |
15141 | return pthread_mutex_lock (); | |
15142 | ; | |
15143 | return 0; | |
15144 | } | |
15145 | _ACEOF | |
15146 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15147 | if { (ac_try="$ac_link" | |
15148 | case "(($ac_try" in | |
15149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15150 | *) ac_try_echo=$ac_try;; | |
15151 | esac | |
15152 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15153 | $as_echo "$ac_try_echo") >&5 | |
15154 | (eval "$ac_link") 2>conftest.er1 | |
15155 | ac_status=$? | |
15156 | grep -v '^ *+' conftest.er1 >conftest.err | |
15157 | rm -f conftest.er1 | |
15158 | cat conftest.err >&5 | |
15159 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15160 | (exit $ac_status); } && { | |
15161 | test -z "$ac_c_werror_flag" || | |
15162 | test ! -s conftest.err | |
15163 | } && test -s conftest$ac_exeext && { | |
15164 | test "$cross_compiling" = yes || | |
15165 | $as_test_x conftest$ac_exeext | |
15166 | }; then | |
15167 | ac_cv_lib_pthread_pthread_mutex_lock=yes | |
15168 | else | |
15169 | $as_echo "$as_me: failed program was:" >&5 | |
15170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15171 | ||
15172 | ac_cv_lib_pthread_pthread_mutex_lock=no | |
15173 | fi | |
15174 | ||
15175 | rm -rf conftest.dSYM | |
15176 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15177 | conftest$ac_exeext conftest.$ac_ext | |
15178 | LIBS=$ac_check_lib_save_LIBS | |
15179 | fi | |
15180 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 | |
15181 | $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } | |
15182 | if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then | |
15183 | PTHREAD_LIBS="-lpthread" | |
15184 | else | |
15185 | hard_bailout | |
15186 | fi | |
15187 | ||
15188 | fi | |
15189 | ||
d0191583 | 15190 | ################################################################################ |
ec6a6fbe AK |
15191 | { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
15192 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
d0191583 JM |
15193 | # Check whether --enable-selinux was given. |
15194 | if test "${enable_selinux+set}" = set; then | |
15195 | enableval=$enable_selinux; SELINUX=$enableval | |
15196 | fi | |
15197 | ||
ec6a6fbe AK |
15198 | { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5 |
15199 | $as_echo "$SELINUX" >&6; } | |
d0191583 | 15200 | |
ad6254c5 AK |
15201 | ################################################################################ |
15202 | if test x$SELINUX = xyes; then | |
ec6a6fbe AK |
15203 | { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
15204 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
8a2fc586 | 15205 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
ec6a6fbe | 15206 | $as_echo_n "(cached) " >&6 |
8a2fc586 AK |
15207 | else |
15208 | ac_check_lib_save_LIBS=$LIBS | |
15209 | LIBS="-lsepol $LIBS" | |
15210 | cat >conftest.$ac_ext <<_ACEOF | |
15211 | /* confdefs.h. */ | |
15212 | _ACEOF | |
15213 | cat confdefs.h >>conftest.$ac_ext | |
15214 | cat >>conftest.$ac_ext <<_ACEOF | |
15215 | /* end confdefs.h. */ | |
15216 | ||
7a197a62 AK |
15217 | /* Override any GCC internal prototype to avoid an error. |
15218 | Use char because int might match the return type of a GCC | |
15219 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
15220 | #ifdef __cplusplus |
15221 | extern "C" | |
15222 | #endif | |
8a2fc586 AK |
15223 | char sepol_check_context (); |
15224 | int | |
15225 | main () | |
15226 | { | |
7a197a62 | 15227 | return sepol_check_context (); |
8a2fc586 AK |
15228 | ; |
15229 | return 0; | |
15230 | } | |
15231 | _ACEOF | |
15232 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15233 | if { (ac_try="$ac_link" |
15234 | case "(($ac_try" in | |
15235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15236 | *) ac_try_echo=$ac_try;; | |
15237 | esac | |
ec6a6fbe AK |
15238 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15239 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15240 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
15241 | ac_status=$? |
15242 | grep -v '^ *+' conftest.er1 >conftest.err | |
15243 | rm -f conftest.er1 | |
15244 | cat conftest.err >&5 | |
ec6a6fbe | 15245 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15246 | (exit $ac_status); } && { |
15247 | test -z "$ac_c_werror_flag" || | |
15248 | test ! -s conftest.err | |
ec6a6fbe AK |
15249 | } && test -s conftest$ac_exeext && { |
15250 | test "$cross_compiling" = yes || | |
15251 | $as_test_x conftest$ac_exeext | |
15252 | }; then | |
8a2fc586 AK |
15253 | ac_cv_lib_sepol_sepol_check_context=yes |
15254 | else | |
ec6a6fbe | 15255 | $as_echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
15256 | sed 's/^/| /' conftest.$ac_ext >&5 |
15257 | ||
7a197a62 | 15258 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 15259 | fi |
7a197a62 | 15260 | |
ec6a6fbe | 15261 | rm -rf conftest.dSYM |
25fbec5b | 15262 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
15263 | conftest$ac_exeext conftest.$ac_ext |
15264 | LIBS=$ac_check_lib_save_LIBS | |
15265 | fi | |
ec6a6fbe AK |
15266 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
15267 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
15268 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then | |
8a2fc586 | 15269 | |
d0191583 JM |
15270 | |
15271 | cat >>confdefs.h <<\_ACEOF | |
15272 | #define HAVE_SEPOL 1 | |
15273 | _ACEOF | |
15274 | ||
f8f6ec92 ZK |
15275 | SELINUX_LIBS="-lsepol" |
15276 | fi | |
15277 | ||
8a2fc586 | 15278 | |
ec6a6fbe AK |
15279 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
15280 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
ad6254c5 | 15281 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
ec6a6fbe | 15282 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
15283 | else |
15284 | ac_check_lib_save_LIBS=$LIBS | |
15285 | LIBS="-lselinux $LIBS" | |
15286 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
15287 | /* confdefs.h. */ |
15288 | _ACEOF | |
15289 | cat confdefs.h >>conftest.$ac_ext | |
15290 | cat >>conftest.$ac_ext <<_ACEOF | |
15291 | /* end confdefs.h. */ | |
15292 | ||
7a197a62 AK |
15293 | /* Override any GCC internal prototype to avoid an error. |
15294 | Use char because int might match the return type of a GCC | |
15295 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
15296 | #ifdef __cplusplus |
15297 | extern "C" | |
15298 | #endif | |
ad6254c5 AK |
15299 | char is_selinux_enabled (); |
15300 | int | |
15301 | main () | |
15302 | { | |
7a197a62 | 15303 | return is_selinux_enabled (); |
ad6254c5 AK |
15304 | ; |
15305 | return 0; | |
15306 | } | |
15307 | _ACEOF | |
15308 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15309 | if { (ac_try="$ac_link" |
15310 | case "(($ac_try" in | |
15311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15312 | *) ac_try_echo=$ac_try;; | |
15313 | esac | |
ec6a6fbe AK |
15314 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15315 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15316 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 15317 | ac_status=$? |
8a2fc586 AK |
15318 | grep -v '^ *+' conftest.er1 >conftest.err |
15319 | rm -f conftest.er1 | |
15320 | cat conftest.err >&5 | |
ec6a6fbe | 15321 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15322 | (exit $ac_status); } && { |
15323 | test -z "$ac_c_werror_flag" || | |
15324 | test ! -s conftest.err | |
ec6a6fbe AK |
15325 | } && test -s conftest$ac_exeext && { |
15326 | test "$cross_compiling" = yes || | |
15327 | $as_test_x conftest$ac_exeext | |
15328 | }; then | |
ad6254c5 AK |
15329 | ac_cv_lib_selinux_is_selinux_enabled=yes |
15330 | else | |
ec6a6fbe | 15331 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15332 | sed 's/^/| /' conftest.$ac_ext >&5 |
15333 | ||
7a197a62 | 15334 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 15335 | fi |
7a197a62 | 15336 | |
ec6a6fbe | 15337 | rm -rf conftest.dSYM |
25fbec5b | 15338 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 15339 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
15340 | LIBS=$ac_check_lib_save_LIBS |
15341 | fi | |
ec6a6fbe AK |
15342 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
15343 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
15344 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then | |
ad6254c5 | 15345 | |
72b2cb61 | 15346 | |
f8f6ec92 ZK |
15347 | for ac_header in selinux/selinux.h |
15348 | do | |
15349 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15350 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15351 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15352 | $as_echo_n "checking for $ac_header... " >&6; } | |
15353 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ec6a6fbe | 15354 | $as_echo_n "(cached) " >&6 |
f8f6ec92 ZK |
15355 | fi |
15356 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15357 | $as_echo "$as_val"'` | |
15358 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15359 | $as_echo "$ac_res" >&6; } | |
66e941e8 | 15360 | else |
f8f6ec92 ZK |
15361 | # Is the header compilable? |
15362 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15363 | $as_echo_n "checking $ac_header usability... " >&6; } | |
66e941e8 JM |
15364 | cat >conftest.$ac_ext <<_ACEOF |
15365 | /* confdefs.h. */ | |
15366 | _ACEOF | |
15367 | cat confdefs.h >>conftest.$ac_ext | |
15368 | cat >>conftest.$ac_ext <<_ACEOF | |
15369 | /* end confdefs.h. */ | |
f8f6ec92 ZK |
15370 | $ac_includes_default |
15371 | #include <$ac_header> | |
66e941e8 | 15372 | _ACEOF |
f8f6ec92 ZK |
15373 | rm -f conftest.$ac_objext |
15374 | if { (ac_try="$ac_compile" | |
66e941e8 JM |
15375 | case "(($ac_try" in |
15376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15377 | *) ac_try_echo=$ac_try;; | |
15378 | esac | |
ec6a6fbe AK |
15379 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15380 | $as_echo "$ac_try_echo") >&5 | |
f8f6ec92 | 15381 | (eval "$ac_compile") 2>conftest.er1 |
66e941e8 JM |
15382 | ac_status=$? |
15383 | grep -v '^ *+' conftest.er1 >conftest.err | |
15384 | rm -f conftest.er1 | |
15385 | cat conftest.err >&5 | |
ec6a6fbe | 15386 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15387 | (exit $ac_status); } && { |
15388 | test -z "$ac_c_werror_flag" || | |
15389 | test ! -s conftest.err | |
f8f6ec92 ZK |
15390 | } && test -s conftest.$ac_objext; then |
15391 | ac_header_compiler=yes | |
15392 | else | |
15393 | $as_echo "$as_me: failed program was:" >&5 | |
15394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15395 | ||
15396 | ac_header_compiler=no | |
15397 | fi | |
15398 | ||
15399 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15400 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15401 | $as_echo "$ac_header_compiler" >&6; } | |
15402 | ||
15403 | # Is the header present? | |
15404 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15405 | $as_echo_n "checking $ac_header presence... " >&6; } | |
15406 | cat >conftest.$ac_ext <<_ACEOF | |
15407 | /* confdefs.h. */ | |
15408 | _ACEOF | |
15409 | cat confdefs.h >>conftest.$ac_ext | |
15410 | cat >>conftest.$ac_ext <<_ACEOF | |
15411 | /* end confdefs.h. */ | |
15412 | #include <$ac_header> | |
15413 | _ACEOF | |
15414 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15415 | case "(($ac_try" in | |
15416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15417 | *) ac_try_echo=$ac_try;; | |
15418 | esac | |
15419 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15420 | $as_echo "$ac_try_echo") >&5 | |
15421 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15422 | ac_status=$? | |
15423 | grep -v '^ *+' conftest.er1 >conftest.err | |
15424 | rm -f conftest.er1 | |
15425 | cat conftest.err >&5 | |
15426 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15427 | (exit $ac_status); } >/dev/null && { | |
15428 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15429 | test ! -s conftest.err | |
ec6a6fbe | 15430 | }; then |
f8f6ec92 | 15431 | ac_header_preproc=yes |
66e941e8 | 15432 | else |
ec6a6fbe | 15433 | $as_echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
15434 | sed 's/^/| /' conftest.$ac_ext >&5 |
15435 | ||
f8f6ec92 ZK |
15436 | ac_header_preproc=no |
15437 | fi | |
15438 | ||
15439 | rm -f conftest.err conftest.$ac_ext | |
15440 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15441 | $as_echo "$ac_header_preproc" >&6; } | |
15442 | ||
15443 | # So? What about this header? | |
15444 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15445 | yes:no: ) | |
15446 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15447 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15448 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15449 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15450 | ac_header_preproc=yes | |
15451 | ;; | |
15452 | no:yes:* ) | |
15453 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15454 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15455 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15456 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15457 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15458 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15459 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15460 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15461 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15462 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15463 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15464 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
66e941e8 | 15465 | |
f8f6ec92 ZK |
15466 | ;; |
15467 | esac | |
15468 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15469 | $as_echo_n "checking for $ac_header... " >&6; } | |
15470 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15471 | $as_echo_n "(cached) " >&6 | |
15472 | else | |
15473 | eval "$as_ac_Header=\$ac_header_preproc" | |
66e941e8 | 15474 | fi |
f8f6ec92 ZK |
15475 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15476 | $as_echo "$as_val"'` | |
15477 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15478 | $as_echo "$ac_res" >&6; } | |
66e941e8 | 15479 | |
66e941e8 | 15480 | fi |
f8f6ec92 ZK |
15481 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15482 | $as_echo "$as_val"'` | |
15483 | if test "x$as_val" = x""yes; then | |
15484 | cat >>confdefs.h <<_ACEOF | |
15485 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15486 | _ACEOF | |
15487 | ||
66e941e8 | 15488 | else |
f8f6ec92 | 15489 | hard_bailout |
66e941e8 | 15490 | fi |
f8f6ec92 ZK |
15491 | |
15492 | done | |
15493 | ||
15494 | ||
15495 | cat >>confdefs.h <<\_ACEOF | |
15496 | #define HAVE_SELINUX 1 | |
15497 | _ACEOF | |
15498 | ||
15499 | SELINUX_LIBS="-lselinux $SELINUX_LIBS" | |
f7f0854e | 15500 | SELINUX_PC="libselinux" |
f8f6ec92 ZK |
15501 | HAVE_SELINUX=yes |
15502 | else | |
15503 | ||
15504 | { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 | |
15505 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
15506 | SELINUX_LIBS= | |
f7f0854e | 15507 | SELINUX_PC= |
f8f6ec92 | 15508 | HAVE_SELINUX=no |
66e941e8 JM |
15509 | fi |
15510 | ||
ad6254c5 AK |
15511 | fi |
15512 | ||
8b1a3214 AK |
15513 | ################################################################################ |
15514 | if test x$REALTIME = xyes; then | |
ec6a6fbe AK |
15515 | { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
15516 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
8b1a3214 | 15517 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
ec6a6fbe | 15518 | $as_echo_n "(cached) " >&6 |
8b1a3214 AK |
15519 | else |
15520 | ac_check_lib_save_LIBS=$LIBS | |
15521 | LIBS="-lrt $LIBS" | |
15522 | cat >conftest.$ac_ext <<_ACEOF | |
15523 | /* confdefs.h. */ | |
15524 | _ACEOF | |
15525 | cat confdefs.h >>conftest.$ac_ext | |
15526 | cat >>conftest.$ac_ext <<_ACEOF | |
15527 | /* end confdefs.h. */ | |
15528 | ||
7a197a62 AK |
15529 | /* Override any GCC internal prototype to avoid an error. |
15530 | Use char because int might match the return type of a GCC | |
15531 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
15532 | #ifdef __cplusplus |
15533 | extern "C" | |
15534 | #endif | |
8b1a3214 AK |
15535 | char clock_gettime (); |
15536 | int | |
15537 | main () | |
15538 | { | |
7a197a62 | 15539 | return clock_gettime (); |
8b1a3214 AK |
15540 | ; |
15541 | return 0; | |
15542 | } | |
15543 | _ACEOF | |
15544 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15545 | if { (ac_try="$ac_link" |
15546 | case "(($ac_try" in | |
15547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15548 | *) ac_try_echo=$ac_try;; | |
15549 | esac | |
ec6a6fbe AK |
15550 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15551 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15552 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
15553 | ac_status=$? |
15554 | grep -v '^ *+' conftest.er1 >conftest.err | |
15555 | rm -f conftest.er1 | |
15556 | cat conftest.err >&5 | |
ec6a6fbe | 15557 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15558 | (exit $ac_status); } && { |
15559 | test -z "$ac_c_werror_flag" || | |
15560 | test ! -s conftest.err | |
ec6a6fbe AK |
15561 | } && test -s conftest$ac_exeext && { |
15562 | test "$cross_compiling" = yes || | |
15563 | $as_test_x conftest$ac_exeext | |
15564 | }; then | |
8b1a3214 AK |
15565 | ac_cv_lib_rt_clock_gettime=yes |
15566 | else | |
ec6a6fbe | 15567 | $as_echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
15568 | sed 's/^/| /' conftest.$ac_ext >&5 |
15569 | ||
7a197a62 | 15570 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 15571 | fi |
7a197a62 | 15572 | |
ec6a6fbe | 15573 | rm -rf conftest.dSYM |
25fbec5b | 15574 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
15575 | conftest$ac_exeext conftest.$ac_ext |
15576 | LIBS=$ac_check_lib_save_LIBS | |
15577 | fi | |
ec6a6fbe AK |
15578 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
15579 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
15580 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then | |
8b1a3214 AK |
15581 | HAVE_REALTIME=yes |
15582 | else | |
15583 | HAVE_REALTIME=no | |
15584 | fi | |
15585 | ||
8b1a3214 AK |
15586 | |
15587 | if test x$HAVE_REALTIME = xyes; then | |
15588 | ||
15589 | cat >>confdefs.h <<\_ACEOF | |
15590 | #define HAVE_REALTIME 1 | |
15591 | _ACEOF | |
15592 | ||
15593 | LIBS="-lrt $LIBS" | |
15594 | else | |
ec6a6fbe AK |
15595 | { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
15596 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
15597 | fi |
15598 | fi | |
15599 | ||
ad6254c5 AK |
15600 | ################################################################################ |
15601 | ||
15602 | for ac_header in getopt.h | |
15603 | do | |
ec6a6fbe | 15604 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 15605 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
15606 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15607 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15608 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15609 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15610 | fi |
ec6a6fbe AK |
15611 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15612 | $as_echo "$as_val"'` | |
15613 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15614 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
15615 | else |
15616 | # Is the header compilable? | |
ec6a6fbe AK |
15617 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15618 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 15619 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15620 | /* confdefs.h. */ |
15621 | _ACEOF | |
15622 | cat confdefs.h >>conftest.$ac_ext | |
15623 | cat >>conftest.$ac_ext <<_ACEOF | |
15624 | /* end confdefs.h. */ | |
15625 | $ac_includes_default | |
15626 | #include <$ac_header> | |
15627 | _ACEOF | |
15628 | rm -f conftest.$ac_objext | |
7a197a62 AK |
15629 | if { (ac_try="$ac_compile" |
15630 | case "(($ac_try" in | |
15631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15632 | *) ac_try_echo=$ac_try;; | |
15633 | esac | |
ec6a6fbe AK |
15634 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15635 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15636 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 15637 | ac_status=$? |
8a2fc586 AK |
15638 | grep -v '^ *+' conftest.er1 >conftest.err |
15639 | rm -f conftest.er1 | |
15640 | cat conftest.err >&5 | |
ec6a6fbe | 15641 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15642 | (exit $ac_status); } && { |
15643 | test -z "$ac_c_werror_flag" || | |
15644 | test ! -s conftest.err | |
15645 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
15646 | ac_header_compiler=yes |
15647 | else | |
ec6a6fbe | 15648 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15649 | sed 's/^/| /' conftest.$ac_ext >&5 |
15650 | ||
7a197a62 | 15651 | ac_header_compiler=no |
ad6254c5 | 15652 | fi |
7a197a62 AK |
15653 | |
15654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
15655 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15656 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
15657 | |
15658 | # Is the header present? | |
ec6a6fbe AK |
15659 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15660 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 15661 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15662 | /* confdefs.h. */ |
15663 | _ACEOF | |
15664 | cat confdefs.h >>conftest.$ac_ext | |
15665 | cat >>conftest.$ac_ext <<_ACEOF | |
15666 | /* end confdefs.h. */ | |
15667 | #include <$ac_header> | |
15668 | _ACEOF | |
7a197a62 AK |
15669 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15670 | case "(($ac_try" in | |
15671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15672 | *) ac_try_echo=$ac_try;; | |
15673 | esac | |
ec6a6fbe AK |
15674 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15675 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15676 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
15677 | ac_status=$? |
15678 | grep -v '^ *+' conftest.er1 >conftest.err | |
15679 | rm -f conftest.er1 | |
15680 | cat conftest.err >&5 | |
ec6a6fbe | 15681 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15682 | (exit $ac_status); } >/dev/null && { |
15683 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15684 | test ! -s conftest.err | |
15685 | }; then | |
ad6254c5 AK |
15686 | ac_header_preproc=yes |
15687 | else | |
ec6a6fbe | 15688 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15689 | sed 's/^/| /' conftest.$ac_ext >&5 |
15690 | ||
15691 | ac_header_preproc=no | |
15692 | fi | |
7a197a62 | 15693 | |
ad6254c5 | 15694 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
15695 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15696 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
15697 | |
15698 | # So? What about this header? | |
8a2fc586 AK |
15699 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15700 | yes:no: ) | |
ec6a6fbe AK |
15701 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15702 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15703 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15704 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 15705 | ac_header_preproc=yes |
ad6254c5 | 15706 | ;; |
8a2fc586 | 15707 | no:yes:* ) |
ec6a6fbe AK |
15708 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15709 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15710 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15711 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15712 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15713 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15714 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15715 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15716 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15717 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15718 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15719 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 15720 | |
ad6254c5 AK |
15721 | ;; |
15722 | esac | |
ec6a6fbe AK |
15723 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15724 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15725 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15726 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15727 | else |
8a2fc586 | 15728 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 15729 | fi |
ec6a6fbe AK |
15730 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15731 | $as_echo "$as_val"'` | |
15732 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15733 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
15734 | |
15735 | fi | |
ec6a6fbe AK |
15736 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15737 | $as_echo "$as_val"'` | |
15738 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 15739 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 15740 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 15741 | _ACEOF |
72b2cb61 AK |
15742 | |
15743 | cat >>confdefs.h <<\_ACEOF | |
15744 | #define HAVE_GETOPTLONG 1 | |
15745 | _ACEOF | |
15746 | ||
ad6254c5 AK |
15747 | fi |
15748 | ||
15749 | done | |
15750 | ||
15751 | ||
15752 | ################################################################################ | |
06e459df | 15753 | if test x$READLINE != xno; then |
539f4a77 ZK |
15754 | lvm_saved_libs=$LIBS |
15755 | { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 | |
15756 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
15757 | if test "${ac_cv_search_tgetent+set}" = set; then | |
15758 | $as_echo_n "(cached) " >&6 | |
15759 | else | |
15760 | ac_func_search_save_LIBS=$LIBS | |
15761 | cat >conftest.$ac_ext <<_ACEOF | |
15762 | /* confdefs.h. */ | |
15763 | _ACEOF | |
15764 | cat confdefs.h >>conftest.$ac_ext | |
15765 | cat >>conftest.$ac_ext <<_ACEOF | |
15766 | /* end confdefs.h. */ | |
bc1024f8 | 15767 | |
539f4a77 ZK |
15768 | /* Override any GCC internal prototype to avoid an error. |
15769 | Use char because int might match the return type of a GCC | |
15770 | builtin and then its argument prototype would still apply. */ | |
15771 | #ifdef __cplusplus | |
15772 | extern "C" | |
15773 | #endif | |
15774 | char tgetent (); | |
15775 | int | |
15776 | main () | |
15777 | { | |
15778 | return tgetent (); | |
15779 | ; | |
15780 | return 0; | |
15781 | } | |
15782 | _ACEOF | |
15783 | for ac_lib in '' tinfo ncurses curses termcap termlib; do | |
15784 | if test -z "$ac_lib"; then | |
15785 | ac_res="none required" | |
15786 | else | |
15787 | ac_res=-l$ac_lib | |
15788 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15789 | fi | |
15790 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15791 | if { (ac_try="$ac_link" | |
15792 | case "(($ac_try" in | |
15793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15794 | *) ac_try_echo=$ac_try;; | |
15795 | esac | |
15796 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15797 | $as_echo "$ac_try_echo") >&5 | |
15798 | (eval "$ac_link") 2>conftest.er1 | |
15799 | ac_status=$? | |
15800 | grep -v '^ *+' conftest.er1 >conftest.err | |
15801 | rm -f conftest.er1 | |
15802 | cat conftest.err >&5 | |
15803 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15804 | (exit $ac_status); } && { | |
15805 | test -z "$ac_c_werror_flag" || | |
15806 | test ! -s conftest.err | |
15807 | } && test -s conftest$ac_exeext && { | |
15808 | test "$cross_compiling" = yes || | |
15809 | $as_test_x conftest$ac_exeext | |
15810 | }; then | |
15811 | ac_cv_search_tgetent=$ac_res | |
15812 | else | |
15813 | $as_echo "$as_me: failed program was:" >&5 | |
15814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15815 | ||
15816 | ||
15817 | fi | |
15818 | ||
15819 | rm -rf conftest.dSYM | |
15820 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15821 | conftest$ac_exeext | |
15822 | if test "${ac_cv_search_tgetent+set}" = set; then | |
15823 | break | |
15824 | fi | |
15825 | done | |
15826 | if test "${ac_cv_search_tgetent+set}" = set; then | |
15827 | : | |
15828 | else | |
15829 | ac_cv_search_tgetent=no | |
15830 | fi | |
15831 | rm conftest.$ac_ext | |
15832 | LIBS=$ac_func_search_save_LIBS | |
15833 | fi | |
15834 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 | |
15835 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
15836 | ac_res=$ac_cv_search_tgetent | |
15837 | if test "$ac_res" != no; then | |
15838 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
15839 | READLINE_LIBS=$ac_cv_search_tgetent | |
15840 | else | |
15841 | ||
15842 | if test "$READLINE" = yes; then | |
15843 | { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the | |
15844 | --enable-readline option (which is enabled by default). Either disable readline | |
15845 | support with --disable-readline or download and install termcap from: | |
15846 | ftp.gnu.org/gnu/termcap | |
15847 | Note: if you are using precompiled packages you will also need the development | |
15848 | package as well (which may be called termcap-devel or something similar). | |
15849 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
15850 | not found either - but you could try installing that as well." >&5 | |
15851 | $as_echo "$as_me: error: termcap could not be found which is required for the | |
15852 | --enable-readline option (which is enabled by default). Either disable readline | |
15853 | support with --disable-readline or download and install termcap from: | |
15854 | ftp.gnu.org/gnu/termcap | |
15855 | Note: if you are using precompiled packages you will also need the development | |
15856 | package as well (which may be called termcap-devel or something similar). | |
15857 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
15858 | not found either - but you could try installing that as well." >&2;} | |
15859 | { (exit 1); exit 1; }; } | |
15860 | fi | |
15861 | fi | |
15862 | ||
15863 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 | |
ec6a6fbe | 15864 | $as_echo_n "checking for readline in -lreadline... " >&6; } |
ad6254c5 | 15865 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
ec6a6fbe | 15866 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
15867 | else |
15868 | ac_check_lib_save_LIBS=$LIBS | |
15869 | LIBS="-lreadline $LIBS" | |
15870 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
15871 | /* confdefs.h. */ |
15872 | _ACEOF | |
15873 | cat confdefs.h >>conftest.$ac_ext | |
15874 | cat >>conftest.$ac_ext <<_ACEOF | |
15875 | /* end confdefs.h. */ | |
15876 | ||
7a197a62 AK |
15877 | /* Override any GCC internal prototype to avoid an error. |
15878 | Use char because int might match the return type of a GCC | |
15879 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
15880 | #ifdef __cplusplus |
15881 | extern "C" | |
15882 | #endif | |
ad6254c5 AK |
15883 | char readline (); |
15884 | int | |
15885 | main () | |
15886 | { | |
7a197a62 | 15887 | return readline (); |
ad6254c5 AK |
15888 | ; |
15889 | return 0; | |
15890 | } | |
15891 | _ACEOF | |
15892 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15893 | if { (ac_try="$ac_link" |
15894 | case "(($ac_try" in | |
15895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15896 | *) ac_try_echo=$ac_try;; | |
15897 | esac | |
ec6a6fbe AK |
15898 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15899 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15900 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 15901 | ac_status=$? |
8a2fc586 AK |
15902 | grep -v '^ *+' conftest.er1 >conftest.err |
15903 | rm -f conftest.er1 | |
15904 | cat conftest.err >&5 | |
ec6a6fbe | 15905 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15906 | (exit $ac_status); } && { |
15907 | test -z "$ac_c_werror_flag" || | |
15908 | test ! -s conftest.err | |
ec6a6fbe AK |
15909 | } && test -s conftest$ac_exeext && { |
15910 | test "$cross_compiling" = yes || | |
15911 | $as_test_x conftest$ac_exeext | |
15912 | }; then | |
ad6254c5 AK |
15913 | ac_cv_lib_readline_readline=yes |
15914 | else | |
ec6a6fbe | 15915 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15916 | sed 's/^/| /' conftest.$ac_ext >&5 |
15917 | ||
7a197a62 | 15918 | ac_cv_lib_readline_readline=no |
ad6254c5 | 15919 | fi |
7a197a62 | 15920 | |
ec6a6fbe | 15921 | rm -rf conftest.dSYM |
25fbec5b | 15922 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 15923 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
15924 | LIBS=$ac_check_lib_save_LIBS |
15925 | fi | |
ec6a6fbe AK |
15926 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
15927 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
15928 | if test "x$ac_cv_lib_readline_readline" = x""yes; then | |
539f4a77 ZK |
15929 | |
15930 | ||
15931 | cat >>confdefs.h <<\_ACEOF | |
15932 | #define READLINE_SUPPORT 1 | |
bc1024f8 JM |
15933 | _ACEOF |
15934 | ||
539f4a77 ZK |
15935 | LIBS=$lvm_saved_libs |
15936 | { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5 | |
15937 | $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; } | |
15938 | if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then | |
15939 | $as_echo_n "(cached) " >&6 | |
15940 | else | |
15941 | ac_check_lib_save_LIBS=$LIBS | |
15942 | LIBS="-lreadline $LIBS" | |
15943 | cat >conftest.$ac_ext <<_ACEOF | |
15944 | /* confdefs.h. */ | |
15945 | _ACEOF | |
15946 | cat confdefs.h >>conftest.$ac_ext | |
15947 | cat >>conftest.$ac_ext <<_ACEOF | |
15948 | /* end confdefs.h. */ | |
bc1024f8 | 15949 | |
539f4a77 ZK |
15950 | /* Override any GCC internal prototype to avoid an error. |
15951 | Use char because int might match the return type of a GCC | |
15952 | builtin and then its argument prototype would still apply. */ | |
15953 | #ifdef __cplusplus | |
15954 | extern "C" | |
15955 | #endif | |
15956 | char rl_line_buffer (); | |
15957 | int | |
15958 | main () | |
15959 | { | |
15960 | return rl_line_buffer (); | |
15961 | ; | |
15962 | return 0; | |
15963 | } | |
15964 | _ACEOF | |
15965 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15966 | if { (ac_try="$ac_link" | |
15967 | case "(($ac_try" in | |
15968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15969 | *) ac_try_echo=$ac_try;; | |
15970 | esac | |
15971 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15972 | $as_echo "$ac_try_echo") >&5 | |
15973 | (eval "$ac_link") 2>conftest.er1 | |
15974 | ac_status=$? | |
15975 | grep -v '^ *+' conftest.er1 >conftest.err | |
15976 | rm -f conftest.er1 | |
15977 | cat conftest.err >&5 | |
15978 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15979 | (exit $ac_status); } && { | |
15980 | test -z "$ac_c_werror_flag" || | |
15981 | test ! -s conftest.err | |
15982 | } && test -s conftest$ac_exeext && { | |
15983 | test "$cross_compiling" = yes || | |
15984 | $as_test_x conftest$ac_exeext | |
15985 | }; then | |
15986 | ac_cv_lib_readline_rl_line_buffer=yes | |
ad6254c5 | 15987 | else |
539f4a77 ZK |
15988 | $as_echo "$as_me: failed program was:" >&5 |
15989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15990 | ||
15991 | ac_cv_lib_readline_rl_line_buffer=no | |
06e459df JM |
15992 | fi |
15993 | ||
539f4a77 ZK |
15994 | rm -rf conftest.dSYM |
15995 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15996 | conftest$ac_exeext conftest.$ac_ext | |
15997 | LIBS=$ac_check_lib_save_LIBS | |
15998 | fi | |
15999 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5 | |
16000 | $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; } | |
16001 | if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then | |
16002 | READLINE_LIBS="-lreadline" | |
16003 | else | |
16004 | ||
16005 | { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5 | |
16006 | $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; } | |
16007 | READLINE_LIBS="-lreadline $READLINE_LIBS" | |
16008 | ||
16009 | fi | |
16010 | ||
16011 | else | |
16012 | ||
16013 | READLINE_LIBS= | |
16014 | if test "$READLINE" = yes; then | |
16015 | { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the | |
ad6254c5 AK |
16016 | --enable-readline option (which is enabled by default). Either disable readline |
16017 | support with --disable-readline or download and install readline from: | |
16018 | ftp.gnu.org/gnu/readline | |
16019 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 | 16020 | package as well (which may be called readline-devel or something similar)." >&5 |
ec6a6fbe | 16021 | $as_echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
16022 | --enable-readline option (which is enabled by default). Either disable readline |
16023 | support with --disable-readline or download and install readline from: | |
16024 | ftp.gnu.org/gnu/readline | |
16025 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 | 16026 | package as well (which may be called readline-devel or something similar)." >&2;} |
ad6254c5 | 16027 | { (exit 1); exit 1; }; } |
539f4a77 ZK |
16028 | fi |
16029 | fi | |
16030 | ||
16031 | LIBS="$READLINE_LIBS $lvm_saved_libs" | |
bc1024f8 JM |
16032 | |
16033 | for ac_func in rl_completion_matches | |
16034 | do | |
ec6a6fbe AK |
16035 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16036 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16037 | $as_echo_n "checking for $ac_func... " >&6; } | |
bc1024f8 | 16038 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16039 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
16040 | else |
16041 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
16042 | /* confdefs.h. */ |
16043 | _ACEOF | |
16044 | cat confdefs.h >>conftest.$ac_ext | |
16045 | cat >>conftest.$ac_ext <<_ACEOF | |
16046 | /* end confdefs.h. */ | |
bc1024f8 | 16047 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8a2fc586 | 16048 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
bc1024f8 | 16049 | #define $ac_func innocuous_$ac_func |
8a2fc586 | 16050 | |
ad6254c5 | 16051 | /* System header to define __stub macros and hopefully few prototypes, |
bc1024f8 | 16052 | which can conflict with char $ac_func (); below. |
ad6254c5 AK |
16053 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
16054 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 16055 | |
ad6254c5 AK |
16056 | #ifdef __STDC__ |
16057 | # include <limits.h> | |
16058 | #else | |
16059 | # include <assert.h> | |
16060 | #endif | |
8a2fc586 | 16061 | |
bc1024f8 | 16062 | #undef $ac_func |
8a2fc586 | 16063 | |
7a197a62 AK |
16064 | /* Override any GCC internal prototype to avoid an error. |
16065 | Use char because int might match the return type of a GCC | |
16066 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
16067 | #ifdef __cplusplus |
16068 | extern "C" | |
ad6254c5 | 16069 | #endif |
bc1024f8 | 16070 | char $ac_func (); |
ad6254c5 AK |
16071 | /* The GNU C library defines this for functions which it implements |
16072 | to always fail with ENOSYS. Some functions are actually named | |
16073 | something starting with __ and the normal name is an alias. */ | |
bc1024f8 | 16074 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 16075 | choke me |
ad6254c5 AK |
16076 | #endif |
16077 | ||
16078 | int | |
16079 | main () | |
16080 | { | |
bc1024f8 | 16081 | return $ac_func (); |
ad6254c5 AK |
16082 | ; |
16083 | return 0; | |
16084 | } | |
16085 | _ACEOF | |
16086 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
16087 | if { (ac_try="$ac_link" |
16088 | case "(($ac_try" in | |
16089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16090 | *) ac_try_echo=$ac_try;; | |
16091 | esac | |
ec6a6fbe AK |
16092 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16093 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16094 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 16095 | ac_status=$? |
8a2fc586 AK |
16096 | grep -v '^ *+' conftest.er1 >conftest.err |
16097 | rm -f conftest.er1 | |
16098 | cat conftest.err >&5 | |
ec6a6fbe | 16099 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16100 | (exit $ac_status); } && { |
16101 | test -z "$ac_c_werror_flag" || | |
16102 | test ! -s conftest.err | |
ec6a6fbe AK |
16103 | } && test -s conftest$ac_exeext && { |
16104 | test "$cross_compiling" = yes || | |
16105 | $as_test_x conftest$ac_exeext | |
16106 | }; then | |
bc1024f8 | 16107 | eval "$as_ac_var=yes" |
ad6254c5 | 16108 | else |
ec6a6fbe | 16109 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16110 | sed 's/^/| /' conftest.$ac_ext >&5 |
16111 | ||
bc1024f8 | 16112 | eval "$as_ac_var=no" |
ad6254c5 | 16113 | fi |
7a197a62 | 16114 | |
ec6a6fbe | 16115 | rm -rf conftest.dSYM |
25fbec5b | 16116 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 16117 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 16118 | fi |
ec6a6fbe AK |
16119 | ac_res=`eval 'as_val=${'$as_ac_var'} |
16120 | $as_echo "$as_val"'` | |
16121 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16122 | $as_echo "$ac_res" >&6; } | |
16123 | as_val=`eval 'as_val=${'$as_ac_var'} | |
16124 | $as_echo "$as_val"'` | |
16125 | if test "x$as_val" = x""yes; then | |
bc1024f8 | 16126 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16127 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
72b2cb61 AK |
16128 | _ACEOF |
16129 | ||
16130 | fi | |
bc1024f8 | 16131 | done |
ad6254c5 | 16132 | |
539f4a77 | 16133 | LIBS=$lvm_saved_libs |
ad6254c5 AK |
16134 | fi |
16135 | ||
16136 | ################################################################################ | |
ec6a6fbe AK |
16137 | { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
16138 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
7a197a62 | 16139 | # Check whether --enable-nls was given. |
ad6254c5 | 16140 | if test "${enable_nls+set}" = set; then |
7a197a62 | 16141 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
16142 | else |
16143 | INTL=no | |
7a197a62 AK |
16144 | fi |
16145 | ||
ec6a6fbe AK |
16146 | { $as_echo "$as_me:$LINENO: result: $INTL" >&5 |
16147 | $as_echo "$INTL" >&6; } | |
ad6254c5 AK |
16148 | |
16149 | if test x$INTL = xyes; then | |
93bd259b | 16150 | # FIXME - Move this - can be device-mapper too |
ad6254c5 AK |
16151 | INTL_PACKAGE="lvm2" |
16152 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
16153 | set dummy msgfmt; ac_word=$2 | |
ec6a6fbe AK |
16154 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
16155 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 16156 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
ec6a6fbe | 16157 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
16158 | else |
16159 | case $MSGFMT in | |
16160 | [\\/]* | ?:[\\/]*) | |
16161 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
16162 | ;; | |
16163 | *) | |
16164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16165 | for as_dir in $PATH | |
16166 | do | |
16167 | IFS=$as_save_IFS | |
16168 | test -z "$as_dir" && as_dir=. | |
16169 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 16170 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 16171 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 16172 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
16173 | break 2 |
16174 | fi | |
16175 | done | |
16176 | done | |
7a197a62 | 16177 | IFS=$as_save_IFS |
ad6254c5 AK |
16178 | |
16179 | ;; | |
16180 | esac | |
16181 | fi | |
16182 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 16183 | if test -n "$MSGFMT"; then |
ec6a6fbe AK |
16184 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
16185 | $as_echo "$MSGFMT" >&6; } | |
ad6254c5 | 16186 | else |
ec6a6fbe AK |
16187 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
16188 | $as_echo "no" >&6; } | |
ad6254c5 AK |
16189 | fi |
16190 | ||
7a197a62 | 16191 | |
ad6254c5 | 16192 | if [ "x$MSGFMT" == x ]; |
ec6a6fbe | 16193 | then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 16194 | " >&5 |
ec6a6fbe | 16195 | $as_echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
16196 | " >&2;} |
16197 | { (exit 1); exit 1; }; } | |
16198 | fi; | |
16199 | ||
16200 | ||
7a197a62 | 16201 | # Check whether --with-localedir was given. |
ad6254c5 | 16202 | if test "${with_localedir+set}" = set; then |
71082be4 | 16203 | withval=$with_localedir; LOCALEDIR=$withval |
ad6254c5 | 16204 | else |
71082be4 | 16205 | LOCALEDIR='${prefix}/share/locale' |
7a197a62 AK |
16206 | fi |
16207 | ||
ad6254c5 AK |
16208 | fi |
16209 | ||
16210 | ################################################################################ | |
16211 | ||
7a197a62 | 16212 | # Check whether --with-confdir was given. |
ad6254c5 | 16213 | if test "${with_confdir+set}" = set; then |
71082be4 | 16214 | withval=$with_confdir; CONFDIR=$withval |
ad6254c5 | 16215 | else |
71082be4 | 16216 | CONFDIR="/etc" |
7a197a62 AK |
16217 | fi |
16218 | ||
ad6254c5 AK |
16219 | |
16220 | ||
7a197a62 | 16221 | # Check whether --with-staticdir was given. |
ad6254c5 | 16222 | if test "${with_staticdir+set}" = set; then |
71082be4 | 16223 | withval=$with_staticdir; STATICDIR=$withval |
ad6254c5 | 16224 | else |
71082be4 | 16225 | STATICDIR='${exec_prefix}/sbin' |
7a197a62 | 16226 | fi |
ad6254c5 | 16227 | |
33f732c5 | 16228 | |
7a197a62 | 16229 | |
68f2de6d AK |
16230 | # Check whether --with-usrlibdir was given. |
16231 | if test "${with_usrlibdir+set}" = set; then | |
71082be4 | 16232 | withval=$with_usrlibdir; usrlibdir=$withval |
68f2de6d | 16233 | else |
71082be4 | 16234 | usrlibdir='${prefix}/lib' |
68f2de6d AK |
16235 | fi |
16236 | ||
16237 | ||
16238 | ||
16239 | # Check whether --with-usrsbindir was given. | |
16240 | if test "${with_usrsbindir+set}" = set; then | |
71082be4 | 16241 | withval=$with_usrsbindir; usrsbindir=$withval |
68f2de6d | 16242 | else |
71082be4 | 16243 | usrsbindir='${prefix}/sbin' |
68f2de6d AK |
16244 | fi |
16245 | ||
16246 | ||
a5f46f6a AK |
16247 | ################################################################################ |
16248 | ||
16249 | # Check whether --with-udev_prefix was given. | |
16250 | if test "${with_udev_prefix+set}" = set; then | |
71082be4 | 16251 | withval=$with_udev_prefix; udev_prefix=$withval |
a5f46f6a | 16252 | else |
71082be4 | 16253 | udev_prefix='${exec_prefix}' |
a5f46f6a AK |
16254 | fi |
16255 | ||
16256 | ||
78ce7acc AK |
16257 | |
16258 | # Check whether --with-udevdir was given. | |
16259 | if test "${with_udevdir+set}" = set; then | |
71082be4 | 16260 | withval=$with_udevdir; udevdir=$withval |
78ce7acc | 16261 | else |
71082be4 | 16262 | udevdir='${udev_prefix}/lib/udev/rules.d' |
78ce7acc AK |
16263 | fi |
16264 | ||
a5f46f6a | 16265 | |
ad6254c5 AK |
16266 | ################################################################################ |
16267 | if test x$READLINE = xyes; then | |
16268 | ||
16269 | ||
16270 | for ac_header in readline/readline.h readline/history.h | |
16271 | do | |
ec6a6fbe | 16272 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 16273 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
16274 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16275 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16276 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16277 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16278 | fi |
ec6a6fbe AK |
16279 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16280 | $as_echo "$as_val"'` | |
16281 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16282 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16283 | else |
16284 | # Is the header compilable? | |
ec6a6fbe AK |
16285 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16286 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 16287 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16288 | /* confdefs.h. */ |
16289 | _ACEOF | |
16290 | cat confdefs.h >>conftest.$ac_ext | |
16291 | cat >>conftest.$ac_ext <<_ACEOF | |
16292 | /* end confdefs.h. */ | |
16293 | $ac_includes_default | |
16294 | #include <$ac_header> | |
16295 | _ACEOF | |
16296 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16297 | if { (ac_try="$ac_compile" |
16298 | case "(($ac_try" in | |
16299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16300 | *) ac_try_echo=$ac_try;; | |
16301 | esac | |
ec6a6fbe AK |
16302 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16303 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16304 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16305 | ac_status=$? |
8a2fc586 AK |
16306 | grep -v '^ *+' conftest.er1 >conftest.err |
16307 | rm -f conftest.er1 | |
16308 | cat conftest.err >&5 | |
ec6a6fbe | 16309 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16310 | (exit $ac_status); } && { |
16311 | test -z "$ac_c_werror_flag" || | |
16312 | test ! -s conftest.err | |
16313 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
16314 | ac_header_compiler=yes |
16315 | else | |
ec6a6fbe | 16316 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16317 | sed 's/^/| /' conftest.$ac_ext >&5 |
16318 | ||
7a197a62 | 16319 | ac_header_compiler=no |
ad6254c5 | 16320 | fi |
7a197a62 AK |
16321 | |
16322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16323 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16324 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16325 | |
16326 | # Is the header present? | |
ec6a6fbe AK |
16327 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16328 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16329 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16330 | /* confdefs.h. */ |
16331 | _ACEOF | |
16332 | cat confdefs.h >>conftest.$ac_ext | |
16333 | cat >>conftest.$ac_ext <<_ACEOF | |
16334 | /* end confdefs.h. */ | |
16335 | #include <$ac_header> | |
16336 | _ACEOF | |
7a197a62 AK |
16337 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16338 | case "(($ac_try" in | |
16339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16340 | *) ac_try_echo=$ac_try;; | |
16341 | esac | |
ec6a6fbe AK |
16342 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16343 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16344 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16345 | ac_status=$? |
16346 | grep -v '^ *+' conftest.er1 >conftest.err | |
16347 | rm -f conftest.er1 | |
16348 | cat conftest.err >&5 | |
ec6a6fbe | 16349 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16350 | (exit $ac_status); } >/dev/null && { |
16351 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16352 | test ! -s conftest.err | |
16353 | }; then | |
ad6254c5 AK |
16354 | ac_header_preproc=yes |
16355 | else | |
ec6a6fbe | 16356 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16357 | sed 's/^/| /' conftest.$ac_ext >&5 |
16358 | ||
16359 | ac_header_preproc=no | |
16360 | fi | |
7a197a62 | 16361 | |
ad6254c5 | 16362 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16363 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16364 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16365 | |
16366 | # So? What about this header? | |
8a2fc586 AK |
16367 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16368 | yes:no: ) | |
ec6a6fbe AK |
16369 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16370 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16371 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16372 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16373 | ac_header_preproc=yes |
ad6254c5 | 16374 | ;; |
8a2fc586 | 16375 | no:yes:* ) |
ec6a6fbe AK |
16376 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16377 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16378 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16379 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16380 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16381 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16382 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16383 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16384 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16385 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16386 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16387 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16388 | |
ad6254c5 AK |
16389 | ;; |
16390 | esac | |
ec6a6fbe AK |
16391 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16392 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16393 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16394 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16395 | else |
8a2fc586 | 16396 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 16397 | fi |
ec6a6fbe AK |
16398 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16399 | $as_echo "$as_val"'` | |
16400 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16401 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16402 | |
16403 | fi | |
ec6a6fbe AK |
16404 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16405 | $as_echo "$as_val"'` | |
16406 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16407 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16408 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16409 | _ACEOF |
16410 | ||
16411 | else | |
ec6a6fbe AK |
16412 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16413 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
16414 | { (exit 1); exit 1; }; } |
16415 | fi | |
16416 | ||
16417 | done | |
16418 | ||
16419 | fi | |
16420 | ||
5c7fc7c4 | 16421 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
16422 | |
16423 | ||
16424 | ||
16425 | ||
16426 | ||
16427 | ||
16428 | ||
16429 | ||
16430 | ||
16431 | ||
16432 | 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 | |
16433 | do | |
ec6a6fbe | 16434 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 16435 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
16436 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16437 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16438 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16439 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16440 | fi |
ec6a6fbe AK |
16441 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16442 | $as_echo "$as_val"'` | |
16443 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16444 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16445 | else |
16446 | # Is the header compilable? | |
ec6a6fbe AK |
16447 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16448 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 16449 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16450 | /* confdefs.h. */ |
16451 | _ACEOF | |
16452 | cat confdefs.h >>conftest.$ac_ext | |
16453 | cat >>conftest.$ac_ext <<_ACEOF | |
16454 | /* end confdefs.h. */ | |
16455 | $ac_includes_default | |
16456 | #include <$ac_header> | |
16457 | _ACEOF | |
16458 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16459 | if { (ac_try="$ac_compile" |
16460 | case "(($ac_try" in | |
16461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16462 | *) ac_try_echo=$ac_try;; | |
16463 | esac | |
ec6a6fbe AK |
16464 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16465 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16466 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16467 | ac_status=$? |
8a2fc586 AK |
16468 | grep -v '^ *+' conftest.er1 >conftest.err |
16469 | rm -f conftest.er1 | |
16470 | cat conftest.err >&5 | |
ec6a6fbe | 16471 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16472 | (exit $ac_status); } && { |
16473 | test -z "$ac_c_werror_flag" || | |
16474 | test ! -s conftest.err | |
16475 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
16476 | ac_header_compiler=yes |
16477 | else | |
ec6a6fbe | 16478 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16479 | sed 's/^/| /' conftest.$ac_ext >&5 |
16480 | ||
7a197a62 | 16481 | ac_header_compiler=no |
ad6254c5 | 16482 | fi |
7a197a62 AK |
16483 | |
16484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16485 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16486 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16487 | |
16488 | # Is the header present? | |
ec6a6fbe AK |
16489 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16490 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16491 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16492 | /* confdefs.h. */ |
16493 | _ACEOF | |
16494 | cat confdefs.h >>conftest.$ac_ext | |
16495 | cat >>conftest.$ac_ext <<_ACEOF | |
16496 | /* end confdefs.h. */ | |
16497 | #include <$ac_header> | |
16498 | _ACEOF | |
7a197a62 AK |
16499 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16500 | case "(($ac_try" in | |
16501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16502 | *) ac_try_echo=$ac_try;; | |
16503 | esac | |
ec6a6fbe AK |
16504 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16505 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16506 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16507 | ac_status=$? |
16508 | grep -v '^ *+' conftest.er1 >conftest.err | |
16509 | rm -f conftest.er1 | |
16510 | cat conftest.err >&5 | |
ec6a6fbe | 16511 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16512 | (exit $ac_status); } >/dev/null && { |
16513 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16514 | test ! -s conftest.err | |
16515 | }; then | |
ad6254c5 AK |
16516 | ac_header_preproc=yes |
16517 | else | |
ec6a6fbe | 16518 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16519 | sed 's/^/| /' conftest.$ac_ext >&5 |
16520 | ||
16521 | ac_header_preproc=no | |
16522 | fi | |
7a197a62 | 16523 | |
ad6254c5 | 16524 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16525 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16526 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16527 | |
16528 | # So? What about this header? | |
8a2fc586 AK |
16529 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16530 | yes:no: ) | |
ec6a6fbe AK |
16531 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16532 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16533 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16534 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16535 | ac_header_preproc=yes |
ad6254c5 | 16536 | ;; |
8a2fc586 | 16537 | no:yes:* ) |
ec6a6fbe AK |
16538 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16539 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16540 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16541 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16542 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16543 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16544 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16545 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16546 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16547 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16548 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16549 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16550 | |
ad6254c5 AK |
16551 | ;; |
16552 | esac | |
ec6a6fbe AK |
16553 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16554 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16555 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16556 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16557 | else |
8a2fc586 | 16558 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 16559 | fi |
ec6a6fbe AK |
16560 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16561 | $as_echo "$as_val"'` | |
16562 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16563 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16564 | |
16565 | fi | |
ec6a6fbe AK |
16566 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16567 | $as_echo "$as_val"'` | |
16568 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16569 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16570 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16571 | _ACEOF |
16572 | ||
16573 | else | |
ec6a6fbe AK |
16574 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16575 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 16576 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
16577 | fi |
16578 | ||
ad6254c5 AK |
16579 | done |
16580 | ||
16581 | ||
795ca3e5 | 16582 | |
8106cdd5 | 16583 | |
ad6254c5 AK |
16584 | |
16585 | ||
16586 | for ac_func in dup2 getmntent memmove select socket | |
16587 | do | |
ec6a6fbe AK |
16588 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16589 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16590 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 16591 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16592 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 16593 | else |
ad6254c5 | 16594 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16595 | /* confdefs.h. */ |
16596 | _ACEOF | |
16597 | cat confdefs.h >>conftest.$ac_ext | |
16598 | cat >>conftest.$ac_ext <<_ACEOF | |
16599 | /* end confdefs.h. */ | |
8a2fc586 AK |
16600 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16601 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16602 | #define $ac_func innocuous_$ac_func | |
16603 | ||
795ca3e5 | 16604 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
16605 | which can conflict with char $ac_func (); below. |
16606 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16607 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 16608 | |
ad6254c5 AK |
16609 | #ifdef __STDC__ |
16610 | # include <limits.h> | |
16611 | #else | |
16612 | # include <assert.h> | |
16613 | #endif | |
8a2fc586 AK |
16614 | |
16615 | #undef $ac_func | |
16616 | ||
7a197a62 AK |
16617 | /* Override any GCC internal prototype to avoid an error. |
16618 | Use char because int might match the return type of a GCC | |
16619 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
16620 | #ifdef __cplusplus |
16621 | extern "C" | |
ad6254c5 | 16622 | #endif |
ad6254c5 | 16623 | char $ac_func (); |
795ca3e5 AK |
16624 | /* The GNU C library defines this for functions which it implements |
16625 | to always fail with ENOSYS. Some functions are actually named | |
16626 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 16627 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 16628 | choke me |
795ca3e5 AK |
16629 | #endif |
16630 | ||
ad6254c5 AK |
16631 | int |
16632 | main () | |
16633 | { | |
7a197a62 | 16634 | return $ac_func (); |
ad6254c5 AK |
16635 | ; |
16636 | return 0; | |
16637 | } | |
16638 | _ACEOF | |
16639 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
16640 | if { (ac_try="$ac_link" |
16641 | case "(($ac_try" in | |
16642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16643 | *) ac_try_echo=$ac_try;; | |
16644 | esac | |
ec6a6fbe AK |
16645 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16646 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16647 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 16648 | ac_status=$? |
8a2fc586 AK |
16649 | grep -v '^ *+' conftest.er1 >conftest.err |
16650 | rm -f conftest.er1 | |
16651 | cat conftest.err >&5 | |
ec6a6fbe | 16652 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16653 | (exit $ac_status); } && { |
16654 | test -z "$ac_c_werror_flag" || | |
16655 | test ! -s conftest.err | |
ec6a6fbe AK |
16656 | } && test -s conftest$ac_exeext && { |
16657 | test "$cross_compiling" = yes || | |
16658 | $as_test_x conftest$ac_exeext | |
16659 | }; then | |
ad6254c5 | 16660 | eval "$as_ac_var=yes" |
795ca3e5 | 16661 | else |
ec6a6fbe | 16662 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16663 | sed 's/^/| /' conftest.$ac_ext >&5 |
16664 | ||
7a197a62 | 16665 | eval "$as_ac_var=no" |
80992638 | 16666 | fi |
7a197a62 | 16667 | |
ec6a6fbe | 16668 | rm -rf conftest.dSYM |
25fbec5b | 16669 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 16670 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 16671 | fi |
ec6a6fbe AK |
16672 | ac_res=`eval 'as_val=${'$as_ac_var'} |
16673 | $as_echo "$as_val"'` | |
16674 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16675 | $as_echo "$ac_res" >&6; } | |
16676 | as_val=`eval 'as_val=${'$as_ac_var'} | |
16677 | $as_echo "$as_val"'` | |
16678 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16679 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16680 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 16681 | _ACEOF |
80992638 AK |
16682 | |
16683 | else | |
ec6a6fbe AK |
16684 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16685 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 16686 | { (exit 1); exit 1; }; } |
8106cdd5 | 16687 | fi |
ad6254c5 | 16688 | done |
795ca3e5 | 16689 | |
25fbec5b AK |
16690 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
16691 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
ec6a6fbe AK |
16692 | { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
16693 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
25fbec5b | 16694 | if test "${ac_cv_search_getmntent+set}" = set; then |
ec6a6fbe | 16695 | $as_echo_n "(cached) " >&6 |
25fbec5b AK |
16696 | else |
16697 | ac_func_search_save_LIBS=$LIBS | |
16698 | cat >conftest.$ac_ext <<_ACEOF | |
16699 | /* confdefs.h. */ | |
16700 | _ACEOF | |
16701 | cat confdefs.h >>conftest.$ac_ext | |
16702 | cat >>conftest.$ac_ext <<_ACEOF | |
16703 | /* end confdefs.h. */ | |
80992638 | 16704 | |
7a197a62 AK |
16705 | /* Override any GCC internal prototype to avoid an error. |
16706 | Use char because int might match the return type of a GCC | |
ad6254c5 | 16707 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
16708 | #ifdef __cplusplus |
16709 | extern "C" | |
16710 | #endif | |
25fbec5b | 16711 | char getmntent (); |
ad6254c5 AK |
16712 | int |
16713 | main () | |
16714 | { | |
25fbec5b | 16715 | return getmntent (); |
ad6254c5 AK |
16716 | ; |
16717 | return 0; | |
16718 | } | |
16719 | _ACEOF | |
25fbec5b AK |
16720 | for ac_lib in '' sun seq gen; do |
16721 | if test -z "$ac_lib"; then | |
16722 | ac_res="none required" | |
16723 | else | |
16724 | ac_res=-l$ac_lib | |
16725 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
16726 | fi | |
16727 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
16728 | if { (ac_try="$ac_link" |
16729 | case "(($ac_try" in | |
16730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16731 | *) ac_try_echo=$ac_try;; | |
16732 | esac | |
ec6a6fbe AK |
16733 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16734 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16735 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 16736 | ac_status=$? |
8a2fc586 AK |
16737 | grep -v '^ *+' conftest.er1 >conftest.err |
16738 | rm -f conftest.er1 | |
16739 | cat conftest.err >&5 | |
ec6a6fbe | 16740 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16741 | (exit $ac_status); } && { |
16742 | test -z "$ac_c_werror_flag" || | |
16743 | test ! -s conftest.err | |
ec6a6fbe AK |
16744 | } && test -s conftest$ac_exeext && { |
16745 | test "$cross_compiling" = yes || | |
16746 | $as_test_x conftest$ac_exeext | |
16747 | }; then | |
25fbec5b | 16748 | ac_cv_search_getmntent=$ac_res |
80992638 | 16749 | else |
ec6a6fbe | 16750 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16751 | sed 's/^/| /' conftest.$ac_ext >&5 |
16752 | ||
25fbec5b | 16753 | |
795ca3e5 AK |
16754 | fi |
16755 | ||
ec6a6fbe | 16756 | rm -rf conftest.dSYM |
25fbec5b AK |
16757 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
16758 | conftest$ac_exeext | |
16759 | if test "${ac_cv_search_getmntent+set}" = set; then | |
16760 | break | |
795ca3e5 | 16761 | fi |
25fbec5b AK |
16762 | done |
16763 | if test "${ac_cv_search_getmntent+set}" = set; then | |
16764 | : | |
16765 | else | |
16766 | ac_cv_search_getmntent=no | |
16767 | fi | |
16768 | rm conftest.$ac_ext | |
16769 | LIBS=$ac_func_search_save_LIBS | |
16770 | fi | |
ec6a6fbe AK |
16771 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
16772 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
16773 | ac_res=$ac_cv_search_getmntent |
16774 | if test "$ac_res" != no; then | |
16775 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
16776 | ac_cv_func_getmntent=yes | |
16777 | ||
16778 | cat >>confdefs.h <<\_ACEOF | |
9c961554 | 16779 | #define HAVE_GETMNTENT 1 |
ad6254c5 | 16780 | _ACEOF |
795ca3e5 | 16781 | |
25fbec5b AK |
16782 | else |
16783 | ac_cv_func_getmntent=no | |
795ca3e5 | 16784 | fi |
795ca3e5 AK |
16785 | |
16786 | ||
ad6254c5 AK |
16787 | |
16788 | ||
16789 | for ac_header in sys/select.h sys/socket.h | |
16790 | do | |
ec6a6fbe | 16791 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 16792 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
16793 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16794 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16795 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16796 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16797 | fi |
ec6a6fbe AK |
16798 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16799 | $as_echo "$as_val"'` | |
16800 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16801 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 16802 | else |
ad6254c5 | 16803 | # Is the header compilable? |
ec6a6fbe AK |
16804 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16805 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 16806 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16807 | /* confdefs.h. */ |
16808 | _ACEOF | |
16809 | cat confdefs.h >>conftest.$ac_ext | |
16810 | cat >>conftest.$ac_ext <<_ACEOF | |
16811 | /* end confdefs.h. */ | |
16812 | $ac_includes_default | |
16813 | #include <$ac_header> | |
16814 | _ACEOF | |
16815 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16816 | if { (ac_try="$ac_compile" |
16817 | case "(($ac_try" in | |
16818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16819 | *) ac_try_echo=$ac_try;; | |
16820 | esac | |
ec6a6fbe AK |
16821 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16822 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16823 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16824 | ac_status=$? |
8a2fc586 AK |
16825 | grep -v '^ *+' conftest.er1 >conftest.err |
16826 | rm -f conftest.er1 | |
16827 | cat conftest.err >&5 | |
ec6a6fbe | 16828 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16829 | (exit $ac_status); } && { |
16830 | test -z "$ac_c_werror_flag" || | |
16831 | test ! -s conftest.err | |
16832 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 16833 | ac_header_compiler=yes |
80992638 | 16834 | else |
ec6a6fbe | 16835 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16836 | sed 's/^/| /' conftest.$ac_ext >&5 |
16837 | ||
7a197a62 | 16838 | ac_header_compiler=no |
ad6254c5 | 16839 | fi |
7a197a62 AK |
16840 | |
16841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16842 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16843 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16844 | |
16845 | # Is the header present? | |
ec6a6fbe AK |
16846 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16847 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16848 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16849 | /* confdefs.h. */ |
16850 | _ACEOF | |
16851 | cat confdefs.h >>conftest.$ac_ext | |
16852 | cat >>conftest.$ac_ext <<_ACEOF | |
16853 | /* end confdefs.h. */ | |
16854 | #include <$ac_header> | |
16855 | _ACEOF | |
7a197a62 AK |
16856 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16857 | case "(($ac_try" in | |
16858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16859 | *) ac_try_echo=$ac_try;; | |
16860 | esac | |
ec6a6fbe AK |
16861 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16862 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16863 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16864 | ac_status=$? |
16865 | grep -v '^ *+' conftest.er1 >conftest.err | |
16866 | rm -f conftest.er1 | |
16867 | cat conftest.err >&5 | |
ec6a6fbe | 16868 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16869 | (exit $ac_status); } >/dev/null && { |
16870 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16871 | test ! -s conftest.err | |
16872 | }; then | |
ad6254c5 AK |
16873 | ac_header_preproc=yes |
16874 | else | |
ec6a6fbe | 16875 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16876 | sed 's/^/| /' conftest.$ac_ext >&5 |
16877 | ||
16878 | ac_header_preproc=no | |
16879 | fi | |
7a197a62 | 16880 | |
ad6254c5 | 16881 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16882 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16883 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16884 | |
16885 | # So? What about this header? | |
8a2fc586 AK |
16886 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16887 | yes:no: ) | |
ec6a6fbe AK |
16888 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16889 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16890 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16891 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16892 | ac_header_preproc=yes |
ad6254c5 | 16893 | ;; |
8a2fc586 | 16894 | no:yes:* ) |
ec6a6fbe AK |
16895 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16896 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16897 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16898 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16899 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16900 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16901 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16902 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16903 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16904 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16905 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16906 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16907 | |
ad6254c5 AK |
16908 | ;; |
16909 | esac | |
ec6a6fbe AK |
16910 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16911 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16912 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16913 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16914 | else |
8a2fc586 | 16915 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 16916 | fi |
ec6a6fbe AK |
16917 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16918 | $as_echo "$as_val"'` | |
16919 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16920 | $as_echo "$ac_res" >&6; } | |
8106cdd5 | 16921 | |
795ca3e5 | 16922 | fi |
ec6a6fbe AK |
16923 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16924 | $as_echo "$as_val"'` | |
16925 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16926 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16927 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16928 | _ACEOF |
16929 | ||
795ca3e5 AK |
16930 | fi |
16931 | ||
ad6254c5 AK |
16932 | done |
16933 | ||
ec6a6fbe AK |
16934 | { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
16935 | $as_echo_n "checking types of arguments for select... " >&6; } | |
ad6254c5 | 16936 | if test "${ac_cv_func_select_args+set}" = set; then |
ec6a6fbe | 16937 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 16938 | else |
ad6254c5 | 16939 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 16940 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
16941 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
16942 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
16943 | /* confdefs.h. */ |
16944 | _ACEOF | |
16945 | cat confdefs.h >>conftest.$ac_ext | |
16946 | cat >>conftest.$ac_ext <<_ACEOF | |
16947 | /* end confdefs.h. */ | |
16948 | $ac_includes_default | |
25fbec5b | 16949 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
16950 | # include <sys/select.h> |
16951 | #endif | |
25fbec5b | 16952 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
16953 | # include <sys/socket.h> |
16954 | #endif | |
16955 | ||
16956 | int | |
16957 | main () | |
16958 | { | |
16959 | extern int select ($ac_arg1, | |
8a2fc586 AK |
16960 | $ac_arg234, $ac_arg234, $ac_arg234, |
16961 | $ac_arg5); | |
ad6254c5 AK |
16962 | ; |
16963 | return 0; | |
16964 | } | |
16965 | _ACEOF | |
16966 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16967 | if { (ac_try="$ac_compile" |
16968 | case "(($ac_try" in | |
16969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16970 | *) ac_try_echo=$ac_try;; | |
16971 | esac | |
ec6a6fbe AK |
16972 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16973 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16974 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16975 | ac_status=$? |
8a2fc586 AK |
16976 | grep -v '^ *+' conftest.er1 >conftest.err |
16977 | rm -f conftest.er1 | |
16978 | cat conftest.err >&5 | |
ec6a6fbe | 16979 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16980 | (exit $ac_status); } && { |
16981 | test -z "$ac_c_werror_flag" || | |
16982 | test ! -s conftest.err | |
16983 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
16984 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
16985 | else | |
ec6a6fbe | 16986 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16987 | sed 's/^/| /' conftest.$ac_ext >&5 |
16988 | ||
7a197a62 | 16989 | |
ad6254c5 | 16990 | fi |
7a197a62 AK |
16991 | |
16992 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
16993 | done |
16994 | done | |
16995 | done | |
16996 | # Provide a safe default value. | |
16997 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
16998 | ||
26e7f2e0 | 16999 | fi |
ec6a6fbe AK |
17000 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
17001 | $as_echo "$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
17002 | ac_save_IFS=$IFS; IFS=',' |
17003 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
17004 | IFS=$ac_save_IFS | |
17005 | shift | |
17006 | ||
17007 | cat >>confdefs.h <<_ACEOF | |
17008 | #define SELECT_TYPE_ARG1 $1 | |
17009 | _ACEOF | |
17010 | ||
17011 | ||
17012 | cat >>confdefs.h <<_ACEOF | |
17013 | #define SELECT_TYPE_ARG234 ($2) | |
17014 | _ACEOF | |
17015 | ||
17016 | ||
17017 | cat >>confdefs.h <<_ACEOF | |
17018 | #define SELECT_TYPE_ARG5 ($3) | |
17019 | _ACEOF | |
17020 | ||
80992638 | 17021 | rm -f conftest* |
80992638 | 17022 | |
8106cdd5 | 17023 | fi |
ad6254c5 | 17024 | |
ad6254c5 AK |
17025 | if test x$CLUSTER != xnone; then |
17026 | ||
17027 | ||
17028 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 17029 | do |
ec6a6fbe | 17030 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 17031 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
17032 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17033 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17034 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17035 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17036 | fi |
ec6a6fbe AK |
17037 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17038 | $as_echo "$as_val"'` | |
17039 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17040 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
17041 | else |
17042 | # Is the header compilable? | |
ec6a6fbe AK |
17043 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
17044 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 17045 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17046 | /* confdefs.h. */ |
17047 | _ACEOF | |
17048 | cat confdefs.h >>conftest.$ac_ext | |
17049 | cat >>conftest.$ac_ext <<_ACEOF | |
17050 | /* end confdefs.h. */ | |
17051 | $ac_includes_default | |
17052 | #include <$ac_header> | |
17053 | _ACEOF | |
17054 | rm -f conftest.$ac_objext | |
7a197a62 AK |
17055 | if { (ac_try="$ac_compile" |
17056 | case "(($ac_try" in | |
17057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17058 | *) ac_try_echo=$ac_try;; | |
17059 | esac | |
ec6a6fbe AK |
17060 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17061 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17062 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 17063 | ac_status=$? |
8a2fc586 AK |
17064 | grep -v '^ *+' conftest.er1 >conftest.err |
17065 | rm -f conftest.er1 | |
17066 | cat conftest.err >&5 | |
ec6a6fbe | 17067 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17068 | (exit $ac_status); } && { |
17069 | test -z "$ac_c_werror_flag" || | |
17070 | test ! -s conftest.err | |
17071 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
17072 | ac_header_compiler=yes |
17073 | else | |
ec6a6fbe | 17074 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17075 | sed 's/^/| /' conftest.$ac_ext >&5 |
17076 | ||
7a197a62 | 17077 | ac_header_compiler=no |
ad6254c5 | 17078 | fi |
7a197a62 AK |
17079 | |
17080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
17081 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17082 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
17083 | |
17084 | # Is the header present? | |
ec6a6fbe AK |
17085 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
17086 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 17087 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17088 | /* confdefs.h. */ |
17089 | _ACEOF | |
17090 | cat confdefs.h >>conftest.$ac_ext | |
17091 | cat >>conftest.$ac_ext <<_ACEOF | |
17092 | /* end confdefs.h. */ | |
17093 | #include <$ac_header> | |
17094 | _ACEOF | |
7a197a62 AK |
17095 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17096 | case "(($ac_try" in | |
17097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17098 | *) ac_try_echo=$ac_try;; | |
17099 | esac | |
ec6a6fbe AK |
17100 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17101 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17102 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
17103 | ac_status=$? |
17104 | grep -v '^ *+' conftest.er1 >conftest.err | |
17105 | rm -f conftest.er1 | |
17106 | cat conftest.err >&5 | |
ec6a6fbe | 17107 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17108 | (exit $ac_status); } >/dev/null && { |
17109 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17110 | test ! -s conftest.err | |
17111 | }; then | |
ad6254c5 AK |
17112 | ac_header_preproc=yes |
17113 | else | |
ec6a6fbe | 17114 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17115 | sed 's/^/| /' conftest.$ac_ext >&5 |
17116 | ||
17117 | ac_header_preproc=no | |
17118 | fi | |
7a197a62 | 17119 | |
ad6254c5 | 17120 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
17121 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17122 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
17123 | |
17124 | # So? What about this header? | |
8a2fc586 AK |
17125 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17126 | yes:no: ) | |
ec6a6fbe AK |
17127 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17128 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17129 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17130 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 17131 | ac_header_preproc=yes |
ad6254c5 | 17132 | ;; |
8a2fc586 | 17133 | no:yes:* ) |
ec6a6fbe AK |
17134 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17135 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17136 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17137 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17138 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17139 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17140 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17141 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17142 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17143 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17144 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17145 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 17146 | |
ad6254c5 AK |
17147 | ;; |
17148 | esac | |
ec6a6fbe AK |
17149 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17150 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17151 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17152 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17153 | else |
8a2fc586 | 17154 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 17155 | fi |
ec6a6fbe AK |
17156 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17157 | $as_echo "$as_val"'` | |
17158 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17159 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
17160 | |
17161 | fi | |
ec6a6fbe AK |
17162 | as_val=`eval 'as_val=${'$as_ac_Header'} |
17163 | $as_echo "$as_val"'` | |
17164 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 17165 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 17166 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
17167 | _ACEOF |
17168 | ||
80992638 | 17169 | else |
ec6a6fbe AK |
17170 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
17171 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 17172 | { (exit 1); exit 1; }; } |
b896caa1 | 17173 | fi |
ad6254c5 | 17174 | |
b896caa1 AK |
17175 | done |
17176 | ||
17177 | ||
ad6254c5 AK |
17178 | for ac_func in socket |
17179 | do | |
ec6a6fbe AK |
17180 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
17181 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
17182 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 17183 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17184 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 17185 | else |
ad6254c5 | 17186 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17187 | /* confdefs.h. */ |
17188 | _ACEOF | |
17189 | cat confdefs.h >>conftest.$ac_ext | |
17190 | cat >>conftest.$ac_ext <<_ACEOF | |
17191 | /* end confdefs.h. */ | |
8a2fc586 AK |
17192 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17193 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17194 | #define $ac_func innocuous_$ac_func | |
17195 | ||
ad6254c5 AK |
17196 | /* System header to define __stub macros and hopefully few prototypes, |
17197 | which can conflict with char $ac_func (); below. | |
17198 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17199 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 17200 | |
ad6254c5 AK |
17201 | #ifdef __STDC__ |
17202 | # include <limits.h> | |
17203 | #else | |
17204 | # include <assert.h> | |
17205 | #endif | |
8a2fc586 AK |
17206 | |
17207 | #undef $ac_func | |
17208 | ||
7a197a62 AK |
17209 | /* Override any GCC internal prototype to avoid an error. |
17210 | Use char because int might match the return type of a GCC | |
17211 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
17212 | #ifdef __cplusplus |
17213 | extern "C" | |
ad6254c5 | 17214 | #endif |
ad6254c5 AK |
17215 | char $ac_func (); |
17216 | /* The GNU C library defines this for functions which it implements | |
17217 | to always fail with ENOSYS. Some functions are actually named | |
17218 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 17219 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 17220 | choke me |
ad6254c5 AK |
17221 | #endif |
17222 | ||
17223 | int | |
17224 | main () | |
17225 | { | |
7a197a62 | 17226 | return $ac_func (); |
ad6254c5 AK |
17227 | ; |
17228 | return 0; | |
17229 | } | |
17230 | _ACEOF | |
17231 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
17232 | if { (ac_try="$ac_link" |
17233 | case "(($ac_try" in | |
17234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17235 | *) ac_try_echo=$ac_try;; | |
17236 | esac | |
ec6a6fbe AK |
17237 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17238 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17239 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 17240 | ac_status=$? |
8a2fc586 AK |
17241 | grep -v '^ *+' conftest.er1 >conftest.err |
17242 | rm -f conftest.er1 | |
17243 | cat conftest.err >&5 | |
ec6a6fbe | 17244 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17245 | (exit $ac_status); } && { |
17246 | test -z "$ac_c_werror_flag" || | |
17247 | test ! -s conftest.err | |
ec6a6fbe AK |
17248 | } && test -s conftest$ac_exeext && { |
17249 | test "$cross_compiling" = yes || | |
17250 | $as_test_x conftest$ac_exeext | |
17251 | }; then | |
ad6254c5 AK |
17252 | eval "$as_ac_var=yes" |
17253 | else | |
ec6a6fbe | 17254 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17255 | sed 's/^/| /' conftest.$ac_ext >&5 |
17256 | ||
7a197a62 | 17257 | eval "$as_ac_var=no" |
ad6254c5 | 17258 | fi |
7a197a62 | 17259 | |
ec6a6fbe | 17260 | rm -rf conftest.dSYM |
25fbec5b | 17261 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 17262 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 17263 | fi |
ec6a6fbe AK |
17264 | ac_res=`eval 'as_val=${'$as_ac_var'} |
17265 | $as_echo "$as_val"'` | |
17266 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17267 | $as_echo "$ac_res" >&6; } | |
17268 | as_val=`eval 'as_val=${'$as_ac_var'} | |
17269 | $as_echo "$as_val"'` | |
17270 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 17271 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 17272 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
17273 | _ACEOF |
17274 | ||
17275 | else | |
ec6a6fbe AK |
17276 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
17277 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
17278 | { (exit 1); exit 1; }; } |
17279 | fi | |
17280 | done | |
17281 | ||
17282 | fi | |
17283 | ||
d911ec67 AK |
17284 | if test x$DMEVENTD = xyes; then |
17285 | ||
17286 | for ac_header in arpa/inet.h | |
17287 | do | |
17288 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17289 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17290 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17291 | $as_echo_n "checking for $ac_header... " >&6; } | |
17292 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17293 | $as_echo_n "(cached) " >&6 | |
17294 | fi | |
17295 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17296 | $as_echo "$as_val"'` | |
17297 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17298 | $as_echo "$ac_res" >&6; } | |
17299 | else | |
17300 | # Is the header compilable? | |
17301 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17302 | $as_echo_n "checking $ac_header usability... " >&6; } | |
17303 | cat >conftest.$ac_ext <<_ACEOF | |
17304 | /* confdefs.h. */ | |
17305 | _ACEOF | |
17306 | cat confdefs.h >>conftest.$ac_ext | |
17307 | cat >>conftest.$ac_ext <<_ACEOF | |
17308 | /* end confdefs.h. */ | |
17309 | $ac_includes_default | |
17310 | #include <$ac_header> | |
17311 | _ACEOF | |
17312 | rm -f conftest.$ac_objext | |
17313 | if { (ac_try="$ac_compile" | |
17314 | case "(($ac_try" in | |
17315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17316 | *) ac_try_echo=$ac_try;; | |
17317 | esac | |
17318 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17319 | $as_echo "$ac_try_echo") >&5 | |
17320 | (eval "$ac_compile") 2>conftest.er1 | |
17321 | ac_status=$? | |
17322 | grep -v '^ *+' conftest.er1 >conftest.err | |
17323 | rm -f conftest.er1 | |
17324 | cat conftest.err >&5 | |
17325 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17326 | (exit $ac_status); } && { | |
17327 | test -z "$ac_c_werror_flag" || | |
17328 | test ! -s conftest.err | |
17329 | } && test -s conftest.$ac_objext; then | |
17330 | ac_header_compiler=yes | |
17331 | else | |
17332 | $as_echo "$as_me: failed program was:" >&5 | |
17333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17334 | ||
17335 | ac_header_compiler=no | |
17336 | fi | |
17337 | ||
17338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17339 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17340 | $as_echo "$ac_header_compiler" >&6; } | |
17341 | ||
17342 | # Is the header present? | |
17343 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17344 | $as_echo_n "checking $ac_header presence... " >&6; } | |
17345 | cat >conftest.$ac_ext <<_ACEOF | |
17346 | /* confdefs.h. */ | |
17347 | _ACEOF | |
17348 | cat confdefs.h >>conftest.$ac_ext | |
17349 | cat >>conftest.$ac_ext <<_ACEOF | |
17350 | /* end confdefs.h. */ | |
17351 | #include <$ac_header> | |
17352 | _ACEOF | |
17353 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
17354 | case "(($ac_try" in | |
17355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17356 | *) ac_try_echo=$ac_try;; | |
17357 | esac | |
17358 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17359 | $as_echo "$ac_try_echo") >&5 | |
17360 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
17361 | ac_status=$? | |
17362 | grep -v '^ *+' conftest.er1 >conftest.err | |
17363 | rm -f conftest.er1 | |
17364 | cat conftest.err >&5 | |
17365 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17366 | (exit $ac_status); } >/dev/null && { | |
17367 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17368 | test ! -s conftest.err | |
17369 | }; then | |
17370 | ac_header_preproc=yes | |
17371 | else | |
17372 | $as_echo "$as_me: failed program was:" >&5 | |
17373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17374 | ||
17375 | ac_header_preproc=no | |
17376 | fi | |
17377 | ||
17378 | rm -f conftest.err conftest.$ac_ext | |
17379 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17380 | $as_echo "$ac_header_preproc" >&6; } | |
17381 | ||
17382 | # So? What about this header? | |
17383 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17384 | yes:no: ) | |
17385 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17386 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17387 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17388 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17389 | ac_header_preproc=yes | |
17390 | ;; | |
17391 | no:yes:* ) | |
17392 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17393 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17394 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17395 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17396 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17397 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17398 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17399 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17400 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17401 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17402 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17403 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17404 | ||
17405 | ;; | |
17406 | esac | |
17407 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17408 | $as_echo_n "checking for $ac_header... " >&6; } | |
17409 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17410 | $as_echo_n "(cached) " >&6 | |
17411 | else | |
17412 | eval "$as_ac_Header=\$ac_header_preproc" | |
17413 | fi | |
17414 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17415 | $as_echo "$as_val"'` | |
17416 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17417 | $as_echo "$ac_res" >&6; } | |
17418 | ||
17419 | fi | |
17420 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
17421 | $as_echo "$as_val"'` | |
17422 | if test "x$as_val" = x""yes; then | |
17423 | cat >>confdefs.h <<_ACEOF | |
17424 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17425 | _ACEOF | |
17426 | ||
17427 | else | |
17428 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
17429 | $as_echo "$as_me: error: bailing out" >&2;} | |
17430 | { (exit 1); exit 1; }; } | |
17431 | fi | |
17432 | ||
17433 | done | |
17434 | ||
17435 | fi | |
17436 | ||
ad6254c5 AK |
17437 | if test x$HAVE_LIBDL = xyes; then |
17438 | ||
17439 | for ac_header in dlfcn.h | |
17440 | do | |
ec6a6fbe | 17441 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 17442 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
17443 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17444 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17445 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17446 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17447 | fi |
ec6a6fbe AK |
17448 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17449 | $as_echo "$as_val"'` | |
17450 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17451 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
17452 | else |
17453 | # Is the header compilable? | |
ec6a6fbe AK |
17454 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
17455 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 17456 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17457 | /* confdefs.h. */ |
17458 | _ACEOF | |
17459 | cat confdefs.h >>conftest.$ac_ext | |
17460 | cat >>conftest.$ac_ext <<_ACEOF | |
17461 | /* end confdefs.h. */ | |
17462 | $ac_includes_default | |
17463 | #include <$ac_header> | |
17464 | _ACEOF | |
17465 | rm -f conftest.$ac_objext | |
7a197a62 AK |
17466 | if { (ac_try="$ac_compile" |
17467 | case "(($ac_try" in | |
17468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17469 | *) ac_try_echo=$ac_try;; | |
17470 | esac | |
ec6a6fbe AK |
17471 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17472 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17473 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 17474 | ac_status=$? |
8a2fc586 AK |
17475 | grep -v '^ *+' conftest.er1 >conftest.err |
17476 | rm -f conftest.er1 | |
17477 | cat conftest.err >&5 | |
ec6a6fbe | 17478 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17479 | (exit $ac_status); } && { |
17480 | test -z "$ac_c_werror_flag" || | |
17481 | test ! -s conftest.err | |
17482 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
17483 | ac_header_compiler=yes |
17484 | else | |
ec6a6fbe | 17485 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17486 | sed 's/^/| /' conftest.$ac_ext >&5 |
17487 | ||
7a197a62 | 17488 | ac_header_compiler=no |
ad6254c5 | 17489 | fi |
7a197a62 AK |
17490 | |
17491 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
17492 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17493 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
17494 | |
17495 | # Is the header present? | |
ec6a6fbe AK |
17496 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
17497 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 17498 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17499 | /* confdefs.h. */ |
17500 | _ACEOF | |
17501 | cat confdefs.h >>conftest.$ac_ext | |
17502 | cat >>conftest.$ac_ext <<_ACEOF | |
17503 | /* end confdefs.h. */ | |
17504 | #include <$ac_header> | |
17505 | _ACEOF | |
7a197a62 AK |
17506 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17507 | case "(($ac_try" in | |
17508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17509 | *) ac_try_echo=$ac_try;; | |
17510 | esac | |
ec6a6fbe AK |
17511 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17512 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17513 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
17514 | ac_status=$? |
17515 | grep -v '^ *+' conftest.er1 >conftest.err | |
17516 | rm -f conftest.er1 | |
17517 | cat conftest.err >&5 | |
ec6a6fbe | 17518 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17519 | (exit $ac_status); } >/dev/null && { |
17520 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17521 | test ! -s conftest.err | |
17522 | }; then | |
ad6254c5 AK |
17523 | ac_header_preproc=yes |
17524 | else | |
ec6a6fbe | 17525 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17526 | sed 's/^/| /' conftest.$ac_ext >&5 |
17527 | ||
17528 | ac_header_preproc=no | |
17529 | fi | |
7a197a62 | 17530 | |
ad6254c5 | 17531 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
17532 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17533 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
17534 | |
17535 | # So? What about this header? | |
8a2fc586 AK |
17536 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17537 | yes:no: ) | |
ec6a6fbe AK |
17538 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17539 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17540 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17541 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 17542 | ac_header_preproc=yes |
ad6254c5 | 17543 | ;; |
8a2fc586 | 17544 | no:yes:* ) |
ec6a6fbe AK |
17545 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17546 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17547 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17548 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17549 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17550 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17551 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17552 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17553 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17554 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17555 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17556 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 17557 | |
ad6254c5 AK |
17558 | ;; |
17559 | esac | |
ec6a6fbe AK |
17560 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17561 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17562 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17563 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17564 | else |
8a2fc586 | 17565 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 17566 | fi |
ec6a6fbe AK |
17567 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17568 | $as_echo "$as_val"'` | |
17569 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17570 | $as_echo "$ac_res" >&6; } | |
80992638 | 17571 | |
8106cdd5 | 17572 | fi |
ec6a6fbe AK |
17573 | as_val=`eval 'as_val=${'$as_ac_Header'} |
17574 | $as_echo "$as_val"'` | |
17575 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 17576 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 17577 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 17578 | _ACEOF |
795ca3e5 AK |
17579 | |
17580 | else | |
ec6a6fbe AK |
17581 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
17582 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 17583 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
17584 | fi |
17585 | ||
ad6254c5 | 17586 | done |
80992638 | 17587 | |
ad6254c5 | 17588 | fi |
80992638 | 17589 | |
ad6254c5 | 17590 | if test x$INTL = xyes; then |
83912faa | 17591 | |
ad6254c5 AK |
17592 | for ac_header in libintl.h |
17593 | do | |
ec6a6fbe | 17594 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 17595 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
17596 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17597 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17598 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17599 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17600 | fi |
ec6a6fbe AK |
17601 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17602 | $as_echo "$as_val"'` | |
17603 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17604 | $as_echo "$ac_res" >&6; } | |
83912faa | 17605 | else |
ad6254c5 | 17606 | # Is the header compilable? |
ec6a6fbe AK |
17607 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
17608 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 17609 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17610 | /* confdefs.h. */ |
17611 | _ACEOF | |
17612 | cat confdefs.h >>conftest.$ac_ext | |
17613 | cat >>conftest.$ac_ext <<_ACEOF | |
17614 | /* end confdefs.h. */ | |
17615 | $ac_includes_default | |
17616 | #include <$ac_header> | |
17617 | _ACEOF | |
17618 | rm -f conftest.$ac_objext | |
7a197a62 AK |
17619 | if { (ac_try="$ac_compile" |
17620 | case "(($ac_try" in | |
17621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17622 | *) ac_try_echo=$ac_try;; | |
17623 | esac | |
ec6a6fbe AK |
17624 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17625 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17626 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 17627 | ac_status=$? |
8a2fc586 AK |
17628 | grep -v '^ *+' conftest.er1 >conftest.err |
17629 | rm -f conftest.er1 | |
17630 | cat conftest.err >&5 | |
ec6a6fbe | 17631 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17632 | (exit $ac_status); } && { |
17633 | test -z "$ac_c_werror_flag" || | |
17634 | test ! -s conftest.err | |
17635 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
17636 | ac_header_compiler=yes |
17637 | else | |
ec6a6fbe | 17638 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17639 | sed 's/^/| /' conftest.$ac_ext >&5 |
17640 | ||
7a197a62 | 17641 | ac_header_compiler=no |
ad6254c5 | 17642 | fi |
7a197a62 AK |
17643 | |
17644 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
17645 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17646 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
17647 | |
17648 | # Is the header present? | |
ec6a6fbe AK |
17649 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
17650 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 17651 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17652 | /* confdefs.h. */ |
17653 | _ACEOF | |
17654 | cat confdefs.h >>conftest.$ac_ext | |
17655 | cat >>conftest.$ac_ext <<_ACEOF | |
17656 | /* end confdefs.h. */ | |
17657 | #include <$ac_header> | |
17658 | _ACEOF | |
7a197a62 AK |
17659 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17660 | case "(($ac_try" in | |
17661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17662 | *) ac_try_echo=$ac_try;; | |
17663 | esac | |
ec6a6fbe AK |
17664 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17665 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17666 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
17667 | ac_status=$? |
17668 | grep -v '^ *+' conftest.er1 >conftest.err | |
17669 | rm -f conftest.er1 | |
17670 | cat conftest.err >&5 | |
ec6a6fbe | 17671 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17672 | (exit $ac_status); } >/dev/null && { |
17673 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17674 | test ! -s conftest.err | |
17675 | }; then | |
ad6254c5 AK |
17676 | ac_header_preproc=yes |
17677 | else | |
ec6a6fbe | 17678 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17679 | sed 's/^/| /' conftest.$ac_ext >&5 |
17680 | ||
17681 | ac_header_preproc=no | |
17682 | fi | |
7a197a62 | 17683 | |
ad6254c5 | 17684 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
17685 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17686 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
17687 | |
17688 | # So? What about this header? | |
8a2fc586 AK |
17689 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17690 | yes:no: ) | |
ec6a6fbe AK |
17691 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17692 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17693 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17694 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 17695 | ac_header_preproc=yes |
ad6254c5 | 17696 | ;; |
8a2fc586 | 17697 | no:yes:* ) |
ec6a6fbe AK |
17698 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17699 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17700 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17701 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17702 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17703 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17704 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17705 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17706 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17707 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17708 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17709 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 17710 | |
ad6254c5 AK |
17711 | ;; |
17712 | esac | |
ec6a6fbe AK |
17713 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17714 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17715 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17716 | $as_echo_n "(cached) " >&6 |
80992638 | 17717 | else |
8a2fc586 | 17718 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 17719 | fi |
ec6a6fbe AK |
17720 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17721 | $as_echo "$as_val"'` | |
17722 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17723 | $as_echo "$ac_res" >&6; } | |
83912faa | 17724 | |
69792976 | 17725 | fi |
ec6a6fbe AK |
17726 | as_val=`eval 'as_val=${'$as_ac_Header'} |
17727 | $as_echo "$as_val"'` | |
17728 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 17729 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 17730 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 17731 | _ACEOF |
69792976 | 17732 | |
69792976 | 17733 | else |
ec6a6fbe AK |
17734 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
17735 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 17736 | { (exit 1); exit 1; }; } |
80992638 AK |
17737 | fi |
17738 | ||
ad6254c5 | 17739 | done |
69792976 | 17740 | |
ad6254c5 AK |
17741 | fi |
17742 | ||
a5f46f6a AK |
17743 | if test x$UDEV_SYNC = xyes; then |
17744 | ||
17745 | ||
17746 | for ac_header in sys/ipc.h sys/sem.h | |
17747 | do | |
17748 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17749 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17750 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17751 | $as_echo_n "checking for $ac_header... " >&6; } | |
17752 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17753 | $as_echo_n "(cached) " >&6 | |
17754 | fi | |
17755 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17756 | $as_echo "$as_val"'` | |
17757 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17758 | $as_echo "$ac_res" >&6; } | |
17759 | else | |
17760 | # Is the header compilable? | |
17761 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17762 | $as_echo_n "checking $ac_header usability... " >&6; } | |
17763 | cat >conftest.$ac_ext <<_ACEOF | |
17764 | /* confdefs.h. */ | |
17765 | _ACEOF | |
17766 | cat confdefs.h >>conftest.$ac_ext | |
17767 | cat >>conftest.$ac_ext <<_ACEOF | |
17768 | /* end confdefs.h. */ | |
17769 | $ac_includes_default | |
17770 | #include <$ac_header> | |
17771 | _ACEOF | |
17772 | rm -f conftest.$ac_objext | |
17773 | if { (ac_try="$ac_compile" | |
17774 | case "(($ac_try" in | |
17775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17776 | *) ac_try_echo=$ac_try;; | |
17777 | esac | |
17778 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17779 | $as_echo "$ac_try_echo") >&5 | |
17780 | (eval "$ac_compile") 2>conftest.er1 | |
17781 | ac_status=$? | |
17782 | grep -v '^ *+' conftest.er1 >conftest.err | |
17783 | rm -f conftest.er1 | |
17784 | cat conftest.err >&5 | |
17785 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17786 | (exit $ac_status); } && { | |
17787 | test -z "$ac_c_werror_flag" || | |
17788 | test ! -s conftest.err | |
17789 | } && test -s conftest.$ac_objext; then | |
17790 | ac_header_compiler=yes | |
17791 | else | |
17792 | $as_echo "$as_me: failed program was:" >&5 | |
17793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17794 | ||
17795 | ac_header_compiler=no | |
17796 | fi | |
17797 | ||
17798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17799 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17800 | $as_echo "$ac_header_compiler" >&6; } | |
17801 | ||
17802 | # Is the header present? | |
17803 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17804 | $as_echo_n "checking $ac_header presence... " >&6; } | |
17805 | cat >conftest.$ac_ext <<_ACEOF | |
17806 | /* confdefs.h. */ | |
17807 | _ACEOF | |
17808 | cat confdefs.h >>conftest.$ac_ext | |
17809 | cat >>conftest.$ac_ext <<_ACEOF | |
17810 | /* end confdefs.h. */ | |
17811 | #include <$ac_header> | |
17812 | _ACEOF | |
17813 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
17814 | case "(($ac_try" in | |
17815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17816 | *) ac_try_echo=$ac_try;; | |
17817 | esac | |
17818 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17819 | $as_echo "$ac_try_echo") >&5 | |
17820 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
17821 | ac_status=$? | |
17822 | grep -v '^ *+' conftest.er1 >conftest.err | |
17823 | rm -f conftest.er1 | |
17824 | cat conftest.err >&5 | |
17825 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17826 | (exit $ac_status); } >/dev/null && { | |
17827 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17828 | test ! -s conftest.err | |
17829 | }; then | |
17830 | ac_header_preproc=yes | |
17831 | else | |
17832 | $as_echo "$as_me: failed program was:" >&5 | |
17833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17834 | ||
17835 | ac_header_preproc=no | |
17836 | fi | |
17837 | ||
17838 | rm -f conftest.err conftest.$ac_ext | |
17839 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17840 | $as_echo "$ac_header_preproc" >&6; } | |
17841 | ||
17842 | # So? What about this header? | |
17843 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17844 | yes:no: ) | |
17845 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17846 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17847 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17848 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17849 | ac_header_preproc=yes | |
17850 | ;; | |
17851 | no:yes:* ) | |
17852 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17853 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17854 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17855 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17856 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17857 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17858 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17859 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17860 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17861 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17862 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17863 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17864 | ||
17865 | ;; | |
17866 | esac | |
17867 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17868 | $as_echo_n "checking for $ac_header... " >&6; } | |
17869 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17870 | $as_echo_n "(cached) " >&6 | |
17871 | else | |
17872 | eval "$as_ac_Header=\$ac_header_preproc" | |
17873 | fi | |
17874 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17875 | $as_echo "$as_val"'` | |
17876 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17877 | $as_echo "$ac_res" >&6; } | |
17878 | ||
17879 | fi | |
17880 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
17881 | $as_echo "$as_val"'` | |
17882 | if test "x$as_val" = x""yes; then | |
17883 | cat >>confdefs.h <<_ACEOF | |
17884 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17885 | _ACEOF | |
17886 | ||
17887 | else | |
17888 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
17889 | $as_echo "$as_me: error: bailing out" >&2;} | |
17890 | { (exit 1); exit 1; }; } | |
17891 | fi | |
17892 | ||
17893 | done | |
17894 | ||
17895 | fi | |
17896 | ||
a653923f AK |
17897 | ################################################################################ |
17898 | # Extract the first word of "modprobe", so it can be a program name with args. | |
17899 | set dummy modprobe; ac_word=$2 | |
ec6a6fbe AK |
17900 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
17901 | $as_echo_n "checking for $ac_word... " >&6; } | |
72b2cb61 | 17902 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
ec6a6fbe | 17903 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
17904 | else |
17905 | case $MODPROBE_CMD in | |
17906 | [\\/]* | ?:[\\/]*) | |
17907 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
17908 | ;; | |
17909 | *) | |
17910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17911 | for as_dir in $PATH | |
17912 | do | |
17913 | IFS=$as_save_IFS | |
17914 | test -z "$as_dir" && as_dir=. | |
17915 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 17916 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 17917 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 17918 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
17919 | break 2 |
17920 | fi | |
17921 | done | |
17922 | done | |
7a197a62 | 17923 | IFS=$as_save_IFS |
72b2cb61 AK |
17924 | |
17925 | ;; | |
17926 | esac | |
17927 | fi | |
17928 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 17929 | if test -n "$MODPROBE_CMD"; then |
ec6a6fbe AK |
17930 | { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
17931 | $as_echo "$MODPROBE_CMD" >&6; } | |
72b2cb61 | 17932 | else |
ec6a6fbe AK |
17933 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
17934 | $as_echo "no" >&6; } | |
72b2cb61 AK |
17935 | fi |
17936 | ||
a653923f | 17937 | |
7a197a62 | 17938 | |
a653923f | 17939 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
17940 | |
17941 | cat >>confdefs.h <<_ACEOF | |
17942 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
17943 | _ACEOF | |
17944 | ||
a653923f AK |
17945 | fi |
17946 | ||
b5c2529b | 17947 | |
a9b601e2 ZK |
17948 | lvm_exec_prefix=$exec_prefix |
17949 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix | |
17950 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix | |
17951 | ||
b5c2529b | 17952 | cat >>confdefs.h <<_ACEOF |
a9b601e2 | 17953 | #define LVM_PATH "$lvm_exec_prefix/sbin/lvm" |
b5c2529b ZK |
17954 | _ACEOF |
17955 | ||
17956 | ||
17957 | if test "$CLVMD" != none; then | |
17958 | clvmd_prefix=$ac_default_prefix | |
17959 | test "$prefix" != NONE && clvmd_prefix=$prefix | |
17960 | ||
17961 | cat >>confdefs.h <<_ACEOF | |
17962 | #define CLVMD_PATH "$clvmd_prefix/sbin/clvmd" | |
17963 | _ACEOF | |
17964 | ||
17965 | fi | |
17966 | ||
80992638 | 17967 | ################################################################################ |
93bd259b AK |
17968 | if test "$BUILD_DMEVENTD" = yes; then |
17969 | ||
17970 | # Check whether --with-dmeventd-pidfile was given. | |
17971 | if test "${with_dmeventd_pidfile+set}" = set; then | |
71082be4 | 17972 | withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval |
93bd259b | 17973 | else |
71082be4 | 17974 | DMEVENTD_PIDFILE="/var/run/dmeventd.pid" |
93bd259b AK |
17975 | fi |
17976 | ||
93bd259b | 17977 | |
71082be4 ZK |
17978 | cat >>confdefs.h <<_ACEOF |
17979 | #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE" | |
17980 | _ACEOF | |
93bd259b | 17981 | |
71082be4 | 17982 | fi |
93bd259b AK |
17983 | |
17984 | if test "$BUILD_DMEVENTD" = yes; then | |
93bd259b AK |
17985 | |
17986 | # Check whether --with-dmeventd-path was given. | |
17987 | if test "${with_dmeventd_path+set}" = set; then | |
71082be4 | 17988 | withval=$with_dmeventd_path; DMEVENTD_PATH=$withval |
93bd259b | 17989 | else |
71082be4 | 17990 | DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd" |
93bd259b AK |
17991 | fi |
17992 | ||
93bd259b | 17993 | |
71082be4 ZK |
17994 | cat >>confdefs.h <<_ACEOF |
17995 | #define DMEVENTD_PATH "$DMEVENTD_PATH" | |
17996 | _ACEOF | |
3399ae32 | 17997 | |
71082be4 | 17998 | fi |
3399ae32 | 17999 | |
8bae0a1e AK |
18000 | |
18001 | ||
18002 | ||
18003 | # Check whether --with-default-run-dir was given. | |
18004 | if test "${with_default_run_dir+set}" = set; then | |
18005 | withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval" | |
18006 | else | |
18007 | DEFAULT_RUN_DIR="/var/run/lvm" | |
18008 | fi | |
18009 | ||
18010 | cat >>confdefs.h <<_ACEOF | |
18011 | #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR" | |
18012 | _ACEOF | |
18013 | ||
18014 | ||
71082be4 | 18015 | ################################################################################ |
3399ae32 AK |
18016 | |
18017 | # Check whether --with-default-system-dir was given. | |
18018 | if test "${with_default_system_dir+set}" = set; then | |
71082be4 | 18019 | withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval |
3399ae32 | 18020 | else |
71082be4 | 18021 | DEFAULT_SYS_DIR="/etc/lvm" |
3399ae32 AK |
18022 | fi |
18023 | ||
71082be4 | 18024 | |
3399ae32 AK |
18025 | cat >>confdefs.h <<_ACEOF |
18026 | #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR" | |
18027 | _ACEOF | |
18028 | ||
18029 | ||
18030 | ||
3399ae32 AK |
18031 | # Check whether --with-default-archive-subdir was given. |
18032 | if test "${with_default_archive_subdir+set}" = set; then | |
71082be4 | 18033 | withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval |
3399ae32 | 18034 | else |
71082be4 | 18035 | DEFAULT_ARCHIVE_SUBDIR=archive |
3399ae32 AK |
18036 | fi |
18037 | ||
71082be4 | 18038 | |
3399ae32 AK |
18039 | cat >>confdefs.h <<_ACEOF |
18040 | #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR" | |
18041 | _ACEOF | |
18042 | ||
18043 | ||
18044 | ||
3399ae32 AK |
18045 | # Check whether --with-default-backup-subdir was given. |
18046 | if test "${with_default_backup_subdir+set}" = set; then | |
71082be4 | 18047 | withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval |
3399ae32 | 18048 | else |
71082be4 | 18049 | DEFAULT_BACKUP_SUBDIR=backup |
3399ae32 AK |
18050 | fi |
18051 | ||
71082be4 | 18052 | |
3399ae32 AK |
18053 | cat >>confdefs.h <<_ACEOF |
18054 | #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR" | |
18055 | _ACEOF | |
18056 | ||
18057 | ||
18058 | ||
3399ae32 AK |
18059 | # Check whether --with-default-cache-subdir was given. |
18060 | if test "${with_default_cache_subdir+set}" = set; then | |
71082be4 | 18061 | withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval |
3399ae32 | 18062 | else |
71082be4 | 18063 | DEFAULT_CACHE_SUBDIR=cache |
3399ae32 AK |
18064 | fi |
18065 | ||
71082be4 | 18066 | |
3399ae32 AK |
18067 | cat >>confdefs.h <<_ACEOF |
18068 | #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR" | |
18069 | _ACEOF | |
18070 | ||
18071 | ||
18072 | ||
3399ae32 AK |
18073 | # Check whether --with-default-locking-dir was given. |
18074 | if test "${with_default_locking_dir+set}" = set; then | |
71082be4 | 18075 | withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval |
3399ae32 | 18076 | else |
71082be4 | 18077 | DEFAULT_LOCK_DIR="/var/lock/lvm" |
3399ae32 AK |
18078 | fi |
18079 | ||
71082be4 | 18080 | |
3399ae32 AK |
18081 | cat >>confdefs.h <<_ACEOF |
18082 | #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR" | |
18083 | _ACEOF | |
18084 | ||
18085 | ||
fea55602 DW |
18086 | ################################################################################ |
18087 | ||
18088 | # Check whether --with-default-data-alignment was given. | |
18089 | if test "${with_default_data_alignment+set}" = set; then | |
18090 | withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval | |
18091 | else | |
18092 | DEFAULT_DATA_ALIGNMENT=1 | |
18093 | fi | |
18094 | ||
18095 | ||
18096 | cat >>confdefs.h <<_ACEOF | |
18097 | #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT | |
18098 | _ACEOF | |
18099 | ||
18100 | ||
93bd259b | 18101 | ################################################################################ |
ec6a6fbe AK |
18102 | { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5 |
18103 | $as_echo_n "checking for kernel interface choice... " >&6; } | |
93bd259b AK |
18104 | |
18105 | # Check whether --with-interface was given. | |
18106 | if test "${with_interface+set}" = set; then | |
71082be4 | 18107 | withval=$with_interface; interface=$withval |
93bd259b | 18108 | else |
71082be4 | 18109 | interface=ioctl |
93bd259b AK |
18110 | fi |
18111 | ||
18112 | if [ "x$interface" != xioctl ]; | |
18113 | then | |
ec6a6fbe AK |
18114 | { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5 |
18115 | $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;} | |
93bd259b AK |
18116 | { (exit 1); exit 1; }; } |
18117 | fi | |
ec6a6fbe AK |
18118 | { $as_echo "$as_me:$LINENO: result: $interface" >&5 |
18119 | $as_echo "$interface" >&6; } | |
93bd259b AK |
18120 | |
18121 | ################################################################################ | |
db8b5af9 | 18122 | DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
18123 | |
18124 | cat >>confdefs.h <<_ACEOF | |
18125 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
18126 | _ACEOF | |
18127 | ||
18128 | ||
db8b5af9 | 18129 | DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 18130 | |
db8b5af9 | 18131 | LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 18132 | |
db8b5af9 | 18133 | VER=`cat "$srcdir"/VERSION` |
bf456146 | 18134 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
18135 | VER=`echo "$VER" | $AWK '{print $1}'` |
18136 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
18137 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
18138 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
18139 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
18140 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
18141 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 18142 | |
80992638 | 18143 | ################################################################################ |
fae0c576 | 18144 | |
83912faa | 18145 | |
795ca3e5 AK |
18146 | |
18147 | ||
18148 | ||
18149 | ||
18150 | ||
18151 | ||
5a52dca9 | 18152 | |
8ef2b021 | 18153 | |
199e490e | 18154 | |
69792976 AK |
18155 | |
18156 | ||
18157 | ||
d0191583 | 18158 | |
69792976 | 18159 | |
8106cdd5 AK |
18160 | |
18161 | ||
18162 | ||
18163 | ||
18164 | ||
d68a82ec | 18165 | |
036f273a | 18166 | |
7d1552c9 | 18167 | |
8106cdd5 | 18168 | |
0a62c911 | 18169 | |
8106cdd5 | 18170 | |
4a7f3eb2 | 18171 | |
4922197a AK |
18172 | |
18173 | ||
d8ac0fbc | 18174 | |
1a9ea74d | 18175 | |
8a2fc586 AK |
18176 | |
18177 | ||
d0191583 | 18178 | |
93bd259b AK |
18179 | |
18180 | ||
18181 | ||
18182 | ||
18183 | ||
d0191583 JM |
18184 | |
18185 | ||
18186 | ||
18187 | ||
18188 | ||
8a2fc586 | 18189 | |
19a2c6e0 | 18190 | |
f7f0854e ZK |
18191 | |
18192 | ||
3ceb7608 | 18193 | |
8ce0cbda | 18194 | |
8b1a3214 | 18195 | |
ec6a6fbe AK |
18196 | |
18197 | ||
18198 | ||
18199 | ||
e2997b73 AK |
18200 | |
18201 | ||
18202 | ||
18203 | ||
18204 | ||
18205 | ||
a946372e AK |
18206 | |
18207 | ||
18208 | ||
18209 | ||
18210 | ||
18211 | ||
18212 | ||
18213 | ||
18214 | ||
18215 | ||
18216 | ||
ec6a6fbe | 18217 | |
33f732c5 | 18218 | |
66e941e8 | 18219 | |
d3c8211f | 18220 | |
7e3fe830 | 18221 | |
a5f46f6a AK |
18222 | |
18223 | ||
18224 | ||
572fefeb | 18225 | |
90c80887 | 18226 | |
3399ae32 AK |
18227 | |
18228 | ||
18229 | ||
18230 | ||
18231 | ||
90c80887 | 18232 | |
bf456146 | 18233 | |
e1b8a236 | 18234 | |
0878503f | 18235 | |
8fea97b7 | 18236 | |
54b362f9 | 18237 | |
b1f08e51 | 18238 | |
d1e8046f | 18239 | |
fea55602 | 18240 | |
68f2de6d AK |
18241 | |
18242 | ||
80992638 | 18243 | ################################################################################ |
d1e8046f | 18244 | ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile" |
7a197a62 | 18245 | |
ad6254c5 | 18246 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
18247 | # This file is a shell script that caches the results of configure |
18248 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
18249 | # scripts and configure runs, see configure's option --config-cache. |
18250 | # It is not useful on other systems. If it contains results you don't | |
18251 | # want to keep, you may remove or edit it. | |
795ca3e5 | 18252 | # |
ad6254c5 AK |
18253 | # config.status only pays attention to the cache file if you give it |
18254 | # the --recheck option to rerun configure. | |
795ca3e5 | 18255 | # |
ad6254c5 AK |
18256 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
18257 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18258 | # following values. | |
18259 | ||
18260 | _ACEOF | |
18261 | ||
795ca3e5 AK |
18262 | # The following way of writing the cache mishandles newlines in values, |
18263 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 18264 | # So, we kill variables containing newlines. |
795ca3e5 AK |
18265 | # Ultrix sh set writes to stderr and can't be redirected directly, |
18266 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
18267 | ( |
18268 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
18269 | eval ac_val=\$$ac_var | |
18270 | case $ac_val in #( | |
18271 | *${as_nl}*) | |
18272 | case $ac_var in #( | |
ec6a6fbe AK |
18273 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
18274 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
18275 | esac |
18276 | case $ac_var in #( | |
18277 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 18278 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
18279 | *) $as_unset $ac_var ;; |
18280 | esac ;; | |
18281 | esac | |
18282 | done | |
18283 | ||
ad6254c5 | 18284 | (set) 2>&1 | |
7a197a62 AK |
18285 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
18286 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
18287 | # `set' does not quote correctly, so add quotes (double-quote |
18288 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
18289 | sed -n \ | |
8a2fc586 AK |
18290 | "s/'/'\\\\''/g; |
18291 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 18292 | ;; #( |
ad6254c5 AK |
18293 | *) |
18294 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 18295 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 18296 | ;; |
7a197a62 AK |
18297 | esac | |
18298 | sort | |
18299 | ) | | |
ad6254c5 | 18300 | sed ' |
7a197a62 | 18301 | /^ac_cv_env_/b end |
ad6254c5 | 18302 | t clear |
7a197a62 | 18303 | :clear |
ad6254c5 AK |
18304 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
18305 | t end | |
7a197a62 AK |
18306 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
18307 | :end' >>confcache | |
18308 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
18309 | if test -w "$cache_file"; then | |
18310 | test "x$cache_file" != "x/dev/null" && | |
ec6a6fbe AK |
18311 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
18312 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 18313 | cat confcache >$cache_file |
795ca3e5 | 18314 | else |
ec6a6fbe AK |
18315 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
18316 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
18317 | fi |
18318 | fi | |
18319 | rm -f confcache | |
18320 | ||
795ca3e5 AK |
18321 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18322 | # Let make expand exec_prefix. | |
18323 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
18324 | ||
72b2cb61 | 18325 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
18326 | |
18327 | ac_libobjs= | |
18328 | ac_ltlibobjs= | |
18329 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
18330 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 18331 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 18332 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
18333 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
18334 | # will be set to the directory where LIBOBJS objects are built. | |
18335 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
18336 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
18337 | done |
18338 | LIBOBJS=$ac_libobjs | |
80992638 | 18339 | |
ad6254c5 AK |
18340 | LTLIBOBJS=$ac_ltlibobjs |
18341 | ||
18342 | ||
18343 | ||
18344 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 18345 | ac_write_fail=0 |
ad6254c5 AK |
18346 | ac_clean_files_save=$ac_clean_files |
18347 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
ec6a6fbe AK |
18348 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
18349 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
18350 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 AK |
18351 | #! $SHELL |
18352 | # Generated by $as_me. | |
795ca3e5 | 18353 | # Run this file to recreate the current configuration. |
795ca3e5 | 18354 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
18355 | # configure, is in config.log if it exists. |
18356 | ||
18357 | debug=false | |
18358 | ac_cs_recheck=false | |
18359 | ac_cs_silent=false | |
18360 | SHELL=\${CONFIG_SHELL-$SHELL} | |
18361 | _ACEOF | |
18362 | ||
ec6a6fbe | 18363 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
18364 | ## --------------------- ## |
18365 | ## M4sh Initialization. ## | |
18366 | ## --------------------- ## | |
18367 | ||
25fbec5b AK |
18368 | # Be more Bourne compatible |
18369 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
18370 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
18371 | emulate sh | |
18372 | NULLCMD=: | |
ec6a6fbe | 18373 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
18374 | # is contrary to our usage. Disable this feature. |
18375 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
18376 | setopt NO_GLOB_SUBST |
18377 | else | |
25fbec5b AK |
18378 | case `(set -o) 2>/dev/null` in |
18379 | *posix*) set -o posix ;; | |
18380 | esac | |
18381 | ||
7a197a62 | 18382 | fi |
25fbec5b AK |
18383 | |
18384 | ||
7a197a62 AK |
18385 | |
18386 | ||
18387 | # PATH needs CR | |
18388 | # Avoid depending upon Character Ranges. | |
18389 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18390 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18391 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18392 | as_cr_digits='0123456789' | |
18393 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18394 | ||
ec6a6fbe AK |
18395 | as_nl=' |
18396 | ' | |
18397 | export as_nl | |
18398 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18399 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18400 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18401 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18402 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18403 | as_echo='printf %s\n' | |
18404 | as_echo_n='printf %s' | |
18405 | else | |
18406 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
18407 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18408 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 18409 | else |
ec6a6fbe AK |
18410 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
18411 | as_echo_n_body='eval | |
18412 | arg=$1; | |
18413 | case $arg in | |
18414 | *"$as_nl"*) | |
18415 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18416 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18417 | esac; | |
18418 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18419 | ' | |
18420 | export as_echo_n_body | |
18421 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 18422 | fi |
ec6a6fbe AK |
18423 | export as_echo_body |
18424 | as_echo='sh -c $as_echo_body as_echo' | |
18425 | fi | |
18426 | ||
18427 | # The user is always right. | |
18428 | if test "${PATH_SEPARATOR+set}" != set; then | |
18429 | PATH_SEPARATOR=: | |
18430 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18431 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18432 | PATH_SEPARATOR=';' | |
18433 | } | |
ad6254c5 AK |
18434 | fi |
18435 | ||
18436 | # Support unset when possible. | |
8a2fc586 | 18437 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
18438 | as_unset=unset |
18439 | else | |
18440 | as_unset=false | |
18441 | fi | |
8106cdd5 | 18442 | |
ad6254c5 | 18443 | |
7a197a62 AK |
18444 | # IFS |
18445 | # We need space, tab and new line, in precisely that order. Quoting is | |
18446 | # there to prevent editors from complaining about space-tab. | |
18447 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18448 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
18449 | IFS=" "" $as_nl" |
18450 | ||
18451 | # Find who we are. Look in the path if we contain no directory separator. | |
18452 | case $0 in | |
18453 | *[\\/]* ) as_myself=$0 ;; | |
18454 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18455 | for as_dir in $PATH | |
18456 | do | |
18457 | IFS=$as_save_IFS | |
18458 | test -z "$as_dir" && as_dir=. | |
18459 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18460 | done | |
18461 | IFS=$as_save_IFS | |
18462 | ||
18463 | ;; | |
18464 | esac | |
18465 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18466 | # in which case we are not to be found in the path. | |
18467 | if test "x$as_myself" = x; then | |
18468 | as_myself=$0 | |
18469 | fi | |
18470 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 18471 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
18472 | { (exit 1); exit 1; } |
18473 | fi | |
18474 | ||
ad6254c5 | 18475 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
18476 | for as_var in ENV MAIL MAILPATH |
18477 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
18478 | done | |
ad6254c5 AK |
18479 | PS1='$ ' |
18480 | PS2='> ' | |
18481 | PS4='+ ' | |
18482 | ||
18483 | # NLS nuisances. | |
ec6a6fbe AK |
18484 | LC_ALL=C |
18485 | export LC_ALL | |
18486 | LANGUAGE=C | |
18487 | export LANGUAGE | |
8106cdd5 | 18488 | |
ad6254c5 | 18489 | # Required to use basename. |
7a197a62 AK |
18490 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18491 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
18492 | as_expr=expr |
18493 | else | |
18494 | as_expr=false | |
18495 | fi | |
8106cdd5 | 18496 | |
7a197a62 | 18497 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
18498 | as_basename=basename |
18499 | else | |
18500 | as_basename=false | |
18501 | fi | |
18502 | ||
18503 | ||
18504 | # Name of the executable. | |
7a197a62 | 18505 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
18506 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
18507 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 18508 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 18509 | $as_echo X/"$0" | |
7a197a62 AK |
18510 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
18511 | s//\1/ | |
18512 | q | |
18513 | } | |
18514 | /^X\/\(\/\/\)$/{ | |
18515 | s//\1/ | |
18516 | q | |
18517 | } | |
18518 | /^X\/\(\/\).*/{ | |
18519 | s//\1/ | |
18520 | q | |
18521 | } | |
18522 | s/.*/./; q'` | |
ad6254c5 | 18523 | |
7a197a62 AK |
18524 | # CDPATH. |
18525 | $as_unset CDPATH | |
ad6254c5 AK |
18526 | |
18527 | ||
ad6254c5 | 18528 | |
ad6254c5 AK |
18529 | as_lineno_1=$LINENO |
18530 | as_lineno_2=$LINENO | |
ad6254c5 | 18531 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 18532 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 18533 | |
ad6254c5 AK |
18534 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
18535 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
18536 | # line-number line after each line using $LINENO; the second 'sed' |
18537 | # does the real work. The second script uses 'N' to pair each | |
18538 | # line-number line with the line containing $LINENO, and appends | |
18539 | # trailing '-' during substitution so that $LINENO is not a special | |
18540 | # case at line end. | |
ad6254c5 | 18541 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
18542 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
18543 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
18544 | sed -n ' | |
18545 | p | |
18546 | /[$]LINENO/= | |
18547 | ' <$as_myself | | |
ad6254c5 | 18548 | sed ' |
7a197a62 AK |
18549 | s/[$]LINENO.*/&-/ |
18550 | t lineno | |
18551 | b | |
18552 | :lineno | |
ad6254c5 | 18553 | N |
7a197a62 AK |
18554 | :loop |
18555 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 18556 | t loop |
7a197a62 | 18557 | s/-\n.*// |
ad6254c5 | 18558 | ' >$as_me.lineno && |
7a197a62 | 18559 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 18560 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
18561 | { (exit 1); exit 1; }; } |
18562 | ||
18563 | # Don't try to exec as it changes $[0], causing all sort of problems | |
18564 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
18565 | # original and so on. Autoconf is especially sensitive to this). |
18566 | . "./$as_me.lineno" | |
ad6254c5 AK |
18567 | # Exit status is that of the last command. |
18568 | exit | |
18569 | } | |
18570 | ||
18571 | ||
7a197a62 AK |
18572 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18573 | as_dirname=dirname | |
18574 | else | |
18575 | as_dirname=false | |
18576 | fi | |
18577 | ||
18578 | ECHO_C= ECHO_N= ECHO_T= | |
18579 | case `echo -n x` in | |
18580 | -n*) | |
18581 | case `echo 'x\c'` in | |
18582 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
18583 | *) ECHO_C='\c';; | |
18584 | esac;; | |
18585 | *) | |
18586 | ECHO_N='-n';; | |
ad6254c5 | 18587 | esac |
7a197a62 AK |
18588 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18589 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
18590 | as_expr=expr |
18591 | else | |
18592 | as_expr=false | |
18593 | fi | |
80992638 | 18594 | |
ad6254c5 | 18595 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
18596 | if test -d conf$$.dir; then |
18597 | rm -f conf$$.dir/conf$$.file | |
18598 | else | |
18599 | rm -f conf$$.dir | |
ec6a6fbe AK |
18600 | mkdir conf$$.dir 2>/dev/null |
18601 | fi | |
18602 | if (echo >conf$$.file) 2>/dev/null; then | |
18603 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
18604 | as_ln_s='ln -s' | |
18605 | # ... but there are two gotchas: | |
18606 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18607 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
18608 | # In both cases, we have to default to `cp -p'. | |
18609 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
18610 | as_ln_s='cp -p' | |
18611 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
18612 | as_ln_s=ln | |
18613 | else | |
ad6254c5 | 18614 | as_ln_s='cp -p' |
ec6a6fbe | 18615 | fi |
ad6254c5 AK |
18616 | else |
18617 | as_ln_s='cp -p' | |
18618 | fi | |
7a197a62 AK |
18619 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
18620 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 18621 | |
ad6254c5 AK |
18622 | if mkdir -p . 2>/dev/null; then |
18623 | as_mkdir_p=: | |
18624 | else | |
8a2fc586 | 18625 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
18626 | as_mkdir_p=false |
18627 | fi | |
18628 | ||
25fbec5b AK |
18629 | if test -x / >/dev/null 2>&1; then |
18630 | as_test_x='test -x' | |
7a197a62 | 18631 | else |
25fbec5b AK |
18632 | if ls -dL / >/dev/null 2>&1; then |
18633 | as_ls_L_option=L | |
18634 | else | |
18635 | as_ls_L_option= | |
18636 | fi | |
18637 | as_test_x=' | |
18638 | eval sh -c '\'' | |
18639 | if test -d "$1"; then | |
ec6a6fbe | 18640 | test -d "$1/."; |
25fbec5b AK |
18641 | else |
18642 | case $1 in | |
ec6a6fbe | 18643 | -*)set "./$1";; |
25fbec5b AK |
18644 | esac; |
18645 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
18646 | ???[sx]*):;;*)false;;esac;fi | |
18647 | '\'' sh | |
18648 | ' | |
7a197a62 | 18649 | fi |
25fbec5b | 18650 | as_executable_p=$as_test_x |
ad6254c5 AK |
18651 | |
18652 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 18653 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
18654 | |
18655 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 18656 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
18657 | |
18658 | ||
ad6254c5 AK |
18659 | exec 6>&1 |
18660 | ||
7a197a62 | 18661 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 18662 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
18663 | # values after options handling. |
18664 | ac_log=" | |
ad6254c5 | 18665 | This file was extended by $as_me, which was |
ec6a6fbe | 18666 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
18667 | |
18668 | CONFIG_FILES = $CONFIG_FILES | |
18669 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18670 | CONFIG_LINKS = $CONFIG_LINKS | |
18671 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18672 | $ $0 $@ | |
18673 | ||
7a197a62 AK |
18674 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
18675 | " | |
18676 | ||
ad6254c5 AK |
18677 | _ACEOF |
18678 | ||
ec6a6fbe AK |
18679 | case $ac_config_files in *" |
18680 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18681 | esac | |
18682 | ||
18683 | case $ac_config_headers in *" | |
18684 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
18685 | esac | |
18686 | ||
18687 | ||
18688 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 18689 | # Files that config.status was made for. |
68f2de6d AK |
18690 | config_files="$ac_config_files" |
18691 | config_headers="$ac_config_headers" | |
ad6254c5 | 18692 | |
7a197a62 | 18693 | _ACEOF |
ad6254c5 | 18694 | |
ec6a6fbe | 18695 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
18696 | ac_cs_usage="\ |
18697 | \`$as_me' instantiates files from templates according to the | |
18698 | current configuration. | |
18699 | ||
ec6a6fbe | 18700 | Usage: $0 [OPTION]... [FILE]... |
ad6254c5 AK |
18701 | |
18702 | -h, --help print this help, then exit | |
25fbec5b | 18703 | -V, --version print version number and configuration settings, then exit |
ec6a6fbe AK |
18704 | -q, --quiet, --silent |
18705 | do not print progress messages | |
ad6254c5 AK |
18706 | -d, --debug don't remove temporary files |
18707 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
18708 | --file=FILE[:TEMPLATE] |
18709 | instantiate the configuration file FILE | |
18710 | --header=FILE[:TEMPLATE] | |
18711 | instantiate the configuration header FILE | |
ad6254c5 AK |
18712 | |
18713 | Configuration files: | |
18714 | $config_files | |
18715 | ||
72b2cb61 AK |
18716 | Configuration headers: |
18717 | $config_headers | |
18718 | ||
ad6254c5 | 18719 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 18720 | |
7a197a62 | 18721 | _ACEOF |
ec6a6fbe | 18722 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
18723 | ac_cs_version="\\ |
18724 | config.status | |
ec6a6fbe AK |
18725 | configured by $0, generated by GNU Autoconf 2.63, |
18726 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 18727 | |
ec6a6fbe | 18728 | Copyright (C) 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
18729 | This config.status script is free software; the Free Software Foundation |
18730 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
18731 | |
18732 | ac_pwd='$ac_pwd' | |
18733 | srcdir='$srcdir' | |
18734 | INSTALL='$INSTALL' | |
fddafd51 | 18735 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
18736 | AWK='$AWK' |
18737 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
18738 | _ACEOF |
18739 | ||
ec6a6fbe AK |
18740 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18741 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
18742 | ac_need_defaults=: |
18743 | while test $# != 0 | |
18744 | do | |
18745 | case $1 in | |
18746 | --*=*) | |
7a197a62 AK |
18747 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18748 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
18749 | ac_shift=: |
18750 | ;; | |
7a197a62 | 18751 | *) |
ad6254c5 AK |
18752 | ac_option=$1 |
18753 | ac_optarg=$2 | |
18754 | ac_shift=shift | |
18755 | ;; | |
ad6254c5 AK |
18756 | esac |
18757 | ||
18758 | case $ac_option in | |
18759 | # Handling of the options. | |
ad6254c5 AK |
18760 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
18761 | ac_cs_recheck=: ;; | |
7a197a62 | 18762 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 18763 | $as_echo "$ac_cs_version"; exit ;; |
7a197a62 | 18764 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
18765 | debug=: ;; |
18766 | --file | --fil | --fi | --f ) | |
18767 | $ac_shift | |
ec6a6fbe AK |
18768 | case $ac_optarg in |
18769 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18770 | esac | |
18771 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
ad6254c5 AK |
18772 | ac_need_defaults=false;; |
18773 | --header | --heade | --head | --hea ) | |
18774 | $ac_shift | |
ec6a6fbe AK |
18775 | case $ac_optarg in |
18776 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18777 | esac | |
18778 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
ad6254c5 | 18779 | ac_need_defaults=false;; |
7a197a62 AK |
18780 | --he | --h) |
18781 | # Conflict between --help and --header | |
ec6a6fbe | 18782 | { $as_echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
18783 | Try \`$0 --help' for more information." >&2 |
18784 | { (exit 1); exit 1; }; };; | |
18785 | --help | --hel | -h ) | |
ec6a6fbe | 18786 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
18787 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18788 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18789 | ac_cs_silent=: ;; | |
18790 | ||
18791 | # This is an error. | |
ec6a6fbe | 18792 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 18793 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
18794 | { (exit 1); exit 1; }; } ;; |
18795 | ||
7a197a62 AK |
18796 | *) ac_config_targets="$ac_config_targets $1" |
18797 | ac_need_defaults=false ;; | |
ad6254c5 AK |
18798 | |
18799 | esac | |
18800 | shift | |
18801 | done | |
18802 | ||
18803 | ac_configure_extra_args= | |
18804 | ||
18805 | if $ac_cs_silent; then | |
18806 | exec 6>/dev/null | |
18807 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
18808 | fi | |
18809 | ||
18810 | _ACEOF | |
ec6a6fbe | 18811 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 18812 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
18813 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
18814 | shift | |
18815 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
18816 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 18817 | export CONFIG_SHELL |
ec6a6fbe | 18818 | exec "\$@" |
ad6254c5 AK |
18819 | fi |
18820 | ||
18821 | _ACEOF | |
ec6a6fbe | 18822 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
18823 | exec 5>>config.log |
18824 | { | |
18825 | echo | |
18826 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18827 | ## Running $as_me. ## | |
18828 | _ASBOX | |
ec6a6fbe | 18829 | $as_echo "$ac_log" |
7a197a62 | 18830 | } >&5 |
ad6254c5 | 18831 | |
7a197a62 | 18832 | _ACEOF |
ec6a6fbe | 18833 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 18834 | _ACEOF |
ad6254c5 | 18835 | |
ec6a6fbe | 18836 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
18837 | |
18838 | # Handling of arguments. | |
ad6254c5 AK |
18839 | for ac_config_target in $ac_config_targets |
18840 | do | |
7a197a62 AK |
18841 | case $ac_config_target in |
18842 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
18843 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
18844 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
18845 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
18846 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
5d311afb | 18847 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; |
93bd259b AK |
18848 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
18849 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 18850 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
d3d98fdc | 18851 | "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;; |
93bd259b AK |
18852 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
18853 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 18854 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
da05c479 | 18855 | "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; |
db8b5af9 | 18856 | "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;; |
93bd259b AK |
18857 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
18858 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
18859 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
18860 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
18861 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
18862 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
8fea97b7 | 18863 | "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;; |
ec6a6fbe | 18864 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
7a197a62 | 18865 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
93bd259b AK |
18866 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
18867 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 18868 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 18869 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
18870 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
18871 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 18872 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
81410c8f | 18873 | "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;; |
595eaf92 | 18874 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; |
7a197a62 | 18875 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 18876 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 18877 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 18878 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 18879 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
54b362f9 AK |
18880 | "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;; |
18881 | "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;; | |
d1e8046f | 18882 | "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;; |
7a197a62 | 18883 | |
ec6a6fbe AK |
18884 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
18885 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 18886 | { (exit 1); exit 1; }; };; |
80992638 | 18887 | esac |
ad6254c5 AK |
18888 | done |
18889 | ||
7a197a62 | 18890 | |
ad6254c5 AK |
18891 | # If the user did not use the arguments to specify the items to instantiate, |
18892 | # then the envvar interface is used. Set only those that are not. | |
18893 | # We use the long form for the default assignment because of an extremely | |
18894 | # bizarre bug on SunOS 4.1.3. | |
18895 | if $ac_need_defaults; then | |
18896 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 18897 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
18898 | fi |
18899 | ||
18900 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 18901 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 18902 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
18903 | # Hook for its removal unless debugging. |
18904 | # Note that there is a small window in which the directory will not be cleaned: | |
18905 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
18906 | $debug || |
18907 | { | |
7a197a62 AK |
18908 | tmp= |
18909 | trap 'exit_status=$? | |
18910 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
18911 | ' 0 | |
ad6254c5 AK |
18912 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
18913 | } | |
ad6254c5 AK |
18914 | # Create a (secure) tmp directory for tmp files. |
18915 | ||
18916 | { | |
7a197a62 | 18917 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
18918 | test -n "$tmp" && test -d "$tmp" |
18919 | } || | |
18920 | { | |
7a197a62 AK |
18921 | tmp=./conf$$-$RANDOM |
18922 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
18923 | } || |
18924 | { | |
ec6a6fbe | 18925 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
18926 | { (exit 1); exit 1; } |
18927 | } | |
18928 | ||
ec6a6fbe AK |
18929 | # Set up the scripts for CONFIG_FILES section. |
18930 | # No need to generate them if there are no CONFIG_FILES. | |
18931 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 18932 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 18933 | |
68f2de6d | 18934 | |
ec6a6fbe AK |
18935 | ac_cr='\r' |
18936 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18937 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
18938 | ac_cs_awk_cr='\\r' | |
18939 | else | |
18940 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 18941 | fi |
7a197a62 | 18942 | |
ec6a6fbe | 18943 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 18944 | _ACEOF |
7a197a62 | 18945 | |
8106cdd5 | 18946 | |
ec6a6fbe AK |
18947 | { |
18948 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
18949 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
18950 | echo "_ACEOF" | |
18951 | } >conf$$subs.sh || | |
18952 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
18953 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
18954 | { (exit 1); exit 1; }; } | |
18955 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
1995c9ff AK |
18956 | ac_delim='%!_!# ' |
18957 | for ac_last_try in false false false false false :; do | |
ec6a6fbe AK |
18958 | . ./conf$$subs.sh || |
18959 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
18960 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
18961 | { (exit 1); exit 1; }; } | |
18962 | ||
18963 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
18964 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
18965 | break |
18966 | elif $ac_last_try; then | |
ec6a6fbe AK |
18967 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
18968 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
18969 | { (exit 1); exit 1; }; } |
18970 | else | |
18971 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18972 | fi | |
18973 | done | |
ec6a6fbe AK |
18974 | rm -f conf$$subs.sh |
18975 | ||
18976 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18977 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
18978 | _ACEOF | |
18979 | sed -n ' | |
18980 | h | |
18981 | s/^/S["/; s/!.*/"]=/ | |
18982 | p | |
18983 | g | |
18984 | s/^[^!]*!// | |
18985 | :repl | |
18986 | t repl | |
18987 | s/'"$ac_delim"'$// | |
18988 | t delim | |
18989 | :nl | |
18990 | h | |
18991 | s/\(.\{148\}\).*/\1/ | |
18992 | t more1 | |
18993 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
18994 | p | |
18995 | n | |
18996 | b repl | |
18997 | :more1 | |
18998 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18999 | p | |
19000 | g | |
19001 | s/.\{148\}// | |
19002 | t nl | |
19003 | :delim | |
19004 | h | |
19005 | s/\(.\{148\}\).*/\1/ | |
19006 | t more2 | |
19007 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
19008 | p | |
19009 | b | |
19010 | :more2 | |
19011 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19012 | p | |
19013 | g | |
19014 | s/.\{148\}// | |
19015 | t delim | |
19016 | ' <conf$$subs.awk | sed ' | |
19017 | /^[^""]/{ | |
19018 | N | |
19019 | s/\n// | |
19020 | } | |
19021 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
19022 | rm -f conf$$subs.awk | |
19023 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19024 | _ACAWK | |
19025 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
19026 | for (key in S) S_is_set[key] = 1 | |
19027 | FS = "\a" | |
7a197a62 | 19028 | |
ec6a6fbe AK |
19029 | } |
19030 | { | |
19031 | line = $ 0 | |
19032 | nfields = split(line, field, "@") | |
19033 | substed = 0 | |
19034 | len = length(field[1]) | |
19035 | for (i = 2; i < nfields; i++) { | |
19036 | key = field[i] | |
19037 | keylen = length(key) | |
19038 | if (S_is_set[key]) { | |
19039 | value = S[key] | |
19040 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
19041 | len += length(value) + length(field[++i]) | |
19042 | substed = 1 | |
19043 | } else | |
19044 | len += 1 + keylen | |
19045 | } | |
19046 | ||
19047 | print line | |
19048 | } | |
fddafd51 | 19049 | |
ec6a6fbe | 19050 | _ACAWK |
1995c9ff | 19051 | _ACEOF |
ec6a6fbe AK |
19052 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19053 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
19054 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
19055 | else | |
19056 | cat | |
19057 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
19058 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
19059 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
19060 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
19061 | _ACEOF |
19062 | ||
7a197a62 AK |
19063 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
19064 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
19065 | # trailing colons and then remove the whole line if VPATH becomes empty | |
19066 | # (actually we leave an empty line to preserve line numbers). | |
19067 | if test "x$srcdir" = x.; then | |
19068 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
19069 | s/:*\$(srcdir):*/:/ | |
19070 | s/:*\${srcdir}:*/:/ | |
19071 | s/:*@srcdir@:*/:/ | |
19072 | s/^\([^=]*=[ ]*\):*/\1/ | |
19073 | s/:*$// | |
19074 | s/^[^=]*=[ ]*$// | |
19075 | }' | |
19076 | fi | |
19077 | ||
ec6a6fbe | 19078 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
19079 | fi # test -n "$CONFIG_FILES" |
19080 | ||
ec6a6fbe AK |
19081 | # Set up the scripts for CONFIG_HEADERS section. |
19082 | # No need to generate them if there are no CONFIG_HEADERS. | |
19083 | # This happens for instance with `./config.status Makefile'. | |
19084 | if test -n "$CONFIG_HEADERS"; then | |
19085 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
19086 | BEGIN { | |
19087 | _ACEOF | |
19088 | ||
19089 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
19090 | # here-document in config.status, that substitutes the proper values into | |
19091 | # config.h.in to produce config.h. | |
19092 | ||
19093 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
19094 | # handling of long lines. | |
19095 | ac_delim='%!_!# ' | |
19096 | for ac_last_try in false false :; do | |
19097 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
19098 | if test -z "$ac_t"; then | |
19099 | break | |
19100 | elif $ac_last_try; then | |
19101 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
19102 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
19103 | { (exit 1); exit 1; }; } | |
19104 | else | |
19105 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19106 | fi | |
19107 | done | |
19108 | ||
19109 | # For the awk script, D is an array of macro values keyed by name, | |
19110 | # likewise P contains macro parameters if any. Preserve backslash | |
19111 | # newline sequences. | |
19112 | ||
19113 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
19114 | sed -n ' | |
19115 | s/.\{148\}/&'"$ac_delim"'/g | |
19116 | t rset | |
19117 | :rset | |
19118 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
19119 | t def | |
19120 | d | |
19121 | :def | |
19122 | s/\\$// | |
19123 | t bsnl | |
19124 | s/["\\]/\\&/g | |
19125 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19126 | D["\1"]=" \3"/p | |
19127 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
19128 | d | |
19129 | :bsnl | |
19130 | s/["\\]/\\&/g | |
19131 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19132 | D["\1"]=" \3\\\\\\n"\\/p | |
19133 | t cont | |
19134 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
19135 | t cont | |
19136 | d | |
19137 | :cont | |
19138 | n | |
19139 | s/.\{148\}/&'"$ac_delim"'/g | |
19140 | t clear | |
19141 | :clear | |
19142 | s/\\$// | |
19143 | t bsnlc | |
19144 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
19145 | d | |
19146 | :bsnlc | |
19147 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
19148 | b cont | |
19149 | ' <confdefs.h | sed ' | |
19150 | s/'"$ac_delim"'/"\\\ | |
19151 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
19152 | ||
19153 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19154 | for (key in D) D_is_set[key] = 1 | |
19155 | FS = "\a" | |
19156 | } | |
19157 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
19158 | line = \$ 0 | |
19159 | split(line, arg, " ") | |
19160 | if (arg[1] == "#") { | |
19161 | defundef = arg[2] | |
19162 | mac1 = arg[3] | |
19163 | } else { | |
19164 | defundef = substr(arg[1], 2) | |
19165 | mac1 = arg[2] | |
19166 | } | |
19167 | split(mac1, mac2, "(") #) | |
19168 | macro = mac2[1] | |
19169 | prefix = substr(line, 1, index(line, defundef) - 1) | |
19170 | if (D_is_set[macro]) { | |
19171 | # Preserve the white space surrounding the "#". | |
19172 | print prefix "define", macro P[macro] D[macro] | |
19173 | next | |
19174 | } else { | |
19175 | # Replace #undef with comments. This is necessary, for example, | |
19176 | # in the case of _POSIX_SOURCE, which is predefined and required | |
19177 | # on some systems where configure will not decide to define it. | |
19178 | if (defundef == "undef") { | |
19179 | print "/*", prefix defundef, macro, "*/" | |
19180 | next | |
19181 | } | |
19182 | } | |
19183 | } | |
19184 | { print } | |
19185 | _ACAWK | |
19186 | _ACEOF | |
19187 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19188 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
19189 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
19190 | { (exit 1); exit 1; }; } | |
19191 | fi # test -n "$CONFIG_HEADERS" | |
19192 | ||
7a197a62 | 19193 | |
ec6a6fbe AK |
19194 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
19195 | shift | |
19196 | for ac_tag | |
7a197a62 AK |
19197 | do |
19198 | case $ac_tag in | |
19199 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19200 | esac | |
19201 | case $ac_mode$ac_tag in | |
19202 | :[FHL]*:*);; | |
ec6a6fbe AK |
19203 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
19204 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
7a197a62 AK |
19205 | { (exit 1); exit 1; }; };; |
19206 | :[FH]-) ac_tag=-:-;; | |
19207 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
19208 | esac | |
19209 | ac_save_IFS=$IFS | |
19210 | IFS=: | |
19211 | set x $ac_tag | |
19212 | IFS=$ac_save_IFS | |
19213 | shift | |
19214 | ac_file=$1 | |
19215 | shift | |
19216 | ||
19217 | case $ac_mode in | |
19218 | :L) ac_source=$1;; | |
19219 | :[FH]) | |
19220 | ac_file_inputs= | |
19221 | for ac_f | |
19222 | do | |
19223 | case $ac_f in | |
19224 | -) ac_f="$tmp/stdin";; | |
19225 | *) # Look for the file first in the build tree, then in the source tree | |
19226 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19227 | # because $ac_f cannot contain `:'. | |
19228 | test -f "$ac_f" || | |
19229 | case $ac_f in | |
19230 | [\\/$]*) false;; | |
19231 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19232 | esac || | |
ec6a6fbe AK |
19233 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
19234 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
19235 | { (exit 1); exit 1; }; };; |
19236 | esac | |
ec6a6fbe AK |
19237 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
19238 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
7a197a62 AK |
19239 | done |
19240 | ||
19241 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
19242 | # use $as_me), people would be surprised to read: | |
19243 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
19244 | configure_input='Generated from '` |
19245 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19246 | `' by configure.' | |
7a197a62 AK |
19247 | if test x"$ac_file" != x-; then |
19248 | configure_input="$ac_file. $configure_input" | |
ec6a6fbe AK |
19249 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
19250 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 | 19251 | fi |
ec6a6fbe AK |
19252 | # Neutralize special characters interpreted by sed in replacement strings. |
19253 | case $configure_input in #( | |
19254 | *\&* | *\|* | *\\* ) | |
19255 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19256 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19257 | *) ac_sed_conf_input=$configure_input;; | |
19258 | esac | |
7a197a62 AK |
19259 | |
19260 | case $ac_tag in | |
ec6a6fbe AK |
19261 | *:-:* | *:-) cat >"$tmp/stdin" \ |
19262 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19263 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19264 | { (exit 1); exit 1; }; } ;; | |
7a197a62 AK |
19265 | esac |
19266 | ;; | |
80992638 | 19267 | esac |
8106cdd5 | 19268 | |
7a197a62 | 19269 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 19270 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
19271 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
19272 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 19273 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 19274 | $as_echo X"$ac_file" | |
7a197a62 AK |
19275 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
19276 | s//\1/ | |
19277 | q | |
19278 | } | |
19279 | /^X\(\/\/\)[^/].*/{ | |
19280 | s//\1/ | |
19281 | q | |
19282 | } | |
19283 | /^X\(\/\/\)$/{ | |
19284 | s//\1/ | |
19285 | q | |
19286 | } | |
19287 | /^X\(\/\).*/{ | |
19288 | s//\1/ | |
19289 | q | |
19290 | } | |
19291 | s/.*/./; q'` | |
19292 | { as_dir="$ac_dir" | |
19293 | case $as_dir in #( | |
19294 | -*) as_dir=./$as_dir;; | |
19295 | esac | |
19296 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 19297 | as_dirs= |
7a197a62 AK |
19298 | while :; do |
19299 | case $as_dir in #( | |
ec6a6fbe | 19300 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7a197a62 AK |
19301 | *) as_qdir=$as_dir;; |
19302 | esac | |
19303 | as_dirs="'$as_qdir' $as_dirs" | |
19304 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 19305 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
19306 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
19307 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 19308 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 19309 | $as_echo X"$as_dir" | |
7a197a62 AK |
19310 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
19311 | s//\1/ | |
19312 | q | |
19313 | } | |
19314 | /^X\(\/\/\)[^/].*/{ | |
19315 | s//\1/ | |
19316 | q | |
19317 | } | |
19318 | /^X\(\/\/\)$/{ | |
19319 | s//\1/ | |
19320 | q | |
19321 | } | |
19322 | /^X\(\/\).*/{ | |
19323 | s//\1/ | |
19324 | q | |
19325 | } | |
19326 | s/.*/./; q'` | |
19327 | test -d "$as_dir" && break | |
ad6254c5 | 19328 | done |
7a197a62 | 19329 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
ec6a6fbe AK |
19330 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
19331 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 19332 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
19333 | ac_builddir=. |
19334 | ||
7a197a62 AK |
19335 | case "$ac_dir" in |
19336 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19337 | *) | |
ec6a6fbe | 19338 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 19339 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 19340 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
19341 | case $ac_top_builddir_sub in |
19342 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19343 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19344 | esac ;; | |
19345 | esac | |
19346 | ac_abs_top_builddir=$ac_pwd | |
19347 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19348 | # for backward compatibility: | |
19349 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
19350 | |
19351 | case $srcdir in | |
7a197a62 | 19352 | .) # We are building in place. |
ad6254c5 | 19353 | ac_srcdir=. |
7a197a62 AK |
19354 | ac_top_srcdir=$ac_top_builddir_sub |
19355 | ac_abs_top_srcdir=$ac_pwd ;; | |
19356 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 19357 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
19358 | ac_top_srcdir=$srcdir |
19359 | ac_abs_top_srcdir=$srcdir ;; | |
19360 | *) # Relative name. | |
19361 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19362 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19363 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 19364 | esac |
7a197a62 | 19365 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 19366 | |
ad6254c5 | 19367 | |
7a197a62 AK |
19368 | case $ac_mode in |
19369 | :F) | |
19370 | # | |
19371 | # CONFIG_FILE | |
19372 | # | |
ad6254c5 AK |
19373 | |
19374 | case $INSTALL in | |
19375 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 19376 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 19377 | esac |
fddafd51 ZK |
19378 | ac_MKDIR_P=$MKDIR_P |
19379 | case $MKDIR_P in | |
19380 | [\\/$]* | ?:[\\/]* ) ;; | |
19381 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
19382 | esac | |
7a197a62 | 19383 | _ACEOF |
795ca3e5 | 19384 | |
ec6a6fbe | 19385 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
19386 | # If the template does not know about datarootdir, expand it. |
19387 | # FIXME: This hack should be removed a few years after 2.60. | |
19388 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19389 | ||
ec6a6fbe AK |
19390 | ac_sed_dataroot=' |
19391 | /datarootdir/ { | |
7a197a62 AK |
19392 | p |
19393 | q | |
19394 | } | |
19395 | /@datadir@/p | |
19396 | /@docdir@/p | |
19397 | /@infodir@/p | |
19398 | /@localedir@/p | |
19399 | /@mandir@/p | |
ec6a6fbe AK |
19400 | ' |
19401 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7a197a62 AK |
19402 | *datarootdir*) ac_datarootdir_seen=yes;; |
19403 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
ec6a6fbe AK |
19404 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
19405 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 19406 | _ACEOF |
ec6a6fbe | 19407 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
19408 | ac_datarootdir_hack=' |
19409 | s&@datadir@&$datadir&g | |
19410 | s&@docdir@&$docdir&g | |
19411 | s&@infodir@&$infodir&g | |
19412 | s&@localedir@&$localedir&g | |
19413 | s&@mandir@&$mandir&g | |
19414 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19415 | esac | |
19416 | _ACEOF | |
19417 | ||
19418 | # Neutralize VPATH when `$srcdir' = `.'. | |
19419 | # Shell code in configure.ac might set extrasub. | |
19420 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
19421 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19422 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
19423 | $extrasub |
19424 | _ACEOF | |
ec6a6fbe | 19425 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
19426 | :t |
19427 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 19428 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 19429 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 19430 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
19431 | s&@srcdir@&$ac_srcdir&;t t |
19432 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19433 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19434 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19435 | s&@builddir@&$ac_builddir&;t t | |
19436 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19437 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19438 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 19439 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 19440 | $ac_datarootdir_hack |
ec6a6fbe AK |
19441 | " |
19442 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
19443 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19444 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19445 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
19446 | |
19447 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
19448 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
19449 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
ec6a6fbe | 19450 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 19451 | which seems to be undefined. Please make sure it is defined." >&5 |
ec6a6fbe | 19452 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
19453 | which seems to be undefined. Please make sure it is defined." >&2;} |
19454 | ||
19455 | rm -f "$tmp/stdin" | |
72b2cb61 | 19456 | case $ac_file in |
ec6a6fbe AK |
19457 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
19458 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
19459 | esac \ | |
19460 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19461 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19462 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
19463 | ;; |
19464 | :H) | |
19465 | # | |
19466 | # CONFIG_HEADER | |
19467 | # | |
72b2cb61 | 19468 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
19469 | { |
19470 | $as_echo "/* $configure_input */" \ | |
19471 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
19472 | } >"$tmp/config.h" \ | |
19473 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19474 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19475 | { (exit 1); exit 1; }; } | |
19476 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
19477 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
19478 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 19479 | else |
ec6a6fbe AK |
19480 | rm -f "$ac_file" |
19481 | mv "$tmp/config.h" "$ac_file" \ | |
19482 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19483 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19484 | { (exit 1); exit 1; }; } | |
72b2cb61 AK |
19485 | fi |
19486 | else | |
ec6a6fbe AK |
19487 | $as_echo "/* $configure_input */" \ |
19488 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
19489 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
19490 | $as_echo "$as_me: error: could not create -" >&2;} | |
19491 | { (exit 1); exit 1; }; } | |
72b2cb61 | 19492 | fi |
7a197a62 AK |
19493 | ;; |
19494 | ||
19495 | ||
19496 | esac | |
19497 | ||
19498 | done # for ac_tag | |
795ca3e5 | 19499 | |
795ca3e5 | 19500 | |
ad6254c5 AK |
19501 | { (exit 0); exit 0; } |
19502 | _ACEOF | |
795ca3e5 | 19503 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
19504 | ac_clean_files=$ac_clean_files_save |
19505 | ||
ec6a6fbe AK |
19506 | test $ac_write_fail = 0 || |
19507 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
19508 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
19509 | { (exit 1); exit 1; }; } | |
19510 | ||
ad6254c5 AK |
19511 | |
19512 | # configure is writing to config.log, and then calls config.status. | |
19513 | # config.status does its own redirection, appending to config.log. | |
19514 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19515 | # by configure, so config.status won't be able to write to it; its | |
19516 | # output is simply discarded. So we exec the FD to /dev/null, | |
19517 | # effectively closing config.log, so it can be properly (re)opened and | |
19518 | # appended to by config.status. When coming back to configure, we | |
19519 | # need to make the FD available again. | |
19520 | if test "$no_create" != yes; then | |
19521 | ac_cs_success=: | |
19522 | ac_config_status_args= | |
19523 | test "$silent" = yes && | |
19524 | ac_config_status_args="$ac_config_status_args --quiet" | |
19525 | exec 5>/dev/null | |
19526 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19527 | exec 5>>config.log | |
19528 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19529 | # would make configure fail if this is the last instruction. | |
19530 | $ac_cs_success || { (exit 1); exit 1; } | |
19531 | fi | |
ec6a6fbe AK |
19532 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
19533 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19534 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
19535 | fi | |
795ca3e5 | 19536 | |
2dc95e1c AK |
19537 | |
19538 | if test x$ODIRECT != xyes; then | |
ec6a6fbe AK |
19539 | { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
19540 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 19541 | fi |