]>
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 |
ec6a6fbe AK |
654 | STATIC_LINK |
655 | STATICDIR | |
656 | SNAPSHOTS | |
f7f0854e | 657 | SELINUX_PC |
e1b8a236 | 658 | SELINUX_LIBS |
539f4a77 | 659 | READLINE_LIBS |
f30875db | 660 | PTHREAD_LIBS |
ec6a6fbe AK |
661 | POOL |
662 | PKGCONFIG | |
8fea97b7 | 663 | REPLICATORS |
ec6a6fbe AK |
664 | MIRRORS |
665 | LVM_RELEASE_DATE | |
666 | LVM_RELEASE | |
667 | LVM_PATCHLEVEL | |
668 | LVM_MINOR | |
669 | LVM_MAJOR | |
bf456146 | 670 | LVM_LIBAPI |
ec6a6fbe | 671 | LVM_VERSION |
ec6a6fbe AK |
672 | LVM1_FALLBACK |
673 | LVM1 | |
674 | LOCALEDIR | |
675 | LIB_SUFFIX | |
676 | LDDEPS | |
677 | JOBS | |
678 | INTL_PACKAGE | |
679 | INTL | |
ec6a6fbe AK |
680 | HAVE_REALTIME |
681 | HAVE_LIBDL | |
ec6a6fbe AK |
682 | FSADM |
683 | DM_LIB_PATCHLEVEL | |
684 | DM_LIB_VERSION | |
685 | DM_IOCTLS | |
686 | DM_DEVICE_UID | |
687 | DM_DEVICE_MODE | |
688 | DM_DEVICE_GID | |
689 | DM_COMPAT | |
690 | DMEVENTD | |
19a2c6e0 | 691 | DL_LIBS |
ec6a6fbe | 692 | DEVMAPPER |
3399ae32 AK |
693 | DEFAULT_LOCK_DIR |
694 | DEFAULT_CACHE_SUBDIR | |
695 | DEFAULT_BACKUP_SUBDIR | |
696 | DEFAULT_ARCHIVE_SUBDIR | |
697 | DEFAULT_SYS_DIR | |
ec6a6fbe AK |
698 | DEBUG |
699 | COPTIMISE_FLAG | |
e2997b73 | 700 | CONFDIR |
ec6a6fbe AK |
701 | CMDLIB |
702 | CLVMD | |
703 | CLUSTER | |
704 | CLDWHOLEARCHIVE | |
705 | CLDNOWHOLEARCHIVE | |
706 | CLDFLAGS | |
707 | BUILD_DMEVENTD | |
66fd4529 | 708 | BUILD_CMIRRORD |
572fefeb | 709 | APPLIB |
ec6a6fbe AK |
710 | MODPROBE_CMD |
711 | MSGFMT | |
712 | LVM2CMD_LIB | |
572fefeb | 713 | LVM2APP_LIB |
fd4728e1 | 714 | GENPNG |
ec6a6fbe AK |
715 | GENHTML |
716 | LCOV | |
90c80887 AK |
717 | SACKPT_LIBS |
718 | SACKPT_CFLAGS | |
a946372e AK |
719 | DLM_LIBS |
720 | DLM_CFLAGS | |
e2997b73 AK |
721 | CPG_LIBS |
722 | CPG_CFLAGS | |
723 | CONFDB_LIBS | |
724 | CONFDB_CFLAGS | |
a946372e AK |
725 | SALCK_LIBS |
726 | SALCK_CFLAGS | |
e2997b73 AK |
727 | QUORUM_LIBS |
728 | QUORUM_CFLAGS | |
a946372e AK |
729 | COROSYNC_LIBS |
730 | COROSYNC_CFLAGS | |
731 | CMAN_LIBS | |
732 | CMAN_CFLAGS | |
733 | GULM_LIBS | |
734 | GULM_CFLAGS | |
735 | CCS_LIBS | |
736 | CCS_CFLAGS | |
737 | PKGCONFIGINIT_LIBS | |
738 | PKGCONFIGINIT_CFLAGS | |
e2997b73 | 739 | PKG_CONFIG |
ec6a6fbe AK |
740 | POW_LIB |
741 | LIBOBJS | |
742 | ALLOCA | |
743 | CSCOPE_CMD | |
744 | CFLOW_CMD | |
745 | RANLIB | |
746 | MKDIR_P | |
747 | SET_MAKE | |
748 | LN_S | |
749 | INSTALL_DATA | |
750 | INSTALL_SCRIPT | |
751 | INSTALL_PROGRAM | |
752 | EGREP | |
753 | GREP | |
754 | CPP | |
755 | OBJEXT | |
756 | EXEEXT | |
757 | ac_ct_CC | |
758 | CPPFLAGS | |
759 | LDFLAGS | |
760 | CFLAGS | |
761 | CC | |
762 | AWK | |
763 | SED | |
764 | target_os | |
765 | target_vendor | |
766 | target_cpu | |
767 | target | |
768 | host_os | |
769 | host_vendor | |
770 | host_cpu | |
771 | host | |
772 | build_os | |
773 | build_vendor | |
774 | build_cpu | |
775 | build | |
776 | target_alias | |
777 | host_alias | |
778 | build_alias | |
779 | LIBS | |
780 | ECHO_T | |
781 | ECHO_N | |
782 | ECHO_C | |
783 | DEFS | |
784 | mandir | |
785 | localedir | |
786 | libdir | |
787 | psdir | |
788 | pdfdir | |
789 | dvidir | |
790 | htmldir | |
791 | infodir | |
792 | docdir | |
793 | oldincludedir | |
794 | includedir | |
795 | localstatedir | |
796 | sharedstatedir | |
797 | sysconfdir | |
798 | datadir | |
799 | datarootdir | |
800 | libexecdir | |
801 | sbindir | |
802 | bindir | |
803 | program_transform_name | |
804 | prefix | |
805 | exec_prefix | |
806 | PACKAGE_BUGREPORT | |
807 | PACKAGE_STRING | |
808 | PACKAGE_VERSION | |
809 | PACKAGE_TARNAME | |
810 | PACKAGE_NAME | |
811 | PATH_SEPARATOR | |
812 | SHELL' | |
ad6254c5 | 813 | ac_subst_files='' |
ec6a6fbe AK |
814 | ac_user_opts=' |
815 | enable_option_checking | |
816 | enable_static_link | |
817 | with_user | |
818 | with_group | |
819 | with_device_uid | |
820 | with_device_gid | |
821 | with_device_mode | |
822 | enable_lvm1_fallback | |
823 | with_lvm1 | |
824 | with_pool | |
825 | with_cluster | |
826 | with_snapshots | |
827 | with_mirrors | |
8fea97b7 | 828 | with_replicators |
ec6a6fbe AK |
829 | enable_readline |
830 | enable_realtime | |
831 | with_clvmd | |
8c4e8a18 | 832 | with_clvmd_pidfile |
66fd4529 AK |
833 | enable_cmirrord |
834 | with_cmirrord_pidfile | |
ec6a6fbe AK |
835 | enable_debug |
836 | with_optimisation | |
837 | enable_profiling | |
838 | enable_devmapper | |
a5f46f6a AK |
839 | enable_udev_sync |
840 | enable_udev_rules | |
ec6a6fbe | 841 | enable_compat |
95eaa683 | 842 | enable_units_compat |
ec6a6fbe AK |
843 | enable_ioctl |
844 | enable_o_direct | |
572fefeb | 845 | enable_applib |
ec6a6fbe AK |
846 | enable_cmdlib |
847 | enable_pkgconfig | |
23b059e7 | 848 | enable_write_install |
ec6a6fbe AK |
849 | enable_fsadm |
850 | enable_dmeventd | |
851 | enable_selinux | |
852 | enable_nls | |
853 | with_localedir | |
854 | with_confdir | |
855 | with_staticdir | |
856 | with_usrlibdir | |
857 | with_usrsbindir | |
a5f46f6a | 858 | with_udev_prefix |
78ce7acc | 859 | with_udevdir |
ec6a6fbe AK |
860 | with_dmeventd_pidfile |
861 | with_dmeventd_path | |
3399ae32 AK |
862 | with_default_system_dir |
863 | with_default_archive_subdir | |
864 | with_default_backup_subdir | |
865 | with_default_cache_subdir | |
866 | with_default_locking_dir | |
ec6a6fbe AK |
867 | with_interface |
868 | ' | |
7a197a62 AK |
869 | ac_precious_vars='build_alias |
870 | host_alias | |
871 | target_alias | |
872 | CC | |
873 | CFLAGS | |
874 | LDFLAGS | |
25fbec5b | 875 | LIBS |
7a197a62 | 876 | CPPFLAGS |
e2997b73 AK |
877 | CPP |
878 | PKG_CONFIG | |
a946372e AK |
879 | PKGCONFIGINIT_CFLAGS |
880 | PKGCONFIGINIT_LIBS | |
881 | CCS_CFLAGS | |
882 | CCS_LIBS | |
883 | GULM_CFLAGS | |
884 | GULM_LIBS | |
885 | CMAN_CFLAGS | |
886 | CMAN_LIBS | |
887 | COROSYNC_CFLAGS | |
888 | COROSYNC_LIBS | |
e2997b73 AK |
889 | QUORUM_CFLAGS |
890 | QUORUM_LIBS | |
a946372e AK |
891 | SALCK_CFLAGS |
892 | SALCK_LIBS | |
e2997b73 AK |
893 | CONFDB_CFLAGS |
894 | CONFDB_LIBS | |
895 | CPG_CFLAGS | |
a946372e AK |
896 | CPG_LIBS |
897 | DLM_CFLAGS | |
90c80887 AK |
898 | DLM_LIBS |
899 | SACKPT_CFLAGS | |
900 | SACKPT_LIBS' | |
7a197a62 | 901 | |
795ca3e5 AK |
902 | |
903 | # Initialize some variables set by options. | |
ad6254c5 AK |
904 | ac_init_help= |
905 | ac_init_version=false | |
ec6a6fbe AK |
906 | ac_unrecognized_opts= |
907 | ac_unrecognized_sep= | |
795ca3e5 AK |
908 | # The variables have the same names as the options, with |
909 | # dashes changed to underlines. | |
ad6254c5 | 910 | cache_file=/dev/null |
795ca3e5 | 911 | exec_prefix=NONE |
795ca3e5 | 912 | no_create= |
795ca3e5 AK |
913 | no_recursion= |
914 | prefix=NONE | |
915 | program_prefix=NONE | |
916 | program_suffix=NONE | |
917 | program_transform_name=s,x,x, | |
918 | silent= | |
919 | site= | |
920 | srcdir= | |
795ca3e5 AK |
921 | verbose= |
922 | x_includes=NONE | |
923 | x_libraries=NONE | |
ad6254c5 AK |
924 | |
925 | # Installation directory options. | |
926 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
927 | # and all the variables that are supposed to be based on exec_prefix | |
928 | # by default will actually change. | |
929 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 930 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
931 | bindir='${exec_prefix}/bin' |
932 | sbindir='${exec_prefix}/sbin' | |
933 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
934 | datarootdir='${prefix}/share' |
935 | datadir='${datarootdir}' | |
795ca3e5 AK |
936 | sysconfdir='${prefix}/etc' |
937 | sharedstatedir='${prefix}/com' | |
938 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
939 | includedir='${prefix}/include' |
940 | oldincludedir='/usr/include' | |
7a197a62 AK |
941 | docdir='${datarootdir}/doc/${PACKAGE}' |
942 | infodir='${datarootdir}/info' | |
943 | htmldir='${docdir}' | |
944 | dvidir='${docdir}' | |
945 | pdfdir='${docdir}' | |
946 | psdir='${docdir}' | |
947 | libdir='${exec_prefix}/lib' | |
948 | localedir='${datarootdir}/locale' | |
949 | mandir='${datarootdir}/man' | |
795ca3e5 | 950 | |
795ca3e5 | 951 | ac_prev= |
7a197a62 | 952 | ac_dashdash= |
795ca3e5 AK |
953 | for ac_option |
954 | do | |
795ca3e5 AK |
955 | # If the previous option needs an argument, assign it. |
956 | if test -n "$ac_prev"; then | |
7a197a62 | 957 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
958 | ac_prev= |
959 | continue | |
960 | fi | |
961 | ||
7a197a62 AK |
962 | case $ac_option in |
963 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
964 | *) ac_optarg=yes ;; | |
965 | esac | |
795ca3e5 AK |
966 | |
967 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
968 | ||
7a197a62 AK |
969 | case $ac_dashdash$ac_option in |
970 | --) | |
971 | ac_dashdash=yes ;; | |
795ca3e5 AK |
972 | |
973 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
974 | ac_prev=bindir ;; | |
975 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 976 | bindir=$ac_optarg ;; |
795ca3e5 AK |
977 | |
978 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 979 | ac_prev=build_alias ;; |
795ca3e5 | 980 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 981 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
982 | |
983 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
984 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
985 | ac_prev=cache_file ;; | |
986 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
987 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
988 | cache_file=$ac_optarg ;; |
989 | ||
990 | --config-cache | -C) | |
991 | cache_file=config.cache ;; | |
795ca3e5 | 992 | |
7a197a62 | 993 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 994 | ac_prev=datadir ;; |
7a197a62 | 995 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 996 | datadir=$ac_optarg ;; |
795ca3e5 | 997 | |
7a197a62 AK |
998 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
999 | | --dataroo | --dataro | --datar) | |
1000 | ac_prev=datarootdir ;; | |
1001 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1002 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1003 | datarootdir=$ac_optarg ;; | |
1004 | ||
795ca3e5 | 1005 | -disable-* | --disable-*) |
ec6a6fbe | 1006 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 1007 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1008 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1009 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 1010 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1011 | ac_useropt_orig=$ac_useropt |
1012 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1013 | case $ac_user_opts in | |
1014 | *" | |
1015 | "enable_$ac_useropt" | |
1016 | "*) ;; | |
1017 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1018 | ac_unrecognized_sep=', ';; | |
1019 | esac | |
1020 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
1021 | |
1022 | -docdir | --docdir | --docdi | --doc | --do) | |
1023 | ac_prev=docdir ;; | |
1024 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1025 | docdir=$ac_optarg ;; | |
1026 | ||
1027 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1028 | ac_prev=dvidir ;; | |
1029 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1030 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1031 | |
1032 | -enable-* | --enable-*) | |
ec6a6fbe | 1033 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1034 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1035 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1036 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 1037 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1038 | ac_useropt_orig=$ac_useropt |
1039 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1040 | case $ac_user_opts in | |
1041 | *" | |
1042 | "enable_$ac_useropt" | |
1043 | "*) ;; | |
1044 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1045 | ac_unrecognized_sep=', ';; | |
1046 | esac | |
1047 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1048 | |
1049 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1050 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1051 | | --exec | --exe | --ex) | |
1052 | ac_prev=exec_prefix ;; | |
1053 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1054 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1055 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1056 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1057 | |
1058 | -gas | --gas | --ga | --g) | |
1059 | # Obsolete; use --with-gas. | |
1060 | with_gas=yes ;; | |
1061 | ||
ad6254c5 AK |
1062 | -help | --help | --hel | --he | -h) |
1063 | ac_init_help=long ;; | |
1064 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1065 | ac_init_help=recursive ;; | |
1066 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1067 | ac_init_help=short ;; | |
795ca3e5 AK |
1068 | |
1069 | -host | --host | --hos | --ho) | |
ad6254c5 | 1070 | ac_prev=host_alias ;; |
795ca3e5 | 1071 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1072 | host_alias=$ac_optarg ;; |
795ca3e5 | 1073 | |
7a197a62 AK |
1074 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1075 | ac_prev=htmldir ;; | |
1076 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1077 | | --ht=*) | |
1078 | htmldir=$ac_optarg ;; | |
1079 | ||
795ca3e5 AK |
1080 | -includedir | --includedir | --includedi | --included | --include \ |
1081 | | --includ | --inclu | --incl | --inc) | |
1082 | ac_prev=includedir ;; | |
1083 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1084 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1085 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1086 | |
1087 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1088 | ac_prev=infodir ;; | |
1089 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1090 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1091 | |
1092 | -libdir | --libdir | --libdi | --libd) | |
1093 | ac_prev=libdir ;; | |
1094 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1095 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1096 | |
1097 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1098 | | --libexe | --libex | --libe) | |
1099 | ac_prev=libexecdir ;; | |
1100 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1101 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1102 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1103 | |
7a197a62 AK |
1104 | -localedir | --localedir | --localedi | --localed | --locale) |
1105 | ac_prev=localedir ;; | |
1106 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1107 | localedir=$ac_optarg ;; | |
1108 | ||
795ca3e5 | 1109 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1110 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1111 | ac_prev=localstatedir ;; |
1112 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1113 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1114 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1115 | |
1116 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1117 | ac_prev=mandir ;; | |
1118 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1119 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1120 | |
1121 | -nfp | --nfp | --nf) | |
1122 | # Obsolete; use --without-fp. | |
1123 | with_fp=no ;; | |
1124 | ||
1125 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1126 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1127 | no_create=yes ;; |
1128 | ||
1129 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1130 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1131 | no_recursion=yes ;; | |
1132 | ||
1133 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1134 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1135 | | --oldin | --oldi | --old | --ol | --o) | |
1136 | ac_prev=oldincludedir ;; | |
1137 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1138 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1139 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1140 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1141 | |
1142 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1143 | ac_prev=prefix ;; | |
1144 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1145 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1146 | |
1147 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1148 | | --program-pre | --program-pr | --program-p) | |
1149 | ac_prev=program_prefix ;; | |
1150 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1151 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1152 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1153 | |
1154 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1155 | | --program-suf | --program-su | --program-s) | |
1156 | ac_prev=program_suffix ;; | |
1157 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1158 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1159 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1160 | |
1161 | -program-transform-name | --program-transform-name \ | |
1162 | | --program-transform-nam | --program-transform-na \ | |
1163 | | --program-transform-n | --program-transform- \ | |
1164 | | --program-transform | --program-transfor \ | |
1165 | | --program-transfo | --program-transf \ | |
1166 | | --program-trans | --program-tran \ | |
1167 | | --progr-tra | --program-tr | --program-t) | |
1168 | ac_prev=program_transform_name ;; | |
1169 | -program-transform-name=* | --program-transform-name=* \ | |
1170 | | --program-transform-nam=* | --program-transform-na=* \ | |
1171 | | --program-transform-n=* | --program-transform-=* \ | |
1172 | | --program-transform=* | --program-transfor=* \ | |
1173 | | --program-transfo=* | --program-transf=* \ | |
1174 | | --program-trans=* | --program-tran=* \ | |
1175 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1176 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1177 | |
7a197a62 AK |
1178 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1179 | ac_prev=pdfdir ;; | |
1180 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1181 | pdfdir=$ac_optarg ;; | |
1182 | ||
1183 | -psdir | --psdir | --psdi | --psd | --ps) | |
1184 | ac_prev=psdir ;; | |
1185 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1186 | psdir=$ac_optarg ;; | |
1187 | ||
795ca3e5 AK |
1188 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1189 | | -silent | --silent | --silen | --sile | --sil) | |
1190 | silent=yes ;; | |
1191 | ||
1192 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1193 | ac_prev=sbindir ;; | |
1194 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1195 | | --sbi=* | --sb=*) | |
ad6254c5 | 1196 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1197 | |
1198 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1199 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1200 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1201 | | --sha | --sh) | |
1202 | ac_prev=sharedstatedir ;; | |
1203 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1204 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1205 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1206 | | --sha=* | --sh=*) | |
ad6254c5 | 1207 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1208 | |
1209 | -site | --site | --sit) | |
1210 | ac_prev=site ;; | |
1211 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1212 | site=$ac_optarg ;; |
795ca3e5 AK |
1213 | |
1214 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1215 | ac_prev=srcdir ;; | |
1216 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1217 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1218 | |
1219 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1220 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1221 | ac_prev=sysconfdir ;; | |
1222 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1223 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1224 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1225 | |
1226 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1227 | ac_prev=target_alias ;; |
795ca3e5 | 1228 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1229 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1230 | |
1231 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1232 | verbose=yes ;; | |
1233 | ||
ad6254c5 AK |
1234 | -version | --version | --versio | --versi | --vers | -V) |
1235 | ac_init_version=: ;; | |
795ca3e5 AK |
1236 | |
1237 | -with-* | --with-*) | |
ec6a6fbe | 1238 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1239 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1240 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1241 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1242 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1243 | ac_useropt_orig=$ac_useropt |
1244 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1245 | case $ac_user_opts in | |
1246 | *" | |
1247 | "with_$ac_useropt" | |
1248 | "*) ;; | |
1249 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1250 | ac_unrecognized_sep=', ';; | |
1251 | esac | |
1252 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1253 | |
1254 | -without-* | --without-*) | |
ec6a6fbe | 1255 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1256 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1257 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1258 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1259 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1260 | ac_useropt_orig=$ac_useropt |
1261 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1262 | case $ac_user_opts in | |
1263 | *" | |
1264 | "with_$ac_useropt" | |
1265 | "*) ;; | |
1266 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1267 | ac_unrecognized_sep=', ';; | |
1268 | esac | |
1269 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1270 | |
1271 | --x) | |
1272 | # Obsolete; use --with-x. | |
1273 | with_x=yes ;; | |
1274 | ||
1275 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1276 | | --x-incl | --x-inc | --x-in | --x-i) | |
1277 | ac_prev=x_includes ;; | |
1278 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1279 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1280 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1281 | |
1282 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1283 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1284 | ac_prev=x_libraries ;; | |
1285 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1286 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1287 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1288 | |
ec6a6fbe | 1289 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1290 | Try \`$0 --help' for more information." >&2 |
1291 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1292 | ;; |
1293 | ||
ad6254c5 AK |
1294 | *=*) |
1295 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1296 | # Reject names that are not valid shell variable names. | |
1297 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
ec6a6fbe | 1298 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1299 | { (exit 1); exit 1; }; } |
7a197a62 | 1300 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1301 | export $ac_envvar ;; |
1302 | ||
795ca3e5 | 1303 | *) |
ad6254c5 | 1304 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1305 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1306 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1307 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1308 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1309 | ;; |
1310 | ||
1311 | esac | |
1312 | done | |
1313 | ||
1314 | if test -n "$ac_prev"; then | |
ad6254c5 | 1315 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
ec6a6fbe | 1316 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1317 | { (exit 1); exit 1; }; } |
795ca3e5 | 1318 | fi |
795ca3e5 | 1319 | |
ec6a6fbe AK |
1320 | if test -n "$ac_unrecognized_opts"; then |
1321 | case $enable_option_checking in | |
1322 | no) ;; | |
1323 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1324 | { (exit 1); exit 1; }; } ;; | |
1325 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1326 | esac | |
1327 | fi | |
1328 | ||
1329 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1330 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1331 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1332 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1333 | libdir localedir mandir | |
795ca3e5 | 1334 | do |
7a197a62 | 1335 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1336 | # Remove trailing slashes. |
1337 | case $ac_val in | |
1338 | */ ) | |
1339 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1340 | eval $ac_var=\$ac_val;; | |
1341 | esac | |
1342 | # Be sure to have absolute directory names. | |
ad6254c5 | 1343 | case $ac_val in |
7a197a62 AK |
1344 | [\\/$]* | ?:[\\/]* ) continue;; |
1345 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1346 | esac |
ec6a6fbe | 1347 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1348 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1349 | done |
1350 | ||
ad6254c5 AK |
1351 | # There might be people who depend on the old broken behavior: `$host' |
1352 | # used to hold the argument of --host etc. | |
1353 | # FIXME: To remove some day. | |
1354 | build=$build_alias | |
1355 | host=$host_alias | |
1356 | target=$target_alias | |
1357 | ||
1358 | # FIXME: To remove some day. | |
1359 | if test "x$host_alias" != x; then | |
1360 | if test "x$build_alias" = x; then | |
1361 | cross_compiling=maybe | |
ec6a6fbe | 1362 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1363 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1364 | elif test "x$build_alias" != "x$host_alias"; then | |
1365 | cross_compiling=yes | |
1366 | fi | |
1367 | fi | |
8106cdd5 | 1368 | |
ad6254c5 AK |
1369 | ac_tool_prefix= |
1370 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1371 | ||
1372 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1373 | |
795ca3e5 | 1374 | |
7a197a62 AK |
1375 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1376 | ac_ls_di=`ls -di .` && | |
1377 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
ec6a6fbe | 1378 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
7a197a62 AK |
1379 | { (exit 1); exit 1; }; } |
1380 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
ec6a6fbe | 1381 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1382 | { (exit 1); exit 1; }; } |
1383 | ||
1384 | ||
795ca3e5 AK |
1385 | # Find the source files, if location was not specified. |
1386 | if test -z "$srcdir"; then | |
1387 | ac_srcdir_defaulted=yes | |
7a197a62 | 1388 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1389 | ac_confdir=`$as_dirname -- "$as_myself" || |
1390 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1391 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1392 | X"$as_myself" : 'X\(//\)$' \| \ | |
1393 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1394 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1395 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1396 | s//\1/ | |
1397 | q | |
1398 | } | |
1399 | /^X\(\/\/\)[^/].*/{ | |
1400 | s//\1/ | |
1401 | q | |
1402 | } | |
1403 | /^X\(\/\/\)$/{ | |
1404 | s//\1/ | |
1405 | q | |
1406 | } | |
1407 | /^X\(\/\).*/{ | |
1408 | s//\1/ | |
1409 | q | |
1410 | } | |
1411 | s/.*/./; q'` | |
795ca3e5 | 1412 | srcdir=$ac_confdir |
7a197a62 | 1413 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1414 | srcdir=.. |
1415 | fi | |
1416 | else | |
1417 | ac_srcdir_defaulted=no | |
1418 | fi | |
7a197a62 AK |
1419 | if test ! -r "$srcdir/$ac_unique_file"; then |
1420 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
ec6a6fbe | 1421 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1422 | { (exit 1); exit 1; }; } |
795ca3e5 | 1423 | fi |
7a197a62 AK |
1424 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1425 | ac_abs_confdir=`( | |
ec6a6fbe | 1426 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1427 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1428 | pwd)` |
1429 | # When building in place, set srcdir=. | |
1430 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1431 | srcdir=. | |
1432 | fi | |
1433 | # Remove unnecessary trailing slashes from srcdir. | |
1434 | # Double slashes in file names in object file debugging info | |
1435 | # mess up M-x gdb in Emacs. | |
1436 | case $srcdir in | |
1437 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1438 | esac | |
1439 | for ac_var in $ac_precious_vars; do | |
1440 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1441 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1442 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1443 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1444 | done | |
ad6254c5 AK |
1445 | |
1446 | # | |
1447 | # Report the --help message. | |
1448 | # | |
1449 | if test "$ac_init_help" = "long"; then | |
1450 | # Omit some internal or obsolete options to make the list less imposing. | |
1451 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1452 | cat <<_ACEOF | |
1453 | \`configure' configures this package to adapt to many kinds of systems. | |
1454 | ||
1455 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1456 | ||
1457 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1458 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1459 | ||
1460 | Defaults for the options are specified in brackets. | |
1461 | ||
1462 | Configuration: | |
1463 | -h, --help display this help and exit | |
1464 | --help=short display options specific to this package | |
1465 | --help=recursive display the short help of all the included packages | |
1466 | -V, --version display version information and exit | |
1467 | -q, --quiet, --silent do not print \`checking...' messages | |
1468 | --cache-file=FILE cache test results in FILE [disabled] | |
1469 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1470 | -n, --no-create do not create output files | |
1471 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1472 | ||
ad6254c5 AK |
1473 | Installation directories: |
1474 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1475 | [$ac_default_prefix] |
ad6254c5 | 1476 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1477 | [PREFIX] |
ad6254c5 AK |
1478 | |
1479 | By default, \`make install' will install all the files in | |
1480 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1481 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1482 | for instance \`--prefix=\$HOME'. | |
1483 | ||
1484 | For better control, use the options below. | |
1485 | ||
1486 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1487 | --bindir=DIR user executables [EPREFIX/bin] |
1488 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1489 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1490 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1491 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1492 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1493 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1494 | --includedir=DIR C header files [PREFIX/include] | |
1495 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1496 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1497 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1498 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1499 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1500 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1501 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1502 | --htmldir=DIR html documentation [DOCDIR] | |
1503 | --dvidir=DIR dvi documentation [DOCDIR] | |
1504 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1505 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1506 | _ACEOF |
1507 | ||
1508 | cat <<\_ACEOF | |
1509 | ||
1510 | System types: | |
1511 | --build=BUILD configure for building on BUILD [guessed] | |
1512 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1513 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1514 | _ACEOF | |
1515 | fi | |
1516 | ||
1517 | if test -n "$ac_init_help"; then | |
1518 | ||
1519 | cat <<\_ACEOF | |
1520 | ||
1521 | Optional Features: | |
ec6a6fbe | 1522 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1523 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1524 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
71082be4 ZK |
1525 | --enable-static_link use this to link the tools to their libraries |
1526 | statically (default is dynamic linking | |
1527 | --enable-lvm1_fallback use this to fall back and use LVM1 binaries if | |
ad6254c5 | 1528 | device-mapper is missing from the kernel |
71082be4 ZK |
1529 | --disable-readline disable readline support |
1530 | --enable-realtime enable realtime clock support | |
1531 | --enable-cmirrord enable the cluster mirror log daemon | |
1532 | --enable-debug enable debugging | |
1533 | --enable-profiling gather gcov profiling data | |
1534 | --disable-devmapper disable LVM2 device-mapper interaction | |
1535 | --enable-udev_sync enable synchronisation with udev processing | |
1536 | --enable-udev_rules install rule files needed for udev synchronisation | |
1537 | --enable-compat enable support for old device-mapper versions | |
1538 | --enable-units-compat enable output compatibility with old versions that | |
1539 | that do not use KiB-style unit suffixes | |
1540 | --disable-driver disable calls to device-mapper in the kernel | |
1541 | --disable-o_direct disable O_DIRECT | |
1542 | --enable-applib build application library | |
1543 | --enable-cmdlib build shared command library | |
1544 | --enable-pkgconfig install pkgconfig support | |
1545 | --enable-write_install install user writable files | |
1546 | --disable-fsadm disable fsadm | |
1547 | --enable-dmeventd enable the device-mapper event daemon | |
1548 | --disable-selinux disable selinux support | |
1549 | --enable-nls enable Native Language Support | |
ad6254c5 AK |
1550 | |
1551 | Optional Packages: | |
1552 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1553 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
71082be4 ZK |
1554 | --with-user=USER set the owner of installed files [USER=] |
1555 | --with-group=GROUP set the group owner of installed files [GROUP=] | |
1556 | --with-device-uid=UID set the owner used for new device nodes [UID=0] | |
1557 | --with-device-gid=GID set the group used for new device nodes [GID=0] | |
1558 | --with-device-mode=MODE set the mode used for new device nodes [MODE=0600] | |
ad6254c5 | 1559 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
71082be4 | 1560 | [TYPE=internal] |
ad6254c5 | 1561 | --with-pool=TYPE GFS pool read-only support: internal/shared/none |
71082be4 ZK |
1562 | [TYPE=internal] |
1563 | --with-cluster=TYPE cluster LVM locking support: internal/shared/none | |
1564 | [TYPE=internal] | |
1565 | --with-snapshots=TYPE snapshot support: internal/shared/none | |
1566 | [TYPE=internal] | |
1567 | --with-mirrors=TYPE mirror support: internal/shared/none | |
1568 | [TYPE=internal] | |
1569 | --with-replicators=TYPE replicator support: internal/shared/none | |
1570 | [TYPE=none] | |
1571 | --with-clvmd=TYPE build cluster LVM Daemon | |
8c222979 | 1572 | The following cluster manager combinations are valid: |
a946372e AK |
1573 | * cman,gulm (RHEL4 or equivalent) |
1574 | * cman (RHEL5 or equivalent) | |
1575 | * cman,corosync,openais (or selection of them) | |
1091650a | 1576 | * singlenode (localhost only) |
a946372e AK |
1577 | * all (autodetect) |
1578 | * none (disable build) | |
71082be4 | 1579 | [TYPE=none] |
8c4e8a18 FDN |
1580 | --with-clvmd-pidfile=PATH |
1581 | clvmd pidfile [/var/run/clvmd.pid] | |
71082be4 ZK |
1582 | --with-cmirrord-pidfile=PATH |
1583 | cmirrord pidfile [/var/run/cmirrord.pid] | |
d0191583 | 1584 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
71082be4 ZK |
1585 | --with-localedir=DIR translation files in DIR [PREFIX/share/locale] |
1586 | --with-confdir=DIR configuration files in DIR [/etc] | |
1587 | --with-staticdir=DIR static binaries in DIR [EPREFIX/sbin] | |
1588 | --with-usrlibdir=DIR usrlib in DIR [PREFIX/lib] | |
1589 | --with-usrsbindir=DIR usrsbin executables in DIR [PREFIX/sbin] | |
1590 | --with-udev-prefix=UPREFIX | |
1591 | install udev rule files in UPREFIX [EPREFIX] | |
78ce7acc | 1592 | --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d] |
71082be4 ZK |
1593 | --with-dmeventd-pidfile=PATH |
1594 | dmeventd pidfile [/var/run/dmeventd.pid] | |
1595 | --with-dmeventd-path=PATH | |
1596 | dmeventd path [EPREFIX/sbin/dmeventd] | |
1597 | --with-default-system-dir=DIR | |
1598 | default LVM system directory [/etc/lvm] | |
1599 | --with-default-archive-subdir=SUBDIR | |
1600 | default metadata archive subdir [archive] | |
1601 | --with-default-backup-subdir=SUBDIR | |
1602 | default metadata backup subdir [backup] | |
1603 | --with-default-cache-subdir=SUBDIR | |
1604 | default metadata cache subdir [cache] | |
1605 | --with-default-locking-dir=DIR | |
1606 | default locking directory [/var/lock/lvm] | |
1607 | --with-interface=IFACE choose kernel interface (ioctl) [ioctl] | |
ad6254c5 AK |
1608 | |
1609 | Some influential environment variables: | |
1610 | CC C compiler command | |
1611 | CFLAGS C compiler flags | |
1612 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1613 | nonstandard directory <lib dir> | |
25fbec5b | 1614 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1615 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1616 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 | 1617 | CPP C preprocessor |
e2997b73 | 1618 | PKG_CONFIG path to pkg-config utility |
a946372e AK |
1619 | PKGCONFIGINIT_CFLAGS |
1620 | C compiler flags for PKGCONFIGINIT, overriding pkg-config | |
1621 | PKGCONFIGINIT_LIBS | |
1622 | linker flags for PKGCONFIGINIT, overriding pkg-config | |
1623 | CCS_CFLAGS C compiler flags for CCS, overriding pkg-config | |
1624 | CCS_LIBS linker flags for CCS, overriding pkg-config | |
1625 | GULM_CFLAGS C compiler flags for GULM, overriding pkg-config | |
1626 | GULM_LIBS linker flags for GULM, overriding pkg-config | |
1627 | CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config | |
1628 | CMAN_LIBS linker flags for CMAN, overriding pkg-config | |
1629 | COROSYNC_CFLAGS | |
1630 | C compiler flags for COROSYNC, overriding pkg-config | |
1631 | COROSYNC_LIBS | |
1632 | linker flags for COROSYNC, overriding pkg-config | |
e2997b73 AK |
1633 | QUORUM_CFLAGS |
1634 | C compiler flags for QUORUM, overriding pkg-config | |
1635 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
a946372e AK |
1636 | SALCK_CFLAGS |
1637 | C compiler flags for SALCK, overriding pkg-config | |
1638 | SALCK_LIBS linker flags for SALCK, overriding pkg-config | |
e2997b73 AK |
1639 | CONFDB_CFLAGS |
1640 | C compiler flags for CONFDB, overriding pkg-config | |
1641 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
1642 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1643 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
a946372e AK |
1644 | DLM_CFLAGS C compiler flags for DLM, overriding pkg-config |
1645 | DLM_LIBS linker flags for DLM, overriding pkg-config | |
90c80887 AK |
1646 | SACKPT_CFLAGS |
1647 | C compiler flags for SACKPT, overriding pkg-config | |
1648 | SACKPT_LIBS linker flags for SACKPT, overriding pkg-config | |
ad6254c5 AK |
1649 | |
1650 | Use these variables to override the choices made by `configure' or to help | |
1651 | it to find libraries and programs with nonstandard names/locations. | |
1652 | ||
1653 | _ACEOF | |
7a197a62 | 1654 | ac_status=$? |
ad6254c5 AK |
1655 | fi |
1656 | ||
1657 | if test "$ac_init_help" = "recursive"; then | |
1658 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1659 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1660 | test -d "$ac_dir" || |
1661 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1662 | continue | |
ad6254c5 AK |
1663 | ac_builddir=. |
1664 | ||
7a197a62 AK |
1665 | case "$ac_dir" in |
1666 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1667 | *) | |
ec6a6fbe | 1668 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1669 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1670 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1671 | case $ac_top_builddir_sub in |
1672 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1673 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1674 | esac ;; | |
1675 | esac | |
1676 | ac_abs_top_builddir=$ac_pwd | |
1677 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1678 | # for backward compatibility: | |
1679 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1680 | |
1681 | case $srcdir in | |
7a197a62 | 1682 | .) # We are building in place. |
ad6254c5 | 1683 | ac_srcdir=. |
7a197a62 AK |
1684 | ac_top_srcdir=$ac_top_builddir_sub |
1685 | ac_abs_top_srcdir=$ac_pwd ;; | |
1686 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1687 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1688 | ac_top_srcdir=$srcdir |
1689 | ac_abs_top_srcdir=$srcdir ;; | |
1690 | *) # Relative name. | |
1691 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1692 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1693 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1694 | esac |
7a197a62 AK |
1695 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1696 | ||
1697 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1698 | # Check for guested configure. | |
1699 | if test -f "$ac_srcdir/configure.gnu"; then | |
1700 | echo && | |
1701 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1702 | elif test -f "$ac_srcdir/configure"; then | |
1703 | echo && | |
1704 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1705 | else |
ec6a6fbe | 1706 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1707 | fi || ac_status=$? |
1708 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1709 | done |
1710 | fi | |
1711 | ||
7a197a62 | 1712 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1713 | if $ac_init_version; then |
1714 | cat <<\_ACEOF | |
7a197a62 | 1715 | configure |
ec6a6fbe | 1716 | generated by GNU Autoconf 2.63 |
ad6254c5 | 1717 | |
7a197a62 | 1718 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 1719 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
1720 | This configure script is free software; the Free Software Foundation |
1721 | gives unlimited permission to copy, distribute and modify it. | |
1722 | _ACEOF | |
7a197a62 | 1723 | exit |
ad6254c5 | 1724 | fi |
7a197a62 | 1725 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1726 | This file contains any messages produced by compilers while |
1727 | running configure, to aid debugging if configure makes a mistake. | |
1728 | ||
1729 | It was created by $as_me, which was | |
ec6a6fbe | 1730 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
1731 | |
1732 | $ $0 $@ | |
1733 | ||
1734 | _ACEOF | |
7a197a62 | 1735 | exec 5>>config.log |
ad6254c5 AK |
1736 | { |
1737 | cat <<_ASUNAME | |
1738 | ## --------- ## | |
1739 | ## Platform. ## | |
1740 | ## --------- ## | |
1741 | ||
1742 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1743 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1744 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1745 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1746 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1747 | ||
1748 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1749 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1750 | ||
1751 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1752 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1753 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1754 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1755 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1756 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1757 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1758 | ||
1759 | _ASUNAME | |
1760 | ||
1761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1762 | for as_dir in $PATH | |
1763 | do | |
1764 | IFS=$as_save_IFS | |
1765 | test -z "$as_dir" && as_dir=. | |
ec6a6fbe | 1766 | $as_echo "PATH: $as_dir" |
ad6254c5 | 1767 | done |
7a197a62 | 1768 | IFS=$as_save_IFS |
ad6254c5 AK |
1769 | |
1770 | } >&5 | |
1771 | ||
1772 | cat >&5 <<_ACEOF | |
1773 | ||
1774 | ||
1775 | ## ----------- ## | |
1776 | ## Core tests. ## | |
1777 | ## ----------- ## | |
1778 | ||
1779 | _ACEOF | |
1780 | ||
1781 | ||
1782 | # Keep a trace of the command line. | |
1783 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1784 | # Strip out --silent because we don't want to record it for future runs. | |
1785 | # Also quote any args containing shell meta-characters. | |
1786 | # Make two passes to allow for proper duplicate-argument suppression. | |
1787 | ac_configure_args= | |
1788 | ac_configure_args0= | |
1789 | ac_configure_args1= | |
ad6254c5 AK |
1790 | ac_must_keep_next=false |
1791 | for ac_pass in 1 2 | |
1792 | do | |
1793 | for ac_arg | |
1794 | do | |
1795 | case $ac_arg in | |
1796 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1797 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1798 | | -silent | --silent | --silen | --sile | --sil) | |
1799 | continue ;; | |
7a197a62 | 1800 | *\'*) |
ec6a6fbe | 1801 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1802 | esac |
1803 | case $ac_pass in | |
1804 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1805 | 2) | |
1806 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1807 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1808 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1809 | else |
8a2fc586 AK |
1810 | case $ac_arg in |
1811 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1812 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1813 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1814 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1815 | case "$ac_configure_args0 " in | |
1816 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1817 | esac | |
1818 | ;; | |
1819 | -* ) ac_must_keep_next=true ;; | |
1820 | esac | |
ad6254c5 | 1821 | fi |
7a197a62 | 1822 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1823 | ;; |
1824 | esac | |
1825 | done | |
1826 | done | |
1827 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1828 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1829 | ||
1830 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1831 | # config.log. We remove comments because anyway the quotes in there | |
1832 | # would cause problems or look ugly. | |
7a197a62 AK |
1833 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1834 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1835 | trap 'exit_status=$? |
1836 | # Save into config.log some information that might help in debugging. | |
1837 | { | |
1838 | echo | |
1839 | ||
1840 | cat <<\_ASBOX | |
1841 | ## ---------------- ## | |
1842 | ## Cache variables. ## | |
1843 | ## ---------------- ## | |
1844 | _ASBOX | |
1845 | echo | |
1846 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1847 | ( |
1848 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1849 | eval ac_val=\$$ac_var | |
1850 | case $ac_val in #( | |
1851 | *${as_nl}*) | |
1852 | case $ac_var in #( | |
ec6a6fbe AK |
1853 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1854 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
1855 | esac |
1856 | case $ac_var in #( | |
1857 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 1858 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
1859 | *) $as_unset $ac_var ;; |
1860 | esac ;; | |
1861 | esac | |
1862 | done | |
ad6254c5 | 1863 | (set) 2>&1 | |
7a197a62 AK |
1864 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1865 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1866 | sed -n \ |
7a197a62 AK |
1867 | "s/'\''/'\''\\\\'\'''\''/g; |
1868 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1869 | ;; #( | |
ad6254c5 | 1870 | *) |
7a197a62 | 1871 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1872 | ;; |
7a197a62 AK |
1873 | esac | |
1874 | sort | |
1875 | ) | |
ad6254c5 AK |
1876 | echo |
1877 | ||
1878 | cat <<\_ASBOX | |
1879 | ## ----------------- ## | |
1880 | ## Output variables. ## | |
1881 | ## ----------------- ## | |
1882 | _ASBOX | |
1883 | echo | |
1884 | for ac_var in $ac_subst_vars | |
1885 | do | |
7a197a62 AK |
1886 | eval ac_val=\$$ac_var |
1887 | case $ac_val in | |
ec6a6fbe | 1888 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1889 | esac |
ec6a6fbe | 1890 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1891 | done | sort |
1892 | echo | |
1893 | ||
1894 | if test -n "$ac_subst_files"; then | |
1895 | cat <<\_ASBOX | |
7a197a62 AK |
1896 | ## ------------------- ## |
1897 | ## File substitutions. ## | |
1898 | ## ------------------- ## | |
ad6254c5 AK |
1899 | _ASBOX |
1900 | echo | |
1901 | for ac_var in $ac_subst_files | |
1902 | do | |
7a197a62 AK |
1903 | eval ac_val=\$$ac_var |
1904 | case $ac_val in | |
ec6a6fbe | 1905 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1906 | esac |
ec6a6fbe | 1907 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1908 | done | sort |
1909 | echo | |
1910 | fi | |
1911 | ||
1912 | if test -s confdefs.h; then | |
1913 | cat <<\_ASBOX | |
1914 | ## ----------- ## | |
1915 | ## confdefs.h. ## | |
1916 | ## ----------- ## | |
1917 | _ASBOX | |
1918 | echo | |
7a197a62 | 1919 | cat confdefs.h |
ad6254c5 AK |
1920 | echo |
1921 | fi | |
1922 | test "$ac_signal" != 0 && | |
ec6a6fbe AK |
1923 | $as_echo "$as_me: caught signal $ac_signal" |
1924 | $as_echo "$as_me: exit $exit_status" | |
ad6254c5 | 1925 | } >&5 |
7a197a62 AK |
1926 | rm -f core *.core core.conftest.* && |
1927 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1928 | exit $exit_status |
7a197a62 | 1929 | ' 0 |
ad6254c5 AK |
1930 | for ac_signal in 1 2 13 15; do |
1931 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1932 | done | |
1933 | ac_signal=0 | |
1934 | ||
1935 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1936 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1937 | |
1938 | # Predefined preprocessor variables. | |
1939 | ||
1940 | cat >>confdefs.h <<_ACEOF | |
1941 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1942 | _ACEOF | |
1943 | ||
1944 | ||
1945 | cat >>confdefs.h <<_ACEOF | |
1946 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1947 | _ACEOF | |
1948 | ||
1949 | ||
1950 | cat >>confdefs.h <<_ACEOF | |
1951 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1952 | _ACEOF | |
8106cdd5 | 1953 | |
ad6254c5 AK |
1954 | |
1955 | cat >>confdefs.h <<_ACEOF | |
1956 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1957 | _ACEOF | |
1958 | ||
1959 | ||
1960 | cat >>confdefs.h <<_ACEOF | |
1961 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1962 | _ACEOF | |
1963 | ||
1964 | ||
1965 | # Let the site file select an alternate cache file if it wants to. | |
ec6a6fbe AK |
1966 | # Prefer an explicitly selected file to automatically selected ones. |
1967 | ac_site_file1=NONE | |
1968 | ac_site_file2=NONE | |
7a197a62 | 1969 | if test -n "$CONFIG_SITE"; then |
ec6a6fbe | 1970 | ac_site_file1=$CONFIG_SITE |
7a197a62 | 1971 | elif test "x$prefix" != xNONE; then |
ec6a6fbe AK |
1972 | ac_site_file1=$prefix/share/config.site |
1973 | ac_site_file2=$prefix/etc/config.site | |
7a197a62 | 1974 | else |
ec6a6fbe AK |
1975 | ac_site_file1=$ac_default_prefix/share/config.site |
1976 | ac_site_file2=$ac_default_prefix/etc/config.site | |
795ca3e5 | 1977 | fi |
ec6a6fbe | 1978 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7a197a62 | 1979 | do |
ec6a6fbe | 1980 | test "x$ac_site_file" = xNONE && continue |
795ca3e5 | 1981 | if test -r "$ac_site_file"; then |
ec6a6fbe AK |
1982 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1983 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1984 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1985 | . "$ac_site_file" |
1986 | fi | |
1987 | done | |
1988 | ||
1989 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1990 | # Some versions of bash will fail to source /dev/null (special |
1991 | # files actually), so we avoid doing that. | |
1992 | if test -f "$cache_file"; then | |
ec6a6fbe AK |
1993 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1994 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 1995 | case $cache_file in |
7a197a62 AK |
1996 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1997 | *) . "./$cache_file";; | |
ad6254c5 AK |
1998 | esac |
1999 | fi | |
795ca3e5 | 2000 | else |
ec6a6fbe AK |
2001 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
2002 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
2003 | >$cache_file |
2004 | fi | |
2005 | ||
2006 | # Check that the precious variables saved in the cache have kept the same | |
2007 | # value. | |
2008 | ac_cache_corrupted=false | |
7a197a62 | 2009 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
2010 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2011 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
2012 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2013 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
2014 | case $ac_old_set,$ac_new_set in |
2015 | set,) | |
ec6a6fbe AK |
2016 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2017 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
2018 | ac_cache_corrupted=: ;; |
2019 | ,set) | |
ec6a6fbe AK |
2020 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
2021 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
2022 | ac_cache_corrupted=: ;; |
2023 | ,);; | |
2024 | *) | |
2025 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ec6a6fbe AK |
2026 | # differences in whitespace do not lead to failure. |
2027 | ac_old_val_w=`echo x $ac_old_val` | |
2028 | ac_new_val_w=`echo x $ac_new_val` | |
2029 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2030 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
2031 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2032 | ac_cache_corrupted=: | |
2033 | else | |
2034 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2035 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2036 | eval $ac_var=\$ac_old_val | |
2037 | fi | |
2038 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
2039 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2040 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
2041 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
ad6254c5 AK |
2042 | fi;; |
2043 | esac | |
2044 | # Pass precious variables to config.status. | |
2045 | if test "$ac_new_set" = set; then | |
2046 | case $ac_new_val in | |
ec6a6fbe | 2047 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
2048 | *) ac_arg=$ac_var=$ac_new_val ;; |
2049 | esac | |
2050 | case " $ac_configure_args " in | |
2051 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2052 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
2053 | esac | |
2054 | fi | |
2055 | done | |
2056 | if $ac_cache_corrupted; then | |
ec6a6fbe AK |
2057 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2058 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2059 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2060 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2061 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2062 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 2063 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
2064 | fi |
2065 | ||
ad6254c5 AK |
2066 | |
2067 | ||
2068 | ||
2069 | ||
2070 | ||
2071 | ||
2072 | ||
2073 | ||
2074 | ||
2075 | ||
2076 | ||
2077 | ||
2078 | ||
2079 | ||
2080 | ||
2081 | ||
7a197a62 AK |
2082 | ac_ext=c |
2083 | ac_cpp='$CPP $CPPFLAGS' | |
2084 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2085 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2086 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 2087 | |
795ca3e5 AK |
2088 | |
2089 | ||
7a197a62 | 2090 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
2091 | |
2092 | ||
80992638 | 2093 | ################################################################################ |
795ca3e5 | 2094 | ac_aux_dir= |
7a197a62 AK |
2095 | for ac_dir in autoconf "$srcdir"/autoconf; do |
2096 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
2097 | ac_aux_dir=$ac_dir |
2098 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2099 | break | |
7a197a62 | 2100 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
2101 | ac_aux_dir=$ac_dir |
2102 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2103 | break | |
7a197a62 | 2104 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
2105 | ac_aux_dir=$ac_dir |
2106 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2107 | break | |
795ca3e5 AK |
2108 | fi |
2109 | done | |
2110 | if test -z "$ac_aux_dir"; then | |
ec6a6fbe AK |
2111 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
2112 | $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 2113 | { (exit 1); exit 1; }; } |
795ca3e5 | 2114 | fi |
7a197a62 AK |
2115 | |
2116 | # These three variables are undocumented and unsupported, | |
2117 | # and are intended to be withdrawn in a future Autoconf release. | |
2118 | # They can cause serious problems if a builder's source tree is in a directory | |
2119 | # whose full name contains unusual characters. | |
2120 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2121 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2122 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2123 | ||
8ce0cbda AK |
2124 | |
2125 | ||
ad6254c5 | 2126 | ################################################################################ |
8ce0cbda | 2127 | # Make sure we can run config.sub. |
7a197a62 | 2128 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
ec6a6fbe AK |
2129 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2130 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
2131 | { (exit 1); exit 1; }; } |
2132 | ||
ec6a6fbe AK |
2133 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2134 | $as_echo_n "checking build system type... " >&6; } | |
ad6254c5 | 2135 | if test "${ac_cv_build+set}" = set; then |
ec6a6fbe | 2136 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2137 | else |
7a197a62 AK |
2138 | ac_build_alias=$build_alias |
2139 | test "x$ac_build_alias" = x && | |
2140 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2141 | test "x$ac_build_alias" = x && | |
ec6a6fbe AK |
2142 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2143 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 2144 | { (exit 1); exit 1; }; } |
7a197a62 | 2145 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
ec6a6fbe AK |
2146 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2147 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
2148 | { (exit 1); exit 1; }; } |
2149 | ||
2150 | fi | |
ec6a6fbe AK |
2151 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2152 | $as_echo "$ac_cv_build" >&6; } | |
7a197a62 AK |
2153 | case $ac_cv_build in |
2154 | *-*-*) ;; | |
ec6a6fbe AK |
2155 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2156 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
2157 | { (exit 1); exit 1; }; };; |
2158 | esac | |
ad6254c5 | 2159 | build=$ac_cv_build |
7a197a62 AK |
2160 | ac_save_IFS=$IFS; IFS='-' |
2161 | set x $ac_cv_build | |
2162 | shift | |
2163 | build_cpu=$1 | |
2164 | build_vendor=$2 | |
2165 | shift; shift | |
2166 | # Remember, the first character of IFS is used to create $*, | |
2167 | # except with old shells: | |
2168 | build_os=$* | |
2169 | IFS=$ac_save_IFS | |
2170 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2171 | |
2172 | ||
ec6a6fbe AK |
2173 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
2174 | $as_echo_n "checking host system type... " >&6; } | |
ad6254c5 | 2175 | if test "${ac_cv_host+set}" = set; then |
ec6a6fbe | 2176 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2177 | else |
7a197a62 AK |
2178 | if test "x$host_alias" = x; then |
2179 | ac_cv_host=$ac_cv_build | |
2180 | else | |
2181 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
ec6a6fbe AK |
2182 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2183 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 2184 | { (exit 1); exit 1; }; } |
7a197a62 | 2185 | fi |
ad6254c5 AK |
2186 | |
2187 | fi | |
ec6a6fbe AK |
2188 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2189 | $as_echo "$ac_cv_host" >&6; } | |
7a197a62 AK |
2190 | case $ac_cv_host in |
2191 | *-*-*) ;; | |
ec6a6fbe AK |
2192 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2193 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
2194 | { (exit 1); exit 1; }; };; |
2195 | esac | |
ad6254c5 | 2196 | host=$ac_cv_host |
7a197a62 AK |
2197 | ac_save_IFS=$IFS; IFS='-' |
2198 | set x $ac_cv_host | |
2199 | shift | |
2200 | host_cpu=$1 | |
2201 | host_vendor=$2 | |
2202 | shift; shift | |
2203 | # Remember, the first character of IFS is used to create $*, | |
2204 | # except with old shells: | |
2205 | host_os=$* | |
2206 | IFS=$ac_save_IFS | |
2207 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2208 | |
2209 | ||
ec6a6fbe AK |
2210 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
2211 | $as_echo_n "checking target system type... " >&6; } | |
ad6254c5 | 2212 | if test "${ac_cv_target+set}" = set; then |
ec6a6fbe | 2213 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2214 | else |
7a197a62 AK |
2215 | if test "x$target_alias" = x; then |
2216 | ac_cv_target=$ac_cv_host | |
2217 | else | |
2218 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
ec6a6fbe AK |
2219 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
2220 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 2221 | { (exit 1); exit 1; }; } |
7a197a62 | 2222 | fi |
8ce0cbda | 2223 | |
ad6254c5 | 2224 | fi |
ec6a6fbe AK |
2225 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2226 | $as_echo "$ac_cv_target" >&6; } | |
7a197a62 AK |
2227 | case $ac_cv_target in |
2228 | *-*-*) ;; | |
ec6a6fbe AK |
2229 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
2230 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
2231 | { (exit 1); exit 1; }; };; |
2232 | esac | |
ad6254c5 | 2233 | target=$ac_cv_target |
7a197a62 AK |
2234 | ac_save_IFS=$IFS; IFS='-' |
2235 | set x $ac_cv_target | |
2236 | shift | |
2237 | target_cpu=$1 | |
2238 | target_vendor=$2 | |
2239 | shift; shift | |
2240 | # Remember, the first character of IFS is used to create $*, | |
2241 | # except with old shells: | |
2242 | target_os=$* | |
2243 | IFS=$ac_save_IFS | |
2244 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 2245 | |
8ce0cbda | 2246 | |
ad6254c5 AK |
2247 | # The aliases save the names the user supplied, while $host etc. |
2248 | # will get canonicalized. | |
2249 | test -n "$target_alias" && | |
8ce0cbda AK |
2250 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2251 | NONENONEs,x,x, && | |
2252 | program_prefix=${target_alias}- | |
2253 | ||
8ce0cbda AK |
2254 | case "$host_os" in |
2255 | linux*) | |
7f54ef36 | 2256 | CFLAGS="$CFLAGS" |
8ce0cbda AK |
2257 | COPTIMISE_FLAG="-O2" |
2258 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2259 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2260 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2261 | LDDEPS="$LDDEPS .export.sym" | |
2262 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 2263 | LIB_SUFFIX=so |
8ce0cbda AK |
2264 | DEVMAPPER=yes |
2265 | ODIRECT=yes | |
d0191583 | 2266 | DM_IOCTLS=yes |
8ce0cbda AK |
2267 | SELINUX=yes |
2268 | CLUSTER=internal | |
93bd259b | 2269 | FSADM=yes |
d0191583 | 2270 | ;; |
8ce0cbda AK |
2271 | darwin*) |
2272 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2273 | COPTIMISE_FLAG="-O2" | |
2274 | CLDFLAGS="$CLDFLAGS" | |
2275 | CLDWHOLEARCHIVE="-all_load" | |
2276 | CLDNOWHOLEARCHIVE= | |
d0191583 | 2277 | LIB_SUFFIX=dylib |
a653923f | 2278 | DEVMAPPER=yes |
8ce0cbda | 2279 | ODIRECT=no |
d0191583 | 2280 | DM_IOCTLS=no |
8ce0cbda AK |
2281 | SELINUX=no |
2282 | CLUSTER=none | |
d0191583 JM |
2283 | FSADM=no |
2284 | ;; | |
8ce0cbda AK |
2285 | esac |
2286 | ||
80992638 | 2287 | ################################################################################ |
ec6a6fbe AK |
2288 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
2289 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5951ef33 | 2290 | if test "${ac_cv_path_SED+set}" = set; then |
ec6a6fbe | 2291 | $as_echo_n "(cached) " >&6 |
5951ef33 AK |
2292 | else |
2293 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2294 | for ac_i in 1 2 3 4 5 6 7; do | |
2295 | ac_script="$ac_script$as_nl$ac_script" | |
2296 | done | |
ec6a6fbe | 2297 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
5951ef33 | 2298 | $as_unset ac_script || ac_script= |
ec6a6fbe | 2299 | if test -z "$SED"; then |
5951ef33 | 2300 | ac_path_SED_found=false |
ec6a6fbe AK |
2301 | # Loop through the user's path and test for each of PROGNAME-LIST |
2302 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5951ef33 AK |
2303 | for as_dir in $PATH |
2304 | do | |
2305 | IFS=$as_save_IFS | |
2306 | test -z "$as_dir" && as_dir=. | |
2307 | for ac_prog in sed gsed; do | |
ec6a6fbe AK |
2308 | for ac_exec_ext in '' $ac_executable_extensions; do |
2309 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2310 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2311 | # Check for GNU ac_path_SED and select it if it is found. | |
5951ef33 AK |
2312 | # Check for GNU $ac_path_SED |
2313 | case `"$ac_path_SED" --version 2>&1` in | |
2314 | *GNU*) | |
2315 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2316 | *) | |
2317 | ac_count=0 | |
ec6a6fbe | 2318 | $as_echo_n 0123456789 >"conftest.in" |
5951ef33 AK |
2319 | while : |
2320 | do | |
2321 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2322 | mv "conftest.tmp" "conftest.in" | |
2323 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 2324 | $as_echo '' >> "conftest.nl" |
5951ef33 AK |
2325 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
2326 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2327 | ac_count=`expr $ac_count + 1` | |
2328 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2329 | # Best one so far, save it but keep looking for a better one | |
2330 | ac_cv_path_SED="$ac_path_SED" | |
2331 | ac_path_SED_max=$ac_count | |
2332 | fi | |
2333 | # 10*(2^10) chars as input seems more than enough | |
2334 | test $ac_count -gt 10 && break | |
2335 | done | |
2336 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2337 | esac | |
2338 | ||
ec6a6fbe AK |
2339 | $ac_path_SED_found && break 3 |
2340 | done | |
5951ef33 AK |
2341 | done |
2342 | done | |
5951ef33 | 2343 | IFS=$as_save_IFS |
ec6a6fbe AK |
2344 | if test -z "$ac_cv_path_SED"; then |
2345 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
2346 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
5951ef33 | 2347 | { (exit 1); exit 1; }; } |
ec6a6fbe | 2348 | fi |
5951ef33 AK |
2349 | else |
2350 | ac_cv_path_SED=$SED | |
2351 | fi | |
2352 | ||
2353 | fi | |
ec6a6fbe AK |
2354 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
2355 | $as_echo "$ac_cv_path_SED" >&6; } | |
5951ef33 AK |
2356 | SED="$ac_cv_path_SED" |
2357 | rm -f conftest.sed | |
2358 | ||
ad6254c5 | 2359 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2360 | do |
ad6254c5 | 2361 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2362 | set dummy $ac_prog; ac_word=$2 |
ec6a6fbe AK |
2363 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2364 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2365 | if test "${ac_cv_prog_AWK+set}" = set; then |
ec6a6fbe | 2366 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2367 | else |
2368 | if test -n "$AWK"; then | |
2369 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2370 | else | |
ad6254c5 AK |
2371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2372 | for as_dir in $PATH | |
2373 | do | |
2374 | IFS=$as_save_IFS | |
2375 | test -z "$as_dir" && as_dir=. | |
2376 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2377 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2378 | ac_cv_prog_AWK="$ac_prog" |
ec6a6fbe | 2379 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2380 | break 2 |
2381 | fi | |
2382 | done | |
2383 | done | |
7a197a62 | 2384 | IFS=$as_save_IFS |
ad6254c5 | 2385 | |
795ca3e5 AK |
2386 | fi |
2387 | fi | |
ad6254c5 | 2388 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2389 | if test -n "$AWK"; then |
ec6a6fbe AK |
2390 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2391 | $as_echo "$AWK" >&6; } | |
795ca3e5 | 2392 | else |
ec6a6fbe AK |
2393 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2394 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2395 | fi |
2396 | ||
7a197a62 | 2397 | |
ad6254c5 AK |
2398 | test -n "$AWK" && break |
2399 | done | |
2400 | ||
2401 | ac_ext=c | |
2402 | ac_cpp='$CPP $CPPFLAGS' | |
2403 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2404 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2405 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2406 | if test -n "$ac_tool_prefix"; then | |
2407 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2408 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
ec6a6fbe AK |
2409 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2410 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2411 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2412 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2413 | else |
2414 | if test -n "$CC"; then | |
2415 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2416 | else | |
2417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2418 | for as_dir in $PATH | |
2419 | do | |
2420 | IFS=$as_save_IFS | |
2421 | test -z "$as_dir" && as_dir=. | |
2422 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2423 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2424 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
ec6a6fbe | 2425 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2426 | break 2 |
2427 | fi | |
2428 | done | |
8106cdd5 | 2429 | done |
7a197a62 | 2430 | IFS=$as_save_IFS |
8106cdd5 | 2431 | |
ad6254c5 AK |
2432 | fi |
2433 | fi | |
2434 | CC=$ac_cv_prog_CC | |
2435 | if test -n "$CC"; then | |
ec6a6fbe AK |
2436 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2437 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2438 | else |
ec6a6fbe AK |
2439 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2440 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2441 | fi |
2442 | ||
7a197a62 | 2443 | |
ad6254c5 AK |
2444 | fi |
2445 | if test -z "$ac_cv_prog_CC"; then | |
2446 | ac_ct_CC=$CC | |
2447 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2448 | set dummy gcc; ac_word=$2 |
ec6a6fbe AK |
2449 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2450 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2451 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2452 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2453 | else |
2454 | if test -n "$ac_ct_CC"; then | |
2455 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2456 | else | |
2457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2458 | for as_dir in $PATH | |
2459 | do | |
2460 | IFS=$as_save_IFS | |
2461 | test -z "$as_dir" && as_dir=. | |
2462 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2463 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2464 | ac_cv_prog_ac_ct_CC="gcc" |
ec6a6fbe | 2465 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2466 | break 2 |
2467 | fi | |
2468 | done | |
2469 | done | |
7a197a62 | 2470 | IFS=$as_save_IFS |
ad6254c5 AK |
2471 | |
2472 | fi | |
2473 | fi | |
2474 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2475 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2476 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2477 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2478 | else |
ec6a6fbe AK |
2479 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2480 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2481 | fi |
2482 | ||
7a197a62 AK |
2483 | if test "x$ac_ct_CC" = x; then |
2484 | CC="" | |
2485 | else | |
2486 | case $cross_compiling:$ac_tool_warned in | |
2487 | yes:) | |
ec6a6fbe AK |
2488 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2489 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2490 | ac_tool_warned=yes ;; |
2491 | esac | |
2492 | CC=$ac_ct_CC | |
2493 | fi | |
ad6254c5 AK |
2494 | else |
2495 | CC="$ac_cv_prog_CC" | |
2496 | fi | |
2497 | ||
2498 | if test -z "$CC"; then | |
7a197a62 AK |
2499 | if test -n "$ac_tool_prefix"; then |
2500 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2501 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
ec6a6fbe AK |
2502 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2503 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2504 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2505 | $as_echo_n "(cached) " >&6 |
8106cdd5 AK |
2506 | else |
2507 | if test -n "$CC"; then | |
2508 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2509 | else | |
ad6254c5 AK |
2510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2511 | for as_dir in $PATH | |
2512 | do | |
2513 | IFS=$as_save_IFS | |
2514 | test -z "$as_dir" && as_dir=. | |
2515 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2516 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2517 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
ec6a6fbe | 2518 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2519 | break 2 |
2520 | fi | |
2521 | done | |
2522 | done | |
7a197a62 | 2523 | IFS=$as_save_IFS |
ad6254c5 | 2524 | |
8106cdd5 AK |
2525 | fi |
2526 | fi | |
ad6254c5 | 2527 | CC=$ac_cv_prog_CC |
8106cdd5 | 2528 | if test -n "$CC"; then |
ec6a6fbe AK |
2529 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2530 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2531 | else |
ec6a6fbe AK |
2532 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2533 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2534 | fi |
2535 | ||
8106cdd5 | 2536 | |
7a197a62 | 2537 | fi |
ad6254c5 | 2538 | fi |
795ca3e5 AK |
2539 | if test -z "$CC"; then |
2540 | # Extract the first word of "cc", so it can be a program name with args. | |
2541 | set dummy cc; ac_word=$2 | |
ec6a6fbe AK |
2542 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2543 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2544 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2545 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2546 | else |
2547 | if test -n "$CC"; then | |
2548 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2549 | else | |
795ca3e5 | 2550 | ac_prog_rejected=no |
ad6254c5 AK |
2551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2552 | for as_dir in $PATH | |
2553 | do | |
2554 | IFS=$as_save_IFS | |
2555 | test -z "$as_dir" && as_dir=. | |
2556 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2557 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2558 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2559 | ac_prog_rejected=yes | |
2560 | continue | |
2561 | fi | |
2562 | ac_cv_prog_CC="cc" | |
ec6a6fbe | 2563 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2564 | break 2 |
2565 | fi | |
2566 | done | |
2567 | done | |
7a197a62 | 2568 | IFS=$as_save_IFS |
ad6254c5 | 2569 | |
795ca3e5 AK |
2570 | if test $ac_prog_rejected = yes; then |
2571 | # We found a bogon in the path, so make sure we never use it. | |
2572 | set dummy $ac_cv_prog_CC | |
2573 | shift | |
ad6254c5 | 2574 | if test $# != 0; then |
795ca3e5 AK |
2575 | # We chose a different compiler from the bogus one. |
2576 | # However, it has the same basename, so the bogon will be chosen | |
2577 | # first if we set CC to just the basename; use the full file name. | |
2578 | shift | |
ad6254c5 | 2579 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2580 | fi |
2581 | fi | |
2582 | fi | |
2583 | fi | |
ad6254c5 | 2584 | CC=$ac_cv_prog_CC |
795ca3e5 | 2585 | if test -n "$CC"; then |
ec6a6fbe AK |
2586 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2587 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2588 | else |
ec6a6fbe AK |
2589 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2590 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2591 | fi |
2592 | ||
7a197a62 | 2593 | |
ad6254c5 AK |
2594 | fi |
2595 | if test -z "$CC"; then | |
2596 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2597 | for ac_prog in cl.exe |
ad6254c5 AK |
2598 | do |
2599 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2600 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2601 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2602 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2603 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2604 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2605 | else |
2606 | if test -n "$CC"; then | |
2607 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2608 | else | |
ad6254c5 AK |
2609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2610 | for as_dir in $PATH | |
2611 | do | |
2612 | IFS=$as_save_IFS | |
2613 | test -z "$as_dir" && as_dir=. | |
2614 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2615 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2616 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
ec6a6fbe | 2617 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2618 | break 2 |
2619 | fi | |
2620 | done | |
2621 | done | |
7a197a62 | 2622 | IFS=$as_save_IFS |
ad6254c5 | 2623 | |
795ca3e5 AK |
2624 | fi |
2625 | fi | |
ad6254c5 | 2626 | CC=$ac_cv_prog_CC |
795ca3e5 | 2627 | if test -n "$CC"; then |
ec6a6fbe AK |
2628 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2629 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2630 | else |
ec6a6fbe AK |
2631 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2632 | $as_echo "no" >&6; } | |
795ca3e5 | 2633 | fi |
ad6254c5 | 2634 | |
7a197a62 | 2635 | |
ad6254c5 AK |
2636 | test -n "$CC" && break |
2637 | done | |
2638 | fi | |
2639 | if test -z "$CC"; then | |
2640 | ac_ct_CC=$CC | |
7a197a62 | 2641 | for ac_prog in cl.exe |
ad6254c5 AK |
2642 | do |
2643 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2644 | set dummy $ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2645 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2646 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2647 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2648 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2649 | else |
2650 | if test -n "$ac_ct_CC"; then | |
2651 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2652 | else | |
2653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2654 | for as_dir in $PATH | |
2655 | do | |
2656 | IFS=$as_save_IFS | |
2657 | test -z "$as_dir" && as_dir=. | |
2658 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2659 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2660 | ac_cv_prog_ac_ct_CC="$ac_prog" |
ec6a6fbe | 2661 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2662 | break 2 |
795ca3e5 | 2663 | fi |
ad6254c5 AK |
2664 | done |
2665 | done | |
7a197a62 | 2666 | IFS=$as_save_IFS |
ad6254c5 AK |
2667 | |
2668 | fi | |
2669 | fi | |
2670 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2671 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2672 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2673 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2674 | else |
ec6a6fbe AK |
2675 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2676 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2677 | fi |
2678 | ||
7a197a62 | 2679 | |
ad6254c5 AK |
2680 | test -n "$ac_ct_CC" && break |
2681 | done | |
795ca3e5 | 2682 | |
7a197a62 AK |
2683 | if test "x$ac_ct_CC" = x; then |
2684 | CC="" | |
2685 | else | |
2686 | case $cross_compiling:$ac_tool_warned in | |
2687 | yes:) | |
ec6a6fbe AK |
2688 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2689 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2690 | ac_tool_warned=yes ;; |
2691 | esac | |
2692 | CC=$ac_ct_CC | |
2693 | fi | |
ad6254c5 AK |
2694 | fi |
2695 | ||
2696 | fi | |
2697 | ||
2698 | ||
ec6a6fbe AK |
2699 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2700 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2701 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
ad6254c5 | 2702 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2703 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2704 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2705 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2706 | |
2707 | # Provide some information about the compiler. | |
ec6a6fbe AK |
2708 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2709 | set X $ac_compile | |
2710 | ac_compiler=$2 | |
7a197a62 AK |
2711 | { (ac_try="$ac_compiler --version >&5" |
2712 | case "(($ac_try" in | |
2713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2714 | *) ac_try_echo=$ac_try;; | |
2715 | esac | |
ec6a6fbe AK |
2716 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2717 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2718 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2719 | ac_status=$? |
ec6a6fbe | 2720 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2721 | (exit $ac_status); } |
7a197a62 AK |
2722 | { (ac_try="$ac_compiler -v >&5" |
2723 | case "(($ac_try" in | |
2724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2725 | *) ac_try_echo=$ac_try;; | |
2726 | esac | |
ec6a6fbe AK |
2727 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2728 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2729 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2730 | ac_status=$? |
ec6a6fbe | 2731 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2732 | (exit $ac_status); } |
7a197a62 AK |
2733 | { (ac_try="$ac_compiler -V >&5" |
2734 | case "(($ac_try" in | |
2735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2736 | *) ac_try_echo=$ac_try;; | |
2737 | esac | |
ec6a6fbe AK |
2738 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2739 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2740 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2741 | ac_status=$? |
ec6a6fbe | 2742 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2743 | (exit $ac_status); } |
2744 | ||
2745 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2746 | /* confdefs.h. */ |
2747 | _ACEOF | |
2748 | cat confdefs.h >>conftest.$ac_ext | |
2749 | cat >>conftest.$ac_ext <<_ACEOF | |
2750 | /* end confdefs.h. */ | |
2751 | ||
2752 | int | |
2753 | main () | |
2754 | { | |
2755 | ||
2756 | ; | |
2757 | return 0; | |
2758 | } | |
2759 | _ACEOF | |
2760 | ac_clean_files_save=$ac_clean_files | |
ec6a6fbe | 2761 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
ad6254c5 AK |
2762 | # Try to create an executable without -o first, disregard a.out. |
2763 | # It will help us diagnose broken compilers, and finding out an intuition | |
2764 | # of exeext. | |
ec6a6fbe AK |
2765 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2766 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2767 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2768 | ||
2769 | # The possible output files: | |
2770 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2771 | ||
7a197a62 AK |
2772 | ac_rmfiles= |
2773 | for ac_file in $ac_files | |
2774 | do | |
2775 | case $ac_file in | |
ec6a6fbe | 2776 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7a197a62 AK |
2777 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2778 | esac | |
2779 | done | |
2780 | rm -f $ac_rmfiles | |
2781 | ||
2782 | if { (ac_try="$ac_link_default" | |
2783 | case "(($ac_try" in | |
2784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2785 | *) ac_try_echo=$ac_try;; | |
2786 | esac | |
ec6a6fbe AK |
2787 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2788 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2789 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2790 | ac_status=$? |
ec6a6fbe | 2791 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2792 | (exit $ac_status); }; then |
7a197a62 AK |
2793 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2794 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2795 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2796 | # so that the user can short-circuit this test for compilers unknown to | |
2797 | # Autoconf. | |
25fbec5b | 2798 | for ac_file in $ac_files '' |
ad6254c5 AK |
2799 | do |
2800 | test -f "$ac_file" || continue | |
2801 | case $ac_file in | |
ec6a6fbe | 2802 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
8a2fc586 | 2803 | ;; |
ad6254c5 | 2804 | [ab].out ) |
8a2fc586 AK |
2805 | # We found the default executable, but exeext='' is most |
2806 | # certainly right. | |
2807 | break;; | |
ad6254c5 | 2808 | *.* ) |
7a197a62 AK |
2809 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2810 | then :; else | |
2811 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2812 | fi | |
2813 | # We set ac_cv_exeext here because the later test for it is not | |
2814 | # safe: cross compilers may not add the suffix if given an `-o' | |
2815 | # argument, so we may need to know it at that point already. | |
2816 | # Even if this section looks crufty: it has the advantage of | |
2817 | # actually working. | |
8a2fc586 | 2818 | break;; |
ad6254c5 | 2819 | * ) |
8a2fc586 | 2820 | break;; |
ad6254c5 AK |
2821 | esac |
2822 | done | |
7a197a62 AK |
2823 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2824 | ||
ad6254c5 | 2825 | else |
25fbec5b AK |
2826 | ac_file='' |
2827 | fi | |
2828 | ||
ec6a6fbe AK |
2829 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2830 | $as_echo "$ac_file" >&6; } | |
25fbec5b | 2831 | if test -z "$ac_file"; then |
ec6a6fbe | 2832 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2833 | sed 's/^/| /' conftest.$ac_ext >&5 |
2834 | ||
ec6a6fbe AK |
2835 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2836 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2837 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
ad6254c5 | 2838 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2839 | $as_echo "$as_me: error: C compiler cannot create executables |
ad6254c5 | 2840 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2841 | { (exit 77); exit 77; }; }; } |
ad6254c5 AK |
2842 | fi |
2843 | ||
2844 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2845 | |
7a197a62 | 2846 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2847 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2848 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2849 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
ad6254c5 AK |
2850 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2851 | # If not cross compiling, check that we can run a simple program. | |
2852 | if test "$cross_compiling" != yes; then | |
2853 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2854 | { (case "(($ac_try" in |
2855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2856 | *) ac_try_echo=$ac_try;; | |
2857 | esac | |
ec6a6fbe AK |
2858 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2859 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2860 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2861 | ac_status=$? |
ec6a6fbe | 2862 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2863 | (exit $ac_status); }; }; then |
2864 | cross_compiling=no | |
795ca3e5 | 2865 | else |
ad6254c5 AK |
2866 | if test "$cross_compiling" = maybe; then |
2867 | cross_compiling=yes | |
2868 | else | |
ec6a6fbe AK |
2869 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2870 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2871 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
ad6254c5 AK |
2872 | If you meant to cross compile, use \`--host'. |
2873 | See \`config.log' for more details." >&5 | |
ec6a6fbe | 2874 | $as_echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2875 | If you meant to cross compile, use \`--host'. |
2876 | See \`config.log' for more details." >&2;} | |
ec6a6fbe | 2877 | { (exit 1); exit 1; }; }; } |
ad6254c5 | 2878 | fi |
795ca3e5 | 2879 | fi |
80992638 | 2880 | fi |
ec6a6fbe AK |
2881 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2882 | $as_echo "yes" >&6; } | |
ad6254c5 | 2883 | |
ec6a6fbe | 2884 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2885 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2886 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2887 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2888 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2889 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2890 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2891 | $as_echo "$cross_compiling" >&6; } | |
7a197a62 | 2892 | |
ec6a6fbe AK |
2893 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2894 | $as_echo_n "checking for suffix of executables... " >&6; } | |
7a197a62 AK |
2895 | if { (ac_try="$ac_link" |
2896 | case "(($ac_try" in | |
2897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2898 | *) ac_try_echo=$ac_try;; | |
2899 | esac | |
ec6a6fbe AK |
2900 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2901 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2902 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2903 | ac_status=$? |
ec6a6fbe | 2904 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2905 | (exit $ac_status); }; then |
2906 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2907 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2908 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2909 | # `rm'. | |
2910 | for ac_file in conftest.exe conftest conftest.*; do | |
2911 | test -f "$ac_file" || continue | |
2912 | case $ac_file in | |
ec6a6fbe | 2913 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
ad6254c5 | 2914 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2915 | break;; |
ad6254c5 AK |
2916 | * ) break;; |
2917 | esac | |
2918 | done | |
80992638 | 2919 | else |
ec6a6fbe AK |
2920 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2921 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2922 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
ad6254c5 | 2923 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2924 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2925 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2926 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2927 | fi |
2928 | ||
2929 | rm -f conftest$ac_cv_exeext | |
ec6a6fbe AK |
2930 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2931 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2932 | |
2933 | rm -f conftest.$ac_ext | |
2934 | EXEEXT=$ac_cv_exeext | |
2935 | ac_exeext=$EXEEXT | |
ec6a6fbe AK |
2936 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2937 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ad6254c5 | 2938 | if test "${ac_cv_objext+set}" = set; then |
ec6a6fbe | 2939 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2940 | else |
ad6254c5 | 2941 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2942 | /* confdefs.h. */ |
2943 | _ACEOF | |
2944 | cat confdefs.h >>conftest.$ac_ext | |
2945 | cat >>conftest.$ac_ext <<_ACEOF | |
2946 | /* end confdefs.h. */ | |
2947 | ||
2948 | int | |
2949 | main () | |
2950 | { | |
2951 | ||
2952 | ; | |
2953 | return 0; | |
2954 | } | |
2955 | _ACEOF | |
2956 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2957 | if { (ac_try="$ac_compile" |
2958 | case "(($ac_try" in | |
2959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2960 | *) ac_try_echo=$ac_try;; | |
2961 | esac | |
ec6a6fbe AK |
2962 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2963 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2964 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2965 | ac_status=$? |
ec6a6fbe | 2966 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2967 | (exit $ac_status); }; then |
7a197a62 AK |
2968 | for ac_file in conftest.o conftest.obj conftest.*; do |
2969 | test -f "$ac_file" || continue; | |
ad6254c5 | 2970 | case $ac_file in |
ec6a6fbe | 2971 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
ad6254c5 AK |
2972 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2973 | break;; | |
2974 | esac | |
2975 | done | |
2976 | else | |
ec6a6fbe | 2977 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2978 | sed 's/^/| /' conftest.$ac_ext >&5 |
2979 | ||
ec6a6fbe AK |
2980 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2981 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2982 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
ad6254c5 | 2983 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2984 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2985 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2986 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2987 | fi |
2988 | ||
2989 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2990 | fi | |
ec6a6fbe AK |
2991 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2992 | $as_echo "$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2993 | OBJEXT=$ac_cv_objext |
2994 | ac_objext=$OBJEXT | |
ec6a6fbe AK |
2995 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2996 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
ad6254c5 | 2997 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
ec6a6fbe | 2998 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2999 | else |
3000 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3001 | /* confdefs.h. */ |
3002 | _ACEOF | |
3003 | cat confdefs.h >>conftest.$ac_ext | |
3004 | cat >>conftest.$ac_ext <<_ACEOF | |
3005 | /* end confdefs.h. */ | |
3006 | ||
3007 | int | |
3008 | main () | |
3009 | { | |
3010 | #ifndef __GNUC__ | |
3011 | choke me | |
3012 | #endif | |
80992638 | 3013 | |
ad6254c5 AK |
3014 | ; |
3015 | return 0; | |
3016 | } | |
3017 | _ACEOF | |
3018 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3019 | if { (ac_try="$ac_compile" |
3020 | case "(($ac_try" in | |
3021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3022 | *) ac_try_echo=$ac_try;; | |
3023 | esac | |
ec6a6fbe AK |
3024 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3025 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3026 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3027 | ac_status=$? |
8a2fc586 AK |
3028 | grep -v '^ *+' conftest.er1 >conftest.err |
3029 | rm -f conftest.er1 | |
3030 | cat conftest.err >&5 | |
ec6a6fbe | 3031 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3032 | (exit $ac_status); } && { |
3033 | test -z "$ac_c_werror_flag" || | |
3034 | test ! -s conftest.err | |
3035 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 3036 | ac_compiler_gnu=yes |
80992638 | 3037 | else |
ec6a6fbe | 3038 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3039 | sed 's/^/| /' conftest.$ac_ext >&5 |
3040 | ||
7a197a62 | 3041 | ac_compiler_gnu=no |
8106cdd5 | 3042 | fi |
7a197a62 AK |
3043 | |
3044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 3045 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 3046 | |
ad6254c5 | 3047 | fi |
ec6a6fbe AK |
3048 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3049 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3050 | if test $ac_compiler_gnu = yes; then | |
3051 | GCC=yes | |
3052 | else | |
3053 | GCC= | |
3054 | fi | |
ad6254c5 AK |
3055 | ac_test_CFLAGS=${CFLAGS+set} |
3056 | ac_save_CFLAGS=$CFLAGS | |
ec6a6fbe AK |
3057 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3058 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
ad6254c5 | 3059 | if test "${ac_cv_prog_cc_g+set}" = set; then |
ec6a6fbe | 3060 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 3061 | else |
7a197a62 AK |
3062 | ac_save_c_werror_flag=$ac_c_werror_flag |
3063 | ac_c_werror_flag=yes | |
3064 | ac_cv_prog_cc_g=no | |
3065 | CFLAGS="-g" | |
3066 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3067 | /* confdefs.h. */ |
3068 | _ACEOF | |
3069 | cat confdefs.h >>conftest.$ac_ext | |
3070 | cat >>conftest.$ac_ext <<_ACEOF | |
3071 | /* end confdefs.h. */ | |
3072 | ||
3073 | int | |
3074 | main () | |
3075 | { | |
3076 | ||
3077 | ; | |
3078 | return 0; | |
3079 | } | |
3080 | _ACEOF | |
3081 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3082 | if { (ac_try="$ac_compile" |
3083 | case "(($ac_try" in | |
3084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3085 | *) ac_try_echo=$ac_try;; | |
3086 | esac | |
ec6a6fbe AK |
3087 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3088 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3089 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3090 | ac_status=$? |
8a2fc586 AK |
3091 | grep -v '^ *+' conftest.er1 >conftest.err |
3092 | rm -f conftest.er1 | |
3093 | cat conftest.err >&5 | |
ec6a6fbe | 3094 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3095 | (exit $ac_status); } && { |
3096 | test -z "$ac_c_werror_flag" || | |
3097 | test ! -s conftest.err | |
3098 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3099 | ac_cv_prog_cc_g=yes |
3100 | else | |
ec6a6fbe | 3101 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3102 | sed 's/^/| /' conftest.$ac_ext >&5 |
3103 | ||
3104 | CFLAGS="" | |
3105 | cat >conftest.$ac_ext <<_ACEOF | |
3106 | /* confdefs.h. */ | |
3107 | _ACEOF | |
3108 | cat confdefs.h >>conftest.$ac_ext | |
3109 | cat >>conftest.$ac_ext <<_ACEOF | |
3110 | /* end confdefs.h. */ | |
3111 | ||
3112 | int | |
3113 | main () | |
3114 | { | |
3115 | ||
3116 | ; | |
3117 | return 0; | |
3118 | } | |
3119 | _ACEOF | |
3120 | rm -f conftest.$ac_objext | |
3121 | if { (ac_try="$ac_compile" | |
3122 | case "(($ac_try" in | |
3123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3124 | *) ac_try_echo=$ac_try;; | |
3125 | esac | |
ec6a6fbe AK |
3126 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3127 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3128 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 3129 | ac_status=$? |
7a197a62 AK |
3130 | grep -v '^ *+' conftest.er1 >conftest.err |
3131 | rm -f conftest.er1 | |
3132 | cat conftest.err >&5 | |
ec6a6fbe | 3133 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3134 | (exit $ac_status); } && { |
3135 | test -z "$ac_c_werror_flag" || | |
3136 | test ! -s conftest.err | |
3137 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3138 | : |
3139 | else | |
ec6a6fbe | 3140 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3141 | sed 's/^/| /' conftest.$ac_ext >&5 |
3142 | ||
3143 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3144 | CFLAGS="-g" | |
3145 | cat >conftest.$ac_ext <<_ACEOF | |
3146 | /* confdefs.h. */ | |
3147 | _ACEOF | |
3148 | cat confdefs.h >>conftest.$ac_ext | |
3149 | cat >>conftest.$ac_ext <<_ACEOF | |
3150 | /* end confdefs.h. */ | |
3151 | ||
3152 | int | |
3153 | main () | |
3154 | { | |
3155 | ||
3156 | ; | |
3157 | return 0; | |
3158 | } | |
3159 | _ACEOF | |
3160 | rm -f conftest.$ac_objext | |
3161 | if { (ac_try="$ac_compile" | |
3162 | case "(($ac_try" in | |
3163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3164 | *) ac_try_echo=$ac_try;; | |
3165 | esac | |
ec6a6fbe AK |
3166 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3167 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3168 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3169 | ac_status=$? |
7a197a62 AK |
3170 | grep -v '^ *+' conftest.er1 >conftest.err |
3171 | rm -f conftest.er1 | |
3172 | cat conftest.err >&5 | |
ec6a6fbe | 3173 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3174 | (exit $ac_status); } && { |
3175 | test -z "$ac_c_werror_flag" || | |
3176 | test ! -s conftest.err | |
3177 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
3178 | ac_cv_prog_cc_g=yes |
3179 | else | |
ec6a6fbe | 3180 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3181 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 3182 | |
7a197a62 AK |
3183 | |
3184 | fi | |
3185 | ||
3186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3187 | fi | |
3188 | ||
3189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 3190 | fi |
7a197a62 AK |
3191 | |
3192 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3193 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 3194 | fi |
ec6a6fbe AK |
3195 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3196 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 3197 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 3198 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
3199 | elif test $ac_cv_prog_cc_g = yes; then |
3200 | if test "$GCC" = yes; then | |
3201 | CFLAGS="-g -O2" | |
3202 | else | |
3203 | CFLAGS="-g" | |
3204 | fi | |
3205 | else | |
3206 | if test "$GCC" = yes; then | |
3207 | CFLAGS="-O2" | |
3208 | else | |
3209 | CFLAGS= | |
3210 | fi | |
3211 | fi | |
ec6a6fbe AK |
3212 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3213 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7a197a62 | 3214 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
ec6a6fbe | 3215 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3216 | else |
7a197a62 | 3217 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
3218 | ac_save_CC=$CC |
3219 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3220 | /* confdefs.h. */ |
3221 | _ACEOF | |
3222 | cat confdefs.h >>conftest.$ac_ext | |
3223 | cat >>conftest.$ac_ext <<_ACEOF | |
3224 | /* end confdefs.h. */ | |
3225 | #include <stdarg.h> | |
3226 | #include <stdio.h> | |
3227 | #include <sys/types.h> | |
3228 | #include <sys/stat.h> | |
3229 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3230 | struct buf { int x; }; | |
3231 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3232 | static char *e (p, i) | |
3233 | char **p; | |
3234 | int i; | |
3235 | { | |
3236 | return p[i]; | |
3237 | } | |
3238 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3239 | { | |
3240 | char *s; | |
3241 | va_list v; | |
3242 | va_start (v,p); | |
3243 | s = g (p, va_arg (v,int)); | |
3244 | va_end (v); | |
3245 | return s; | |
3246 | } | |
8a2fc586 AK |
3247 | |
3248 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3249 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3250 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 3251 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
3252 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3253 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 3254 | that's true only with -std. */ |
8a2fc586 AK |
3255 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3256 | ||
7a197a62 AK |
3257 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3258 | inside strings and character constants. */ | |
3259 | #define FOO(x) 'x' | |
3260 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3261 | ||
ad6254c5 AK |
3262 | int test (int i, double x); |
3263 | struct s1 {int (*f) (int a);}; | |
3264 | struct s2 {int (*f) (double a);}; | |
3265 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3266 | int argc; | |
3267 | char **argv; | |
3268 | int | |
3269 | main () | |
3270 | { | |
3271 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3272 | ; | |
3273 | return 0; | |
3274 | } | |
3275 | _ACEOF | |
7a197a62 AK |
3276 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3277 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
3278 | do |
3279 | CC="$ac_save_CC $ac_arg" | |
3280 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3281 | if { (ac_try="$ac_compile" |
3282 | case "(($ac_try" in | |
3283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3284 | *) ac_try_echo=$ac_try;; | |
3285 | esac | |
ec6a6fbe AK |
3286 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3287 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3288 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3289 | ac_status=$? |
8a2fc586 AK |
3290 | grep -v '^ *+' conftest.er1 >conftest.err |
3291 | rm -f conftest.er1 | |
3292 | cat conftest.err >&5 | |
ec6a6fbe | 3293 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3294 | (exit $ac_status); } && { |
3295 | test -z "$ac_c_werror_flag" || | |
3296 | test ! -s conftest.err | |
3297 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 3298 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 3299 | else |
ec6a6fbe | 3300 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3301 | sed 's/^/| /' conftest.$ac_ext >&5 |
3302 | ||
7a197a62 | 3303 | |
ad6254c5 | 3304 | fi |
7a197a62 AK |
3305 | |
3306 | rm -f core conftest.err conftest.$ac_objext | |
3307 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 3308 | done |
7a197a62 | 3309 | rm -f conftest.$ac_ext |
ad6254c5 AK |
3310 | CC=$ac_save_CC |
3311 | ||
3312 | fi | |
7a197a62 AK |
3313 | # AC_CACHE_VAL |
3314 | case "x$ac_cv_prog_cc_c89" in | |
3315 | x) | |
ec6a6fbe AK |
3316 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3317 | $as_echo "none needed" >&6; } ;; | |
7a197a62 | 3318 | xno) |
ec6a6fbe AK |
3319 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3320 | $as_echo "unsupported" >&6; } ;; | |
ad6254c5 | 3321 | *) |
7a197a62 | 3322 | CC="$CC $ac_cv_prog_cc_c89" |
ec6a6fbe AK |
3323 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3324 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
3325 | esac |
3326 | ||
ad6254c5 | 3327 | |
ad6254c5 AK |
3328 | ac_ext=c |
3329 | ac_cpp='$CPP $CPPFLAGS' | |
3330 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3331 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3332 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 3333 | |
d0191583 JM |
3334 | |
3335 | ||
3336 | ac_ext=c | |
3337 | ac_cpp='$CPP $CPPFLAGS' | |
3338 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3339 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3340 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ec6a6fbe AK |
3341 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3342 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d0191583 JM |
3343 | # On Suns, sometimes $CPP names a directory. |
3344 | if test -n "$CPP" && test -d "$CPP"; then | |
3345 | CPP= | |
3346 | fi | |
3347 | if test -z "$CPP"; then | |
3348 | if test "${ac_cv_prog_CPP+set}" = set; then | |
ec6a6fbe | 3349 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3350 | else |
d0191583 JM |
3351 | # Double quotes because CPP needs to be expanded |
3352 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3353 | do | |
3354 | ac_preproc_ok=false | |
3355 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 3356 | do |
d0191583 JM |
3357 | # Use a header file that comes with gcc, so configuring glibc |
3358 | # with a fresh cross-compiler works. | |
3359 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3360 | # <limits.h> exists even on freestanding compilers. | |
3361 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3362 | # not just through cpp. "Syntax error" is here to catch this case. | |
3363 | cat >conftest.$ac_ext <<_ACEOF | |
3364 | /* confdefs.h. */ | |
3365 | _ACEOF | |
3366 | cat confdefs.h >>conftest.$ac_ext | |
3367 | cat >>conftest.$ac_ext <<_ACEOF | |
3368 | /* end confdefs.h. */ | |
3369 | #ifdef __STDC__ | |
3370 | # include <limits.h> | |
3371 | #else | |
3372 | # include <assert.h> | |
3373 | #endif | |
3374 | Syntax error | |
3375 | _ACEOF | |
3376 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3377 | case "(($ac_try" in | |
3378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3379 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 3380 | esac |
ec6a6fbe AK |
3381 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3382 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3383 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3384 | ac_status=$? | |
3385 | grep -v '^ *+' conftest.er1 >conftest.err | |
3386 | rm -f conftest.er1 | |
3387 | cat conftest.err >&5 | |
ec6a6fbe | 3388 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3389 | (exit $ac_status); } >/dev/null && { |
3390 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3391 | test ! -s conftest.err | |
3392 | }; then | |
3393 | : | |
3394 | else | |
ec6a6fbe | 3395 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3396 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3397 | |
d0191583 JM |
3398 | # Broken: fails on valid input. |
3399 | continue | |
795ca3e5 | 3400 | fi |
795ca3e5 | 3401 | |
d0191583 | 3402 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3403 | |
d0191583 JM |
3404 | # OK, works on sane cases. Now check whether nonexistent headers |
3405 | # can be detected and how. | |
3406 | cat >conftest.$ac_ext <<_ACEOF | |
3407 | /* confdefs.h. */ | |
3408 | _ACEOF | |
3409 | cat confdefs.h >>conftest.$ac_ext | |
3410 | cat >>conftest.$ac_ext <<_ACEOF | |
3411 | /* end confdefs.h. */ | |
3412 | #include <ac_nonexistent.h> | |
3413 | _ACEOF | |
3414 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3415 | case "(($ac_try" in | |
3416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3417 | *) ac_try_echo=$ac_try;; | |
3418 | esac | |
ec6a6fbe AK |
3419 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3420 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3421 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3422 | ac_status=$? | |
3423 | grep -v '^ *+' conftest.er1 >conftest.err | |
3424 | rm -f conftest.er1 | |
3425 | cat conftest.err >&5 | |
ec6a6fbe | 3426 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3427 | (exit $ac_status); } >/dev/null && { |
3428 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3429 | test ! -s conftest.err | |
3430 | }; then | |
3431 | # Broken: success on invalid input. | |
3432 | continue | |
3433 | else | |
ec6a6fbe | 3434 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3435 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3436 | |
d0191583 JM |
3437 | # Passes both tests. |
3438 | ac_preproc_ok=: | |
3439 | break | |
3440 | fi | |
795ca3e5 | 3441 | |
d0191583 JM |
3442 | rm -f conftest.err conftest.$ac_ext |
3443 | ||
3444 | done | |
3445 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3446 | rm -f conftest.err conftest.$ac_ext | |
3447 | if $ac_preproc_ok; then | |
3448 | break | |
795ca3e5 AK |
3449 | fi |
3450 | ||
d0191583 JM |
3451 | done |
3452 | ac_cv_prog_CPP=$CPP | |
3453 | ||
3454 | fi | |
3455 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3456 | else |
d0191583 JM |
3457 | ac_cv_prog_CPP=$CPP |
3458 | fi | |
ec6a6fbe AK |
3459 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3460 | $as_echo "$CPP" >&6; } | |
d0191583 JM |
3461 | ac_preproc_ok=false |
3462 | for ac_c_preproc_warn_flag in '' yes | |
3463 | do | |
3464 | # Use a header file that comes with gcc, so configuring glibc | |
3465 | # with a fresh cross-compiler works. | |
3466 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3467 | # <limits.h> exists even on freestanding compilers. | |
3468 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3469 | # not just through cpp. "Syntax error" is here to catch this case. | |
3470 | cat >conftest.$ac_ext <<_ACEOF | |
3471 | /* confdefs.h. */ | |
ad6254c5 | 3472 | _ACEOF |
d0191583 JM |
3473 | cat confdefs.h >>conftest.$ac_ext |
3474 | cat >>conftest.$ac_ext <<_ACEOF | |
3475 | /* end confdefs.h. */ | |
3476 | #ifdef __STDC__ | |
3477 | # include <limits.h> | |
3478 | #else | |
3479 | # include <assert.h> | |
3480 | #endif | |
3481 | Syntax error | |
3482 | _ACEOF | |
3483 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3484 | case "(($ac_try" in | |
3485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3486 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3487 | esac |
ec6a6fbe AK |
3488 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3489 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3490 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3491 | ac_status=$? | |
3492 | grep -v '^ *+' conftest.er1 >conftest.err | |
3493 | rm -f conftest.er1 | |
3494 | cat conftest.err >&5 | |
ec6a6fbe | 3495 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3496 | (exit $ac_status); } >/dev/null && { |
3497 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3498 | test ! -s conftest.err | |
3499 | }; then | |
3500 | : | |
795ca3e5 | 3501 | else |
ec6a6fbe | 3502 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3503 | sed 's/^/| /' conftest.$ac_ext >&5 |
3504 | ||
3505 | # Broken: fails on valid input. | |
3506 | continue | |
795ca3e5 AK |
3507 | fi |
3508 | ||
d0191583 JM |
3509 | rm -f conftest.err conftest.$ac_ext |
3510 | ||
3511 | # OK, works on sane cases. Now check whether nonexistent headers | |
3512 | # can be detected and how. | |
3513 | cat >conftest.$ac_ext <<_ACEOF | |
3514 | /* confdefs.h. */ | |
3515 | _ACEOF | |
3516 | cat confdefs.h >>conftest.$ac_ext | |
3517 | cat >>conftest.$ac_ext <<_ACEOF | |
3518 | /* end confdefs.h. */ | |
3519 | #include <ac_nonexistent.h> | |
3520 | _ACEOF | |
3521 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3522 | case "(($ac_try" in | |
3523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3524 | *) ac_try_echo=$ac_try;; | |
3525 | esac | |
ec6a6fbe AK |
3526 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3527 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3528 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3529 | ac_status=$? | |
3530 | grep -v '^ *+' conftest.er1 >conftest.err | |
3531 | rm -f conftest.er1 | |
3532 | cat conftest.err >&5 | |
ec6a6fbe | 3533 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3534 | (exit $ac_status); } >/dev/null && { |
3535 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3536 | test ! -s conftest.err | |
3537 | }; then | |
3538 | # Broken: success on invalid input. | |
3539 | continue | |
795ca3e5 | 3540 | else |
ec6a6fbe | 3541 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3542 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3543 | |
d0191583 JM |
3544 | # Passes both tests. |
3545 | ac_preproc_ok=: | |
3546 | break | |
795ca3e5 | 3547 | fi |
d0191583 JM |
3548 | |
3549 | rm -f conftest.err conftest.$ac_ext | |
3550 | ||
3551 | done | |
3552 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3553 | rm -f conftest.err conftest.$ac_ext | |
3554 | if $ac_preproc_ok; then | |
3555 | : | |
8106cdd5 | 3556 | else |
ec6a6fbe AK |
3557 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3558 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3559 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
d0191583 | 3560 | See \`config.log' for more details." >&5 |
ec6a6fbe | 3561 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3562 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 3563 | { (exit 1); exit 1; }; }; } |
8106cdd5 AK |
3564 | fi |
3565 | ||
d0191583 JM |
3566 | ac_ext=c |
3567 | ac_cpp='$CPP $CPPFLAGS' | |
3568 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3569 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3570 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3571 | ||
7a197a62 | 3572 | |
ec6a6fbe AK |
3573 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3574 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5556819a | 3575 | if test "${ac_cv_path_GREP+set}" = set; then |
ec6a6fbe | 3576 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3577 | else |
ec6a6fbe | 3578 | if test -z "$GREP"; then |
d0191583 | 3579 | ac_path_GREP_found=false |
ec6a6fbe AK |
3580 | # Loop through the user's path and test for each of PROGNAME-LIST |
3581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3582 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3583 | do |
3584 | IFS=$as_save_IFS | |
3585 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3586 | for ac_prog in grep ggrep; do |
ec6a6fbe AK |
3587 | for ac_exec_ext in '' $ac_executable_extensions; do |
3588 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3589 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3590 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3591 | # Check for GNU $ac_path_GREP |
3592 | case `"$ac_path_GREP" --version 2>&1` in | |
3593 | *GNU*) | |
3594 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3595 | *) | |
3596 | ac_count=0 | |
ec6a6fbe | 3597 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3598 | while : |
3599 | do | |
3600 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3601 | mv "conftest.tmp" "conftest.in" | |
3602 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3603 | $as_echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3604 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3605 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3606 | ac_count=`expr $ac_count + 1` | |
3607 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3608 | # Best one so far, save it but keep looking for a better one | |
3609 | ac_cv_path_GREP="$ac_path_GREP" | |
3610 | ac_path_GREP_max=$ac_count | |
3611 | fi | |
3612 | # 10*(2^10) chars as input seems more than enough | |
3613 | test $ac_count -gt 10 && break | |
3614 | done | |
3615 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3616 | esac | |
3617 | ||
ec6a6fbe AK |
3618 | $ac_path_GREP_found && break 3 |
3619 | done | |
d0191583 | 3620 | done |
ad6254c5 | 3621 | done |
7a197a62 | 3622 | IFS=$as_save_IFS |
ec6a6fbe AK |
3623 | if test -z "$ac_cv_path_GREP"; then |
3624 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3625 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3626 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3627 | fi |
80992638 | 3628 | else |
d0191583 | 3629 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3630 | fi |
8106cdd5 | 3631 | |
80992638 | 3632 | fi |
ec6a6fbe AK |
3633 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3634 | $as_echo "$ac_cv_path_GREP" >&6; } | |
d0191583 | 3635 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3636 | |
d0191583 | 3637 | |
ec6a6fbe AK |
3638 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3639 | $as_echo_n "checking for egrep... " >&6; } | |
d0191583 | 3640 | if test "${ac_cv_path_EGREP+set}" = set; then |
ec6a6fbe | 3641 | $as_echo_n "(cached) " >&6 |
8a2fc586 | 3642 | else |
d0191583 JM |
3643 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3644 | then ac_cv_path_EGREP="$GREP -E" | |
3645 | else | |
ec6a6fbe | 3646 | if test -z "$EGREP"; then |
d0191583 | 3647 | ac_path_EGREP_found=false |
ec6a6fbe AK |
3648 | # Loop through the user's path and test for each of PROGNAME-LIST |
3649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3650 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3651 | do |
3652 | IFS=$as_save_IFS | |
3653 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3654 | for ac_prog in egrep; do |
ec6a6fbe AK |
3655 | for ac_exec_ext in '' $ac_executable_extensions; do |
3656 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3657 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3658 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3659 | # Check for GNU $ac_path_EGREP |
3660 | case `"$ac_path_EGREP" --version 2>&1` in | |
3661 | *GNU*) | |
3662 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3663 | *) | |
3664 | ac_count=0 | |
ec6a6fbe | 3665 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3666 | while : |
3667 | do | |
3668 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3669 | mv "conftest.tmp" "conftest.in" | |
3670 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3671 | $as_echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3672 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3673 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3674 | ac_count=`expr $ac_count + 1` | |
3675 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3676 | # Best one so far, save it but keep looking for a better one | |
3677 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3678 | ac_path_EGREP_max=$ac_count | |
3679 | fi | |
3680 | # 10*(2^10) chars as input seems more than enough | |
3681 | test $ac_count -gt 10 && break | |
3682 | done | |
3683 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3684 | esac |
8a2fc586 | 3685 | |
ec6a6fbe AK |
3686 | $ac_path_EGREP_found && break 3 |
3687 | done | |
d0191583 | 3688 | done |
8a2fc586 | 3689 | done |
7a197a62 | 3690 | IFS=$as_save_IFS |
ec6a6fbe AK |
3691 | if test -z "$ac_cv_path_EGREP"; then |
3692 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3693 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3694 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3695 | fi |
d0191583 JM |
3696 | else |
3697 | ac_cv_path_EGREP=$EGREP | |
3698 | fi | |
ad6254c5 | 3699 | |
d0191583 JM |
3700 | fi |
3701 | fi | |
ec6a6fbe AK |
3702 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3703 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3704 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3705 | |
3706 | ||
d0191583 | 3707 | if test $ac_cv_c_compiler_gnu = yes; then |
ec6a6fbe AK |
3708 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3709 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
d0191583 | 3710 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
ec6a6fbe | 3711 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 3712 | else |
d0191583 | 3713 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3714 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3715 | /* confdefs.h. */ |
3716 | _ACEOF | |
3717 | cat confdefs.h >>conftest.$ac_ext | |
3718 | cat >>conftest.$ac_ext <<_ACEOF | |
3719 | /* end confdefs.h. */ | |
d0191583 JM |
3720 | #include <sgtty.h> |
3721 | Autoconf TIOCGETP | |
ad6254c5 | 3722 | _ACEOF |
d0191583 JM |
3723 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3724 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3725 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3726 | else |
d0191583 | 3727 | ac_cv_prog_gcc_traditional=no |
80992638 | 3728 | fi |
d0191583 | 3729 | rm -f conftest* |
ad6254c5 | 3730 | |
8106cdd5 | 3731 | |
d0191583 JM |
3732 | if test $ac_cv_prog_gcc_traditional = no; then |
3733 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3734 | /* confdefs.h. */ |
3735 | _ACEOF | |
3736 | cat confdefs.h >>conftest.$ac_ext | |
3737 | cat >>conftest.$ac_ext <<_ACEOF | |
3738 | /* end confdefs.h. */ | |
d0191583 JM |
3739 | #include <termio.h> |
3740 | Autoconf TCGETA | |
ad6254c5 | 3741 | _ACEOF |
d0191583 JM |
3742 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3743 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3744 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3745 | fi |
d0191583 | 3746 | rm -f conftest* |
795ca3e5 | 3747 | |
d0191583 | 3748 | fi |
795ca3e5 | 3749 | fi |
ec6a6fbe AK |
3750 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3751 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3752 | if test $ac_cv_prog_gcc_traditional = yes; then |
3753 | CC="$CC -traditional" | |
3754 | fi | |
795ca3e5 AK |
3755 | fi |
3756 | ||
d0191583 JM |
3757 | # Find a good install program. We prefer a C program (faster), |
3758 | # so one script is as good as another. But avoid the broken or | |
3759 | # incompatible versions: | |
3760 | # SysV /etc/install, /usr/sbin/install | |
3761 | # SunOS /usr/etc/install | |
3762 | # IRIX /sbin/install | |
3763 | # AIX /bin/install | |
3764 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3765 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3766 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3767 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3768 | # OS/2's system install, which has a completely different semantic | |
3769 | # ./install, which can be erroneously created by make from ./install.sh. | |
ec6a6fbe AK |
3770 | # Reject install programs that cannot install multiple files. |
3771 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3772 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d0191583 JM |
3773 | if test -z "$INSTALL"; then |
3774 | if test "${ac_cv_path_install+set}" = set; then | |
ec6a6fbe | 3775 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3776 | else |
d0191583 JM |
3777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3778 | for as_dir in $PATH | |
3779 | do | |
3780 | IFS=$as_save_IFS | |
3781 | test -z "$as_dir" && as_dir=. | |
3782 | # Account for people who put trailing slashes in PATH elements. | |
3783 | case $as_dir/ in | |
3784 | ./ | .// | /cC/* | \ | |
3785 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3786 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3787 | /usr/ucb/* ) ;; | |
3788 | *) | |
3789 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3790 | # Don't use installbsd from OSF since it installs stuff as root | |
3791 | # by default. | |
3792 | for ac_prog in ginstall scoinst install; do | |
3793 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3794 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3795 | if test $ac_prog = install && | |
3796 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3797 | # AIX install. It has an incompatible calling convention. | |
3798 | : | |
3799 | elif test $ac_prog = install && | |
3800 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3801 | # program-specific install script used by HP pwplus--don't use. | |
3802 | : | |
3803 | else | |
ec6a6fbe AK |
3804 | rm -rf conftest.one conftest.two conftest.dir |
3805 | echo one > conftest.one | |
3806 | echo two > conftest.two | |
3807 | mkdir conftest.dir | |
3808 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3809 | test -s conftest.one && test -s conftest.two && | |
3810 | test -s conftest.dir/conftest.one && | |
3811 | test -s conftest.dir/conftest.two | |
3812 | then | |
3813 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3814 | break 3 | |
3815 | fi | |
d0191583 JM |
3816 | fi |
3817 | fi | |
3818 | done | |
3819 | done | |
3820 | ;; | |
3821 | esac | |
ec6a6fbe | 3822 | |
d0191583 JM |
3823 | done |
3824 | IFS=$as_save_IFS | |
80992638 | 3825 | |
ec6a6fbe | 3826 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
3827 | |
3828 | fi | |
3829 | if test "${ac_cv_path_install+set}" = set; then | |
3830 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3831 | else |
d0191583 JM |
3832 | # As a last resort, use the slow shell script. Don't cache a |
3833 | # value for INSTALL within a source directory, because that will | |
3834 | # break other packages using the cache if that directory is | |
3835 | # removed, or if the value is a relative name. | |
3836 | INSTALL=$ac_install_sh | |
7a197a62 | 3837 | fi |
d0191583 | 3838 | fi |
ec6a6fbe AK |
3839 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3840 | $as_echo "$INSTALL" >&6; } | |
ad6254c5 | 3841 | |
d0191583 JM |
3842 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3843 | # It thinks the first close brace ends the variable substitution. | |
3844 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3845 | |
d0191583 | 3846 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3847 | |
d0191583 JM |
3848 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3849 | ||
ec6a6fbe AK |
3850 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3851 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d0191583 JM |
3852 | LN_S=$as_ln_s |
3853 | if test "$LN_S" = "ln -s"; then | |
ec6a6fbe AK |
3854 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3855 | $as_echo "yes" >&6; } | |
d0191583 | 3856 | else |
ec6a6fbe AK |
3857 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3858 | $as_echo "no, using $LN_S" >&6; } | |
795ca3e5 | 3859 | fi |
d0191583 | 3860 | |
ec6a6fbe AK |
3861 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3862 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3863 | set x ${MAKE-make} | |
3864 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3865 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 3866 | $as_echo_n "(cached) " >&6 |
7a197a62 | 3867 | else |
d0191583 JM |
3868 | cat >conftest.make <<\_ACEOF |
3869 | SHELL = /bin/sh | |
3870 | all: | |
3871 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3872 | _ACEOF | |
3873 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3874 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3875 | *@@@%%%=?*=@@@%%%*) | |
3876 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3877 | *) | |
3878 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3879 | esac | |
3880 | rm -f conftest.make | |
ad6254c5 | 3881 | fi |
d0191583 | 3882 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
ec6a6fbe AK |
3883 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3884 | $as_echo "yes" >&6; } | |
d0191583 JM |
3885 | SET_MAKE= |
3886 | else | |
ec6a6fbe AK |
3887 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3888 | $as_echo "no" >&6; } | |
d0191583 | 3889 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3890 | fi |
8106cdd5 | 3891 | |
ec6a6fbe AK |
3892 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3893 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
5556819a AK |
3894 | if test -z "$MKDIR_P"; then |
3895 | if test "${ac_cv_path_mkdir+set}" = set; then | |
ec6a6fbe | 3896 | $as_echo_n "(cached) " >&6 |
5556819a AK |
3897 | else |
3898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3899 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3900 | do | |
3901 | IFS=$as_save_IFS | |
3902 | test -z "$as_dir" && as_dir=. | |
3903 | for ac_prog in mkdir gmkdir; do | |
3904 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3905 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3906 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3907 | 'mkdir (GNU coreutils) '* | \ | |
3908 | 'mkdir (coreutils) '* | \ | |
3909 | 'mkdir (fileutils) '4.1*) | |
3910 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3911 | break 3;; | |
3912 | esac | |
3913 | done | |
3914 | done | |
3915 | done | |
3916 | IFS=$as_save_IFS | |
3917 | ||
3918 | fi | |
3919 | ||
3920 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3921 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3922 | else | |
3923 | # As a last resort, use the slow shell script. Don't cache a | |
3924 | # value for MKDIR_P within a source directory, because that will | |
3925 | # break other packages using the cache if that directory is | |
3926 | # removed, or if the value is a relative name. | |
3927 | test -d ./--version && rmdir ./--version | |
3928 | MKDIR_P="$ac_install_sh -d" | |
3929 | fi | |
3930 | fi | |
ec6a6fbe AK |
3931 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
3932 | $as_echo "$MKDIR_P" >&6; } | |
5556819a | 3933 | |
d0191583 JM |
3934 | if test -n "$ac_tool_prefix"; then |
3935 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3936 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
ec6a6fbe AK |
3937 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3938 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3939 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
ec6a6fbe | 3940 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3941 | else |
3942 | if test -n "$RANLIB"; then | |
3943 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3944 | else | |
3945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3946 | for as_dir in $PATH | |
3947 | do | |
3948 | IFS=$as_save_IFS | |
3949 | test -z "$as_dir" && as_dir=. | |
3950 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3951 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3952 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
ec6a6fbe | 3953 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3954 | break 2 |
3955 | fi | |
3956 | done | |
3957 | done | |
3958 | IFS=$as_save_IFS | |
8106cdd5 | 3959 | |
795ca3e5 | 3960 | fi |
d0191583 JM |
3961 | fi |
3962 | RANLIB=$ac_cv_prog_RANLIB | |
3963 | if test -n "$RANLIB"; then | |
ec6a6fbe AK |
3964 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3965 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 3966 | else |
ec6a6fbe AK |
3967 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3968 | $as_echo "no" >&6; } | |
d0191583 JM |
3969 | fi |
3970 | ||
8106cdd5 | 3971 | |
ad6254c5 | 3972 | fi |
d0191583 JM |
3973 | if test -z "$ac_cv_prog_RANLIB"; then |
3974 | ac_ct_RANLIB=$RANLIB | |
3975 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3976 | set dummy ranlib; ac_word=$2 | |
ec6a6fbe AK |
3977 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3978 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3979 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
ec6a6fbe | 3980 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3981 | else |
d0191583 JM |
3982 | if test -n "$ac_ct_RANLIB"; then |
3983 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3984 | else | |
3985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3986 | for as_dir in $PATH | |
8106cdd5 | 3987 | do |
d0191583 JM |
3988 | IFS=$as_save_IFS |
3989 | test -z "$as_dir" && as_dir=. | |
3990 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3991 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3992 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
ec6a6fbe | 3993 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3994 | break 2 |
3995 | fi | |
3996 | done | |
3997 | done | |
3998 | IFS=$as_save_IFS | |
3999 | ||
4000 | fi | |
4001 | fi | |
4002 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4003 | if test -n "$ac_ct_RANLIB"; then | |
ec6a6fbe AK |
4004 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
4005 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 4006 | else |
ec6a6fbe AK |
4007 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4008 | $as_echo "no" >&6; } | |
d0191583 | 4009 | fi |
ad6254c5 | 4010 | |
d0191583 JM |
4011 | if test "x$ac_ct_RANLIB" = x; then |
4012 | RANLIB=":" | |
4013 | else | |
4014 | case $cross_compiling:$ac_tool_warned in | |
4015 | yes:) | |
ec6a6fbe AK |
4016 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
4017 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0191583 JM |
4018 | ac_tool_warned=yes ;; |
4019 | esac | |
4020 | RANLIB=$ac_ct_RANLIB | |
4021 | fi | |
4022 | else | |
4023 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 4024 | fi |
7a197a62 | 4025 | |
d0191583 JM |
4026 | # Extract the first word of "cflow", so it can be a program name with args. |
4027 | set dummy cflow; ac_word=$2 | |
ec6a6fbe AK |
4028 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4029 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 4030 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
ec6a6fbe | 4031 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4032 | else |
4033 | case $CFLOW_CMD in | |
4034 | [\\/]* | ?:[\\/]*) | |
4035 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
4036 | ;; | |
4037 | *) | |
4038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4039 | for as_dir in $PATH | |
4040 | do | |
4041 | IFS=$as_save_IFS | |
4042 | test -z "$as_dir" && as_dir=. | |
4043 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4044 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4045 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4046 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4047 | break 2 |
4048 | fi | |
4049 | done | |
4050 | done | |
4051 | IFS=$as_save_IFS | |
ad6254c5 | 4052 | |
d0191583 | 4053 | ;; |
7a197a62 | 4054 | esac |
d0191583 JM |
4055 | fi |
4056 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
4057 | if test -n "$CFLOW_CMD"; then | |
ec6a6fbe AK |
4058 | { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
4059 | $as_echo "$CFLOW_CMD" >&6; } | |
80992638 | 4060 | else |
ec6a6fbe AK |
4061 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4062 | $as_echo "no" >&6; } | |
795ca3e5 | 4063 | fi |
7a197a62 | 4064 | |
ad6254c5 | 4065 | |
d0191583 JM |
4066 | # Extract the first word of "cscope", so it can be a program name with args. |
4067 | set dummy cscope; ac_word=$2 | |
ec6a6fbe AK |
4068 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4069 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 4070 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
ec6a6fbe | 4071 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4072 | else |
4073 | case $CSCOPE_CMD in | |
4074 | [\\/]* | ?:[\\/]*) | |
4075 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
4076 | ;; | |
4077 | *) | |
4078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4079 | for as_dir in $PATH | |
4080 | do | |
4081 | IFS=$as_save_IFS | |
4082 | test -z "$as_dir" && as_dir=. | |
4083 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4084 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4085 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4086 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4087 | break 2 |
4088 | fi | |
795ca3e5 | 4089 | done |
d0191583 JM |
4090 | done |
4091 | IFS=$as_save_IFS | |
795ca3e5 | 4092 | |
d0191583 JM |
4093 | ;; |
4094 | esac | |
ad6254c5 | 4095 | fi |
d0191583 JM |
4096 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
4097 | if test -n "$CSCOPE_CMD"; then | |
ec6a6fbe AK |
4098 | { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
4099 | $as_echo "$CSCOPE_CMD" >&6; } | |
795ca3e5 | 4100 | else |
ec6a6fbe AK |
4101 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4102 | $as_echo "no" >&6; } | |
795ca3e5 | 4103 | fi |
ad6254c5 | 4104 | |
7a197a62 | 4105 | |
ad6254c5 | 4106 | |
d0191583 JM |
4107 | ################################################################################ |
4108 | ||
4109 | ||
4110 | ||
4111 | ||
4112 | ||
4113 | ac_header_dirent=no | |
4114 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
ec6a6fbe AK |
4115 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
4116 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
4117 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
d0191583 | 4118 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4119 | $as_echo_n "(cached) " >&6 |
d0191583 | 4120 | else |
ad6254c5 | 4121 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4122 | /* confdefs.h. */ |
4123 | _ACEOF | |
4124 | cat confdefs.h >>conftest.$ac_ext | |
4125 | cat >>conftest.$ac_ext <<_ACEOF | |
4126 | /* end confdefs.h. */ | |
d0191583 JM |
4127 | #include <sys/types.h> |
4128 | #include <$ac_hdr> | |
4129 | ||
4130 | int | |
4131 | main () | |
4132 | { | |
4133 | if ((DIR *) 0) | |
4134 | return 0; | |
4135 | ; | |
4136 | return 0; | |
4137 | } | |
ad6254c5 | 4138 | _ACEOF |
d0191583 JM |
4139 | rm -f conftest.$ac_objext |
4140 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
4141 | case "(($ac_try" in |
4142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4143 | *) ac_try_echo=$ac_try;; | |
4144 | esac | |
ec6a6fbe AK |
4145 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4146 | $as_echo "$ac_try_echo") >&5 | |
d0191583 | 4147 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
4148 | ac_status=$? |
4149 | grep -v '^ *+' conftest.er1 >conftest.err | |
4150 | rm -f conftest.er1 | |
4151 | cat conftest.err >&5 | |
ec6a6fbe | 4152 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4153 | (exit $ac_status); } && { |
4154 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 4155 | test ! -s conftest.err |
d0191583 JM |
4156 | } && test -s conftest.$ac_objext; then |
4157 | eval "$as_ac_Header=yes" | |
ad6254c5 | 4158 | else |
ec6a6fbe | 4159 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4160 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4161 | |
d0191583 | 4162 | eval "$as_ac_Header=no" |
795ca3e5 | 4163 | fi |
7a197a62 | 4164 | |
d0191583 | 4165 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 4166 | fi |
ec6a6fbe AK |
4167 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4168 | $as_echo "$as_val"'` | |
4169 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4170 | $as_echo "$ac_res" >&6; } | |
4171 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4172 | $as_echo "$as_val"'` | |
4173 | if test "x$as_val" = x""yes; then | |
d0191583 | 4174 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4175 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 4176 | _ACEOF |
795ca3e5 | 4177 | |
d0191583 JM |
4178 | ac_header_dirent=$ac_hdr; break |
4179 | fi | |
ad6254c5 | 4180 | |
d0191583 JM |
4181 | done |
4182 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4183 | if test $ac_header_dirent = dirent.h; then | |
ec6a6fbe AK |
4184 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4185 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4186 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4187 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4188 | else |
d0191583 JM |
4189 | ac_func_search_save_LIBS=$LIBS |
4190 | cat >conftest.$ac_ext <<_ACEOF | |
4191 | /* confdefs.h. */ | |
4192 | _ACEOF | |
4193 | cat confdefs.h >>conftest.$ac_ext | |
4194 | cat >>conftest.$ac_ext <<_ACEOF | |
4195 | /* end confdefs.h. */ | |
ad6254c5 | 4196 | |
d0191583 JM |
4197 | /* Override any GCC internal prototype to avoid an error. |
4198 | Use char because int might match the return type of a GCC | |
4199 | builtin and then its argument prototype would still apply. */ | |
4200 | #ifdef __cplusplus | |
4201 | extern "C" | |
4202 | #endif | |
4203 | char opendir (); | |
4204 | int | |
4205 | main () | |
4206 | { | |
4207 | return opendir (); | |
4208 | ; | |
4209 | return 0; | |
4210 | } | |
4211 | _ACEOF | |
4212 | for ac_lib in '' dir; do | |
4213 | if test -z "$ac_lib"; then | |
4214 | ac_res="none required" | |
4215 | else | |
4216 | ac_res=-l$ac_lib | |
4217 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4218 | fi | |
4219 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4220 | if { (ac_try="$ac_link" | |
4221 | case "(($ac_try" in | |
4222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4223 | *) ac_try_echo=$ac_try;; | |
4224 | esac | |
ec6a6fbe AK |
4225 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4226 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4227 | (eval "$ac_link") 2>conftest.er1 |
4228 | ac_status=$? | |
4229 | grep -v '^ *+' conftest.er1 >conftest.err | |
4230 | rm -f conftest.er1 | |
4231 | cat conftest.err >&5 | |
ec6a6fbe | 4232 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4233 | (exit $ac_status); } && { |
4234 | test -z "$ac_c_werror_flag" || | |
4235 | test ! -s conftest.err | |
ec6a6fbe AK |
4236 | } && test -s conftest$ac_exeext && { |
4237 | test "$cross_compiling" = yes || | |
4238 | $as_test_x conftest$ac_exeext | |
4239 | }; then | |
d0191583 JM |
4240 | ac_cv_search_opendir=$ac_res |
4241 | else | |
ec6a6fbe | 4242 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4243 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 4244 | |
ad6254c5 | 4245 | |
795ca3e5 | 4246 | fi |
ad6254c5 | 4247 | |
ec6a6fbe | 4248 | rm -rf conftest.dSYM |
d0191583 JM |
4249 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4250 | conftest$ac_exeext | |
4251 | if test "${ac_cv_search_opendir+set}" = set; then | |
4252 | break | |
7a197a62 | 4253 | fi |
d0191583 JM |
4254 | done |
4255 | if test "${ac_cv_search_opendir+set}" = set; then | |
4256 | : | |
7a197a62 | 4257 | else |
d0191583 | 4258 | ac_cv_search_opendir=no |
7a197a62 | 4259 | fi |
d0191583 JM |
4260 | rm conftest.$ac_ext |
4261 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 4262 | fi |
ec6a6fbe AK |
4263 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4264 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4265 | ac_res=$ac_cv_search_opendir |
4266 | if test "$ac_res" != no; then | |
4267 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4268 | |
d0191583 | 4269 | fi |
7a197a62 | 4270 | |
7a197a62 | 4271 | else |
ec6a6fbe AK |
4272 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4273 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4274 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4275 | $as_echo_n "(cached) " >&6 |
7a197a62 | 4276 | else |
d0191583 JM |
4277 | ac_func_search_save_LIBS=$LIBS |
4278 | cat >conftest.$ac_ext <<_ACEOF | |
4279 | /* confdefs.h. */ | |
4280 | _ACEOF | |
4281 | cat confdefs.h >>conftest.$ac_ext | |
4282 | cat >>conftest.$ac_ext <<_ACEOF | |
4283 | /* end confdefs.h. */ | |
7a197a62 | 4284 | |
d0191583 JM |
4285 | /* Override any GCC internal prototype to avoid an error. |
4286 | Use char because int might match the return type of a GCC | |
4287 | builtin and then its argument prototype would still apply. */ | |
4288 | #ifdef __cplusplus | |
4289 | extern "C" | |
4290 | #endif | |
4291 | char opendir (); | |
4292 | int | |
4293 | main () | |
4294 | { | |
4295 | return opendir (); | |
4296 | ; | |
4297 | return 0; | |
4298 | } | |
4299 | _ACEOF | |
4300 | for ac_lib in '' x; do | |
4301 | if test -z "$ac_lib"; then | |
4302 | ac_res="none required" | |
4303 | else | |
4304 | ac_res=-l$ac_lib | |
4305 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4306 | fi | |
4307 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4308 | if { (ac_try="$ac_link" | |
4309 | case "(($ac_try" in | |
4310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4311 | *) ac_try_echo=$ac_try;; | |
4312 | esac | |
ec6a6fbe AK |
4313 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4314 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4315 | (eval "$ac_link") 2>conftest.er1 |
4316 | ac_status=$? | |
4317 | grep -v '^ *+' conftest.er1 >conftest.err | |
4318 | rm -f conftest.er1 | |
4319 | cat conftest.err >&5 | |
ec6a6fbe | 4320 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4321 | (exit $ac_status); } && { |
4322 | test -z "$ac_c_werror_flag" || | |
4323 | test ! -s conftest.err | |
ec6a6fbe AK |
4324 | } && test -s conftest$ac_exeext && { |
4325 | test "$cross_compiling" = yes || | |
4326 | $as_test_x conftest$ac_exeext | |
4327 | }; then | |
d0191583 JM |
4328 | ac_cv_search_opendir=$ac_res |
4329 | else | |
ec6a6fbe | 4330 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4331 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
4332 | |
4333 | ||
4334 | fi | |
4335 | ||
ec6a6fbe | 4336 | rm -rf conftest.dSYM |
d0191583 JM |
4337 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4338 | conftest$ac_exeext | |
4339 | if test "${ac_cv_search_opendir+set}" = set; then | |
4340 | break | |
7a197a62 | 4341 | fi |
d0191583 JM |
4342 | done |
4343 | if test "${ac_cv_search_opendir+set}" = set; then | |
4344 | : | |
7a197a62 | 4345 | else |
d0191583 | 4346 | ac_cv_search_opendir=no |
7a197a62 | 4347 | fi |
d0191583 JM |
4348 | rm conftest.$ac_ext |
4349 | LIBS=$ac_func_search_save_LIBS | |
4350 | fi | |
ec6a6fbe AK |
4351 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4352 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4353 | ac_res=$ac_cv_search_opendir |
4354 | if test "$ac_res" != no; then | |
4355 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4356 | |
7a197a62 | 4357 | fi |
7a197a62 | 4358 | |
d0191583 | 4359 | fi |
7a197a62 | 4360 | |
ec6a6fbe AK |
4361 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4362 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7a197a62 | 4363 | if test "${ac_cv_header_stdc+set}" = set; then |
ec6a6fbe | 4364 | $as_echo_n "(cached) " >&6 |
7a197a62 AK |
4365 | else |
4366 | cat >conftest.$ac_ext <<_ACEOF | |
4367 | /* confdefs.h. */ | |
4368 | _ACEOF | |
4369 | cat confdefs.h >>conftest.$ac_ext | |
4370 | cat >>conftest.$ac_ext <<_ACEOF | |
4371 | /* end confdefs.h. */ | |
4372 | #include <stdlib.h> | |
4373 | #include <stdarg.h> | |
4374 | #include <string.h> | |
4375 | #include <float.h> | |
4376 | ||
4377 | int | |
4378 | main () | |
4379 | { | |
4380 | ||
4381 | ; | |
4382 | return 0; | |
4383 | } | |
4384 | _ACEOF | |
4385 | rm -f conftest.$ac_objext | |
4386 | if { (ac_try="$ac_compile" | |
4387 | case "(($ac_try" in | |
4388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4389 | *) ac_try_echo=$ac_try;; | |
4390 | esac | |
ec6a6fbe AK |
4391 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4392 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 AK |
4393 | (eval "$ac_compile") 2>conftest.er1 |
4394 | ac_status=$? | |
4395 | grep -v '^ *+' conftest.er1 >conftest.err | |
4396 | rm -f conftest.er1 | |
4397 | cat conftest.err >&5 | |
ec6a6fbe | 4398 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4399 | (exit $ac_status); } && { |
4400 | test -z "$ac_c_werror_flag" || | |
4401 | test ! -s conftest.err | |
4402 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4403 | ac_cv_header_stdc=yes |
4404 | else | |
ec6a6fbe | 4405 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4406 | sed 's/^/| /' conftest.$ac_ext >&5 |
4407 | ||
4408 | ac_cv_header_stdc=no | |
4409 | fi | |
4410 | ||
4411 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4412 | ||
4413 | if test $ac_cv_header_stdc = yes; then | |
4414 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4415 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4416 | /* confdefs.h. */ |
4417 | _ACEOF | |
4418 | cat confdefs.h >>conftest.$ac_ext | |
4419 | cat >>conftest.$ac_ext <<_ACEOF | |
4420 | /* end confdefs.h. */ | |
4421 | #include <string.h> | |
8106cdd5 | 4422 | |
ad6254c5 AK |
4423 | _ACEOF |
4424 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4425 | $EGREP "memchr" >/dev/null 2>&1; then | |
4426 | : | |
4427 | else | |
4428 | ac_cv_header_stdc=no | |
80992638 | 4429 | fi |
ad6254c5 | 4430 | rm -f conftest* |
795ca3e5 AK |
4431 | |
4432 | fi | |
4433 | ||
ad6254c5 AK |
4434 | if test $ac_cv_header_stdc = yes; then |
4435 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4436 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4437 | /* confdefs.h. */ |
4438 | _ACEOF | |
4439 | cat confdefs.h >>conftest.$ac_ext | |
4440 | cat >>conftest.$ac_ext <<_ACEOF | |
4441 | /* end confdefs.h. */ | |
80992638 | 4442 | #include <stdlib.h> |
ad6254c5 AK |
4443 | |
4444 | _ACEOF | |
80992638 | 4445 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4446 | $EGREP "free" >/dev/null 2>&1; then |
4447 | : | |
795ca3e5 | 4448 | else |
ad6254c5 | 4449 | ac_cv_header_stdc=no |
795ca3e5 | 4450 | fi |
80992638 | 4451 | rm -f conftest* |
8106cdd5 | 4452 | |
795ca3e5 AK |
4453 | fi |
4454 | ||
ad6254c5 AK |
4455 | if test $ac_cv_header_stdc = yes; then |
4456 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4457 | if test "$cross_compiling" = yes; then | |
4458 | : | |
795ca3e5 | 4459 | else |
ad6254c5 | 4460 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4461 | /* confdefs.h. */ |
4462 | _ACEOF | |
4463 | cat confdefs.h >>conftest.$ac_ext | |
4464 | cat >>conftest.$ac_ext <<_ACEOF | |
4465 | /* end confdefs.h. */ | |
4466 | #include <ctype.h> | |
7a197a62 | 4467 | #include <stdlib.h> |
ad6254c5 AK |
4468 | #if ((' ' & 0x0FF) == 0x020) |
4469 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4470 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4471 | #else | |
4472 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4473 | (('a' <= (c) && (c) <= 'i') \ |
4474 | || ('j' <= (c) && (c) <= 'r') \ | |
4475 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4476 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4477 | #endif |
ad6254c5 AK |
4478 | |
4479 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4480 | int | |
4481 | main () | |
4482 | { | |
4483 | int i; | |
4484 | for (i = 0; i < 256; i++) | |
4485 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4486 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4487 | return 2; |
4488 | return 0; | |
ad6254c5 AK |
4489 | } |
4490 | _ACEOF | |
4491 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4492 | if { (ac_try="$ac_link" |
4493 | case "(($ac_try" in | |
4494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4495 | *) ac_try_echo=$ac_try;; | |
4496 | esac | |
ec6a6fbe AK |
4497 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4498 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4499 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4500 | ac_status=$? |
ec6a6fbe | 4501 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4502 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4503 | { (case "(($ac_try" in |
4504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4505 | *) ac_try_echo=$ac_try;; | |
4506 | esac | |
ec6a6fbe AK |
4507 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4508 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4509 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4510 | ac_status=$? |
ec6a6fbe | 4511 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4512 | (exit $ac_status); }; }; then |
4513 | : | |
795ca3e5 | 4514 | else |
ec6a6fbe AK |
4515 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4516 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4517 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4518 | |
ad6254c5 AK |
4519 | ( exit $ac_status ) |
4520 | ac_cv_header_stdc=no | |
80992638 | 4521 | fi |
ec6a6fbe | 4522 | rm -rf conftest.dSYM |
7a197a62 | 4523 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4524 | fi |
7a197a62 AK |
4525 | |
4526 | ||
ad6254c5 AK |
4527 | fi |
4528 | fi | |
ec6a6fbe AK |
4529 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4530 | $as_echo "$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4531 | if test $ac_cv_header_stdc = yes; then |
4532 | ||
4533 | cat >>confdefs.h <<\_ACEOF | |
4534 | #define STDC_HEADERS 1 | |
4535 | _ACEOF | |
795ca3e5 AK |
4536 | |
4537 | fi | |
4538 | ||
d911ec67 | 4539 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
ad6254c5 | 4540 | |
ad6254c5 | 4541 | |
7a197a62 | 4542 | |
8106cdd5 | 4543 | |
795ca3e5 | 4544 | |
795ca3e5 | 4545 | |
d911ec67 AK |
4546 | |
4547 | ||
4548 | ||
4549 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4550 | inttypes.h stdint.h unistd.h | |
4551 | do | |
4552 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4553 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4554 | $as_echo_n "checking for $ac_header... " >&6; } | |
4555 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ec6a6fbe | 4556 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 4557 | else |
ad6254c5 | 4558 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4559 | /* confdefs.h. */ |
4560 | _ACEOF | |
4561 | cat confdefs.h >>conftest.$ac_ext | |
4562 | cat >>conftest.$ac_ext <<_ACEOF | |
4563 | /* end confdefs.h. */ | |
d911ec67 | 4564 | $ac_includes_default |
ad6254c5 | 4565 | |
d911ec67 | 4566 | #include <$ac_header> |
ad6254c5 AK |
4567 | _ACEOF |
4568 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4569 | if { (ac_try="$ac_compile" |
4570 | case "(($ac_try" in | |
4571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4572 | *) ac_try_echo=$ac_try;; | |
4573 | esac | |
ec6a6fbe AK |
4574 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4575 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4576 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4577 | ac_status=$? |
8a2fc586 AK |
4578 | grep -v '^ *+' conftest.er1 >conftest.err |
4579 | rm -f conftest.er1 | |
4580 | cat conftest.err >&5 | |
ec6a6fbe | 4581 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4582 | (exit $ac_status); } && { |
4583 | test -z "$ac_c_werror_flag" || | |
4584 | test ! -s conftest.err | |
4585 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 4586 | eval "$as_ac_Header=yes" |
795ca3e5 | 4587 | else |
ec6a6fbe | 4588 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4589 | sed 's/^/| /' conftest.$ac_ext >&5 |
4590 | ||
d911ec67 | 4591 | eval "$as_ac_Header=no" |
795ca3e5 | 4592 | fi |
7a197a62 AK |
4593 | |
4594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4595 | fi |
d911ec67 AK |
4596 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4597 | $as_echo "$as_val"'` | |
4598 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4599 | $as_echo "$ac_res" >&6; } | |
4600 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4601 | $as_echo "$as_val"'` | |
4602 | if test "x$as_val" = x""yes; then | |
4603 | cat >>confdefs.h <<_ACEOF | |
4604 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ad6254c5 | 4605 | _ACEOF |
b896caa1 | 4606 | |
8106cdd5 | 4607 | fi |
b896caa1 | 4608 | |
d911ec67 | 4609 | done |
d0191583 JM |
4610 | |
4611 | ||
d911ec67 AK |
4612 | { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
4613 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | |
4614 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then | |
ec6a6fbe | 4615 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4616 | else |
4617 | cat >conftest.$ac_ext <<_ACEOF | |
4618 | /* confdefs.h. */ | |
4619 | _ACEOF | |
4620 | cat confdefs.h >>conftest.$ac_ext | |
4621 | cat >>conftest.$ac_ext <<_ACEOF | |
4622 | /* end confdefs.h. */ | |
d911ec67 AK |
4623 | #include <sys/types.h> |
4624 | int | |
4625 | main () | |
4626 | { | |
4627 | return makedev(0, 0); | |
4628 | ; | |
4629 | return 0; | |
4630 | } | |
d0191583 | 4631 | _ACEOF |
d911ec67 AK |
4632 | rm -f conftest.$ac_objext conftest$ac_exeext |
4633 | if { (ac_try="$ac_link" | |
d0191583 JM |
4634 | case "(($ac_try" in |
4635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4636 | *) ac_try_echo=$ac_try;; | |
4637 | esac | |
ec6a6fbe AK |
4638 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4639 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 | 4640 | (eval "$ac_link") 2>conftest.er1 |
d0191583 JM |
4641 | ac_status=$? |
4642 | grep -v '^ *+' conftest.er1 >conftest.err | |
4643 | rm -f conftest.er1 | |
4644 | cat conftest.err >&5 | |
ec6a6fbe | 4645 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4646 | (exit $ac_status); } && { |
4647 | test -z "$ac_c_werror_flag" || | |
4648 | test ! -s conftest.err | |
d911ec67 AK |
4649 | } && test -s conftest$ac_exeext && { |
4650 | test "$cross_compiling" = yes || | |
4651 | $as_test_x conftest$ac_exeext | |
4652 | }; then | |
4653 | ac_cv_header_sys_types_h_makedev=yes | |
d0191583 | 4654 | else |
ec6a6fbe | 4655 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4656 | sed 's/^/| /' conftest.$ac_ext >&5 |
4657 | ||
d911ec67 | 4658 | ac_cv_header_sys_types_h_makedev=no |
d0191583 JM |
4659 | fi |
4660 | ||
d911ec67 AK |
4661 | rm -rf conftest.dSYM |
4662 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4663 | conftest$ac_exeext conftest.$ac_ext | |
d0191583 JM |
4664 | |
4665 | fi | |
d911ec67 AK |
4666 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
4667 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | |
d0191583 | 4668 | |
d911ec67 AK |
4669 | if test $ac_cv_header_sys_types_h_makedev = no; then |
4670 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then | |
4671 | { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 | |
4672 | $as_echo_n "checking for sys/mkdev.h... " >&6; } | |
4673 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then | |
ec6a6fbe | 4674 | $as_echo_n "(cached) " >&6 |
d0191583 | 4675 | fi |
d911ec67 AK |
4676 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
4677 | $as_echo "$ac_cv_header_sys_mkdev_h" >&6; } | |
ad6254c5 | 4678 | else |
d0191583 | 4679 | # Is the header compilable? |
d911ec67 AK |
4680 | { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
4681 | $as_echo_n "checking sys/mkdev.h usability... " >&6; } | |
d0191583 | 4682 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4683 | /* confdefs.h. */ |
4684 | _ACEOF | |
4685 | cat confdefs.h >>conftest.$ac_ext | |
4686 | cat >>conftest.$ac_ext <<_ACEOF | |
4687 | /* end confdefs.h. */ | |
4688 | $ac_includes_default | |
d911ec67 | 4689 | #include <sys/mkdev.h> |
ad6254c5 AK |
4690 | _ACEOF |
4691 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4692 | if { (ac_try="$ac_compile" |
4693 | case "(($ac_try" in | |
4694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4695 | *) ac_try_echo=$ac_try;; | |
4696 | esac | |
ec6a6fbe AK |
4697 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4698 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4699 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4700 | ac_status=$? |
8a2fc586 AK |
4701 | grep -v '^ *+' conftest.er1 >conftest.err |
4702 | rm -f conftest.er1 | |
4703 | cat conftest.err >&5 | |
ec6a6fbe | 4704 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4705 | (exit $ac_status); } && { |
4706 | test -z "$ac_c_werror_flag" || | |
4707 | test ! -s conftest.err | |
4708 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4709 | ac_header_compiler=yes |
ad6254c5 | 4710 | else |
ec6a6fbe | 4711 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4712 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4713 | |
d0191583 | 4714 | ac_header_compiler=no |
ad6254c5 | 4715 | fi |
7a197a62 AK |
4716 | |
4717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4718 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4719 | $as_echo "$ac_header_compiler" >&6; } | |
d0191583 JM |
4720 | |
4721 | # Is the header present? | |
d911ec67 AK |
4722 | { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
4723 | $as_echo_n "checking sys/mkdev.h presence... " >&6; } | |
d0191583 JM |
4724 | cat >conftest.$ac_ext <<_ACEOF |
4725 | /* confdefs.h. */ | |
4726 | _ACEOF | |
4727 | cat confdefs.h >>conftest.$ac_ext | |
4728 | cat >>conftest.$ac_ext <<_ACEOF | |
4729 | /* end confdefs.h. */ | |
d911ec67 | 4730 | #include <sys/mkdev.h> |
d0191583 JM |
4731 | _ACEOF |
4732 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4733 | case "(($ac_try" in | |
4734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4735 | *) ac_try_echo=$ac_try;; | |
4736 | esac | |
ec6a6fbe AK |
4737 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4738 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4739 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4740 | ac_status=$? | |
4741 | grep -v '^ *+' conftest.er1 >conftest.err | |
4742 | rm -f conftest.er1 | |
4743 | cat conftest.err >&5 | |
ec6a6fbe | 4744 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4745 | (exit $ac_status); } >/dev/null && { |
4746 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4747 | test ! -s conftest.err | |
4748 | }; then | |
4749 | ac_header_preproc=yes | |
4750 | else | |
ec6a6fbe | 4751 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4752 | sed 's/^/| /' conftest.$ac_ext >&5 |
4753 | ||
4754 | ac_header_preproc=no | |
4755 | fi | |
4756 | ||
4757 | rm -f conftest.err conftest.$ac_ext | |
ec6a6fbe AK |
4758 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4759 | $as_echo "$ac_header_preproc" >&6; } | |
d0191583 JM |
4760 | |
4761 | # So? What about this header? | |
4762 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4763 | yes:no: ) | |
d911ec67 AK |
4764 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4765 | $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4766 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 | |
4767 | $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4768 | ac_header_preproc=yes |
4769 | ;; | |
4770 | no:yes:* ) | |
d911ec67 AK |
4771 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
4772 | $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} | |
4773 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 | |
4774 | $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} | |
4775 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 | |
4776 | $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} | |
4777 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4778 | $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4779 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 | |
4780 | $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} | |
4781 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 | |
4782 | $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4783 | |
4784 | ;; | |
4785 | esac | |
d911ec67 AK |
4786 | { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
4787 | $as_echo_n "checking for sys/mkdev.h... " >&6; } | |
4788 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then | |
ec6a6fbe | 4789 | $as_echo_n "(cached) " >&6 |
d0191583 | 4790 | else |
d911ec67 | 4791 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
a38df97f | 4792 | fi |
d911ec67 AK |
4793 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
4794 | $as_echo "$ac_cv_header_sys_mkdev_h" >&6; } | |
d0191583 JM |
4795 | |
4796 | fi | |
d911ec67 AK |
4797 | if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then |
4798 | ||
4799 | cat >>confdefs.h <<\_ACEOF | |
4800 | #define MAJOR_IN_MKDEV 1 | |
ad6254c5 | 4801 | _ACEOF |
a38df97f | 4802 | |
80992638 AK |
4803 | fi |
4804 | ||
80992638 | 4805 | |
5a52dca9 | 4806 | |
d911ec67 AK |
4807 | if test $ac_cv_header_sys_mkdev_h = no; then |
4808 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then | |
4809 | { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 | |
4810 | $as_echo_n "checking for sys/sysmacros.h... " >&6; } | |
4811 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then | |
ec6a6fbe | 4812 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4813 | fi |
d911ec67 AK |
4814 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
4815 | $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; } | |
ad6254c5 AK |
4816 | else |
4817 | # Is the header compilable? | |
d911ec67 AK |
4818 | { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
4819 | $as_echo_n "checking sys/sysmacros.h usability... " >&6; } | |
ad6254c5 | 4820 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4821 | /* confdefs.h. */ |
4822 | _ACEOF | |
4823 | cat confdefs.h >>conftest.$ac_ext | |
4824 | cat >>conftest.$ac_ext <<_ACEOF | |
4825 | /* end confdefs.h. */ | |
4826 | $ac_includes_default | |
d911ec67 | 4827 | #include <sys/sysmacros.h> |
ad6254c5 AK |
4828 | _ACEOF |
4829 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4830 | if { (ac_try="$ac_compile" |
4831 | case "(($ac_try" in | |
4832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4833 | *) ac_try_echo=$ac_try;; | |
4834 | esac | |
ec6a6fbe AK |
4835 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4836 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4837 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4838 | ac_status=$? |
8a2fc586 AK |
4839 | grep -v '^ *+' conftest.er1 >conftest.err |
4840 | rm -f conftest.er1 | |
4841 | cat conftest.err >&5 | |
ec6a6fbe | 4842 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4843 | (exit $ac_status); } && { |
4844 | test -z "$ac_c_werror_flag" || | |
4845 | test ! -s conftest.err | |
4846 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4847 | ac_header_compiler=yes |
4848 | else | |
ec6a6fbe | 4849 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4850 | sed 's/^/| /' conftest.$ac_ext >&5 |
4851 | ||
4852 | ac_header_compiler=no | |
4853 | fi | |
4854 | ||
4855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4856 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4857 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4858 | |
4859 | # Is the header present? | |
d911ec67 AK |
4860 | { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
4861 | $as_echo_n "checking sys/sysmacros.h presence... " >&6; } | |
ad6254c5 | 4862 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4863 | /* confdefs.h. */ |
4864 | _ACEOF | |
4865 | cat confdefs.h >>conftest.$ac_ext | |
4866 | cat >>conftest.$ac_ext <<_ACEOF | |
4867 | /* end confdefs.h. */ | |
d911ec67 | 4868 | #include <sys/sysmacros.h> |
ad6254c5 | 4869 | _ACEOF |
7a197a62 AK |
4870 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4871 | case "(($ac_try" in | |
4872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4873 | *) ac_try_echo=$ac_try;; | |
4874 | esac | |
ec6a6fbe AK |
4875 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4876 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4877 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4878 | ac_status=$? |
4879 | grep -v '^ *+' conftest.er1 >conftest.err | |
4880 | rm -f conftest.er1 | |
4881 | cat conftest.err >&5 | |
ec6a6fbe | 4882 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4883 | (exit $ac_status); } >/dev/null && { |
4884 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4885 | test ! -s conftest.err | |
4886 | }; then | |
ad6254c5 AK |
4887 | ac_header_preproc=yes |
4888 | else | |
ec6a6fbe | 4889 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4890 | sed 's/^/| /' conftest.$ac_ext >&5 |
4891 | ||
4892 | ac_header_preproc=no | |
4893 | fi | |
7a197a62 | 4894 | |
ad6254c5 | 4895 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
4896 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4897 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4898 | |
4899 | # So? What about this header? | |
8a2fc586 AK |
4900 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4901 | yes:no: ) | |
d911ec67 AK |
4902 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4903 | $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4904 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 | |
4905 | $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4906 | ac_header_preproc=yes |
ad6254c5 | 4907 | ;; |
8a2fc586 | 4908 | no:yes:* ) |
d911ec67 AK |
4909 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
4910 | $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} | |
4911 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 | |
4912 | $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} | |
4913 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 | |
4914 | $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} | |
4915 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4916 | $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4917 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 | |
4918 | $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} | |
4919 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 | |
4920 | $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4921 | |
ad6254c5 AK |
4922 | ;; |
4923 | esac | |
d911ec67 AK |
4924 | { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
4925 | $as_echo_n "checking for sys/sysmacros.h... " >&6; } | |
4926 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then | |
ec6a6fbe | 4927 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4928 | else |
d911ec67 | 4929 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
b896caa1 | 4930 | fi |
d911ec67 AK |
4931 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
4932 | $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; } | |
ad6254c5 AK |
4933 | |
4934 | fi | |
d911ec67 AK |
4935 | if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then |
4936 | ||
4937 | cat >>confdefs.h <<\_ACEOF | |
4938 | #define MAJOR_IN_SYSMACROS 1 | |
ad6254c5 | 4939 | _ACEOF |
b896caa1 | 4940 | |
80992638 AK |
4941 | fi |
4942 | ||
d8ac0fbc | 4943 | |
d911ec67 AK |
4944 | fi |
4945 | fi | |
d8ac0fbc | 4946 | |
d911ec67 AK |
4947 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4948 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4949 | if test "${ac_cv_header_stdc+set}" = set; then | |
ec6a6fbe | 4950 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4951 | else |
d911ec67 | 4952 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4953 | /* confdefs.h. */ |
4954 | _ACEOF | |
4955 | cat confdefs.h >>conftest.$ac_ext | |
4956 | cat >>conftest.$ac_ext <<_ACEOF | |
4957 | /* end confdefs.h. */ | |
d911ec67 AK |
4958 | #include <stdlib.h> |
4959 | #include <stdarg.h> | |
4960 | #include <string.h> | |
4961 | #include <float.h> | |
4962 | ||
4963 | int | |
4964 | main () | |
4965 | { | |
4966 | ||
4967 | ; | |
4968 | return 0; | |
4969 | } | |
ad6254c5 AK |
4970 | _ACEOF |
4971 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4972 | if { (ac_try="$ac_compile" |
4973 | case "(($ac_try" in | |
4974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4975 | *) ac_try_echo=$ac_try;; | |
4976 | esac | |
ec6a6fbe AK |
4977 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4978 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4979 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4980 | ac_status=$? |
8a2fc586 AK |
4981 | grep -v '^ *+' conftest.er1 >conftest.err |
4982 | rm -f conftest.er1 | |
4983 | cat conftest.err >&5 | |
ec6a6fbe | 4984 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4985 | (exit $ac_status); } && { |
4986 | test -z "$ac_c_werror_flag" || | |
4987 | test ! -s conftest.err | |
4988 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 4989 | ac_cv_header_stdc=yes |
ad6254c5 | 4990 | else |
ec6a6fbe | 4991 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4992 | sed 's/^/| /' conftest.$ac_ext >&5 |
4993 | ||
d911ec67 | 4994 | ac_cv_header_stdc=no |
ad6254c5 | 4995 | fi |
7a197a62 AK |
4996 | |
4997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 4998 | |
d911ec67 AK |
4999 | if test $ac_cv_header_stdc = yes; then |
5000 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5001 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5002 | /* confdefs.h. */ |
5003 | _ACEOF | |
5004 | cat confdefs.h >>conftest.$ac_ext | |
5005 | cat >>conftest.$ac_ext <<_ACEOF | |
5006 | /* end confdefs.h. */ | |
d911ec67 AK |
5007 | #include <string.h> |
5008 | ||
ad6254c5 | 5009 | _ACEOF |
d911ec67 AK |
5010 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5011 | $EGREP "memchr" >/dev/null 2>&1; then | |
5012 | : | |
5013 | else | |
5014 | ac_cv_header_stdc=no | |
5015 | fi | |
5016 | rm -f conftest* | |
5017 | ||
5018 | fi | |
5019 | ||
5020 | if test $ac_cv_header_stdc = yes; then | |
5021 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5022 | cat >conftest.$ac_ext <<_ACEOF | |
5023 | /* confdefs.h. */ | |
5024 | _ACEOF | |
5025 | cat confdefs.h >>conftest.$ac_ext | |
5026 | cat >>conftest.$ac_ext <<_ACEOF | |
5027 | /* end confdefs.h. */ | |
5028 | #include <stdlib.h> | |
5029 | ||
5030 | _ACEOF | |
5031 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5032 | $EGREP "free" >/dev/null 2>&1; then | |
5033 | : | |
5034 | else | |
5035 | ac_cv_header_stdc=no | |
5036 | fi | |
5037 | rm -f conftest* | |
5038 | ||
5039 | fi | |
5040 | ||
5041 | if test $ac_cv_header_stdc = yes; then | |
5042 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5043 | if test "$cross_compiling" = yes; then | |
5044 | : | |
5045 | else | |
5046 | cat >conftest.$ac_ext <<_ACEOF | |
5047 | /* confdefs.h. */ | |
5048 | _ACEOF | |
5049 | cat confdefs.h >>conftest.$ac_ext | |
5050 | cat >>conftest.$ac_ext <<_ACEOF | |
5051 | /* end confdefs.h. */ | |
5052 | #include <ctype.h> | |
5053 | #include <stdlib.h> | |
5054 | #if ((' ' & 0x0FF) == 0x020) | |
5055 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5056 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5057 | #else | |
5058 | # define ISLOWER(c) \ | |
5059 | (('a' <= (c) && (c) <= 'i') \ | |
5060 | || ('j' <= (c) && (c) <= 'r') \ | |
5061 | || ('s' <= (c) && (c) <= 'z')) | |
5062 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5063 | #endif | |
5064 | ||
5065 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5066 | int | |
5067 | main () | |
5068 | { | |
5069 | int i; | |
5070 | for (i = 0; i < 256; i++) | |
5071 | if (XOR (islower (i), ISLOWER (i)) | |
5072 | || toupper (i) != TOUPPER (i)) | |
5073 | return 2; | |
5074 | return 0; | |
5075 | } | |
5076 | _ACEOF | |
5077 | rm -f conftest$ac_exeext | |
5078 | if { (ac_try="$ac_link" | |
7a197a62 AK |
5079 | case "(($ac_try" in |
5080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5081 | *) ac_try_echo=$ac_try;; | |
5082 | esac | |
ec6a6fbe AK |
5083 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5084 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 AK |
5085 | (eval "$ac_link") 2>&5 |
5086 | ac_status=$? | |
5087 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5088 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5089 | { (case "(($ac_try" in | |
5090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5091 | *) ac_try_echo=$ac_try;; | |
5092 | esac | |
5093 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5094 | $as_echo "$ac_try_echo") >&5 | |
5095 | (eval "$ac_try") 2>&5 | |
5096 | ac_status=$? | |
5097 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5098 | (exit $ac_status); }; }; then | |
5099 | : | |
5100 | else | |
5101 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
5102 | $as_echo "$as_me: failed program was:" >&5 | |
5103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5104 | ||
5105 | ( exit $ac_status ) | |
5106 | ac_cv_header_stdc=no | |
5107 | fi | |
5108 | rm -rf conftest.dSYM | |
5109 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5110 | fi | |
5111 | ||
5112 | ||
5113 | fi | |
5114 | fi | |
5115 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
5116 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5117 | if test $ac_cv_header_stdc = yes; then | |
5118 | ||
5119 | cat >>confdefs.h <<\_ACEOF | |
5120 | #define STDC_HEADERS 1 | |
5121 | _ACEOF | |
5122 | ||
5123 | fi | |
5124 | ||
5125 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | |
5126 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
5127 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
5128 | $as_echo_n "(cached) " >&6 | |
5129 | else | |
5130 | cat >conftest.$ac_ext <<_ACEOF | |
5131 | /* confdefs.h. */ | |
5132 | _ACEOF | |
5133 | cat confdefs.h >>conftest.$ac_ext | |
5134 | cat >>conftest.$ac_ext <<_ACEOF | |
5135 | /* end confdefs.h. */ | |
5136 | #include <sys/types.h> | |
5137 | #include <sys/wait.h> | |
5138 | #ifndef WEXITSTATUS | |
5139 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | |
5140 | #endif | |
5141 | #ifndef WIFEXITED | |
5142 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
5143 | #endif | |
5144 | ||
5145 | int | |
5146 | main () | |
5147 | { | |
5148 | int s; | |
5149 | wait (&s); | |
5150 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
5151 | ; | |
5152 | return 0; | |
5153 | } | |
5154 | _ACEOF | |
5155 | rm -f conftest.$ac_objext | |
5156 | if { (ac_try="$ac_compile" | |
5157 | case "(($ac_try" in | |
5158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5159 | *) ac_try_echo=$ac_try;; | |
5160 | esac | |
5161 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5162 | $as_echo "$ac_try_echo") >&5 | |
5163 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 AK |
5164 | ac_status=$? |
5165 | grep -v '^ *+' conftest.er1 >conftest.err | |
5166 | rm -f conftest.er1 | |
5167 | cat conftest.err >&5 | |
ec6a6fbe | 5168 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d911ec67 AK |
5169 | (exit $ac_status); } && { |
5170 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 5171 | test ! -s conftest.err |
d911ec67 AK |
5172 | } && test -s conftest.$ac_objext; then |
5173 | ac_cv_header_sys_wait_h=yes | |
ad6254c5 | 5174 | else |
ec6a6fbe | 5175 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5176 | sed 's/^/| /' conftest.$ac_ext >&5 |
5177 | ||
d911ec67 | 5178 | ac_cv_header_sys_wait_h=no |
ad6254c5 | 5179 | fi |
7a197a62 | 5180 | |
d911ec67 AK |
5181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5182 | fi | |
5183 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 | |
5184 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
5185 | if test $ac_cv_header_sys_wait_h = yes; then | |
5186 | ||
5187 | cat >>confdefs.h <<\_ACEOF | |
5188 | #define HAVE_SYS_WAIT_H 1 | |
5189 | _ACEOF | |
5190 | ||
5191 | fi | |
5192 | ||
5193 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
5194 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
5195 | if test "${ac_cv_header_time+set}" = set; then | |
5196 | $as_echo_n "(cached) " >&6 | |
5197 | else | |
5198 | cat >conftest.$ac_ext <<_ACEOF | |
5199 | /* confdefs.h. */ | |
5200 | _ACEOF | |
5201 | cat confdefs.h >>conftest.$ac_ext | |
5202 | cat >>conftest.$ac_ext <<_ACEOF | |
5203 | /* end confdefs.h. */ | |
5204 | #include <sys/types.h> | |
5205 | #include <sys/time.h> | |
5206 | #include <time.h> | |
5207 | ||
5208 | int | |
5209 | main () | |
5210 | { | |
5211 | if ((struct tm *) 0) | |
5212 | return 0; | |
5213 | ; | |
5214 | return 0; | |
5215 | } | |
5216 | _ACEOF | |
5217 | rm -f conftest.$ac_objext | |
5218 | if { (ac_try="$ac_compile" | |
5219 | case "(($ac_try" in | |
5220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5221 | *) ac_try_echo=$ac_try;; | |
5222 | esac | |
5223 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5224 | $as_echo "$ac_try_echo") >&5 | |
5225 | (eval "$ac_compile") 2>conftest.er1 | |
5226 | ac_status=$? | |
5227 | grep -v '^ *+' conftest.er1 >conftest.err | |
5228 | rm -f conftest.er1 | |
5229 | cat conftest.err >&5 | |
5230 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5231 | (exit $ac_status); } && { | |
5232 | test -z "$ac_c_werror_flag" || | |
5233 | test ! -s conftest.err | |
5234 | } && test -s conftest.$ac_objext; then | |
5235 | ac_cv_header_time=yes | |
5236 | else | |
5237 | $as_echo "$as_me: failed program was:" >&5 | |
5238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5239 | ||
5240 | ac_cv_header_time=no | |
5241 | fi | |
5242 | ||
5243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5244 | fi | |
5245 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | |
5246 | $as_echo "$ac_cv_header_time" >&6; } | |
5247 | if test $ac_cv_header_time = yes; then | |
5248 | ||
5249 | cat >>confdefs.h <<\_ACEOF | |
5250 | #define TIME_WITH_SYS_TIME 1 | |
5251 | _ACEOF | |
5252 | ||
5253 | fi | |
5254 | ||
5255 | ||
5256 | ||
5257 | ||
5258 | ||
5259 | ||
5260 | ||
5261 | ||
5262 | ||
5263 | ||
5264 | ||
5265 | ||
5266 | ||
5267 | ||
5268 | ||
5269 | ||
5270 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
5271 | langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \ | |
5272 | sys/wait.h time.h | |
5273 | do | |
5274 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5275 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5276 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5277 | $as_echo_n "checking for $ac_header... " >&6; } | |
5278 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5279 | $as_echo_n "(cached) " >&6 | |
5280 | fi | |
5281 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5282 | $as_echo "$as_val"'` | |
5283 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5284 | $as_echo "$ac_res" >&6; } | |
5285 | else | |
5286 | # Is the header compilable? | |
5287 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5288 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5289 | cat >conftest.$ac_ext <<_ACEOF | |
5290 | /* confdefs.h. */ | |
5291 | _ACEOF | |
5292 | cat confdefs.h >>conftest.$ac_ext | |
5293 | cat >>conftest.$ac_ext <<_ACEOF | |
5294 | /* end confdefs.h. */ | |
5295 | $ac_includes_default | |
5296 | #include <$ac_header> | |
5297 | _ACEOF | |
5298 | rm -f conftest.$ac_objext | |
5299 | if { (ac_try="$ac_compile" | |
5300 | case "(($ac_try" in | |
5301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5302 | *) ac_try_echo=$ac_try;; | |
5303 | esac | |
5304 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5305 | $as_echo "$ac_try_echo") >&5 | |
5306 | (eval "$ac_compile") 2>conftest.er1 | |
5307 | ac_status=$? | |
5308 | grep -v '^ *+' conftest.er1 >conftest.err | |
5309 | rm -f conftest.er1 | |
5310 | cat conftest.err >&5 | |
5311 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5312 | (exit $ac_status); } && { | |
5313 | test -z "$ac_c_werror_flag" || | |
5314 | test ! -s conftest.err | |
5315 | } && test -s conftest.$ac_objext; then | |
5316 | ac_header_compiler=yes | |
5317 | else | |
5318 | $as_echo "$as_me: failed program was:" >&5 | |
5319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5320 | ||
5321 | ac_header_compiler=no | |
5322 | fi | |
5323 | ||
5324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5325 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5326 | $as_echo "$ac_header_compiler" >&6; } | |
5327 | ||
5328 | # Is the header present? | |
5329 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5330 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5331 | cat >conftest.$ac_ext <<_ACEOF | |
5332 | /* confdefs.h. */ | |
5333 | _ACEOF | |
5334 | cat confdefs.h >>conftest.$ac_ext | |
5335 | cat >>conftest.$ac_ext <<_ACEOF | |
5336 | /* end confdefs.h. */ | |
5337 | #include <$ac_header> | |
5338 | _ACEOF | |
5339 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5340 | case "(($ac_try" in | |
5341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5342 | *) ac_try_echo=$ac_try;; | |
5343 | esac | |
5344 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5345 | $as_echo "$ac_try_echo") >&5 | |
5346 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5347 | ac_status=$? | |
5348 | grep -v '^ *+' conftest.er1 >conftest.err | |
5349 | rm -f conftest.er1 | |
5350 | cat conftest.err >&5 | |
5351 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5352 | (exit $ac_status); } >/dev/null && { | |
5353 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5354 | test ! -s conftest.err | |
5355 | }; then | |
5356 | ac_header_preproc=yes | |
5357 | else | |
5358 | $as_echo "$as_me: failed program was:" >&5 | |
5359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5360 | ||
5361 | ac_header_preproc=no | |
5362 | fi | |
5363 | ||
5364 | rm -f conftest.err conftest.$ac_ext | |
5365 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5366 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5367 | |
5368 | # So? What about this header? | |
8a2fc586 AK |
5369 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5370 | yes:no: ) | |
ec6a6fbe AK |
5371 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5372 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5373 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5374 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5375 | ac_header_preproc=yes |
ad6254c5 | 5376 | ;; |
8a2fc586 | 5377 | no:yes:* ) |
ec6a6fbe AK |
5378 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5379 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5380 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5381 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5382 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5383 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5384 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5385 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5386 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5387 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5388 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5389 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5390 | |
ad6254c5 AK |
5391 | ;; |
5392 | esac | |
d911ec67 AK |
5393 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5394 | $as_echo_n "checking for $ac_header... " >&6; } | |
5395 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5396 | $as_echo_n "(cached) " >&6 | |
5397 | else | |
5398 | eval "$as_ac_Header=\$ac_header_preproc" | |
5399 | fi | |
5400 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5401 | $as_echo "$as_val"'` | |
5402 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5403 | $as_echo "$ac_res" >&6; } | |
5404 | ||
5405 | fi | |
5406 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5407 | $as_echo "$as_val"'` | |
5408 | if test "x$as_val" = x""yes; then | |
5409 | cat >>confdefs.h <<_ACEOF | |
5410 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5411 | _ACEOF | |
5412 | ||
5413 | else | |
5414 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5415 | $as_echo "$as_me: error: bailing out" >&2;} | |
5416 | { (exit 1); exit 1; }; } | |
5417 | fi | |
5418 | ||
5419 | done | |
5420 | ||
5421 | ||
5422 | case "$host_os" in | |
5423 | linux*) | |
5424 | ||
5425 | ||
5426 | ||
5427 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
5428 | do | |
5429 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5430 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5431 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5432 | $as_echo_n "checking for $ac_header... " >&6; } | |
5433 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5434 | $as_echo_n "(cached) " >&6 | |
5435 | fi | |
5436 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5437 | $as_echo "$as_val"'` | |
5438 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5439 | $as_echo "$ac_res" >&6; } | |
5440 | else | |
5441 | # Is the header compilable? | |
5442 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5443 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5444 | cat >conftest.$ac_ext <<_ACEOF | |
5445 | /* confdefs.h. */ | |
5446 | _ACEOF | |
5447 | cat confdefs.h >>conftest.$ac_ext | |
5448 | cat >>conftest.$ac_ext <<_ACEOF | |
5449 | /* end confdefs.h. */ | |
5450 | $ac_includes_default | |
5451 | #include <$ac_header> | |
5452 | _ACEOF | |
5453 | rm -f conftest.$ac_objext | |
5454 | if { (ac_try="$ac_compile" | |
5455 | case "(($ac_try" in | |
5456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5457 | *) ac_try_echo=$ac_try;; | |
5458 | esac | |
5459 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5460 | $as_echo "$ac_try_echo") >&5 | |
5461 | (eval "$ac_compile") 2>conftest.er1 | |
5462 | ac_status=$? | |
5463 | grep -v '^ *+' conftest.er1 >conftest.err | |
5464 | rm -f conftest.er1 | |
5465 | cat conftest.err >&5 | |
5466 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5467 | (exit $ac_status); } && { | |
5468 | test -z "$ac_c_werror_flag" || | |
5469 | test ! -s conftest.err | |
5470 | } && test -s conftest.$ac_objext; then | |
5471 | ac_header_compiler=yes | |
5472 | else | |
5473 | $as_echo "$as_me: failed program was:" >&5 | |
5474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5475 | ||
5476 | ac_header_compiler=no | |
5477 | fi | |
5478 | ||
5479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5480 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5481 | $as_echo "$ac_header_compiler" >&6; } | |
5482 | ||
5483 | # Is the header present? | |
5484 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5485 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5486 | cat >conftest.$ac_ext <<_ACEOF | |
5487 | /* confdefs.h. */ | |
5488 | _ACEOF | |
5489 | cat confdefs.h >>conftest.$ac_ext | |
5490 | cat >>conftest.$ac_ext <<_ACEOF | |
5491 | /* end confdefs.h. */ | |
5492 | #include <$ac_header> | |
5493 | _ACEOF | |
5494 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5495 | case "(($ac_try" in | |
5496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5497 | *) ac_try_echo=$ac_try;; | |
5498 | esac | |
5499 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5500 | $as_echo "$ac_try_echo") >&5 | |
5501 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5502 | ac_status=$? | |
5503 | grep -v '^ *+' conftest.er1 >conftest.err | |
5504 | rm -f conftest.er1 | |
5505 | cat conftest.err >&5 | |
5506 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5507 | (exit $ac_status); } >/dev/null && { | |
5508 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5509 | test ! -s conftest.err | |
5510 | }; then | |
5511 | ac_header_preproc=yes | |
5512 | else | |
5513 | $as_echo "$as_me: failed program was:" >&5 | |
5514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5515 | ||
5516 | ac_header_preproc=no | |
5517 | fi | |
5518 | ||
5519 | rm -f conftest.err conftest.$ac_ext | |
5520 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5521 | $as_echo "$ac_header_preproc" >&6; } | |
5522 | ||
5523 | # So? What about this header? | |
5524 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5525 | yes:no: ) | |
5526 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5527 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5528 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5529 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5530 | ac_header_preproc=yes | |
5531 | ;; | |
5532 | no:yes:* ) | |
5533 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5534 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5535 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5536 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5537 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5538 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5539 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5540 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5541 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5542 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5543 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5544 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5545 | ||
5546 | ;; | |
5547 | esac | |
5548 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5549 | $as_echo_n "checking for $ac_header... " >&6; } | |
5550 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5551 | $as_echo_n "(cached) " >&6 | |
5552 | else | |
5553 | eval "$as_ac_Header=\$ac_header_preproc" | |
5554 | fi | |
5555 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5556 | $as_echo "$as_val"'` | |
5557 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5558 | $as_echo "$ac_res" >&6; } | |
5559 | ||
5560 | fi | |
5561 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5562 | $as_echo "$as_val"'` | |
5563 | if test "x$as_val" = x""yes; then | |
5564 | cat >>confdefs.h <<_ACEOF | |
5565 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5566 | _ACEOF | |
5567 | ||
5568 | else | |
5569 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5570 | $as_echo "$as_me: error: bailing out" >&2;} | |
5571 | { (exit 1); exit 1; }; } | |
5572 | fi | |
5573 | ||
5574 | done | |
5575 | ;; | |
5576 | darwin*) | |
5577 | ||
5578 | ||
5579 | for ac_header in machine/endian.h sys/disk.h | |
5580 | do | |
5581 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5582 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5583 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5584 | $as_echo_n "checking for $ac_header... " >&6; } | |
5585 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5586 | $as_echo_n "(cached) " >&6 | |
5587 | fi | |
5588 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5589 | $as_echo "$as_val"'` | |
5590 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5591 | $as_echo "$ac_res" >&6; } | |
5592 | else | |
5593 | # Is the header compilable? | |
5594 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5595 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5596 | cat >conftest.$ac_ext <<_ACEOF | |
5597 | /* confdefs.h. */ | |
5598 | _ACEOF | |
5599 | cat confdefs.h >>conftest.$ac_ext | |
5600 | cat >>conftest.$ac_ext <<_ACEOF | |
5601 | /* end confdefs.h. */ | |
5602 | $ac_includes_default | |
5603 | #include <$ac_header> | |
5604 | _ACEOF | |
5605 | rm -f conftest.$ac_objext | |
5606 | if { (ac_try="$ac_compile" | |
5607 | case "(($ac_try" in | |
5608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5609 | *) ac_try_echo=$ac_try;; | |
5610 | esac | |
5611 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5612 | $as_echo "$ac_try_echo") >&5 | |
5613 | (eval "$ac_compile") 2>conftest.er1 | |
5614 | ac_status=$? | |
5615 | grep -v '^ *+' conftest.er1 >conftest.err | |
5616 | rm -f conftest.er1 | |
5617 | cat conftest.err >&5 | |
5618 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5619 | (exit $ac_status); } && { | |
5620 | test -z "$ac_c_werror_flag" || | |
5621 | test ! -s conftest.err | |
5622 | } && test -s conftest.$ac_objext; then | |
5623 | ac_header_compiler=yes | |
5624 | else | |
5625 | $as_echo "$as_me: failed program was:" >&5 | |
5626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5627 | ||
5628 | ac_header_compiler=no | |
5629 | fi | |
5630 | ||
5631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5632 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5633 | $as_echo "$ac_header_compiler" >&6; } | |
5634 | ||
5635 | # Is the header present? | |
5636 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5637 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5638 | cat >conftest.$ac_ext <<_ACEOF | |
5639 | /* confdefs.h. */ | |
5640 | _ACEOF | |
5641 | cat confdefs.h >>conftest.$ac_ext | |
5642 | cat >>conftest.$ac_ext <<_ACEOF | |
5643 | /* end confdefs.h. */ | |
5644 | #include <$ac_header> | |
5645 | _ACEOF | |
5646 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5647 | case "(($ac_try" in | |
5648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5649 | *) ac_try_echo=$ac_try;; | |
5650 | esac | |
5651 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5652 | $as_echo "$ac_try_echo") >&5 | |
5653 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5654 | ac_status=$? | |
5655 | grep -v '^ *+' conftest.er1 >conftest.err | |
5656 | rm -f conftest.er1 | |
5657 | cat conftest.err >&5 | |
5658 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5659 | (exit $ac_status); } >/dev/null && { | |
5660 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5661 | test ! -s conftest.err | |
5662 | }; then | |
5663 | ac_header_preproc=yes | |
5664 | else | |
5665 | $as_echo "$as_me: failed program was:" >&5 | |
5666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5667 | ||
5668 | ac_header_preproc=no | |
5669 | fi | |
5670 | ||
5671 | rm -f conftest.err conftest.$ac_ext | |
5672 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5673 | $as_echo "$ac_header_preproc" >&6; } | |
5674 | ||
5675 | # So? What about this header? | |
5676 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5677 | yes:no: ) | |
5678 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5679 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5680 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5681 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5682 | ac_header_preproc=yes | |
5683 | ;; | |
5684 | no:yes:* ) | |
5685 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5686 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5687 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5688 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5689 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5690 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5691 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5692 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5693 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5694 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5695 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5696 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5697 | ||
5698 | ;; | |
5699 | esac | |
5700 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5701 | $as_echo_n "checking for $ac_header... " >&6; } | |
5702 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5703 | $as_echo_n "(cached) " >&6 | |
5704 | else | |
5705 | eval "$as_ac_Header=\$ac_header_preproc" | |
5706 | fi | |
5707 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5708 | $as_echo "$as_val"'` | |
5709 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5710 | $as_echo "$ac_res" >&6; } | |
5711 | ||
5712 | fi | |
5713 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5714 | $as_echo "$as_val"'` | |
5715 | if test "x$as_val" = x""yes; then | |
5716 | cat >>confdefs.h <<_ACEOF | |
5717 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5718 | _ACEOF | |
5719 | ||
5720 | else | |
5721 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5722 | $as_echo "$as_me: error: bailing out" >&2;} | |
5723 | { (exit 1); exit 1; }; } | |
5724 | fi | |
5725 | ||
5726 | done | |
5727 | ;; | |
5728 | esac | |
5729 | ||
5730 | ||
5731 | ||
5732 | ||
5733 | ||
5734 | ||
5735 | ||
5736 | ||
5737 | ||
5738 | ||
5739 | ||
5740 | ||
5741 | ||
5742 | ||
5743 | ||
5744 | ||
5745 | ||
5746 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
5747 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
5748 | sys/types.h unistd.h | |
5749 | do | |
5750 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5751 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5752 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5753 | $as_echo_n "checking for $ac_header... " >&6; } | |
5754 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5755 | $as_echo_n "(cached) " >&6 | |
5756 | fi | |
5757 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5758 | $as_echo "$as_val"'` | |
5759 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5760 | $as_echo "$ac_res" >&6; } | |
5761 | else | |
5762 | # Is the header compilable? | |
5763 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5764 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5765 | cat >conftest.$ac_ext <<_ACEOF | |
5766 | /* confdefs.h. */ | |
5767 | _ACEOF | |
5768 | cat confdefs.h >>conftest.$ac_ext | |
5769 | cat >>conftest.$ac_ext <<_ACEOF | |
5770 | /* end confdefs.h. */ | |
5771 | $ac_includes_default | |
5772 | #include <$ac_header> | |
5773 | _ACEOF | |
5774 | rm -f conftest.$ac_objext | |
5775 | if { (ac_try="$ac_compile" | |
5776 | case "(($ac_try" in | |
5777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5778 | *) ac_try_echo=$ac_try;; | |
5779 | esac | |
5780 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5781 | $as_echo "$ac_try_echo") >&5 | |
5782 | (eval "$ac_compile") 2>conftest.er1 | |
5783 | ac_status=$? | |
5784 | grep -v '^ *+' conftest.er1 >conftest.err | |
5785 | rm -f conftest.er1 | |
5786 | cat conftest.err >&5 | |
5787 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5788 | (exit $ac_status); } && { | |
5789 | test -z "$ac_c_werror_flag" || | |
5790 | test ! -s conftest.err | |
5791 | } && test -s conftest.$ac_objext; then | |
5792 | ac_header_compiler=yes | |
5793 | else | |
5794 | $as_echo "$as_me: failed program was:" >&5 | |
5795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5796 | ||
5797 | ac_header_compiler=no | |
5798 | fi | |
5799 | ||
5800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5801 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5802 | $as_echo "$ac_header_compiler" >&6; } | |
5803 | ||
5804 | # Is the header present? | |
5805 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5806 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5807 | cat >conftest.$ac_ext <<_ACEOF | |
5808 | /* confdefs.h. */ | |
5809 | _ACEOF | |
5810 | cat confdefs.h >>conftest.$ac_ext | |
5811 | cat >>conftest.$ac_ext <<_ACEOF | |
5812 | /* end confdefs.h. */ | |
5813 | #include <$ac_header> | |
5814 | _ACEOF | |
5815 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5816 | case "(($ac_try" in | |
5817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5818 | *) ac_try_echo=$ac_try;; | |
5819 | esac | |
5820 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5821 | $as_echo "$ac_try_echo") >&5 | |
5822 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5823 | ac_status=$? | |
5824 | grep -v '^ *+' conftest.er1 >conftest.err | |
5825 | rm -f conftest.er1 | |
5826 | cat conftest.err >&5 | |
5827 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5828 | (exit $ac_status); } >/dev/null && { | |
5829 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5830 | test ! -s conftest.err | |
5831 | }; then | |
5832 | ac_header_preproc=yes | |
5833 | else | |
5834 | $as_echo "$as_me: failed program was:" >&5 | |
5835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5836 | ||
5837 | ac_header_preproc=no | |
5838 | fi | |
5839 | ||
5840 | rm -f conftest.err conftest.$ac_ext | |
5841 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5842 | $as_echo "$ac_header_preproc" >&6; } | |
5843 | ||
5844 | # So? What about this header? | |
5845 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5846 | yes:no: ) | |
5847 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5848 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5849 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5850 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5851 | ac_header_preproc=yes | |
5852 | ;; | |
5853 | no:yes:* ) | |
5854 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5855 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5856 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5857 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5858 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5859 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5860 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5861 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5862 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5863 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5864 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5865 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5866 | ||
5867 | ;; | |
5868 | esac | |
5869 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5870 | $as_echo_n "checking for $ac_header... " >&6; } | |
5871 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5872 | $as_echo_n "(cached) " >&6 | |
5873 | else | |
5874 | eval "$as_ac_Header=\$ac_header_preproc" | |
5875 | fi | |
5876 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5877 | $as_echo "$as_val"'` | |
5878 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5879 | $as_echo "$ac_res" >&6; } | |
5880 | ||
5881 | fi | |
5882 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5883 | $as_echo "$as_val"'` | |
5884 | if test "x$as_val" = x""yes; then | |
5885 | cat >>confdefs.h <<_ACEOF | |
5886 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5887 | _ACEOF | |
5888 | ||
5889 | else | |
5890 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5891 | $as_echo "$as_me: error: bailing out" >&2;} | |
5892 | { (exit 1); exit 1; }; } | |
5893 | fi | |
5894 | ||
5895 | done | |
5896 | ||
5897 | ||
5898 | ||
5899 | for ac_header in termios.h sys/statvfs.h | |
5900 | do | |
5901 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5902 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5903 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5904 | $as_echo_n "checking for $ac_header... " >&6; } | |
5905 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5906 | $as_echo_n "(cached) " >&6 | |
5907 | fi | |
5908 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5909 | $as_echo "$as_val"'` | |
5910 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5911 | $as_echo "$ac_res" >&6; } | |
5912 | else | |
5913 | # Is the header compilable? | |
5914 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5915 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5916 | cat >conftest.$ac_ext <<_ACEOF | |
5917 | /* confdefs.h. */ | |
5918 | _ACEOF | |
5919 | cat confdefs.h >>conftest.$ac_ext | |
5920 | cat >>conftest.$ac_ext <<_ACEOF | |
5921 | /* end confdefs.h. */ | |
5922 | $ac_includes_default | |
5923 | #include <$ac_header> | |
5924 | _ACEOF | |
5925 | rm -f conftest.$ac_objext | |
5926 | if { (ac_try="$ac_compile" | |
5927 | case "(($ac_try" in | |
5928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5929 | *) ac_try_echo=$ac_try;; | |
5930 | esac | |
5931 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5932 | $as_echo "$ac_try_echo") >&5 | |
5933 | (eval "$ac_compile") 2>conftest.er1 | |
5934 | ac_status=$? | |
5935 | grep -v '^ *+' conftest.er1 >conftest.err | |
5936 | rm -f conftest.er1 | |
5937 | cat conftest.err >&5 | |
5938 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5939 | (exit $ac_status); } && { | |
5940 | test -z "$ac_c_werror_flag" || | |
5941 | test ! -s conftest.err | |
5942 | } && test -s conftest.$ac_objext; then | |
5943 | ac_header_compiler=yes | |
5944 | else | |
5945 | $as_echo "$as_me: failed program was:" >&5 | |
5946 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5947 | ||
5948 | ac_header_compiler=no | |
5949 | fi | |
5950 | ||
5951 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5952 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5953 | $as_echo "$ac_header_compiler" >&6; } | |
5954 | ||
5955 | # Is the header present? | |
5956 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5957 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5958 | cat >conftest.$ac_ext <<_ACEOF | |
5959 | /* confdefs.h. */ | |
5960 | _ACEOF | |
5961 | cat confdefs.h >>conftest.$ac_ext | |
5962 | cat >>conftest.$ac_ext <<_ACEOF | |
5963 | /* end confdefs.h. */ | |
5964 | #include <$ac_header> | |
5965 | _ACEOF | |
5966 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5967 | case "(($ac_try" in | |
5968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5969 | *) ac_try_echo=$ac_try;; | |
5970 | esac | |
5971 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5972 | $as_echo "$ac_try_echo") >&5 | |
5973 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5974 | ac_status=$? | |
5975 | grep -v '^ *+' conftest.er1 >conftest.err | |
5976 | rm -f conftest.er1 | |
5977 | cat conftest.err >&5 | |
5978 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5979 | (exit $ac_status); } >/dev/null && { | |
5980 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5981 | test ! -s conftest.err | |
5982 | }; then | |
5983 | ac_header_preproc=yes | |
5984 | else | |
5985 | $as_echo "$as_me: failed program was:" >&5 | |
5986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5987 | ||
5988 | ac_header_preproc=no | |
5989 | fi | |
5990 | ||
5991 | rm -f conftest.err conftest.$ac_ext | |
5992 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5993 | $as_echo "$ac_header_preproc" >&6; } | |
5994 | ||
5995 | # So? What about this header? | |
5996 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5997 | yes:no: ) | |
5998 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5999 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6000 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6001 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6002 | ac_header_preproc=yes | |
6003 | ;; | |
6004 | no:yes:* ) | |
6005 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6006 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6007 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6008 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6009 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6010 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6011 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6012 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6013 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6014 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6015 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6016 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6017 | ||
6018 | ;; | |
6019 | esac | |
6020 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6021 | $as_echo_n "checking for $ac_header... " >&6; } | |
6022 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6023 | $as_echo_n "(cached) " >&6 | |
6024 | else | |
6025 | eval "$as_ac_Header=\$ac_header_preproc" | |
6026 | fi | |
6027 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
6028 | $as_echo "$as_val"'` | |
6029 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6030 | $as_echo "$ac_res" >&6; } | |
6031 | ||
6032 | fi | |
6033 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
6034 | $as_echo "$as_val"'` | |
6035 | if test "x$as_val" = x""yes; then | |
6036 | cat >>confdefs.h <<_ACEOF | |
6037 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6038 | _ACEOF | |
6039 | ||
6040 | fi | |
6041 | ||
6042 | done | |
6043 | ||
6044 | ||
6045 | ################################################################################ | |
6046 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
6047 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
6048 | if test "${ac_cv_c_const+set}" = set; then | |
6049 | $as_echo_n "(cached) " >&6 | |
6050 | else | |
6051 | cat >conftest.$ac_ext <<_ACEOF | |
6052 | /* confdefs.h. */ | |
6053 | _ACEOF | |
6054 | cat confdefs.h >>conftest.$ac_ext | |
6055 | cat >>conftest.$ac_ext <<_ACEOF | |
6056 | /* end confdefs.h. */ | |
6057 | ||
6058 | int | |
6059 | main () | |
6060 | { | |
6061 | /* FIXME: Include the comments suggested by Paul. */ | |
6062 | #ifndef __cplusplus | |
6063 | /* Ultrix mips cc rejects this. */ | |
6064 | typedef int charset[2]; | |
6065 | const charset cs; | |
6066 | /* SunOS 4.1.1 cc rejects this. */ | |
6067 | char const *const *pcpcc; | |
6068 | char **ppc; | |
6069 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
6070 | struct point {int x, y;}; | |
6071 | static struct point const zero = {0,0}; | |
6072 | /* AIX XL C 1.02.0.0 rejects this. | |
6073 | It does not let you subtract one const X* pointer from another in | |
6074 | an arm of an if-expression whose if-part is not a constant | |
6075 | expression */ | |
6076 | const char *g = "string"; | |
6077 | pcpcc = &g + (g ? g-g : 0); | |
6078 | /* HPUX 7.0 cc rejects these. */ | |
6079 | ++pcpcc; | |
6080 | ppc = (char**) pcpcc; | |
6081 | pcpcc = (char const *const *) ppc; | |
6082 | { /* SCO 3.2v4 cc rejects this. */ | |
6083 | char *t; | |
6084 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
6085 | ||
6086 | *t++ = 0; | |
6087 | if (s) return 0; | |
6088 | } | |
6089 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
6090 | int x[] = {25, 17}; | |
6091 | const int *foo = &x[0]; | |
6092 | ++foo; | |
6093 | } | |
6094 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
6095 | typedef const int *iptr; | |
6096 | iptr p = 0; | |
6097 | ++p; | |
6098 | } | |
6099 | { /* AIX XL C 1.02.0.0 rejects this saying | |
6100 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
6101 | struct s { int j; const int *ap[3]; }; | |
6102 | struct s *b; b->j = 5; | |
6103 | } | |
6104 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
6105 | const int foo = 10; | |
6106 | if (!foo) return 0; | |
6107 | } | |
6108 | return !cs[0] && !zero.x; | |
6109 | #endif | |
6110 | ||
6111 | ; | |
6112 | return 0; | |
6113 | } | |
6114 | _ACEOF | |
6115 | rm -f conftest.$ac_objext | |
6116 | if { (ac_try="$ac_compile" | |
6117 | case "(($ac_try" in | |
6118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6119 | *) ac_try_echo=$ac_try;; | |
6120 | esac | |
6121 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6122 | $as_echo "$ac_try_echo") >&5 | |
6123 | (eval "$ac_compile") 2>conftest.er1 | |
6124 | ac_status=$? | |
6125 | grep -v '^ *+' conftest.er1 >conftest.err | |
6126 | rm -f conftest.er1 | |
6127 | cat conftest.err >&5 | |
6128 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6129 | (exit $ac_status); } && { | |
6130 | test -z "$ac_c_werror_flag" || | |
6131 | test ! -s conftest.err | |
6132 | } && test -s conftest.$ac_objext; then | |
6133 | ac_cv_c_const=yes | |
6134 | else | |
6135 | $as_echo "$as_me: failed program was:" >&5 | |
6136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6137 | ||
6138 | ac_cv_c_const=no | |
6139 | fi | |
6140 | ||
6141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6142 | fi | |
6143 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
6144 | $as_echo "$ac_cv_c_const" >&6; } | |
6145 | if test $ac_cv_c_const = no; then | |
6146 | ||
6147 | cat >>confdefs.h <<\_ACEOF | |
6148 | #define const /**/ | |
6149 | _ACEOF | |
6150 | ||
6151 | fi | |
6152 | ||
6153 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 | |
6154 | $as_echo_n "checking for inline... " >&6; } | |
6155 | if test "${ac_cv_c_inline+set}" = set; then | |
6156 | $as_echo_n "(cached) " >&6 | |
6157 | else | |
6158 | ac_cv_c_inline=no | |
6159 | for ac_kw in inline __inline__ __inline; do | |
6160 | cat >conftest.$ac_ext <<_ACEOF | |
6161 | /* confdefs.h. */ | |
6162 | _ACEOF | |
6163 | cat confdefs.h >>conftest.$ac_ext | |
6164 | cat >>conftest.$ac_ext <<_ACEOF | |
6165 | /* end confdefs.h. */ | |
6166 | #ifndef __cplusplus | |
6167 | typedef int foo_t; | |
6168 | static $ac_kw foo_t static_foo () {return 0; } | |
6169 | $ac_kw foo_t foo () {return 0; } | |
6170 | #endif | |
6171 | ||
6172 | _ACEOF | |
6173 | rm -f conftest.$ac_objext | |
6174 | if { (ac_try="$ac_compile" | |
6175 | case "(($ac_try" in | |
6176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6177 | *) ac_try_echo=$ac_try;; | |
6178 | esac | |
6179 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6180 | $as_echo "$ac_try_echo") >&5 | |
6181 | (eval "$ac_compile") 2>conftest.er1 | |
6182 | ac_status=$? | |
6183 | grep -v '^ *+' conftest.er1 >conftest.err | |
6184 | rm -f conftest.er1 | |
6185 | cat conftest.err >&5 | |
6186 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6187 | (exit $ac_status); } && { | |
6188 | test -z "$ac_c_werror_flag" || | |
6189 | test ! -s conftest.err | |
6190 | } && test -s conftest.$ac_objext; then | |
6191 | ac_cv_c_inline=$ac_kw | |
6192 | else | |
6193 | $as_echo "$as_me: failed program was:" >&5 | |
6194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6195 | ||
6196 | ||
6197 | fi | |
6198 | ||
6199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6200 | test "$ac_cv_c_inline" != no && break | |
6201 | done | |
6202 | ||
6203 | fi | |
6204 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
6205 | $as_echo "$ac_cv_c_inline" >&6; } | |
6206 | ||
6207 | ||
6208 | case $ac_cv_c_inline in | |
6209 | inline | yes) ;; | |
6210 | *) | |
6211 | case $ac_cv_c_inline in | |
6212 | no) ac_val=;; | |
6213 | *) ac_val=$ac_cv_c_inline;; | |
6214 | esac | |
6215 | cat >>confdefs.h <<_ACEOF | |
6216 | #ifndef __cplusplus | |
6217 | #define inline $ac_val | |
6218 | #endif | |
6219 | _ACEOF | |
6220 | ;; | |
6221 | esac | |
6222 | ||
6223 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 | |
6224 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
6225 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then | |
6226 | $as_echo_n "(cached) " >&6 | |
6227 | else | |
6228 | cat >conftest.$ac_ext <<_ACEOF | |
6229 | /* confdefs.h. */ | |
6230 | _ACEOF | |
6231 | cat confdefs.h >>conftest.$ac_ext | |
6232 | cat >>conftest.$ac_ext <<_ACEOF | |
6233 | /* end confdefs.h. */ | |
6234 | $ac_includes_default | |
6235 | int | |
6236 | main () | |
6237 | { | |
6238 | static struct stat ac_aggr; | |
6239 | if (ac_aggr.st_rdev) | |
6240 | return 0; | |
6241 | ; | |
6242 | return 0; | |
6243 | } | |
6244 | _ACEOF | |
6245 | rm -f conftest.$ac_objext | |
6246 | if { (ac_try="$ac_compile" | |
6247 | case "(($ac_try" in | |
6248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6249 | *) ac_try_echo=$ac_try;; | |
6250 | esac | |
6251 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6252 | $as_echo "$ac_try_echo") >&5 | |
6253 | (eval "$ac_compile") 2>conftest.er1 | |
6254 | ac_status=$? | |
6255 | grep -v '^ *+' conftest.er1 >conftest.err | |
6256 | rm -f conftest.er1 | |
6257 | cat conftest.err >&5 | |
6258 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6259 | (exit $ac_status); } && { | |
6260 | test -z "$ac_c_werror_flag" || | |
6261 | test ! -s conftest.err | |
6262 | } && test -s conftest.$ac_objext; then | |
6263 | ac_cv_member_struct_stat_st_rdev=yes | |
6264 | else | |
6265 | $as_echo "$as_me: failed program was:" >&5 | |
6266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6267 | ||
6268 | cat >conftest.$ac_ext <<_ACEOF | |
6269 | /* confdefs.h. */ | |
6270 | _ACEOF | |
6271 | cat confdefs.h >>conftest.$ac_ext | |
6272 | cat >>conftest.$ac_ext <<_ACEOF | |
6273 | /* end confdefs.h. */ | |
6274 | $ac_includes_default | |
6275 | int | |
6276 | main () | |
6277 | { | |
6278 | static struct stat ac_aggr; | |
6279 | if (sizeof ac_aggr.st_rdev) | |
6280 | return 0; | |
6281 | ; | |
6282 | return 0; | |
6283 | } | |
6284 | _ACEOF | |
6285 | rm -f conftest.$ac_objext | |
6286 | if { (ac_try="$ac_compile" | |
6287 | case "(($ac_try" in | |
6288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6289 | *) ac_try_echo=$ac_try;; | |
6290 | esac | |
6291 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6292 | $as_echo "$ac_try_echo") >&5 | |
6293 | (eval "$ac_compile") 2>conftest.er1 | |
6294 | ac_status=$? | |
6295 | grep -v '^ *+' conftest.er1 >conftest.err | |
6296 | rm -f conftest.er1 | |
6297 | cat conftest.err >&5 | |
6298 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6299 | (exit $ac_status); } && { | |
6300 | test -z "$ac_c_werror_flag" || | |
6301 | test ! -s conftest.err | |
6302 | } && test -s conftest.$ac_objext; then | |
6303 | ac_cv_member_struct_stat_st_rdev=yes | |
6304 | else | |
6305 | $as_echo "$as_me: failed program was:" >&5 | |
6306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6307 | ||
6308 | ac_cv_member_struct_stat_st_rdev=no | |
6309 | fi | |
6310 | ||
6311 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6312 | fi | |
6313 | ||
6314 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6315 | fi | |
6316 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
6317 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
6318 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
6319 | ||
6320 | cat >>confdefs.h <<_ACEOF | |
6321 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
6322 | _ACEOF | |
6323 | ||
6324 | ||
6325 | fi | |
6326 | ||
6327 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 | |
6328 | $as_echo_n "checking for off_t... " >&6; } | |
6329 | if test "${ac_cv_type_off_t+set}" = set; then | |
6330 | $as_echo_n "(cached) " >&6 | |
6331 | else | |
6332 | ac_cv_type_off_t=no | |
6333 | cat >conftest.$ac_ext <<_ACEOF | |
6334 | /* confdefs.h. */ | |
6335 | _ACEOF | |
6336 | cat confdefs.h >>conftest.$ac_ext | |
6337 | cat >>conftest.$ac_ext <<_ACEOF | |
6338 | /* end confdefs.h. */ | |
6339 | $ac_includes_default | |
6340 | int | |
6341 | main () | |
6342 | { | |
6343 | if (sizeof (off_t)) | |
6344 | return 0; | |
6345 | ; | |
6346 | return 0; | |
6347 | } | |
6348 | _ACEOF | |
6349 | rm -f conftest.$ac_objext | |
6350 | if { (ac_try="$ac_compile" | |
6351 | case "(($ac_try" in | |
6352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6353 | *) ac_try_echo=$ac_try;; | |
6354 | esac | |
6355 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6356 | $as_echo "$ac_try_echo") >&5 | |
6357 | (eval "$ac_compile") 2>conftest.er1 | |
6358 | ac_status=$? | |
6359 | grep -v '^ *+' conftest.er1 >conftest.err | |
6360 | rm -f conftest.er1 | |
6361 | cat conftest.err >&5 | |
6362 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6363 | (exit $ac_status); } && { | |
6364 | test -z "$ac_c_werror_flag" || | |
6365 | test ! -s conftest.err | |
6366 | } && test -s conftest.$ac_objext; then | |
6367 | cat >conftest.$ac_ext <<_ACEOF | |
6368 | /* confdefs.h. */ | |
6369 | _ACEOF | |
6370 | cat confdefs.h >>conftest.$ac_ext | |
6371 | cat >>conftest.$ac_ext <<_ACEOF | |
6372 | /* end confdefs.h. */ | |
6373 | $ac_includes_default | |
6374 | int | |
6375 | main () | |
6376 | { | |
6377 | if (sizeof ((off_t))) | |
6378 | return 0; | |
6379 | ; | |
6380 | return 0; | |
6381 | } | |
6382 | _ACEOF | |
6383 | rm -f conftest.$ac_objext | |
6384 | if { (ac_try="$ac_compile" | |
6385 | case "(($ac_try" in | |
6386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6387 | *) ac_try_echo=$ac_try;; | |
6388 | esac | |
6389 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6390 | $as_echo "$ac_try_echo") >&5 | |
6391 | (eval "$ac_compile") 2>conftest.er1 | |
6392 | ac_status=$? | |
6393 | grep -v '^ *+' conftest.er1 >conftest.err | |
6394 | rm -f conftest.er1 | |
6395 | cat conftest.err >&5 | |
6396 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6397 | (exit $ac_status); } && { | |
6398 | test -z "$ac_c_werror_flag" || | |
6399 | test ! -s conftest.err | |
6400 | } && test -s conftest.$ac_objext; then | |
6401 | : | |
6402 | else | |
6403 | $as_echo "$as_me: failed program was:" >&5 | |
6404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6405 | ||
6406 | ac_cv_type_off_t=yes | |
6407 | fi | |
6408 | ||
6409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6410 | else | |
6411 | $as_echo "$as_me: failed program was:" >&5 | |
6412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6413 | ||
6414 | ||
6415 | fi | |
6416 | ||
6417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6418 | fi | |
6419 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
6420 | $as_echo "$ac_cv_type_off_t" >&6; } | |
6421 | if test "x$ac_cv_type_off_t" = x""yes; then | |
6422 | : | |
6423 | else | |
6424 | ||
6425 | cat >>confdefs.h <<_ACEOF | |
6426 | #define off_t long int | |
6427 | _ACEOF | |
6428 | ||
6429 | fi | |
6430 | ||
6431 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 | |
6432 | $as_echo_n "checking for pid_t... " >&6; } | |
6433 | if test "${ac_cv_type_pid_t+set}" = set; then | |
6434 | $as_echo_n "(cached) " >&6 | |
6435 | else | |
6436 | ac_cv_type_pid_t=no | |
6437 | cat >conftest.$ac_ext <<_ACEOF | |
6438 | /* confdefs.h. */ | |
6439 | _ACEOF | |
6440 | cat confdefs.h >>conftest.$ac_ext | |
6441 | cat >>conftest.$ac_ext <<_ACEOF | |
6442 | /* end confdefs.h. */ | |
6443 | $ac_includes_default | |
6444 | int | |
6445 | main () | |
6446 | { | |
6447 | if (sizeof (pid_t)) | |
6448 | return 0; | |
6449 | ; | |
6450 | return 0; | |
6451 | } | |
6452 | _ACEOF | |
6453 | rm -f conftest.$ac_objext | |
6454 | if { (ac_try="$ac_compile" | |
6455 | case "(($ac_try" in | |
6456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6457 | *) ac_try_echo=$ac_try;; | |
6458 | esac | |
6459 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6460 | $as_echo "$ac_try_echo") >&5 | |
6461 | (eval "$ac_compile") 2>conftest.er1 | |
6462 | ac_status=$? | |
6463 | grep -v '^ *+' conftest.er1 >conftest.err | |
6464 | rm -f conftest.er1 | |
6465 | cat conftest.err >&5 | |
6466 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6467 | (exit $ac_status); } && { | |
6468 | test -z "$ac_c_werror_flag" || | |
6469 | test ! -s conftest.err | |
6470 | } && test -s conftest.$ac_objext; then | |
6471 | cat >conftest.$ac_ext <<_ACEOF | |
6472 | /* confdefs.h. */ | |
6473 | _ACEOF | |
6474 | cat confdefs.h >>conftest.$ac_ext | |
6475 | cat >>conftest.$ac_ext <<_ACEOF | |
6476 | /* end confdefs.h. */ | |
6477 | $ac_includes_default | |
6478 | int | |
6479 | main () | |
6480 | { | |
6481 | if (sizeof ((pid_t))) | |
6482 | return 0; | |
6483 | ; | |
6484 | return 0; | |
6485 | } | |
6486 | _ACEOF | |
6487 | rm -f conftest.$ac_objext | |
6488 | if { (ac_try="$ac_compile" | |
6489 | case "(($ac_try" in | |
6490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6491 | *) ac_try_echo=$ac_try;; | |
6492 | esac | |
6493 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6494 | $as_echo "$ac_try_echo") >&5 | |
6495 | (eval "$ac_compile") 2>conftest.er1 | |
6496 | ac_status=$? | |
6497 | grep -v '^ *+' conftest.er1 >conftest.err | |
6498 | rm -f conftest.er1 | |
6499 | cat conftest.err >&5 | |
6500 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6501 | (exit $ac_status); } && { | |
6502 | test -z "$ac_c_werror_flag" || | |
6503 | test ! -s conftest.err | |
6504 | } && test -s conftest.$ac_objext; then | |
6505 | : | |
6506 | else | |
6507 | $as_echo "$as_me: failed program was:" >&5 | |
6508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6509 | ||
6510 | ac_cv_type_pid_t=yes | |
6511 | fi | |
6512 | ||
6513 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6514 | else | |
6515 | $as_echo "$as_me: failed program was:" >&5 | |
6516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6517 | ||
6518 | ||
6519 | fi | |
6520 | ||
6521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6522 | fi | |
6523 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
6524 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
6525 | if test "x$ac_cv_type_pid_t" = x""yes; then | |
6526 | : | |
6527 | else | |
6528 | ||
6529 | cat >>confdefs.h <<_ACEOF | |
6530 | #define pid_t int | |
6531 | _ACEOF | |
6532 | ||
6533 | fi | |
6534 | ||
6535 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | |
6536 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
6537 | if test "${ac_cv_type_signal+set}" = set; then | |
6538 | $as_echo_n "(cached) " >&6 | |
6539 | else | |
6540 | cat >conftest.$ac_ext <<_ACEOF | |
6541 | /* confdefs.h. */ | |
6542 | _ACEOF | |
6543 | cat confdefs.h >>conftest.$ac_ext | |
6544 | cat >>conftest.$ac_ext <<_ACEOF | |
6545 | /* end confdefs.h. */ | |
6546 | #include <sys/types.h> | |
6547 | #include <signal.h> | |
6548 | ||
6549 | int | |
6550 | main () | |
6551 | { | |
6552 | return *(signal (0, 0)) (0) == 1; | |
6553 | ; | |
6554 | return 0; | |
6555 | } | |
6556 | _ACEOF | |
6557 | rm -f conftest.$ac_objext | |
6558 | if { (ac_try="$ac_compile" | |
6559 | case "(($ac_try" in | |
6560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6561 | *) ac_try_echo=$ac_try;; | |
6562 | esac | |
6563 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6564 | $as_echo "$ac_try_echo") >&5 | |
6565 | (eval "$ac_compile") 2>conftest.er1 | |
6566 | ac_status=$? | |
6567 | grep -v '^ *+' conftest.er1 >conftest.err | |
6568 | rm -f conftest.er1 | |
6569 | cat conftest.err >&5 | |
6570 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6571 | (exit $ac_status); } && { | |
6572 | test -z "$ac_c_werror_flag" || | |
6573 | test ! -s conftest.err | |
6574 | } && test -s conftest.$ac_objext; then | |
6575 | ac_cv_type_signal=int | |
6576 | else | |
6577 | $as_echo "$as_me: failed program was:" >&5 | |
6578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6579 | ||
6580 | ac_cv_type_signal=void | |
6581 | fi | |
6582 | ||
6583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6584 | fi | |
6585 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | |
6586 | $as_echo "$ac_cv_type_signal" >&6; } | |
6587 | ||
6588 | cat >>confdefs.h <<_ACEOF | |
6589 | #define RETSIGTYPE $ac_cv_type_signal | |
6590 | _ACEOF | |
6591 | ||
6592 | ||
6593 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 | |
6594 | $as_echo_n "checking for size_t... " >&6; } | |
6595 | if test "${ac_cv_type_size_t+set}" = set; then | |
6596 | $as_echo_n "(cached) " >&6 | |
6597 | else | |
6598 | ac_cv_type_size_t=no | |
6599 | cat >conftest.$ac_ext <<_ACEOF | |
6600 | /* confdefs.h. */ | |
6601 | _ACEOF | |
6602 | cat confdefs.h >>conftest.$ac_ext | |
6603 | cat >>conftest.$ac_ext <<_ACEOF | |
6604 | /* end confdefs.h. */ | |
6605 | $ac_includes_default | |
6606 | int | |
6607 | main () | |
6608 | { | |
6609 | if (sizeof (size_t)) | |
6610 | return 0; | |
6611 | ; | |
6612 | return 0; | |
6613 | } | |
6614 | _ACEOF | |
6615 | rm -f conftest.$ac_objext | |
6616 | if { (ac_try="$ac_compile" | |
6617 | case "(($ac_try" in | |
6618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6619 | *) ac_try_echo=$ac_try;; | |
6620 | esac | |
6621 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6622 | $as_echo "$ac_try_echo") >&5 | |
6623 | (eval "$ac_compile") 2>conftest.er1 | |
6624 | ac_status=$? | |
6625 | grep -v '^ *+' conftest.er1 >conftest.err | |
6626 | rm -f conftest.er1 | |
6627 | cat conftest.err >&5 | |
6628 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6629 | (exit $ac_status); } && { | |
6630 | test -z "$ac_c_werror_flag" || | |
6631 | test ! -s conftest.err | |
6632 | } && test -s conftest.$ac_objext; then | |
6633 | cat >conftest.$ac_ext <<_ACEOF | |
6634 | /* confdefs.h. */ | |
6635 | _ACEOF | |
6636 | cat confdefs.h >>conftest.$ac_ext | |
6637 | cat >>conftest.$ac_ext <<_ACEOF | |
6638 | /* end confdefs.h. */ | |
6639 | $ac_includes_default | |
6640 | int | |
6641 | main () | |
6642 | { | |
6643 | if (sizeof ((size_t))) | |
6644 | return 0; | |
6645 | ; | |
6646 | return 0; | |
6647 | } | |
6648 | _ACEOF | |
6649 | rm -f conftest.$ac_objext | |
6650 | if { (ac_try="$ac_compile" | |
6651 | case "(($ac_try" in | |
6652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6653 | *) ac_try_echo=$ac_try;; | |
6654 | esac | |
6655 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6656 | $as_echo "$ac_try_echo") >&5 | |
6657 | (eval "$ac_compile") 2>conftest.er1 | |
6658 | ac_status=$? | |
6659 | grep -v '^ *+' conftest.er1 >conftest.err | |
6660 | rm -f conftest.er1 | |
6661 | cat conftest.err >&5 | |
6662 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6663 | (exit $ac_status); } && { | |
6664 | test -z "$ac_c_werror_flag" || | |
6665 | test ! -s conftest.err | |
6666 | } && test -s conftest.$ac_objext; then | |
6667 | : | |
ad6254c5 | 6668 | else |
d911ec67 AK |
6669 | $as_echo "$as_me: failed program was:" >&5 |
6670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 6671 | |
d911ec67 | 6672 | ac_cv_type_size_t=yes |
ad6254c5 | 6673 | fi |
4922197a | 6674 | |
d911ec67 | 6675 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4922197a | 6676 | else |
d911ec67 AK |
6677 | $as_echo "$as_me: failed program was:" >&5 |
6678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d0191583 JM |
6679 | |
6680 | ||
d911ec67 | 6681 | fi |
d0191583 | 6682 | |
d911ec67 AK |
6683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6684 | fi | |
6685 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
6686 | $as_echo "$ac_cv_type_size_t" >&6; } | |
6687 | if test "x$ac_cv_type_size_t" = x""yes; then | |
6688 | : | |
6689 | else | |
d0191583 | 6690 | |
d911ec67 AK |
6691 | cat >>confdefs.h <<_ACEOF |
6692 | #define size_t unsigned int | |
6693 | _ACEOF | |
d0191583 | 6694 | |
d911ec67 | 6695 | fi |
d0191583 | 6696 | |
d911ec67 AK |
6697 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
6698 | $as_echo_n "checking for mode_t... " >&6; } | |
6699 | if test "${ac_cv_type_mode_t+set}" = set; then | |
ec6a6fbe | 6700 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 6701 | else |
d911ec67 | 6702 | ac_cv_type_mode_t=no |
ad6254c5 | 6703 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6704 | /* confdefs.h. */ |
6705 | _ACEOF | |
6706 | cat confdefs.h >>conftest.$ac_ext | |
6707 | cat >>conftest.$ac_ext <<_ACEOF | |
6708 | /* end confdefs.h. */ | |
6709 | $ac_includes_default | |
d911ec67 AK |
6710 | int |
6711 | main () | |
6712 | { | |
6713 | if (sizeof (mode_t)) | |
6714 | return 0; | |
6715 | ; | |
6716 | return 0; | |
6717 | } | |
ad6254c5 AK |
6718 | _ACEOF |
6719 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6720 | if { (ac_try="$ac_compile" |
6721 | case "(($ac_try" in | |
6722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6723 | *) ac_try_echo=$ac_try;; | |
6724 | esac | |
ec6a6fbe AK |
6725 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6726 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6727 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6728 | ac_status=$? |
8a2fc586 AK |
6729 | grep -v '^ *+' conftest.er1 >conftest.err |
6730 | rm -f conftest.er1 | |
6731 | cat conftest.err >&5 | |
ec6a6fbe | 6732 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6733 | (exit $ac_status); } && { |
6734 | test -z "$ac_c_werror_flag" || | |
6735 | test ! -s conftest.err | |
6736 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 6737 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6738 | /* confdefs.h. */ |
6739 | _ACEOF | |
6740 | cat confdefs.h >>conftest.$ac_ext | |
6741 | cat >>conftest.$ac_ext <<_ACEOF | |
6742 | /* end confdefs.h. */ | |
d911ec67 AK |
6743 | $ac_includes_default |
6744 | int | |
6745 | main () | |
6746 | { | |
6747 | if (sizeof ((mode_t))) | |
6748 | return 0; | |
6749 | ; | |
6750 | return 0; | |
6751 | } | |
ad6254c5 | 6752 | _ACEOF |
d911ec67 AK |
6753 | rm -f conftest.$ac_objext |
6754 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
6755 | case "(($ac_try" in |
6756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6757 | *) ac_try_echo=$ac_try;; | |
6758 | esac | |
ec6a6fbe AK |
6759 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6760 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 | 6761 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
6762 | ac_status=$? |
6763 | grep -v '^ *+' conftest.er1 >conftest.err | |
6764 | rm -f conftest.er1 | |
6765 | cat conftest.err >&5 | |
ec6a6fbe | 6766 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d911ec67 AK |
6767 | (exit $ac_status); } && { |
6768 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 6769 | test ! -s conftest.err |
d911ec67 AK |
6770 | } && test -s conftest.$ac_objext; then |
6771 | : | |
ad6254c5 | 6772 | else |
ec6a6fbe | 6773 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6774 | sed 's/^/| /' conftest.$ac_ext >&5 |
6775 | ||
d911ec67 | 6776 | ac_cv_type_mode_t=yes |
ad6254c5 | 6777 | fi |
7a197a62 | 6778 | |
d911ec67 AK |
6779 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6780 | else | |
6781 | $as_echo "$as_me: failed program was:" >&5 | |
6782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 6783 | |
7a197a62 | 6784 | |
80992638 AK |
6785 | fi |
6786 | ||
d911ec67 | 6787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6788 | fi |
d911ec67 AK |
6789 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
6790 | $as_echo "$ac_cv_type_mode_t" >&6; } | |
6791 | if test "x$ac_cv_type_mode_t" = x""yes; then | |
6792 | : | |
795ca3e5 | 6793 | else |
80992638 | 6794 | |
d911ec67 AK |
6795 | cat >>confdefs.h <<_ACEOF |
6796 | #define mode_t int | |
6797 | _ACEOF | |
ad6254c5 | 6798 | |
d911ec67 | 6799 | fi |
795ca3e5 | 6800 | |
d0191583 | 6801 | |
d911ec67 AK |
6802 | { $as_echo "$as_me:$LINENO: checking for int8_t" >&5 |
6803 | $as_echo_n "checking for int8_t... " >&6; } | |
6804 | if test "${ac_cv_c_int8_t+set}" = set; then | |
ec6a6fbe | 6805 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 6806 | else |
d911ec67 AK |
6807 | ac_cv_c_int8_t=no |
6808 | for ac_type in 'int8_t' 'int' 'long int' \ | |
6809 | 'long long int' 'short int' 'signed char'; do | |
6810 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6811 | /* confdefs.h. */ |
6812 | _ACEOF | |
6813 | cat confdefs.h >>conftest.$ac_ext | |
6814 | cat >>conftest.$ac_ext <<_ACEOF | |
6815 | /* end confdefs.h. */ | |
6816 | $ac_includes_default | |
d911ec67 AK |
6817 | int |
6818 | main () | |
6819 | { | |
6820 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))]; | |
6821 | test_array [0] = 0 | |
6822 | ||
6823 | ; | |
6824 | return 0; | |
6825 | } | |
ad6254c5 AK |
6826 | _ACEOF |
6827 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6828 | if { (ac_try="$ac_compile" |
6829 | case "(($ac_try" in | |
6830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6831 | *) ac_try_echo=$ac_try;; | |
6832 | esac | |
ec6a6fbe AK |
6833 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6834 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6835 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6836 | ac_status=$? |
8a2fc586 AK |
6837 | grep -v '^ *+' conftest.er1 >conftest.err |
6838 | rm -f conftest.er1 | |
6839 | cat conftest.err >&5 | |
ec6a6fbe | 6840 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6841 | (exit $ac_status); } && { |
6842 | test -z "$ac_c_werror_flag" || | |
6843 | test ! -s conftest.err | |
6844 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 6845 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6846 | /* confdefs.h. */ |
6847 | _ACEOF | |
6848 | cat confdefs.h >>conftest.$ac_ext | |
6849 | cat >>conftest.$ac_ext <<_ACEOF | |
6850 | /* end confdefs.h. */ | |
d911ec67 AK |
6851 | $ac_includes_default |
6852 | int | |
6853 | main () | |
6854 | { | |
6855 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1) | |
6856 | < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))]; | |
6857 | test_array [0] = 0 | |
6858 | ||
6859 | ; | |
6860 | return 0; | |
6861 | } | |
ad6254c5 | 6862 | _ACEOF |
d911ec67 AK |
6863 | rm -f conftest.$ac_objext |
6864 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
6865 | case "(($ac_try" in |
6866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6867 | *) ac_try_echo=$ac_try;; | |
6868 | esac | |
ec6a6fbe AK |
6869 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6870 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 | 6871 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
6872 | ac_status=$? |
6873 | grep -v '^ *+' conftest.er1 >conftest.err | |
6874 | rm -f conftest.er1 | |
6875 | cat conftest.err >&5 | |
ec6a6fbe | 6876 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d911ec67 AK |
6877 | (exit $ac_status); } && { |
6878 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 6879 | test ! -s conftest.err |
d911ec67 AK |
6880 | } && test -s conftest.$ac_objext; then |
6881 | : | |
ad6254c5 | 6882 | else |
ec6a6fbe | 6883 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6884 | sed 's/^/| /' conftest.$ac_ext >&5 |
6885 | ||
d911ec67 AK |
6886 | case $ac_type in |
6887 | int8_t) ac_cv_c_int8_t=yes ;; | |
6888 | *) ac_cv_c_int8_t=$ac_type ;; | |
6889 | esac | |
ad6254c5 | 6890 | |
d911ec67 | 6891 | fi |
7a197a62 | 6892 | |
d911ec67 | 6893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6894 | else |
d911ec67 AK |
6895 | $as_echo "$as_me: failed program was:" >&5 |
6896 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6897 | ||
b896caa1 | 6898 | |
ad6254c5 | 6899 | fi |
ad6254c5 | 6900 | |
d911ec67 AK |
6901 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6902 | test "$ac_cv_c_int8_t" != no && break | |
6903 | done | |
80992638 | 6904 | fi |
d911ec67 AK |
6905 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5 |
6906 | $as_echo "$ac_cv_c_int8_t" >&6; } | |
6907 | case $ac_cv_c_int8_t in #( | |
6908 | no|yes) ;; #( | |
6909 | *) | |
80992638 | 6910 | |
d911ec67 AK |
6911 | cat >>confdefs.h <<_ACEOF |
6912 | #define int8_t $ac_cv_c_int8_t | |
6913 | _ACEOF | |
6914 | ;; | |
6915 | esac | |
d0191583 | 6916 | |
d3c8211f | 6917 | |
d911ec67 AK |
6918 | { $as_echo "$as_me:$LINENO: checking for int16_t" >&5 |
6919 | $as_echo_n "checking for int16_t... " >&6; } | |
6920 | if test "${ac_cv_c_int16_t+set}" = set; then | |
ec6a6fbe | 6921 | $as_echo_n "(cached) " >&6 |
d3c8211f | 6922 | else |
d911ec67 AK |
6923 | ac_cv_c_int16_t=no |
6924 | for ac_type in 'int16_t' 'int' 'long int' \ | |
6925 | 'long long int' 'short int' 'signed char'; do | |
6926 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6927 | /* confdefs.h. */ |
6928 | _ACEOF | |
6929 | cat confdefs.h >>conftest.$ac_ext | |
6930 | cat >>conftest.$ac_ext <<_ACEOF | |
6931 | /* end confdefs.h. */ | |
d911ec67 | 6932 | $ac_includes_default |
ad6254c5 AK |
6933 | int |
6934 | main () | |
6935 | { | |
d911ec67 AK |
6936 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
6937 | test_array [0] = 0 | |
ad6254c5 AK |
6938 | |
6939 | ; | |
6940 | return 0; | |
6941 | } | |
6942 | _ACEOF | |
6943 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6944 | if { (ac_try="$ac_compile" |
6945 | case "(($ac_try" in | |
6946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6947 | *) ac_try_echo=$ac_try;; | |
6948 | esac | |
ec6a6fbe AK |
6949 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6950 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6951 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6952 | ac_status=$? |
8a2fc586 AK |
6953 | grep -v '^ *+' conftest.er1 >conftest.err |
6954 | rm -f conftest.er1 | |
6955 | cat conftest.err >&5 | |
ec6a6fbe | 6956 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6957 | (exit $ac_status); } && { |
6958 | test -z "$ac_c_werror_flag" || | |
6959 | test ! -s conftest.err | |
6960 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 6961 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6962 | /* confdefs.h. */ |
6963 | _ACEOF | |
6964 | cat confdefs.h >>conftest.$ac_ext | |
6965 | cat >>conftest.$ac_ext <<_ACEOF | |
6966 | /* end confdefs.h. */ | |
d911ec67 AK |
6967 | $ac_includes_default |
6968 | int | |
6969 | main () | |
6970 | { | |
6971 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1) | |
6972 | < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))]; | |
6973 | test_array [0] = 0 | |
80992638 | 6974 | |
d911ec67 AK |
6975 | ; |
6976 | return 0; | |
6977 | } | |
ad6254c5 AK |
6978 | _ACEOF |
6979 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6980 | if { (ac_try="$ac_compile" |
6981 | case "(($ac_try" in | |
6982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6983 | *) ac_try_echo=$ac_try;; | |
6984 | esac | |
ec6a6fbe AK |
6985 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6986 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6987 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6988 | ac_status=$? |
8a2fc586 AK |
6989 | grep -v '^ *+' conftest.er1 >conftest.err |
6990 | rm -f conftest.er1 | |
6991 | cat conftest.err >&5 | |
ec6a6fbe | 6992 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6993 | (exit $ac_status); } && { |
6994 | test -z "$ac_c_werror_flag" || | |
6995 | test ! -s conftest.err | |
6996 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 6997 | : |
ad6254c5 | 6998 | else |
ec6a6fbe | 6999 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 7000 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 7001 | |
d911ec67 AK |
7002 | case $ac_type in |
7003 | int16_t) ac_cv_c_int16_t=yes ;; | |
7004 | *) ac_cv_c_int16_t=$ac_type ;; | |
7005 | esac | |
7a197a62 | 7006 | |
8ce0cbda | 7007 | fi |
7a197a62 AK |
7008 | |
7009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7010 | else |
7011 | $as_echo "$as_me: failed program was:" >&5 | |
7012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8ce0cbda | 7013 | |
8a2fc586 | 7014 | |
d911ec67 | 7015 | fi |
8a2fc586 | 7016 | |
d911ec67 AK |
7017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7018 | test "$ac_cv_c_int16_t" != no && break | |
7019 | done | |
7020 | fi | |
7021 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5 | |
7022 | $as_echo "$ac_cv_c_int16_t" >&6; } | |
7023 | case $ac_cv_c_int16_t in #( | |
7024 | no|yes) ;; #( | |
8a2fc586 | 7025 | *) |
d911ec67 AK |
7026 | |
7027 | cat >>confdefs.h <<_ACEOF | |
7028 | #define int16_t $ac_cv_c_int16_t | |
c1c065a3 | 7029 | _ACEOF |
d911ec67 AK |
7030 | ;; |
7031 | esac | |
d0191583 | 7032 | |
d911ec67 AK |
7033 | |
7034 | { $as_echo "$as_me:$LINENO: checking for int32_t" >&5 | |
7035 | $as_echo_n "checking for int32_t... " >&6; } | |
7036 | if test "${ac_cv_c_int32_t+set}" = set; then | |
ec6a6fbe | 7037 | $as_echo_n "(cached) " >&6 |
d0191583 | 7038 | else |
d911ec67 AK |
7039 | ac_cv_c_int32_t=no |
7040 | for ac_type in 'int32_t' 'int' 'long int' \ | |
7041 | 'long long int' 'short int' 'signed char'; do | |
7042 | cat >conftest.$ac_ext <<_ACEOF | |
d0191583 JM |
7043 | /* confdefs.h. */ |
7044 | _ACEOF | |
7045 | cat confdefs.h >>conftest.$ac_ext | |
7046 | cat >>conftest.$ac_ext <<_ACEOF | |
7047 | /* end confdefs.h. */ | |
7048 | $ac_includes_default | |
7049 | int | |
7050 | main () | |
7051 | { | |
d911ec67 AK |
7052 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
7053 | test_array [0] = 0 | |
7054 | ||
d0191583 JM |
7055 | ; |
7056 | return 0; | |
7057 | } | |
7058 | _ACEOF | |
7059 | rm -f conftest.$ac_objext | |
7060 | if { (ac_try="$ac_compile" | |
7061 | case "(($ac_try" in | |
7062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7063 | *) ac_try_echo=$ac_try;; | |
7064 | esac | |
ec6a6fbe AK |
7065 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7066 | $as_echo "$ac_try_echo") >&5 | |
7067 | (eval "$ac_compile") 2>conftest.er1 | |
7068 | ac_status=$? | |
7069 | grep -v '^ *+' conftest.er1 >conftest.err | |
7070 | rm -f conftest.er1 | |
7071 | cat conftest.err >&5 | |
7072 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7073 | (exit $ac_status); } && { | |
7074 | test -z "$ac_c_werror_flag" || | |
7075 | test ! -s conftest.err | |
7076 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 7077 | cat >conftest.$ac_ext <<_ACEOF |
ec6a6fbe AK |
7078 | /* confdefs.h. */ |
7079 | _ACEOF | |
7080 | cat confdefs.h >>conftest.$ac_ext | |
7081 | cat >>conftest.$ac_ext <<_ACEOF | |
7082 | /* end confdefs.h. */ | |
7083 | $ac_includes_default | |
7084 | int | |
7085 | main () | |
7086 | { | |
d911ec67 AK |
7087 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
7088 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; | |
7089 | test_array [0] = 0 | |
7090 | ||
ec6a6fbe AK |
7091 | ; |
7092 | return 0; | |
7093 | } | |
7094 | _ACEOF | |
7095 | rm -f conftest.$ac_objext | |
7096 | if { (ac_try="$ac_compile" | |
7097 | case "(($ac_try" in | |
7098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7099 | *) ac_try_echo=$ac_try;; | |
7100 | esac | |
7101 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7102 | $as_echo "$ac_try_echo") >&5 | |
7103 | (eval "$ac_compile") 2>conftest.er1 | |
7104 | ac_status=$? | |
7105 | grep -v '^ *+' conftest.er1 >conftest.err | |
7106 | rm -f conftest.er1 | |
7107 | cat conftest.err >&5 | |
7108 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7109 | (exit $ac_status); } && { | |
7110 | test -z "$ac_c_werror_flag" || | |
7111 | test ! -s conftest.err | |
7112 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 7113 | : |
ec6a6fbe AK |
7114 | else |
7115 | $as_echo "$as_me: failed program was:" >&5 | |
7116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7117 | ||
d911ec67 AK |
7118 | case $ac_type in |
7119 | int32_t) ac_cv_c_int32_t=yes ;; | |
7120 | *) ac_cv_c_int32_t=$ac_type ;; | |
7121 | esac | |
7122 | ||
ec6a6fbe AK |
7123 | fi |
7124 | ||
7125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7126 | else |
7127 | $as_echo "$as_me: failed program was:" >&5 | |
7128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7129 | ||
7130 | ||
ec6a6fbe AK |
7131 | fi |
7132 | ||
7133 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7134 | test "$ac_cv_c_int32_t" != no && break |
7135 | done | |
ec6a6fbe | 7136 | fi |
d911ec67 AK |
7137 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
7138 | $as_echo "$ac_cv_c_int32_t" >&6; } | |
7139 | case $ac_cv_c_int32_t in #( | |
7140 | no|yes) ;; #( | |
7141 | *) | |
ec6a6fbe AK |
7142 | |
7143 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7144 | #define int32_t $ac_cv_c_int32_t |
ec6a6fbe | 7145 | _ACEOF |
d911ec67 AK |
7146 | ;; |
7147 | esac | |
ec6a6fbe AK |
7148 | |
7149 | ||
d911ec67 AK |
7150 | { $as_echo "$as_me:$LINENO: checking for int64_t" >&5 |
7151 | $as_echo_n "checking for int64_t... " >&6; } | |
7152 | if test "${ac_cv_c_int64_t+set}" = set; then | |
ec6a6fbe AK |
7153 | $as_echo_n "(cached) " >&6 |
7154 | else | |
d911ec67 AK |
7155 | ac_cv_c_int64_t=no |
7156 | for ac_type in 'int64_t' 'int' 'long int' \ | |
7157 | 'long long int' 'short int' 'signed char'; do | |
7158 | cat >conftest.$ac_ext <<_ACEOF | |
ec6a6fbe AK |
7159 | /* confdefs.h. */ |
7160 | _ACEOF | |
7161 | cat confdefs.h >>conftest.$ac_ext | |
7162 | cat >>conftest.$ac_ext <<_ACEOF | |
7163 | /* end confdefs.h. */ | |
7164 | $ac_includes_default | |
7165 | int | |
7166 | main () | |
7167 | { | |
d911ec67 AK |
7168 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))]; |
7169 | test_array [0] = 0 | |
7170 | ||
ec6a6fbe AK |
7171 | ; |
7172 | return 0; | |
7173 | } | |
7174 | _ACEOF | |
7175 | rm -f conftest.$ac_objext | |
7176 | if { (ac_try="$ac_compile" | |
7177 | case "(($ac_try" in | |
7178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7179 | *) ac_try_echo=$ac_try;; | |
7180 | esac | |
7181 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7182 | $as_echo "$ac_try_echo") >&5 | |
7183 | (eval "$ac_compile") 2>conftest.er1 | |
7184 | ac_status=$? | |
7185 | grep -v '^ *+' conftest.er1 >conftest.err | |
7186 | rm -f conftest.er1 | |
7187 | cat conftest.err >&5 | |
7188 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7189 | (exit $ac_status); } && { | |
7190 | test -z "$ac_c_werror_flag" || | |
7191 | test ! -s conftest.err | |
7192 | } && test -s conftest.$ac_objext; then | |
7193 | cat >conftest.$ac_ext <<_ACEOF | |
7194 | /* confdefs.h. */ | |
7195 | _ACEOF | |
7196 | cat confdefs.h >>conftest.$ac_ext | |
7197 | cat >>conftest.$ac_ext <<_ACEOF | |
7198 | /* end confdefs.h. */ | |
7199 | $ac_includes_default | |
7200 | int | |
7201 | main () | |
7202 | { | |
d911ec67 AK |
7203 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1) |
7204 | < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))]; | |
7205 | test_array [0] = 0 | |
7206 | ||
ec6a6fbe AK |
7207 | ; |
7208 | return 0; | |
7209 | } | |
7210 | _ACEOF | |
7211 | rm -f conftest.$ac_objext | |
7212 | if { (ac_try="$ac_compile" | |
7213 | case "(($ac_try" in | |
7214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7215 | *) ac_try_echo=$ac_try;; | |
7216 | esac | |
7217 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7218 | $as_echo "$ac_try_echo") >&5 | |
7219 | (eval "$ac_compile") 2>conftest.er1 | |
7220 | ac_status=$? | |
7221 | grep -v '^ *+' conftest.er1 >conftest.err | |
7222 | rm -f conftest.er1 | |
7223 | cat conftest.err >&5 | |
7224 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7225 | (exit $ac_status); } && { | |
7226 | test -z "$ac_c_werror_flag" || | |
7227 | test ! -s conftest.err | |
7228 | } && test -s conftest.$ac_objext; then | |
7229 | : | |
7230 | else | |
7231 | $as_echo "$as_me: failed program was:" >&5 | |
7232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7233 | ||
d911ec67 AK |
7234 | case $ac_type in |
7235 | int64_t) ac_cv_c_int64_t=yes ;; | |
7236 | *) ac_cv_c_int64_t=$ac_type ;; | |
7237 | esac | |
7238 | ||
ec6a6fbe AK |
7239 | fi |
7240 | ||
7241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7242 | else | |
7243 | $as_echo "$as_me: failed program was:" >&5 | |
7244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7245 | ||
7246 | ||
7247 | fi | |
7248 | ||
7249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7250 | test "$ac_cv_c_int64_t" != no && break |
7251 | done | |
ec6a6fbe | 7252 | fi |
d911ec67 AK |
7253 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5 |
7254 | $as_echo "$ac_cv_c_int64_t" >&6; } | |
7255 | case $ac_cv_c_int64_t in #( | |
7256 | no|yes) ;; #( | |
7257 | *) | |
ec6a6fbe AK |
7258 | |
7259 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7260 | #define int64_t $ac_cv_c_int64_t |
ec6a6fbe | 7261 | _ACEOF |
d911ec67 AK |
7262 | ;; |
7263 | esac | |
ec6a6fbe | 7264 | |
d911ec67 AK |
7265 | { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5 |
7266 | $as_echo_n "checking for ssize_t... " >&6; } | |
7267 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
ec6a6fbe AK |
7268 | $as_echo_n "(cached) " >&6 |
7269 | else | |
d911ec67 | 7270 | ac_cv_type_ssize_t=no |
ec6a6fbe AK |
7271 | cat >conftest.$ac_ext <<_ACEOF |
7272 | /* confdefs.h. */ | |
7273 | _ACEOF | |
7274 | cat confdefs.h >>conftest.$ac_ext | |
7275 | cat >>conftest.$ac_ext <<_ACEOF | |
7276 | /* end confdefs.h. */ | |
7277 | $ac_includes_default | |
7278 | int | |
7279 | main () | |
7280 | { | |
d911ec67 | 7281 | if (sizeof (ssize_t)) |
ec6a6fbe AK |
7282 | return 0; |
7283 | ; | |
7284 | return 0; | |
7285 | } | |
7286 | _ACEOF | |
7287 | rm -f conftest.$ac_objext | |
7288 | if { (ac_try="$ac_compile" | |
7289 | case "(($ac_try" in | |
7290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7291 | *) ac_try_echo=$ac_try;; | |
7292 | esac | |
7293 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7294 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
7295 | (eval "$ac_compile") 2>conftest.er1 |
7296 | ac_status=$? | |
7297 | grep -v '^ *+' conftest.er1 >conftest.err | |
7298 | rm -f conftest.er1 | |
7299 | cat conftest.err >&5 | |
ec6a6fbe | 7300 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
7301 | (exit $ac_status); } && { |
7302 | test -z "$ac_c_werror_flag" || | |
7303 | test ! -s conftest.err | |
7304 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 7305 | cat >conftest.$ac_ext <<_ACEOF |
d0191583 JM |
7306 | /* confdefs.h. */ |
7307 | _ACEOF | |
7308 | cat confdefs.h >>conftest.$ac_ext | |
7309 | cat >>conftest.$ac_ext <<_ACEOF | |
7310 | /* end confdefs.h. */ | |
7311 | $ac_includes_default | |
7312 | int | |
7313 | main () | |
7314 | { | |
d911ec67 | 7315 | if (sizeof ((ssize_t))) |
ec6a6fbe | 7316 | return 0; |
d0191583 JM |
7317 | ; |
7318 | return 0; | |
7319 | } | |
7320 | _ACEOF | |
7321 | rm -f conftest.$ac_objext | |
7322 | if { (ac_try="$ac_compile" | |
7323 | case "(($ac_try" in | |
7324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7325 | *) ac_try_echo=$ac_try;; | |
7326 | esac | |
ec6a6fbe AK |
7327 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7328 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
7329 | (eval "$ac_compile") 2>conftest.er1 |
7330 | ac_status=$? | |
7331 | grep -v '^ *+' conftest.er1 >conftest.err | |
7332 | rm -f conftest.er1 | |
7333 | cat conftest.err >&5 | |
ec6a6fbe | 7334 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
7335 | (exit $ac_status); } && { |
7336 | test -z "$ac_c_werror_flag" || | |
7337 | test ! -s conftest.err | |
7338 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 7339 | : |
d0191583 | 7340 | else |
ec6a6fbe | 7341 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
7342 | sed 's/^/| /' conftest.$ac_ext >&5 |
7343 | ||
d911ec67 | 7344 | ac_cv_type_ssize_t=yes |
d0191583 JM |
7345 | fi |
7346 | ||
7347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7348 | else |
7349 | $as_echo "$as_me: failed program was:" >&5 | |
7350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7351 | ||
7352 | ||
d0191583 JM |
7353 | fi |
7354 | ||
7355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7356 | fi | |
d911ec67 AK |
7357 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
7358 | $as_echo "$ac_cv_type_ssize_t" >&6; } | |
7359 | if test "x$ac_cv_type_ssize_t" = x""yes; then | |
ec6a6fbe AK |
7360 | : |
7361 | else | |
d0191583 JM |
7362 | |
7363 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7364 | #define ssize_t int |
d0191583 JM |
7365 | _ACEOF |
7366 | ||
d0191583 | 7367 | fi |
8ce0cbda | 7368 | |
d911ec67 AK |
7369 | { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
7370 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
7371 | if test "${ac_cv_type_uid_t+set}" = set; then | |
ec6a6fbe | 7372 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7373 | else |
b145d876 ZK |
7374 | cat >conftest.$ac_ext <<_ACEOF |
7375 | /* confdefs.h. */ | |
7376 | _ACEOF | |
7377 | cat confdefs.h >>conftest.$ac_ext | |
7378 | cat >>conftest.$ac_ext <<_ACEOF | |
7379 | /* end confdefs.h. */ | |
ec6a6fbe | 7380 | #include <sys/types.h> |
ec6a6fbe | 7381 | |
ad6254c5 | 7382 | _ACEOF |
d911ec67 AK |
7383 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7384 | $EGREP "uid_t" >/dev/null 2>&1; then | |
7385 | ac_cv_type_uid_t=yes | |
b145d876 | 7386 | else |
d911ec67 | 7387 | ac_cv_type_uid_t=no |
ad6254c5 | 7388 | fi |
d911ec67 | 7389 | rm -f conftest* |
b145d876 | 7390 | |
b145d876 | 7391 | fi |
d911ec67 AK |
7392 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
7393 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
7394 | if test $ac_cv_type_uid_t = no; then | |
80992638 | 7395 | |
d911ec67 AK |
7396 | cat >>confdefs.h <<\_ACEOF |
7397 | #define uid_t int | |
ad6254c5 | 7398 | _ACEOF |
199e490e | 7399 | |
b896caa1 | 7400 | |
d911ec67 AK |
7401 | cat >>confdefs.h <<\_ACEOF |
7402 | #define gid_t int | |
7403 | _ACEOF | |
7404 | ||
7405 | fi | |
7406 | ||
7407 | ||
7408 | { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5 | |
7409 | $as_echo_n "checking for uint8_t... " >&6; } | |
7410 | if test "${ac_cv_c_uint8_t+set}" = set; then | |
ec6a6fbe | 7411 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7412 | else |
d911ec67 AK |
7413 | ac_cv_c_uint8_t=no |
7414 | for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \ | |
7415 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7416 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
7417 | /* confdefs.h. */ |
7418 | _ACEOF | |
7419 | cat confdefs.h >>conftest.$ac_ext | |
7420 | cat >>conftest.$ac_ext <<_ACEOF | |
7421 | /* end confdefs.h. */ | |
7422 | $ac_includes_default | |
7423 | int | |
7424 | main () | |
7425 | { | |
d911ec67 AK |
7426 | static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)]; |
7427 | test_array [0] = 0 | |
7428 | ||
ad6254c5 AK |
7429 | ; |
7430 | return 0; | |
7431 | } | |
7432 | _ACEOF | |
7433 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7434 | if { (ac_try="$ac_compile" |
7435 | case "(($ac_try" in | |
7436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7437 | *) ac_try_echo=$ac_try;; | |
7438 | esac | |
ec6a6fbe AK |
7439 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7440 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7441 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7442 | ac_status=$? |
8a2fc586 AK |
7443 | grep -v '^ *+' conftest.er1 >conftest.err |
7444 | rm -f conftest.er1 | |
7445 | cat conftest.err >&5 | |
ec6a6fbe | 7446 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7447 | (exit $ac_status); } && { |
7448 | test -z "$ac_c_werror_flag" || | |
7449 | test ! -s conftest.err | |
7450 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7451 | case $ac_type in |
7452 | uint8_t) ac_cv_c_uint8_t=yes ;; | |
7453 | *) ac_cv_c_uint8_t=$ac_type ;; | |
7454 | esac | |
7455 | ||
7456 | else | |
7457 | $as_echo "$as_me: failed program was:" >&5 | |
7458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7459 | ||
7460 | ||
7461 | fi | |
7462 | ||
7463 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7464 | test "$ac_cv_c_uint8_t" != no && break | |
7465 | done | |
7466 | fi | |
7467 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5 | |
7468 | $as_echo "$ac_cv_c_uint8_t" >&6; } | |
7469 | case $ac_cv_c_uint8_t in #( | |
7470 | no|yes) ;; #( | |
7471 | *) | |
7472 | ||
7473 | cat >>confdefs.h <<\_ACEOF | |
7474 | #define _UINT8_T 1 | |
7475 | _ACEOF | |
7476 | ||
7477 | ||
7478 | cat >>confdefs.h <<_ACEOF | |
7479 | #define uint8_t $ac_cv_c_uint8_t | |
7480 | _ACEOF | |
7481 | ;; | |
7482 | esac | |
7483 | ||
7484 | ||
7485 | { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5 | |
7486 | $as_echo_n "checking for uint16_t... " >&6; } | |
7487 | if test "${ac_cv_c_uint16_t+set}" = set; then | |
7488 | $as_echo_n "(cached) " >&6 | |
7489 | else | |
7490 | ac_cv_c_uint16_t=no | |
7491 | for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ | |
7492 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7493 | cat >conftest.$ac_ext <<_ACEOF | |
d0191583 JM |
7494 | /* confdefs.h. */ |
7495 | _ACEOF | |
7496 | cat confdefs.h >>conftest.$ac_ext | |
7497 | cat >>conftest.$ac_ext <<_ACEOF | |
7498 | /* end confdefs.h. */ | |
ec6a6fbe | 7499 | $ac_includes_default |
d0191583 JM |
7500 | int |
7501 | main () | |
7502 | { | |
d911ec67 AK |
7503 | static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; |
7504 | test_array [0] = 0 | |
7505 | ||
d0191583 JM |
7506 | ; |
7507 | return 0; | |
7508 | } | |
7509 | _ACEOF | |
7510 | rm -f conftest.$ac_objext | |
7511 | if { (ac_try="$ac_compile" | |
7512 | case "(($ac_try" in | |
7513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7514 | *) ac_try_echo=$ac_try;; | |
7515 | esac | |
ec6a6fbe AK |
7516 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7517 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
7518 | (eval "$ac_compile") 2>conftest.er1 |
7519 | ac_status=$? | |
7520 | grep -v '^ *+' conftest.er1 >conftest.err | |
7521 | rm -f conftest.er1 | |
7522 | cat conftest.err >&5 | |
ec6a6fbe | 7523 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
7524 | (exit $ac_status); } && { |
7525 | test -z "$ac_c_werror_flag" || | |
7526 | test ! -s conftest.err | |
7527 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7528 | case $ac_type in |
7529 | uint16_t) ac_cv_c_uint16_t=yes ;; | |
7530 | *) ac_cv_c_uint16_t=$ac_type ;; | |
7531 | esac | |
ec6a6fbe | 7532 | |
ec6a6fbe AK |
7533 | else |
7534 | $as_echo "$as_me: failed program was:" >&5 | |
7535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7536 | ||
7537 | ||
d0191583 JM |
7538 | fi |
7539 | ||
7540 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7541 | test "$ac_cv_c_uint16_t" != no && break |
7542 | done | |
d0191583 | 7543 | fi |
d911ec67 AK |
7544 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
7545 | $as_echo "$ac_cv_c_uint16_t" >&6; } | |
7546 | case $ac_cv_c_uint16_t in #( | |
7547 | no|yes) ;; #( | |
7548 | *) | |
7549 | ||
d0191583 JM |
7550 | |
7551 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7552 | #define uint16_t $ac_cv_c_uint16_t |
d0191583 | 7553 | _ACEOF |
d911ec67 AK |
7554 | ;; |
7555 | esac | |
d0191583 JM |
7556 | |
7557 | ||
d911ec67 AK |
7558 | { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5 |
7559 | $as_echo_n "checking for uint32_t... " >&6; } | |
7560 | if test "${ac_cv_c_uint32_t+set}" = set; then | |
ec6a6fbe | 7561 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 7562 | else |
d911ec67 AK |
7563 | ac_cv_c_uint32_t=no |
7564 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ | |
7565 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7566 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
7567 | /* confdefs.h. */ |
7568 | _ACEOF | |
7569 | cat confdefs.h >>conftest.$ac_ext | |
7570 | cat >>conftest.$ac_ext <<_ACEOF | |
7571 | /* end confdefs.h. */ | |
7572 | $ac_includes_default | |
7573 | int | |
7574 | main () | |
7575 | { | |
d911ec67 AK |
7576 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
7577 | test_array [0] = 0 | |
7578 | ||
ad6254c5 AK |
7579 | ; |
7580 | return 0; | |
7581 | } | |
7582 | _ACEOF | |
7583 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7584 | if { (ac_try="$ac_compile" |
7585 | case "(($ac_try" in | |
7586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7587 | *) ac_try_echo=$ac_try;; | |
7588 | esac | |
ec6a6fbe AK |
7589 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7590 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7591 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7592 | ac_status=$? |
8a2fc586 AK |
7593 | grep -v '^ *+' conftest.er1 >conftest.err |
7594 | rm -f conftest.er1 | |
7595 | cat conftest.err >&5 | |
ec6a6fbe | 7596 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7597 | (exit $ac_status); } && { |
7598 | test -z "$ac_c_werror_flag" || | |
7599 | test ! -s conftest.err | |
7600 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7601 | case $ac_type in |
7602 | uint32_t) ac_cv_c_uint32_t=yes ;; | |
7603 | *) ac_cv_c_uint32_t=$ac_type ;; | |
7604 | esac | |
7605 | ||
7606 | else | |
7607 | $as_echo "$as_me: failed program was:" >&5 | |
7608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7609 | ||
7610 | ||
7611 | fi | |
7612 | ||
7613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7614 | test "$ac_cv_c_uint32_t" != no && break | |
7615 | done | |
7616 | fi | |
7617 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 | |
7618 | $as_echo "$ac_cv_c_uint32_t" >&6; } | |
7619 | case $ac_cv_c_uint32_t in #( | |
7620 | no|yes) ;; #( | |
7621 | *) | |
7622 | ||
7623 | cat >>confdefs.h <<\_ACEOF | |
7624 | #define _UINT32_T 1 | |
7625 | _ACEOF | |
7626 | ||
7627 | ||
7628 | cat >>confdefs.h <<_ACEOF | |
7629 | #define uint32_t $ac_cv_c_uint32_t | |
7630 | _ACEOF | |
7631 | ;; | |
7632 | esac | |
7633 | ||
7634 | ||
7635 | { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5 | |
7636 | $as_echo_n "checking for uint64_t... " >&6; } | |
7637 | if test "${ac_cv_c_uint64_t+set}" = set; then | |
7638 | $as_echo_n "(cached) " >&6 | |
7639 | else | |
7640 | ac_cv_c_uint64_t=no | |
7641 | for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \ | |
7642 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7643 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
7644 | /* confdefs.h. */ |
7645 | _ACEOF | |
7646 | cat confdefs.h >>conftest.$ac_ext | |
7647 | cat >>conftest.$ac_ext <<_ACEOF | |
7648 | /* end confdefs.h. */ | |
7649 | $ac_includes_default | |
7650 | int | |
7651 | main () | |
7652 | { | |
d911ec67 AK |
7653 | static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)]; |
7654 | test_array [0] = 0 | |
7655 | ||
ad6254c5 AK |
7656 | ; |
7657 | return 0; | |
7658 | } | |
7659 | _ACEOF | |
7660 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7661 | if { (ac_try="$ac_compile" |
7662 | case "(($ac_try" in | |
7663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7664 | *) ac_try_echo=$ac_try;; | |
7665 | esac | |
ec6a6fbe AK |
7666 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7667 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7668 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7669 | ac_status=$? |
8a2fc586 AK |
7670 | grep -v '^ *+' conftest.er1 >conftest.err |
7671 | rm -f conftest.er1 | |
7672 | cat conftest.err >&5 | |
ec6a6fbe | 7673 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7674 | (exit $ac_status); } && { |
7675 | test -z "$ac_c_werror_flag" || | |
7676 | test ! -s conftest.err | |
7677 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7678 | case $ac_type in |
7679 | uint64_t) ac_cv_c_uint64_t=yes ;; | |
7680 | *) ac_cv_c_uint64_t=$ac_type ;; | |
7681 | esac | |
ec6a6fbe | 7682 | |
fddafd51 | 7683 | else |
ec6a6fbe | 7684 | $as_echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
7685 | sed 's/^/| /' conftest.$ac_ext >&5 |
7686 | ||
ec6a6fbe | 7687 | |
80992638 | 7688 | fi |
7a197a62 AK |
7689 | |
7690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7691 | test "$ac_cv_c_uint64_t" != no && break |
7692 | done | |
ad6254c5 | 7693 | fi |
d911ec67 AK |
7694 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5 |
7695 | $as_echo "$ac_cv_c_uint64_t" >&6; } | |
7696 | case $ac_cv_c_uint64_t in #( | |
7697 | no|yes) ;; #( | |
7698 | *) | |
80992638 | 7699 | |
d911ec67 AK |
7700 | cat >>confdefs.h <<\_ACEOF |
7701 | #define _UINT64_T 1 | |
ad6254c5 AK |
7702 | _ACEOF |
7703 | ||
d911ec67 AK |
7704 | |
7705 | cat >>confdefs.h <<_ACEOF | |
7706 | #define uint64_t $ac_cv_c_uint64_t | |
7707 | _ACEOF | |
7708 | ;; | |
7709 | esac | |
ad6254c5 | 7710 | |
ec6a6fbe AK |
7711 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
7712 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
ad6254c5 | 7713 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 7714 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7715 | else |
7716 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7717 | /* confdefs.h. */ |
7718 | _ACEOF | |
7719 | cat confdefs.h >>conftest.$ac_ext | |
7720 | cat >>conftest.$ac_ext <<_ACEOF | |
7721 | /* end confdefs.h. */ | |
7722 | $ac_includes_default | |
7723 | int | |
7724 | main () | |
7725 | { | |
7726 | static struct stat ac_aggr; | |
7727 | if (ac_aggr.st_rdev) | |
7728 | return 0; | |
7729 | ; | |
7730 | return 0; | |
7731 | } | |
7732 | _ACEOF | |
7733 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7734 | if { (ac_try="$ac_compile" |
7735 | case "(($ac_try" in | |
7736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7737 | *) ac_try_echo=$ac_try;; | |
7738 | esac | |
ec6a6fbe AK |
7739 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7740 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7741 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7742 | ac_status=$? |
8a2fc586 AK |
7743 | grep -v '^ *+' conftest.er1 >conftest.err |
7744 | rm -f conftest.er1 | |
7745 | cat conftest.err >&5 | |
ec6a6fbe | 7746 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7747 | (exit $ac_status); } && { |
7748 | test -z "$ac_c_werror_flag" || | |
7749 | test ! -s conftest.err | |
7750 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7751 | ac_cv_member_struct_stat_st_rdev=yes |
7752 | else | |
ec6a6fbe | 7753 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7754 | sed 's/^/| /' conftest.$ac_ext >&5 |
7755 | ||
7a197a62 | 7756 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7757 | /* confdefs.h. */ |
7758 | _ACEOF | |
7759 | cat confdefs.h >>conftest.$ac_ext | |
7760 | cat >>conftest.$ac_ext <<_ACEOF | |
7761 | /* end confdefs.h. */ | |
7762 | $ac_includes_default | |
7763 | int | |
7764 | main () | |
7765 | { | |
7766 | static struct stat ac_aggr; | |
7767 | if (sizeof ac_aggr.st_rdev) | |
7768 | return 0; | |
7769 | ; | |
7770 | return 0; | |
7771 | } | |
7772 | _ACEOF | |
7773 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7774 | if { (ac_try="$ac_compile" |
7775 | case "(($ac_try" in | |
7776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7777 | *) ac_try_echo=$ac_try;; | |
7778 | esac | |
ec6a6fbe AK |
7779 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7780 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7781 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7782 | ac_status=$? |
8a2fc586 AK |
7783 | grep -v '^ *+' conftest.er1 >conftest.err |
7784 | rm -f conftest.er1 | |
7785 | cat conftest.err >&5 | |
ec6a6fbe | 7786 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7787 | (exit $ac_status); } && { |
7788 | test -z "$ac_c_werror_flag" || | |
7789 | test ! -s conftest.err | |
7790 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7791 | ac_cv_member_struct_stat_st_rdev=yes |
7792 | else | |
ec6a6fbe | 7793 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7794 | sed 's/^/| /' conftest.$ac_ext >&5 |
7795 | ||
7a197a62 | 7796 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 7797 | fi |
7a197a62 AK |
7798 | |
7799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 7800 | fi |
7a197a62 AK |
7801 | |
7802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 7803 | fi |
ec6a6fbe AK |
7804 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
7805 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
7806 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
ad6254c5 AK |
7807 | |
7808 | cat >>confdefs.h <<_ACEOF | |
7809 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
7810 | _ACEOF | |
7811 | ||
7812 | ||
ad6254c5 AK |
7813 | fi |
7814 | ||
ec6a6fbe AK |
7815 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
7816 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
ad6254c5 | 7817 | if test "${ac_cv_struct_tm+set}" = set; then |
ec6a6fbe | 7818 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7819 | else |
7820 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7821 | /* confdefs.h. */ |
7822 | _ACEOF | |
7823 | cat confdefs.h >>conftest.$ac_ext | |
7824 | cat >>conftest.$ac_ext <<_ACEOF | |
7825 | /* end confdefs.h. */ | |
7826 | #include <sys/types.h> | |
7827 | #include <time.h> | |
7828 | ||
7829 | int | |
7830 | main () | |
7831 | { | |
25fbec5b AK |
7832 | struct tm tm; |
7833 | int *p = &tm.tm_sec; | |
ec6a6fbe | 7834 | return !p; |
ad6254c5 AK |
7835 | ; |
7836 | return 0; | |
7837 | } | |
7838 | _ACEOF | |
7839 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7840 | if { (ac_try="$ac_compile" |
7841 | case "(($ac_try" in | |
7842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7843 | *) ac_try_echo=$ac_try;; | |
7844 | esac | |
ec6a6fbe AK |
7845 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7846 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7847 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7848 | ac_status=$? |
8a2fc586 AK |
7849 | grep -v '^ *+' conftest.er1 >conftest.err |
7850 | rm -f conftest.er1 | |
7851 | cat conftest.err >&5 | |
ec6a6fbe | 7852 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7853 | (exit $ac_status); } && { |
7854 | test -z "$ac_c_werror_flag" || | |
7855 | test ! -s conftest.err | |
d911ec67 AK |
7856 | } && test -s conftest.$ac_objext; then |
7857 | ac_cv_struct_tm=time.h | |
7858 | else | |
7859 | $as_echo "$as_me: failed program was:" >&5 | |
7860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7861 | ||
7862 | ac_cv_struct_tm=sys/time.h | |
7863 | fi | |
7864 | ||
7865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7866 | fi | |
7867 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | |
7868 | $as_echo "$ac_cv_struct_tm" >&6; } | |
7869 | if test $ac_cv_struct_tm = sys/time.h; then | |
7870 | ||
7871 | cat >>confdefs.h <<\_ACEOF | |
7872 | #define TM_IN_SYS_TIME 1 | |
7873 | _ACEOF | |
7874 | ||
7875 | fi | |
7876 | ||
7877 | ||
7878 | ################################################################################ | |
7879 | { $as_echo "$as_me:$LINENO: checking for library containing floor" >&5 | |
7880 | $as_echo_n "checking for library containing floor... " >&6; } | |
7881 | if test "${ac_cv_search_floor+set}" = set; then | |
7882 | $as_echo_n "(cached) " >&6 | |
7883 | else | |
7884 | ac_func_search_save_LIBS=$LIBS | |
7885 | cat >conftest.$ac_ext <<_ACEOF | |
7886 | /* confdefs.h. */ | |
7887 | _ACEOF | |
7888 | cat confdefs.h >>conftest.$ac_ext | |
7889 | cat >>conftest.$ac_ext <<_ACEOF | |
7890 | /* end confdefs.h. */ | |
7891 | ||
7892 | /* Override any GCC internal prototype to avoid an error. | |
7893 | Use char because int might match the return type of a GCC | |
7894 | builtin and then its argument prototype would still apply. */ | |
7895 | #ifdef __cplusplus | |
7896 | extern "C" | |
7897 | #endif | |
7898 | char floor (); | |
7899 | int | |
7900 | main () | |
7901 | { | |
7902 | return floor (); | |
7903 | ; | |
7904 | return 0; | |
7905 | } | |
7906 | _ACEOF | |
7907 | for ac_lib in '' m; do | |
7908 | if test -z "$ac_lib"; then | |
7909 | ac_res="none required" | |
7910 | else | |
7911 | ac_res=-l$ac_lib | |
7912 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7913 | fi | |
7914 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7915 | if { (ac_try="$ac_link" | |
7916 | case "(($ac_try" in | |
7917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7918 | *) ac_try_echo=$ac_try;; | |
7919 | esac | |
7920 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7921 | $as_echo "$ac_try_echo") >&5 | |
7922 | (eval "$ac_link") 2>conftest.er1 | |
7923 | ac_status=$? | |
7924 | grep -v '^ *+' conftest.er1 >conftest.err | |
7925 | rm -f conftest.er1 | |
7926 | cat conftest.err >&5 | |
7927 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7928 | (exit $ac_status); } && { | |
7929 | test -z "$ac_c_werror_flag" || | |
7930 | test ! -s conftest.err | |
7931 | } && test -s conftest$ac_exeext && { | |
7932 | test "$cross_compiling" = yes || | |
7933 | $as_test_x conftest$ac_exeext | |
7934 | }; then | |
7935 | ac_cv_search_floor=$ac_res | |
ad6254c5 | 7936 | else |
ec6a6fbe | 7937 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7938 | sed 's/^/| /' conftest.$ac_ext >&5 |
7939 | ||
7a197a62 | 7940 | |
ad6254c5 | 7941 | fi |
ad6254c5 | 7942 | |
d911ec67 AK |
7943 | rm -rf conftest.dSYM |
7944 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7945 | conftest$ac_exeext | |
7946 | if test "${ac_cv_search_floor+set}" = set; then | |
7947 | break | |
7948 | fi | |
7949 | done | |
7950 | if test "${ac_cv_search_floor+set}" = set; then | |
7951 | : | |
7952 | else | |
7953 | ac_cv_search_floor=no | |
7954 | fi | |
7955 | rm conftest.$ac_ext | |
7956 | LIBS=$ac_func_search_save_LIBS | |
7957 | fi | |
7958 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_floor" >&5 | |
7959 | $as_echo "$ac_cv_search_floor" >&6; } | |
7960 | ac_res=$ac_cv_search_floor | |
7961 | if test "$ac_res" != no; then | |
7962 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
ad6254c5 | 7963 | |
d911ec67 AK |
7964 | else |
7965 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
7966 | $as_echo "$as_me: error: bailing out" >&2;} | |
7967 | { (exit 1); exit 1; }; } | |
ad6254c5 | 7968 | fi |
809fae91 | 7969 | |
795ca3e5 | 7970 | |
ad6254c5 AK |
7971 | |
7972 | ||
7973 | ||
7974 | ||
7975 | ||
7976 | ||
7977 | ||
7978 | ||
7979 | ||
7980 | ||
7981 | ||
7982 | ||
7983 | ||
7984 | ||
d0191583 JM |
7985 | |
7986 | ||
7987 | ||
d911ec67 AK |
7988 | |
7989 | ||
7990 | ||
7991 | ||
7992 | ||
7993 | ||
7994 | ||
7995 | for ac_func in floor ftruncate gethostname getpagesize \ | |
7996 | gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \ | |
7997 | strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \ | |
7998 | strstr strtol strtoul uname | |
ad6254c5 | 7999 | do |
ec6a6fbe AK |
8000 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8001 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8002 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8003 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8004 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 8005 | else |
ad6254c5 | 8006 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8007 | /* confdefs.h. */ |
8008 | _ACEOF | |
8009 | cat confdefs.h >>conftest.$ac_ext | |
8010 | cat >>conftest.$ac_ext <<_ACEOF | |
8011 | /* end confdefs.h. */ | |
8a2fc586 AK |
8012 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8013 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8014 | #define $ac_func innocuous_$ac_func | |
8015 | ||
ad6254c5 AK |
8016 | /* System header to define __stub macros and hopefully few prototypes, |
8017 | which can conflict with char $ac_func (); below. | |
8018 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8019 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8020 | |
ad6254c5 AK |
8021 | #ifdef __STDC__ |
8022 | # include <limits.h> | |
8023 | #else | |
8024 | # include <assert.h> | |
8025 | #endif | |
8a2fc586 AK |
8026 | |
8027 | #undef $ac_func | |
8028 | ||
7a197a62 AK |
8029 | /* Override any GCC internal prototype to avoid an error. |
8030 | Use char because int might match the return type of a GCC | |
8031 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8032 | #ifdef __cplusplus |
8033 | extern "C" | |
ad6254c5 | 8034 | #endif |
ad6254c5 AK |
8035 | char $ac_func (); |
8036 | /* The GNU C library defines this for functions which it implements | |
8037 | to always fail with ENOSYS. Some functions are actually named | |
8038 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8039 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8040 | choke me |
ad6254c5 AK |
8041 | #endif |
8042 | ||
8043 | int | |
8044 | main () | |
8045 | { | |
7a197a62 | 8046 | return $ac_func (); |
ad6254c5 AK |
8047 | ; |
8048 | return 0; | |
8049 | } | |
8050 | _ACEOF | |
8051 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8052 | if { (ac_try="$ac_link" |
8053 | case "(($ac_try" in | |
8054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8055 | *) ac_try_echo=$ac_try;; | |
8056 | esac | |
ec6a6fbe AK |
8057 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8058 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8059 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8060 | ac_status=$? |
8a2fc586 AK |
8061 | grep -v '^ *+' conftest.er1 >conftest.err |
8062 | rm -f conftest.er1 | |
8063 | cat conftest.err >&5 | |
ec6a6fbe | 8064 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8065 | (exit $ac_status); } && { |
8066 | test -z "$ac_c_werror_flag" || | |
8067 | test ! -s conftest.err | |
ec6a6fbe AK |
8068 | } && test -s conftest$ac_exeext && { |
8069 | test "$cross_compiling" = yes || | |
8070 | $as_test_x conftest$ac_exeext | |
8071 | }; then | |
fc54be10 AK |
8072 | eval "$as_ac_var=yes" |
8073 | else | |
ec6a6fbe | 8074 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
8075 | sed 's/^/| /' conftest.$ac_ext >&5 |
8076 | ||
8077 | eval "$as_ac_var=no" | |
8078 | fi | |
8079 | ||
ec6a6fbe | 8080 | rm -rf conftest.dSYM |
25fbec5b | 8081 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
8082 | conftest$ac_exeext conftest.$ac_ext |
8083 | fi | |
ec6a6fbe AK |
8084 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8085 | $as_echo "$as_val"'` | |
8086 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8087 | $as_echo "$ac_res" >&6; } | |
8088 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8089 | $as_echo "$as_val"'` | |
8090 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8091 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8092 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8093 | _ACEOF |
8094 | ||
8095 | else | |
ec6a6fbe AK |
8096 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
8097 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
8098 | { (exit 1); exit 1; }; } |
8099 | fi | |
8100 | done | |
795ca3e5 | 8101 | |
a0f9708e AK |
8102 | |
8103 | for ac_func in siginterrupt | |
8104 | do | |
8105 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
8106 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8107 | $as_echo_n "checking for $ac_func... " >&6; } | |
8108 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
8109 | $as_echo_n "(cached) " >&6 | |
8110 | else | |
8111 | cat >conftest.$ac_ext <<_ACEOF | |
8112 | /* confdefs.h. */ | |
8113 | _ACEOF | |
8114 | cat confdefs.h >>conftest.$ac_ext | |
8115 | cat >>conftest.$ac_ext <<_ACEOF | |
8116 | /* end confdefs.h. */ | |
8117 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8118 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8119 | #define $ac_func innocuous_$ac_func | |
8120 | ||
8121 | /* System header to define __stub macros and hopefully few prototypes, | |
8122 | which can conflict with char $ac_func (); below. | |
8123 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8124 | <limits.h> exists even on freestanding compilers. */ | |
8125 | ||
8126 | #ifdef __STDC__ | |
8127 | # include <limits.h> | |
8128 | #else | |
8129 | # include <assert.h> | |
8130 | #endif | |
8131 | ||
8132 | #undef $ac_func | |
8133 | ||
8134 | /* Override any GCC internal prototype to avoid an error. | |
8135 | Use char because int might match the return type of a GCC | |
8136 | builtin and then its argument prototype would still apply. */ | |
8137 | #ifdef __cplusplus | |
8138 | extern "C" | |
8139 | #endif | |
8140 | char $ac_func (); | |
8141 | /* The GNU C library defines this for functions which it implements | |
8142 | to always fail with ENOSYS. Some functions are actually named | |
8143 | something starting with __ and the normal name is an alias. */ | |
8144 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8145 | choke me | |
8146 | #endif | |
8147 | ||
8148 | int | |
8149 | main () | |
8150 | { | |
8151 | return $ac_func (); | |
8152 | ; | |
8153 | return 0; | |
8154 | } | |
8155 | _ACEOF | |
8156 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8157 | if { (ac_try="$ac_link" | |
8158 | case "(($ac_try" in | |
8159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8160 | *) ac_try_echo=$ac_try;; | |
8161 | esac | |
8162 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8163 | $as_echo "$ac_try_echo") >&5 | |
8164 | (eval "$ac_link") 2>conftest.er1 | |
8165 | ac_status=$? | |
8166 | grep -v '^ *+' conftest.er1 >conftest.err | |
8167 | rm -f conftest.er1 | |
8168 | cat conftest.err >&5 | |
8169 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8170 | (exit $ac_status); } && { | |
8171 | test -z "$ac_c_werror_flag" || | |
8172 | test ! -s conftest.err | |
8173 | } && test -s conftest$ac_exeext && { | |
8174 | test "$cross_compiling" = yes || | |
8175 | $as_test_x conftest$ac_exeext | |
8176 | }; then | |
8177 | eval "$as_ac_var=yes" | |
8178 | else | |
8179 | $as_echo "$as_me: failed program was:" >&5 | |
8180 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8181 | ||
8182 | eval "$as_ac_var=no" | |
8183 | fi | |
8184 | ||
8185 | rm -rf conftest.dSYM | |
8186 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8187 | conftest$ac_exeext conftest.$ac_ext | |
8188 | fi | |
8189 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
8190 | $as_echo "$as_val"'` | |
8191 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8192 | $as_echo "$ac_res" >&6; } | |
8193 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8194 | $as_echo "$as_val"'` | |
8195 | if test "x$as_val" = x""yes; then | |
8196 | cat >>confdefs.h <<_ACEOF | |
8197 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8198 | _ACEOF | |
8199 | ||
8200 | fi | |
8201 | done | |
8202 | ||
ad6254c5 AK |
8203 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
8204 | # for constant arguments. Useless! | |
ec6a6fbe AK |
8205 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
8206 | $as_echo_n "checking for working alloca.h... " >&6; } | |
ad6254c5 | 8207 | if test "${ac_cv_working_alloca_h+set}" = set; then |
ec6a6fbe | 8208 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8209 | else |
8210 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8211 | /* confdefs.h. */ |
8212 | _ACEOF | |
8213 | cat confdefs.h >>conftest.$ac_ext | |
8214 | cat >>conftest.$ac_ext <<_ACEOF | |
8215 | /* end confdefs.h. */ | |
8216 | #include <alloca.h> | |
8217 | int | |
8218 | main () | |
8219 | { | |
8220 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 8221 | if (p) return 0; |
ad6254c5 AK |
8222 | ; |
8223 | return 0; | |
8224 | } | |
8225 | _ACEOF | |
8226 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8227 | if { (ac_try="$ac_link" |
8228 | case "(($ac_try" in | |
8229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8230 | *) ac_try_echo=$ac_try;; | |
8231 | esac | |
ec6a6fbe AK |
8232 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8233 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8234 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8235 | ac_status=$? |
8a2fc586 AK |
8236 | grep -v '^ *+' conftest.er1 >conftest.err |
8237 | rm -f conftest.er1 | |
8238 | cat conftest.err >&5 | |
ec6a6fbe | 8239 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8240 | (exit $ac_status); } && { |
8241 | test -z "$ac_c_werror_flag" || | |
8242 | test ! -s conftest.err | |
ec6a6fbe AK |
8243 | } && test -s conftest$ac_exeext && { |
8244 | test "$cross_compiling" = yes || | |
8245 | $as_test_x conftest$ac_exeext | |
8246 | }; then | |
ad6254c5 AK |
8247 | ac_cv_working_alloca_h=yes |
8248 | else | |
ec6a6fbe | 8249 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 8250 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 8251 | |
7a197a62 | 8252 | ac_cv_working_alloca_h=no |
ad6254c5 | 8253 | fi |
7a197a62 | 8254 | |
ec6a6fbe | 8255 | rm -rf conftest.dSYM |
25fbec5b | 8256 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8257 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8258 | fi |
ec6a6fbe AK |
8259 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
8260 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
8261 | if test $ac_cv_working_alloca_h = yes; then |
8262 | ||
8263 | cat >>confdefs.h <<\_ACEOF | |
8264 | #define HAVE_ALLOCA_H 1 | |
8265 | _ACEOF | |
8266 | ||
8267 | fi | |
8268 | ||
ec6a6fbe AK |
8269 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
8270 | $as_echo_n "checking for alloca... " >&6; } | |
ad6254c5 | 8271 | if test "${ac_cv_func_alloca_works+set}" = set; then |
ec6a6fbe | 8272 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8273 | else |
8274 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8275 | /* confdefs.h. */ |
8276 | _ACEOF | |
8277 | cat confdefs.h >>conftest.$ac_ext | |
8278 | cat >>conftest.$ac_ext <<_ACEOF | |
8279 | /* end confdefs.h. */ | |
8280 | #ifdef __GNUC__ | |
8281 | # define alloca __builtin_alloca | |
8282 | #else | |
8283 | # ifdef _MSC_VER | |
8284 | # include <malloc.h> | |
8285 | # define alloca _alloca | |
8286 | # else | |
25fbec5b | 8287 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
8288 | # include <alloca.h> |
8289 | # else | |
8290 | # ifdef _AIX | |
8291 | #pragma alloca | |
8292 | # else | |
8293 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
8294 | char *alloca (); | |
8295 | # endif | |
8296 | # endif | |
8297 | # endif | |
8298 | # endif | |
8299 | #endif | |
8300 | ||
8301 | int | |
8302 | main () | |
8303 | { | |
8304 | char *p = (char *) alloca (1); | |
7a197a62 | 8305 | if (p) return 0; |
ad6254c5 AK |
8306 | ; |
8307 | return 0; | |
8308 | } | |
8309 | _ACEOF | |
8310 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8311 | if { (ac_try="$ac_link" |
8312 | case "(($ac_try" in | |
8313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8314 | *) ac_try_echo=$ac_try;; | |
8315 | esac | |
ec6a6fbe AK |
8316 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8317 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8318 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8319 | ac_status=$? |
8a2fc586 AK |
8320 | grep -v '^ *+' conftest.er1 >conftest.err |
8321 | rm -f conftest.er1 | |
8322 | cat conftest.err >&5 | |
ec6a6fbe | 8323 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8324 | (exit $ac_status); } && { |
8325 | test -z "$ac_c_werror_flag" || | |
8326 | test ! -s conftest.err | |
ec6a6fbe AK |
8327 | } && test -s conftest$ac_exeext && { |
8328 | test "$cross_compiling" = yes || | |
8329 | $as_test_x conftest$ac_exeext | |
8330 | }; then | |
ad6254c5 AK |
8331 | ac_cv_func_alloca_works=yes |
8332 | else | |
ec6a6fbe | 8333 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8334 | sed 's/^/| /' conftest.$ac_ext >&5 |
8335 | ||
7a197a62 | 8336 | ac_cv_func_alloca_works=no |
ad6254c5 | 8337 | fi |
7a197a62 | 8338 | |
ec6a6fbe | 8339 | rm -rf conftest.dSYM |
25fbec5b | 8340 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8341 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8342 | fi |
ec6a6fbe AK |
8343 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
8344 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
8345 | |
8346 | if test $ac_cv_func_alloca_works = yes; then | |
8347 | ||
8348 | cat >>confdefs.h <<\_ACEOF | |
8349 | #define HAVE_ALLOCA 1 | |
8350 | _ACEOF | |
8351 | ||
8352 | else | |
8353 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
8354 | # that cause trouble. Some versions do not even contain alloca or | |
8355 | # contain a buggy version. If you still want to use their alloca, | |
8356 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
8357 | ||
7a197a62 | 8358 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
8359 | |
8360 | cat >>confdefs.h <<\_ACEOF | |
8361 | #define C_ALLOCA 1 | |
8362 | _ACEOF | |
8363 | ||
8364 | ||
ec6a6fbe AK |
8365 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
8366 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
ad6254c5 | 8367 | if test "${ac_cv_os_cray+set}" = set; then |
ec6a6fbe | 8368 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8369 | else |
8370 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8371 | /* confdefs.h. */ |
8372 | _ACEOF | |
8373 | cat confdefs.h >>conftest.$ac_ext | |
8374 | cat >>conftest.$ac_ext <<_ACEOF | |
8375 | /* end confdefs.h. */ | |
7a197a62 | 8376 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
8377 | webecray |
8378 | #else | |
8379 | wenotbecray | |
8380 | #endif | |
8381 | ||
8382 | _ACEOF | |
795ca3e5 | 8383 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
8384 | $EGREP "webecray" >/dev/null 2>&1; then |
8385 | ac_cv_os_cray=yes | |
8386 | else | |
8387 | ac_cv_os_cray=no | |
795ca3e5 AK |
8388 | fi |
8389 | rm -f conftest* | |
8390 | ||
795ca3e5 | 8391 | fi |
ec6a6fbe AK |
8392 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
8393 | $as_echo "$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
8394 | if test $ac_cv_os_cray = yes; then |
8395 | for ac_func in _getb67 GETB67 getb67; do | |
ec6a6fbe AK |
8396 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8397 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8398 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8399 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8400 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8401 | else |
8402 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8403 | /* confdefs.h. */ |
8404 | _ACEOF | |
8405 | cat confdefs.h >>conftest.$ac_ext | |
8406 | cat >>conftest.$ac_ext <<_ACEOF | |
8407 | /* end confdefs.h. */ | |
8a2fc586 AK |
8408 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8409 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8410 | #define $ac_func innocuous_$ac_func | |
8411 | ||
ad6254c5 AK |
8412 | /* System header to define __stub macros and hopefully few prototypes, |
8413 | which can conflict with char $ac_func (); below. | |
8414 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8415 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8416 | |
ad6254c5 AK |
8417 | #ifdef __STDC__ |
8418 | # include <limits.h> | |
8419 | #else | |
8420 | # include <assert.h> | |
8421 | #endif | |
8a2fc586 AK |
8422 | |
8423 | #undef $ac_func | |
8424 | ||
7a197a62 AK |
8425 | /* Override any GCC internal prototype to avoid an error. |
8426 | Use char because int might match the return type of a GCC | |
8427 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8428 | #ifdef __cplusplus |
8429 | extern "C" | |
ad6254c5 | 8430 | #endif |
ad6254c5 AK |
8431 | char $ac_func (); |
8432 | /* The GNU C library defines this for functions which it implements | |
8433 | to always fail with ENOSYS. Some functions are actually named | |
8434 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8435 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8436 | choke me |
ad6254c5 AK |
8437 | #endif |
8438 | ||
8439 | int | |
8440 | main () | |
8441 | { | |
7a197a62 | 8442 | return $ac_func (); |
ad6254c5 AK |
8443 | ; |
8444 | return 0; | |
8445 | } | |
8446 | _ACEOF | |
8447 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8448 | if { (ac_try="$ac_link" |
8449 | case "(($ac_try" in | |
8450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8451 | *) ac_try_echo=$ac_try;; | |
8452 | esac | |
ec6a6fbe AK |
8453 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8454 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8455 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8456 | ac_status=$? |
8a2fc586 AK |
8457 | grep -v '^ *+' conftest.er1 >conftest.err |
8458 | rm -f conftest.er1 | |
8459 | cat conftest.err >&5 | |
ec6a6fbe | 8460 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8461 | (exit $ac_status); } && { |
8462 | test -z "$ac_c_werror_flag" || | |
8463 | test ! -s conftest.err | |
ec6a6fbe AK |
8464 | } && test -s conftest$ac_exeext && { |
8465 | test "$cross_compiling" = yes || | |
8466 | $as_test_x conftest$ac_exeext | |
8467 | }; then | |
ad6254c5 AK |
8468 | eval "$as_ac_var=yes" |
8469 | else | |
ec6a6fbe | 8470 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8471 | sed 's/^/| /' conftest.$ac_ext >&5 |
8472 | ||
7a197a62 | 8473 | eval "$as_ac_var=no" |
ad6254c5 | 8474 | fi |
7a197a62 | 8475 | |
ec6a6fbe | 8476 | rm -rf conftest.dSYM |
25fbec5b | 8477 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8478 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8479 | fi |
ec6a6fbe AK |
8480 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8481 | $as_echo "$as_val"'` | |
8482 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8483 | $as_echo "$ac_res" >&6; } | |
8484 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8485 | $as_echo "$as_val"'` | |
8486 | if test "x$as_val" = x""yes; then | |
80992638 | 8487 | |
ad6254c5 AK |
8488 | cat >>confdefs.h <<_ACEOF |
8489 | #define CRAY_STACKSEG_END $ac_func | |
8490 | _ACEOF | |
8491 | ||
8492 | break | |
8493 | fi | |
8494 | ||
8495 | done | |
8496 | fi | |
8497 | ||
ec6a6fbe AK |
8498 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
8499 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
ad6254c5 | 8500 | if test "${ac_cv_c_stack_direction+set}" = set; then |
ec6a6fbe | 8501 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8502 | else |
8503 | if test "$cross_compiling" = yes; then | |
8504 | ac_cv_c_stack_direction=0 | |
8505 | else | |
8506 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8507 | /* confdefs.h. */ |
8508 | _ACEOF | |
8509 | cat confdefs.h >>conftest.$ac_ext | |
8510 | cat >>conftest.$ac_ext <<_ACEOF | |
8511 | /* end confdefs.h. */ | |
7a197a62 | 8512 | $ac_includes_default |
ad6254c5 AK |
8513 | int |
8514 | find_stack_direction () | |
8515 | { | |
8516 | static char *addr = 0; | |
8517 | auto char dummy; | |
8518 | if (addr == 0) | |
8519 | { | |
8520 | addr = &dummy; | |
8521 | return find_stack_direction (); | |
8522 | } | |
8523 | else | |
8524 | return (&dummy > addr) ? 1 : -1; | |
8525 | } | |
8526 | ||
8527 | int | |
8528 | main () | |
8529 | { | |
7a197a62 | 8530 | return find_stack_direction () < 0; |
ad6254c5 AK |
8531 | } |
8532 | _ACEOF | |
8533 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8534 | if { (ac_try="$ac_link" |
8535 | case "(($ac_try" in | |
8536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8537 | *) ac_try_echo=$ac_try;; | |
8538 | esac | |
ec6a6fbe AK |
8539 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8540 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8541 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8542 | ac_status=$? |
ec6a6fbe | 8543 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8544 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8545 | { (case "(($ac_try" in |
8546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8547 | *) ac_try_echo=$ac_try;; | |
8548 | esac | |
ec6a6fbe AK |
8549 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8550 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8551 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8552 | ac_status=$? |
ec6a6fbe | 8553 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8554 | (exit $ac_status); }; }; then |
8555 | ac_cv_c_stack_direction=1 | |
8556 | else | |
ec6a6fbe AK |
8557 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8558 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8559 | sed 's/^/| /' conftest.$ac_ext >&5 |
8560 | ||
8561 | ( exit $ac_status ) | |
8562 | ac_cv_c_stack_direction=-1 | |
8563 | fi | |
ec6a6fbe | 8564 | rm -rf conftest.dSYM |
7a197a62 | 8565 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8566 | fi |
7a197a62 AK |
8567 | |
8568 | ||
ad6254c5 | 8569 | fi |
ec6a6fbe AK |
8570 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
8571 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 | 8572 | |
d911ec67 AK |
8573 | cat >>confdefs.h <<_ACEOF |
8574 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
8575 | _ACEOF | |
8576 | ||
8577 | ||
8578 | fi | |
8579 | ||
8580 | { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5 | |
8581 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
8582 | if test "${ac_cv_func_closedir_void+set}" = set; then | |
8583 | $as_echo_n "(cached) " >&6 | |
8584 | else | |
8585 | if test "$cross_compiling" = yes; then | |
8586 | ac_cv_func_closedir_void=yes | |
8587 | else | |
8588 | cat >conftest.$ac_ext <<_ACEOF | |
8589 | /* confdefs.h. */ | |
8590 | _ACEOF | |
8591 | cat confdefs.h >>conftest.$ac_ext | |
8592 | cat >>conftest.$ac_ext <<_ACEOF | |
8593 | /* end confdefs.h. */ | |
8594 | $ac_includes_default | |
8595 | #include <$ac_header_dirent> | |
8596 | #ifndef __cplusplus | |
8597 | int closedir (); | |
8598 | #endif | |
8599 | ||
8600 | int | |
8601 | main () | |
8602 | { | |
8603 | return closedir (opendir (".")) != 0; | |
8604 | ; | |
8605 | return 0; | |
8606 | } | |
8607 | _ACEOF | |
8608 | rm -f conftest$ac_exeext | |
8609 | if { (ac_try="$ac_link" | |
8610 | case "(($ac_try" in | |
8611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8612 | *) ac_try_echo=$ac_try;; | |
8613 | esac | |
8614 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8615 | $as_echo "$ac_try_echo") >&5 | |
8616 | (eval "$ac_link") 2>&5 | |
8617 | ac_status=$? | |
8618 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8619 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8620 | { (case "(($ac_try" in | |
8621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8622 | *) ac_try_echo=$ac_try;; | |
8623 | esac | |
8624 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8625 | $as_echo "$ac_try_echo") >&5 | |
8626 | (eval "$ac_try") 2>&5 | |
8627 | ac_status=$? | |
8628 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8629 | (exit $ac_status); }; }; then | |
8630 | ac_cv_func_closedir_void=no | |
8631 | else | |
8632 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
8633 | $as_echo "$as_me: failed program was:" >&5 | |
8634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8635 | ||
8636 | ( exit $ac_status ) | |
8637 | ac_cv_func_closedir_void=yes | |
8638 | fi | |
8639 | rm -rf conftest.dSYM | |
8640 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8641 | fi | |
8642 | ||
8643 | ||
8644 | fi | |
8645 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 | |
8646 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
8647 | if test $ac_cv_func_closedir_void = yes; then | |
8648 | ||
8649 | cat >>confdefs.h <<\_ACEOF | |
8650 | #define CLOSEDIR_VOID 1 | |
8651 | _ACEOF | |
8652 | ||
8653 | fi | |
8654 | ||
8655 | ||
8656 | for ac_header in unistd.h | |
8657 | do | |
8658 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8659 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8660 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8661 | $as_echo_n "checking for $ac_header... " >&6; } | |
8662 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8663 | $as_echo_n "(cached) " >&6 | |
8664 | fi | |
8665 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8666 | $as_echo "$as_val"'` | |
8667 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8668 | $as_echo "$ac_res" >&6; } | |
8669 | else | |
8670 | # Is the header compilable? | |
8671 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8672 | $as_echo_n "checking $ac_header usability... " >&6; } | |
8673 | cat >conftest.$ac_ext <<_ACEOF | |
8674 | /* confdefs.h. */ | |
8675 | _ACEOF | |
8676 | cat confdefs.h >>conftest.$ac_ext | |
8677 | cat >>conftest.$ac_ext <<_ACEOF | |
8678 | /* end confdefs.h. */ | |
8679 | $ac_includes_default | |
8680 | #include <$ac_header> | |
8681 | _ACEOF | |
8682 | rm -f conftest.$ac_objext | |
8683 | if { (ac_try="$ac_compile" | |
8684 | case "(($ac_try" in | |
8685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8686 | *) ac_try_echo=$ac_try;; | |
8687 | esac | |
8688 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8689 | $as_echo "$ac_try_echo") >&5 | |
8690 | (eval "$ac_compile") 2>conftest.er1 | |
8691 | ac_status=$? | |
8692 | grep -v '^ *+' conftest.er1 >conftest.err | |
8693 | rm -f conftest.er1 | |
8694 | cat conftest.err >&5 | |
8695 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8696 | (exit $ac_status); } && { | |
8697 | test -z "$ac_c_werror_flag" || | |
8698 | test ! -s conftest.err | |
8699 | } && test -s conftest.$ac_objext; then | |
8700 | ac_header_compiler=yes | |
8701 | else | |
8702 | $as_echo "$as_me: failed program was:" >&5 | |
8703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8704 | ||
8705 | ac_header_compiler=no | |
8706 | fi | |
8707 | ||
8708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8709 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8710 | $as_echo "$ac_header_compiler" >&6; } | |
8711 | ||
8712 | # Is the header present? | |
8713 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8714 | $as_echo_n "checking $ac_header presence... " >&6; } | |
8715 | cat >conftest.$ac_ext <<_ACEOF | |
8716 | /* confdefs.h. */ | |
8717 | _ACEOF | |
8718 | cat confdefs.h >>conftest.$ac_ext | |
8719 | cat >>conftest.$ac_ext <<_ACEOF | |
8720 | /* end confdefs.h. */ | |
8721 | #include <$ac_header> | |
8722 | _ACEOF | |
8723 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
8724 | case "(($ac_try" in | |
8725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8726 | *) ac_try_echo=$ac_try;; | |
8727 | esac | |
8728 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8729 | $as_echo "$ac_try_echo") >&5 | |
8730 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
8731 | ac_status=$? | |
8732 | grep -v '^ *+' conftest.er1 >conftest.err | |
8733 | rm -f conftest.er1 | |
8734 | cat conftest.err >&5 | |
8735 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8736 | (exit $ac_status); } >/dev/null && { | |
8737 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8738 | test ! -s conftest.err | |
8739 | }; then | |
8740 | ac_header_preproc=yes | |
8741 | else | |
8742 | $as_echo "$as_me: failed program was:" >&5 | |
8743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8744 | ||
8745 | ac_header_preproc=no | |
8746 | fi | |
8747 | ||
8748 | rm -f conftest.err conftest.$ac_ext | |
8749 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8750 | $as_echo "$ac_header_preproc" >&6; } | |
8751 | ||
8752 | # So? What about this header? | |
8753 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8754 | yes:no: ) | |
8755 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8756 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8757 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8758 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8759 | ac_header_preproc=yes | |
8760 | ;; | |
8761 | no:yes:* ) | |
8762 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8763 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8764 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8765 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8766 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8767 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8768 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8769 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8770 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8771 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8772 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8773 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8774 | ||
8775 | ;; | |
8776 | esac | |
8777 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8778 | $as_echo_n "checking for $ac_header... " >&6; } | |
8779 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8780 | $as_echo_n "(cached) " >&6 | |
8781 | else | |
8782 | eval "$as_ac_Header=\$ac_header_preproc" | |
8783 | fi | |
8784 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8785 | $as_echo "$as_val"'` | |
8786 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8787 | $as_echo "$ac_res" >&6; } | |
8788 | ||
8789 | fi | |
8790 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
8791 | $as_echo "$as_val"'` | |
8792 | if test "x$as_val" = x""yes; then | |
8793 | cat >>confdefs.h <<_ACEOF | |
8794 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ad6254c5 AK |
8795 | _ACEOF |
8796 | ||
ad6254c5 AK |
8797 | fi |
8798 | ||
d911ec67 AK |
8799 | done |
8800 | ||
8801 | { $as_echo "$as_me:$LINENO: checking for working chown" >&5 | |
8802 | $as_echo_n "checking for working chown... " >&6; } | |
8803 | if test "${ac_cv_func_chown_works+set}" = set; then | |
ec6a6fbe | 8804 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8805 | else |
8806 | if test "$cross_compiling" = yes; then | |
d911ec67 | 8807 | ac_cv_func_chown_works=no |
ad6254c5 AK |
8808 | else |
8809 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8810 | /* confdefs.h. */ |
8811 | _ACEOF | |
8812 | cat confdefs.h >>conftest.$ac_ext | |
8813 | cat >>conftest.$ac_ext <<_ACEOF | |
8814 | /* end confdefs.h. */ | |
8815 | $ac_includes_default | |
d911ec67 | 8816 | #include <fcntl.h> |
ad6254c5 AK |
8817 | |
8818 | int | |
8819 | main () | |
8820 | { | |
d911ec67 AK |
8821 | char *f = "conftest.chown"; |
8822 | struct stat before, after; | |
8823 | ||
8824 | if (creat (f, 0600) < 0) | |
8825 | return 1; | |
8826 | if (stat (f, &before) < 0) | |
8827 | return 1; | |
8828 | if (chown (f, (uid_t) -1, (gid_t) -1) == -1) | |
8829 | return 1; | |
8830 | if (stat (f, &after) < 0) | |
8831 | return 1; | |
8832 | return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); | |
8833 | ||
ad6254c5 AK |
8834 | ; |
8835 | return 0; | |
8836 | } | |
8837 | _ACEOF | |
8838 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8839 | if { (ac_try="$ac_link" |
8840 | case "(($ac_try" in | |
8841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8842 | *) ac_try_echo=$ac_try;; | |
8843 | esac | |
ec6a6fbe AK |
8844 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8845 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8846 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8847 | ac_status=$? |
ec6a6fbe | 8848 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8849 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8850 | { (case "(($ac_try" in |
8851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8852 | *) ac_try_echo=$ac_try;; | |
8853 | esac | |
ec6a6fbe AK |
8854 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8855 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8856 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8857 | ac_status=$? |
ec6a6fbe | 8858 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8859 | (exit $ac_status); }; }; then |
d911ec67 | 8860 | ac_cv_func_chown_works=yes |
ad6254c5 | 8861 | else |
ec6a6fbe AK |
8862 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8863 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8864 | sed 's/^/| /' conftest.$ac_ext >&5 |
8865 | ||
8866 | ( exit $ac_status ) | |
d911ec67 | 8867 | ac_cv_func_chown_works=no |
ad6254c5 | 8868 | fi |
ec6a6fbe | 8869 | rm -rf conftest.dSYM |
7a197a62 | 8870 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8871 | fi |
7a197a62 AK |
8872 | |
8873 | ||
d911ec67 AK |
8874 | rm -f conftest.chown |
8875 | ||
ad6254c5 | 8876 | fi |
d911ec67 AK |
8877 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5 |
8878 | $as_echo "$ac_cv_func_chown_works" >&6; } | |
8879 | if test $ac_cv_func_chown_works = yes; then | |
ad6254c5 AK |
8880 | |
8881 | cat >>confdefs.h <<\_ACEOF | |
d911ec67 | 8882 | #define HAVE_CHOWN 1 |
ad6254c5 AK |
8883 | _ACEOF |
8884 | ||
8885 | fi | |
8886 | ||
8887 | ||
7a197a62 | 8888 | for ac_header in vfork.h |
ad6254c5 | 8889 | do |
ec6a6fbe | 8890 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 8891 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
8892 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8893 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8894 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8895 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8896 | fi |
ec6a6fbe AK |
8897 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8898 | $as_echo "$as_val"'` | |
8899 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8900 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8901 | else |
8902 | # Is the header compilable? | |
ec6a6fbe AK |
8903 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8904 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 8905 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8906 | /* confdefs.h. */ |
8907 | _ACEOF | |
8908 | cat confdefs.h >>conftest.$ac_ext | |
8909 | cat >>conftest.$ac_ext <<_ACEOF | |
8910 | /* end confdefs.h. */ | |
8911 | $ac_includes_default | |
8912 | #include <$ac_header> | |
8913 | _ACEOF | |
8914 | rm -f conftest.$ac_objext | |
7a197a62 AK |
8915 | if { (ac_try="$ac_compile" |
8916 | case "(($ac_try" in | |
8917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8918 | *) ac_try_echo=$ac_try;; | |
8919 | esac | |
ec6a6fbe AK |
8920 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8921 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8922 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 8923 | ac_status=$? |
8a2fc586 AK |
8924 | grep -v '^ *+' conftest.er1 >conftest.err |
8925 | rm -f conftest.er1 | |
8926 | cat conftest.err >&5 | |
ec6a6fbe | 8927 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8928 | (exit $ac_status); } && { |
8929 | test -z "$ac_c_werror_flag" || | |
8930 | test ! -s conftest.err | |
8931 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
8932 | ac_header_compiler=yes |
8933 | else | |
ec6a6fbe | 8934 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8935 | sed 's/^/| /' conftest.$ac_ext >&5 |
8936 | ||
7a197a62 | 8937 | ac_header_compiler=no |
ad6254c5 | 8938 | fi |
7a197a62 AK |
8939 | |
8940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
8941 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8942 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
8943 | |
8944 | # Is the header present? | |
ec6a6fbe AK |
8945 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8946 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 8947 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8948 | /* confdefs.h. */ |
8949 | _ACEOF | |
8950 | cat confdefs.h >>conftest.$ac_ext | |
8951 | cat >>conftest.$ac_ext <<_ACEOF | |
8952 | /* end confdefs.h. */ | |
8953 | #include <$ac_header> | |
8954 | _ACEOF | |
7a197a62 AK |
8955 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8956 | case "(($ac_try" in | |
8957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8958 | *) ac_try_echo=$ac_try;; | |
8959 | esac | |
ec6a6fbe AK |
8960 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8961 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8962 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
8963 | ac_status=$? |
8964 | grep -v '^ *+' conftest.er1 >conftest.err | |
8965 | rm -f conftest.er1 | |
8966 | cat conftest.err >&5 | |
ec6a6fbe | 8967 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8968 | (exit $ac_status); } >/dev/null && { |
8969 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8970 | test ! -s conftest.err | |
8971 | }; then | |
ad6254c5 AK |
8972 | ac_header_preproc=yes |
8973 | else | |
ec6a6fbe | 8974 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8975 | sed 's/^/| /' conftest.$ac_ext >&5 |
8976 | ||
8977 | ac_header_preproc=no | |
8978 | fi | |
7a197a62 | 8979 | |
ad6254c5 | 8980 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
8981 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8982 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
8983 | |
8984 | # So? What about this header? | |
8a2fc586 AK |
8985 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8986 | yes:no: ) | |
ec6a6fbe AK |
8987 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8988 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8989 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8990 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 8991 | ac_header_preproc=yes |
ad6254c5 | 8992 | ;; |
8a2fc586 | 8993 | no:yes:* ) |
ec6a6fbe AK |
8994 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8995 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8996 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8997 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8998 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8999 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9000 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9001 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9002 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9003 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9004 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9005 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9006 | |
ad6254c5 AK |
9007 | ;; |
9008 | esac | |
ec6a6fbe AK |
9009 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9010 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9011 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9012 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9013 | else |
8a2fc586 | 9014 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9015 | fi |
ec6a6fbe AK |
9016 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9017 | $as_echo "$as_val"'` | |
9018 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9019 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 9020 | |
795ca3e5 | 9021 | fi |
ec6a6fbe AK |
9022 | as_val=`eval 'as_val=${'$as_ac_Header'} |
9023 | $as_echo "$as_val"'` | |
9024 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 9025 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9026 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
9027 | _ACEOF |
9028 | ||
9029 | fi | |
9030 | ||
9031 | done | |
795ca3e5 | 9032 | |
ad6254c5 AK |
9033 | |
9034 | ||
9035 | for ac_func in fork vfork | |
9036 | do | |
ec6a6fbe AK |
9037 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9038 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9039 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 9040 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9041 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 9042 | else |
ad6254c5 | 9043 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9044 | /* confdefs.h. */ |
9045 | _ACEOF | |
9046 | cat confdefs.h >>conftest.$ac_ext | |
9047 | cat >>conftest.$ac_ext <<_ACEOF | |
9048 | /* end confdefs.h. */ | |
8a2fc586 AK |
9049 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9050 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9051 | #define $ac_func innocuous_$ac_func | |
9052 | ||
ad6254c5 AK |
9053 | /* System header to define __stub macros and hopefully few prototypes, |
9054 | which can conflict with char $ac_func (); below. | |
9055 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9056 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9057 | |
ad6254c5 AK |
9058 | #ifdef __STDC__ |
9059 | # include <limits.h> | |
9060 | #else | |
9061 | # include <assert.h> | |
795ca3e5 | 9062 | #endif |
8a2fc586 AK |
9063 | |
9064 | #undef $ac_func | |
9065 | ||
7a197a62 AK |
9066 | /* Override any GCC internal prototype to avoid an error. |
9067 | Use char because int might match the return type of a GCC | |
9068 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 9069 | #ifdef __cplusplus |
ad6254c5 | 9070 | extern "C" |
ad6254c5 | 9071 | #endif |
ad6254c5 AK |
9072 | char $ac_func (); |
9073 | /* The GNU C library defines this for functions which it implements | |
9074 | to always fail with ENOSYS. Some functions are actually named | |
9075 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 9076 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 9077 | choke me |
795ca3e5 AK |
9078 | #endif |
9079 | ||
ad6254c5 AK |
9080 | int |
9081 | main () | |
9082 | { | |
7a197a62 | 9083 | return $ac_func (); |
ad6254c5 AK |
9084 | ; |
9085 | return 0; | |
9086 | } | |
9087 | _ACEOF | |
9088 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9089 | if { (ac_try="$ac_link" |
9090 | case "(($ac_try" in | |
9091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9092 | *) ac_try_echo=$ac_try;; | |
9093 | esac | |
ec6a6fbe AK |
9094 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9095 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9096 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9097 | ac_status=$? |
8a2fc586 AK |
9098 | grep -v '^ *+' conftest.er1 >conftest.err |
9099 | rm -f conftest.er1 | |
9100 | cat conftest.err >&5 | |
ec6a6fbe | 9101 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9102 | (exit $ac_status); } && { |
9103 | test -z "$ac_c_werror_flag" || | |
9104 | test ! -s conftest.err | |
ec6a6fbe AK |
9105 | } && test -s conftest$ac_exeext && { |
9106 | test "$cross_compiling" = yes || | |
9107 | $as_test_x conftest$ac_exeext | |
9108 | }; then | |
ad6254c5 | 9109 | eval "$as_ac_var=yes" |
795ca3e5 | 9110 | else |
ec6a6fbe | 9111 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9112 | sed 's/^/| /' conftest.$ac_ext >&5 |
9113 | ||
7a197a62 | 9114 | eval "$as_ac_var=no" |
795ca3e5 | 9115 | fi |
7a197a62 | 9116 | |
ec6a6fbe | 9117 | rm -rf conftest.dSYM |
25fbec5b | 9118 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9119 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 9120 | fi |
ec6a6fbe AK |
9121 | ac_res=`eval 'as_val=${'$as_ac_var'} |
9122 | $as_echo "$as_val"'` | |
9123 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9124 | $as_echo "$ac_res" >&6; } | |
9125 | as_val=`eval 'as_val=${'$as_ac_var'} | |
9126 | $as_echo "$as_val"'` | |
9127 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 9128 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9129 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
9130 | _ACEOF |
9131 | ||
9132 | fi | |
9133 | done | |
9134 | ||
9135 | if test "x$ac_cv_func_fork" = xyes; then | |
ec6a6fbe AK |
9136 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
9137 | $as_echo_n "checking for working fork... " >&6; } | |
ad6254c5 | 9138 | if test "${ac_cv_func_fork_works+set}" = set; then |
ec6a6fbe | 9139 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9140 | else |
9141 | if test "$cross_compiling" = yes; then | |
9142 | ac_cv_func_fork_works=cross | |
9143 | else | |
9144 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
9145 | /* confdefs.h. */ |
9146 | _ACEOF | |
9147 | cat confdefs.h >>conftest.$ac_ext | |
9148 | cat >>conftest.$ac_ext <<_ACEOF | |
9149 | /* end confdefs.h. */ | |
9150 | $ac_includes_default | |
9151 | int | |
9152 | main () | |
9153 | { | |
9154 | ||
9155 | /* By Ruediger Kuhlmann. */ | |
9156 | return fork () < 0; | |
9157 | ||
9158 | ; | |
9159 | return 0; | |
9160 | } | |
ad6254c5 AK |
9161 | _ACEOF |
9162 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9163 | if { (ac_try="$ac_link" |
9164 | case "(($ac_try" in | |
9165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9166 | *) ac_try_echo=$ac_try;; | |
9167 | esac | |
ec6a6fbe AK |
9168 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9169 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9170 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9171 | ac_status=$? |
ec6a6fbe | 9172 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9173 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9174 | { (case "(($ac_try" in |
9175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9176 | *) ac_try_echo=$ac_try;; | |
9177 | esac | |
ec6a6fbe AK |
9178 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9179 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9180 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9181 | ac_status=$? |
ec6a6fbe | 9182 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9183 | (exit $ac_status); }; }; then |
9184 | ac_cv_func_fork_works=yes | |
9185 | else | |
ec6a6fbe AK |
9186 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9187 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9188 | sed 's/^/| /' conftest.$ac_ext >&5 |
9189 | ||
9190 | ( exit $ac_status ) | |
9191 | ac_cv_func_fork_works=no | |
9192 | fi | |
ec6a6fbe | 9193 | rm -rf conftest.dSYM |
7a197a62 | 9194 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9195 | fi |
7a197a62 AK |
9196 | |
9197 | ||
ad6254c5 | 9198 | fi |
ec6a6fbe AK |
9199 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
9200 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
9201 | |
9202 | else | |
9203 | ac_cv_func_fork_works=$ac_cv_func_fork | |
9204 | fi | |
9205 | if test "x$ac_cv_func_fork_works" = xcross; then | |
9206 | case $host in | |
9207 | *-*-amigaos* | *-*-msdosdjgpp*) | |
9208 | # Override, as these systems have only a dummy fork() stub | |
9209 | ac_cv_func_fork_works=no | |
9210 | ;; | |
9211 | *) | |
9212 | ac_cv_func_fork_works=yes | |
9213 | ;; | |
9214 | esac | |
ec6a6fbe AK |
9215 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
9216 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
9217 | fi |
9218 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
9219 | if test "x$ac_cv_func_vfork" = xyes; then | |
ec6a6fbe AK |
9220 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
9221 | $as_echo_n "checking for working vfork... " >&6; } | |
ad6254c5 | 9222 | if test "${ac_cv_func_vfork_works+set}" = set; then |
ec6a6fbe | 9223 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9224 | else |
9225 | if test "$cross_compiling" = yes; then | |
9226 | ac_cv_func_vfork_works=cross | |
9227 | else | |
9228 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9229 | /* confdefs.h. */ |
9230 | _ACEOF | |
9231 | cat confdefs.h >>conftest.$ac_ext | |
9232 | cat >>conftest.$ac_ext <<_ACEOF | |
9233 | /* end confdefs.h. */ | |
9234 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 9235 | $ac_includes_default |
ad6254c5 | 9236 | #include <sys/wait.h> |
25fbec5b | 9237 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
9238 | # include <vfork.h> |
9239 | #endif | |
9240 | /* On some sparc systems, changes by the child to local and incoming | |
9241 | argument registers are propagated back to the parent. The compiler | |
9242 | is told about this with #include <vfork.h>, but some compilers | |
9243 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
9244 | static variable whose address is put into a register that is | |
9245 | clobbered by the vfork. */ | |
9246 | static void | |
9247 | #ifdef __cplusplus | |
9248 | sparc_address_test (int arg) | |
9249 | # else | |
9250 | sparc_address_test (arg) int arg; | |
9251 | #endif | |
9252 | { | |
9253 | static pid_t child; | |
9254 | if (!child) { | |
9255 | child = vfork (); | |
9256 | if (child < 0) { | |
9257 | perror ("vfork"); | |
9258 | _exit(2); | |
9259 | } | |
9260 | if (!child) { | |
9261 | arg = getpid(); | |
9262 | write(-1, "", 0); | |
9263 | _exit (arg); | |
9264 | } | |
9265 | } | |
9266 | } | |
9267 | ||
9268 | int | |
9269 | main () | |
9270 | { | |
9271 | pid_t parent = getpid (); | |
9272 | pid_t child; | |
9273 | ||
9274 | sparc_address_test (0); | |
9275 | ||
9276 | child = vfork (); | |
9277 | ||
9278 | if (child == 0) { | |
9279 | /* Here is another test for sparc vfork register problems. This | |
9280 | test uses lots of local variables, at least as many local | |
9281 | variables as main has allocated so far including compiler | |
9282 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
9283 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
9284 | reuse the register of parent for one of the local variables, | |
9285 | since it will think that parent can't possibly be used any more | |
9286 | in this routine. Assigning to the local variable will thus | |
9287 | munge parent in the parent process. */ | |
9288 | pid_t | |
9289 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
9290 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
9291 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
9292 | use the same hardware register for all 8 local variables. */ | |
9293 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
9294 | || p != p5 || p != p6 || p != p7) | |
9295 | _exit(1); | |
9296 | ||
9297 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
9298 | from child file descriptors. If the child closes a descriptor | |
9299 | before it execs or exits, this munges the parent's descriptor | |
9300 | as well. Test for this by closing stdout in the child. */ | |
9301 | _exit(close(fileno(stdout)) != 0); | |
9302 | } else { | |
9303 | int status; | |
9304 | struct stat st; | |
9305 | ||
9306 | while (wait(&status) != child) | |
9307 | ; | |
7a197a62 | 9308 | return ( |
ad6254c5 AK |
9309 | /* Was there some problem with vforking? */ |
9310 | child < 0 | |
9311 | ||
9312 | /* Did the child fail? (This shouldn't happen.) */ | |
9313 | || status | |
9314 | ||
9315 | /* Did the vfork/compiler bug occur? */ | |
9316 | || parent != getpid() | |
9317 | ||
9318 | /* Did the file descriptor bug occur? */ | |
9319 | || fstat(fileno(stdout), &st) != 0 | |
9320 | ); | |
9321 | } | |
9322 | } | |
9323 | _ACEOF | |
9324 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9325 | if { (ac_try="$ac_link" |
9326 | case "(($ac_try" in | |
9327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9328 | *) ac_try_echo=$ac_try;; | |
9329 | esac | |
ec6a6fbe AK |
9330 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9331 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9332 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9333 | ac_status=$? |
ec6a6fbe | 9334 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9335 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9336 | { (case "(($ac_try" in |
9337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9338 | *) ac_try_echo=$ac_try;; | |
9339 | esac | |
ec6a6fbe AK |
9340 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9341 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9342 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9343 | ac_status=$? |
ec6a6fbe | 9344 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9345 | (exit $ac_status); }; }; then |
9346 | ac_cv_func_vfork_works=yes | |
9347 | else | |
ec6a6fbe AK |
9348 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9349 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9350 | sed 's/^/| /' conftest.$ac_ext >&5 |
9351 | ||
9352 | ( exit $ac_status ) | |
9353 | ac_cv_func_vfork_works=no | |
9354 | fi | |
ec6a6fbe | 9355 | rm -rf conftest.dSYM |
7a197a62 | 9356 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9357 | fi |
7a197a62 AK |
9358 | |
9359 | ||
ad6254c5 | 9360 | fi |
ec6a6fbe AK |
9361 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
9362 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
9363 | |
9364 | fi; | |
9365 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 9366 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ec6a6fbe AK |
9367 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
9368 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
9369 | fi |
9370 | ||
9371 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
9372 | ||
9373 | cat >>confdefs.h <<\_ACEOF | |
9374 | #define HAVE_WORKING_VFORK 1 | |
9375 | _ACEOF | |
9376 | ||
9377 | else | |
9378 | ||
9379 | cat >>confdefs.h <<\_ACEOF | |
9380 | #define vfork fork | |
9381 | _ACEOF | |
9382 | ||
9383 | fi | |
9384 | if test "x$ac_cv_func_fork_works" = xyes; then | |
9385 | ||
9386 | cat >>confdefs.h <<\_ACEOF | |
9387 | #define HAVE_WORKING_FORK 1 | |
9388 | _ACEOF | |
9389 | ||
9390 | fi | |
9391 | ||
ec6a6fbe AK |
9392 | { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
9393 | $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } | |
ad6254c5 | 9394 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
ec6a6fbe | 9395 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9396 | else |
9397 | rm -f conftest.sym conftest.file | |
9398 | echo >conftest.file | |
9399 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
9400 | if test "$cross_compiling" = yes; then | |
9401 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
9402 | else | |
9403 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9404 | /* confdefs.h. */ |
9405 | _ACEOF | |
9406 | cat confdefs.h >>conftest.$ac_ext | |
9407 | cat >>conftest.$ac_ext <<_ACEOF | |
9408 | /* end confdefs.h. */ | |
9409 | $ac_includes_default | |
9410 | int | |
9411 | main () | |
9412 | { | |
9413 | struct stat sbuf; | |
9414 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
9415 | That is better in the sense that it means we will not |
9416 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 9417 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
9418 | ; |
9419 | return 0; | |
9420 | } | |
9421 | _ACEOF | |
9422 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9423 | if { (ac_try="$ac_link" |
9424 | case "(($ac_try" in | |
9425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9426 | *) ac_try_echo=$ac_try;; | |
9427 | esac | |
ec6a6fbe AK |
9428 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9429 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9430 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9431 | ac_status=$? |
ec6a6fbe | 9432 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9433 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9434 | { (case "(($ac_try" in |
9435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9436 | *) ac_try_echo=$ac_try;; | |
9437 | esac | |
ec6a6fbe AK |
9438 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9439 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9440 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9441 | ac_status=$? |
ec6a6fbe | 9442 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9443 | (exit $ac_status); }; }; then |
9444 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
9445 | else | |
ec6a6fbe AK |
9446 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9447 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9448 | sed 's/^/| /' conftest.$ac_ext >&5 |
9449 | ||
9450 | ( exit $ac_status ) | |
9451 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
9452 | fi | |
ec6a6fbe | 9453 | rm -rf conftest.dSYM |
7a197a62 | 9454 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9455 | fi |
7a197a62 AK |
9456 | |
9457 | ||
ad6254c5 AK |
9458 | else |
9459 | # If the `ln -s' command failed, then we probably don't even | |
9460 | # have an lstat function. | |
9461 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
9462 | fi | |
9463 | rm -f conftest.sym conftest.file | |
9464 | ||
9465 | fi | |
ec6a6fbe AK |
9466 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
9467 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
9468 | |
9469 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
9470 | ||
9471 | cat >>confdefs.h <<_ACEOF | |
9472 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
9473 | _ACEOF | |
9474 | ||
9475 | ||
9476 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 9477 | case " $LIBOBJS " in |
8a2fc586 | 9478 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
9479 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
9480 | ;; | |
8a2fc586 AK |
9481 | esac |
9482 | ||
ad6254c5 AK |
9483 | fi |
9484 | ||
ec6a6fbe AK |
9485 | { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
9486 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
ad6254c5 | 9487 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
ec6a6fbe | 9488 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9489 | else |
9490 | if test "$cross_compiling" = yes; then | |
9491 | ac_cv_func_lstat_empty_string_bug=yes | |
9492 | else | |
9493 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9494 | /* confdefs.h. */ |
9495 | _ACEOF | |
9496 | cat confdefs.h >>conftest.$ac_ext | |
9497 | cat >>conftest.$ac_ext <<_ACEOF | |
9498 | /* end confdefs.h. */ | |
9499 | $ac_includes_default | |
9500 | int | |
9501 | main () | |
9502 | { | |
9503 | struct stat sbuf; | |
7a197a62 | 9504 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
9505 | ; |
9506 | return 0; | |
9507 | } | |
9508 | _ACEOF | |
9509 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9510 | if { (ac_try="$ac_link" |
9511 | case "(($ac_try" in | |
9512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9513 | *) ac_try_echo=$ac_try;; | |
9514 | esac | |
ec6a6fbe AK |
9515 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9516 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9517 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9518 | ac_status=$? |
ec6a6fbe | 9519 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9520 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9521 | { (case "(($ac_try" in |
9522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9523 | *) ac_try_echo=$ac_try;; | |
9524 | esac | |
ec6a6fbe AK |
9525 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9526 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9527 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9528 | ac_status=$? |
ec6a6fbe | 9529 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9530 | (exit $ac_status); }; }; then |
7a197a62 | 9531 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 9532 | else |
ec6a6fbe AK |
9533 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9534 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9535 | sed 's/^/| /' conftest.$ac_ext >&5 |
9536 | ||
9537 | ( exit $ac_status ) | |
7a197a62 | 9538 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 9539 | fi |
ec6a6fbe | 9540 | rm -rf conftest.dSYM |
7a197a62 | 9541 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9542 | fi |
7a197a62 AK |
9543 | |
9544 | ||
ad6254c5 | 9545 | fi |
ec6a6fbe AK |
9546 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
9547 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 9548 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 9549 | case " $LIBOBJS " in |
8a2fc586 | 9550 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
9551 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
9552 | ;; | |
8a2fc586 AK |
9553 | esac |
9554 | ||
ad6254c5 AK |
9555 | |
9556 | cat >>confdefs.h <<_ACEOF | |
9557 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
9558 | _ACEOF | |
9559 | ||
9560 | fi | |
9561 | ||
9562 | ||
9563 | for ac_header in stdlib.h | |
9564 | do | |
ec6a6fbe | 9565 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9566 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
9567 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9568 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9569 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9570 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9571 | fi |
ec6a6fbe AK |
9572 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9573 | $as_echo "$as_val"'` | |
9574 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9575 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9576 | else |
9577 | # Is the header compilable? | |
ec6a6fbe AK |
9578 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9579 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 9580 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9581 | /* confdefs.h. */ |
9582 | _ACEOF | |
9583 | cat confdefs.h >>conftest.$ac_ext | |
9584 | cat >>conftest.$ac_ext <<_ACEOF | |
9585 | /* end confdefs.h. */ | |
9586 | $ac_includes_default | |
9587 | #include <$ac_header> | |
9588 | _ACEOF | |
9589 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9590 | if { (ac_try="$ac_compile" |
9591 | case "(($ac_try" in | |
9592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9593 | *) ac_try_echo=$ac_try;; | |
9594 | esac | |
ec6a6fbe AK |
9595 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9596 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9597 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9598 | ac_status=$? |
8a2fc586 AK |
9599 | grep -v '^ *+' conftest.er1 >conftest.err |
9600 | rm -f conftest.er1 | |
9601 | cat conftest.err >&5 | |
ec6a6fbe | 9602 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9603 | (exit $ac_status); } && { |
9604 | test -z "$ac_c_werror_flag" || | |
9605 | test ! -s conftest.err | |
9606 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9607 | ac_header_compiler=yes |
9608 | else | |
ec6a6fbe | 9609 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9610 | sed 's/^/| /' conftest.$ac_ext >&5 |
9611 | ||
7a197a62 | 9612 | ac_header_compiler=no |
ad6254c5 | 9613 | fi |
7a197a62 AK |
9614 | |
9615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
9616 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9617 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9618 | |
9619 | # Is the header present? | |
ec6a6fbe AK |
9620 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9621 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 9622 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9623 | /* confdefs.h. */ |
9624 | _ACEOF | |
9625 | cat confdefs.h >>conftest.$ac_ext | |
9626 | cat >>conftest.$ac_ext <<_ACEOF | |
9627 | /* end confdefs.h. */ | |
9628 | #include <$ac_header> | |
9629 | _ACEOF | |
7a197a62 AK |
9630 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9631 | case "(($ac_try" in | |
9632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9633 | *) ac_try_echo=$ac_try;; | |
9634 | esac | |
ec6a6fbe AK |
9635 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9636 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9637 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9638 | ac_status=$? |
9639 | grep -v '^ *+' conftest.er1 >conftest.err | |
9640 | rm -f conftest.er1 | |
9641 | cat conftest.err >&5 | |
ec6a6fbe | 9642 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9643 | (exit $ac_status); } >/dev/null && { |
9644 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9645 | test ! -s conftest.err | |
9646 | }; then | |
ad6254c5 AK |
9647 | ac_header_preproc=yes |
9648 | else | |
ec6a6fbe | 9649 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9650 | sed 's/^/| /' conftest.$ac_ext >&5 |
9651 | ||
9652 | ac_header_preproc=no | |
9653 | fi | |
7a197a62 | 9654 | |
ad6254c5 | 9655 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
9656 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9657 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9658 | |
9659 | # So? What about this header? | |
8a2fc586 AK |
9660 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9661 | yes:no: ) | |
ec6a6fbe AK |
9662 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9663 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9664 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9665 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9666 | ac_header_preproc=yes |
ad6254c5 | 9667 | ;; |
8a2fc586 | 9668 | no:yes:* ) |
ec6a6fbe AK |
9669 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9670 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9671 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9672 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9673 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9674 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9675 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9676 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9677 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9678 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9679 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9680 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9681 | |
ad6254c5 AK |
9682 | ;; |
9683 | esac | |
ec6a6fbe AK |
9684 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9685 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9686 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9687 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9688 | else |
8a2fc586 | 9689 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9690 | fi |
ec6a6fbe AK |
9691 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9692 | $as_echo "$as_val"'` | |
9693 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9694 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9695 | |
9696 | fi | |
ec6a6fbe AK |
9697 | as_val=`eval 'as_val=${'$as_ac_Header'} |
9698 | $as_echo "$as_val"'` | |
9699 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 9700 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9701 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
9702 | _ACEOF |
9703 | ||
9704 | fi | |
9705 | ||
9706 | done | |
9707 | ||
ec6a6fbe AK |
9708 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
9709 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
ad6254c5 | 9710 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
ec6a6fbe | 9711 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9712 | else |
9713 | if test "$cross_compiling" = yes; then | |
9714 | ac_cv_func_malloc_0_nonnull=no | |
9715 | else | |
9716 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9717 | /* confdefs.h. */ |
9718 | _ACEOF | |
9719 | cat confdefs.h >>conftest.$ac_ext | |
9720 | cat >>conftest.$ac_ext <<_ACEOF | |
9721 | /* end confdefs.h. */ | |
25fbec5b | 9722 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
9723 | # include <stdlib.h> |
9724 | #else | |
9725 | char *malloc (); | |
9726 | #endif | |
9727 | ||
9728 | int | |
9729 | main () | |
9730 | { | |
7a197a62 | 9731 | return ! malloc (0); |
ad6254c5 AK |
9732 | ; |
9733 | return 0; | |
9734 | } | |
9735 | _ACEOF | |
9736 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9737 | if { (ac_try="$ac_link" |
9738 | case "(($ac_try" in | |
9739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9740 | *) ac_try_echo=$ac_try;; | |
9741 | esac | |
ec6a6fbe AK |
9742 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9743 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9744 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9745 | ac_status=$? |
ec6a6fbe | 9746 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9747 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9748 | { (case "(($ac_try" in |
9749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9750 | *) ac_try_echo=$ac_try;; | |
9751 | esac | |
ec6a6fbe AK |
9752 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9753 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9754 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9755 | ac_status=$? |
ec6a6fbe | 9756 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9757 | (exit $ac_status); }; }; then |
9758 | ac_cv_func_malloc_0_nonnull=yes | |
9759 | else | |
ec6a6fbe AK |
9760 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9761 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9762 | sed 's/^/| /' conftest.$ac_ext >&5 |
9763 | ||
9764 | ( exit $ac_status ) | |
9765 | ac_cv_func_malloc_0_nonnull=no | |
9766 | fi | |
ec6a6fbe | 9767 | rm -rf conftest.dSYM |
7a197a62 | 9768 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9769 | fi |
7a197a62 AK |
9770 | |
9771 | ||
ad6254c5 | 9772 | fi |
ec6a6fbe AK |
9773 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
9774 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
9775 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
9776 | ||
9777 | cat >>confdefs.h <<\_ACEOF | |
9778 | #define HAVE_MALLOC 1 | |
9779 | _ACEOF | |
9780 | ||
9781 | else | |
9782 | cat >>confdefs.h <<\_ACEOF | |
9783 | #define HAVE_MALLOC 0 | |
9784 | _ACEOF | |
9785 | ||
7a197a62 | 9786 | case " $LIBOBJS " in |
8a2fc586 | 9787 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
9788 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
9789 | ;; | |
8a2fc586 AK |
9790 | esac |
9791 | ||
ad6254c5 AK |
9792 | |
9793 | cat >>confdefs.h <<\_ACEOF | |
9794 | #define malloc rpl_malloc | |
9795 | _ACEOF | |
9796 | ||
9797 | fi | |
9798 | ||
9799 | ||
9800 | ||
ec6a6fbe AK |
9801 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
9802 | $as_echo_n "checking for working memcmp... " >&6; } | |
ad6254c5 | 9803 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
ec6a6fbe | 9804 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9805 | else |
9806 | if test "$cross_compiling" = yes; then | |
9807 | ac_cv_func_memcmp_working=no | |
9808 | else | |
9809 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9810 | /* confdefs.h. */ |
9811 | _ACEOF | |
9812 | cat confdefs.h >>conftest.$ac_ext | |
9813 | cat >>conftest.$ac_ext <<_ACEOF | |
9814 | /* end confdefs.h. */ | |
8a2fc586 | 9815 | $ac_includes_default |
ad6254c5 AK |
9816 | int |
9817 | main () | |
9818 | { | |
9819 | ||
9820 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 9821 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 9822 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 9823 | return 1; |
ad6254c5 AK |
9824 | |
9825 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
9826 | or more and with at least one buffer not starting on a 4-byte boundary. | |
9827 | William Lewis provided this test program. */ | |
9828 | { | |
9829 | char foo[21]; | |
9830 | char bar[21]; | |
9831 | int i; | |
9832 | for (i = 0; i < 4; i++) | |
9833 | { | |
8a2fc586 AK |
9834 | char *a = foo + i; |
9835 | char *b = bar + i; | |
9836 | strcpy (a, "--------01111111"); | |
9837 | strcpy (b, "--------10000000"); | |
9838 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 9839 | return 1; |
ad6254c5 | 9840 | } |
7a197a62 | 9841 | return 0; |
ad6254c5 AK |
9842 | } |
9843 | ||
9844 | ; | |
9845 | return 0; | |
9846 | } | |
9847 | _ACEOF | |
9848 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9849 | if { (ac_try="$ac_link" |
9850 | case "(($ac_try" in | |
9851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9852 | *) ac_try_echo=$ac_try;; | |
9853 | esac | |
ec6a6fbe AK |
9854 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9855 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9856 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9857 | ac_status=$? |
ec6a6fbe | 9858 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9859 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9860 | { (case "(($ac_try" in |
9861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9862 | *) ac_try_echo=$ac_try;; | |
9863 | esac | |
ec6a6fbe AK |
9864 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9865 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9866 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9867 | ac_status=$? |
ec6a6fbe | 9868 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9869 | (exit $ac_status); }; }; then |
9870 | ac_cv_func_memcmp_working=yes | |
9871 | else | |
ec6a6fbe AK |
9872 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9873 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9874 | sed 's/^/| /' conftest.$ac_ext >&5 |
9875 | ||
9876 | ( exit $ac_status ) | |
9877 | ac_cv_func_memcmp_working=no | |
9878 | fi | |
ec6a6fbe | 9879 | rm -rf conftest.dSYM |
7a197a62 | 9880 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9881 | fi |
7a197a62 AK |
9882 | |
9883 | ||
ad6254c5 | 9884 | fi |
ec6a6fbe AK |
9885 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
9886 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 9887 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 9888 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
9889 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
9890 | ;; | |
8a2fc586 AK |
9891 | esac |
9892 | ||
ad6254c5 AK |
9893 | |
9894 | ||
9895 | ||
9896 | for ac_header in stdlib.h unistd.h | |
9897 | do | |
ec6a6fbe | 9898 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9899 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
9900 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9901 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9902 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9903 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9904 | fi |
ec6a6fbe AK |
9905 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9906 | $as_echo "$as_val"'` | |
9907 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9908 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9909 | else |
9910 | # Is the header compilable? | |
ec6a6fbe AK |
9911 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9912 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 9913 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9914 | /* confdefs.h. */ |
9915 | _ACEOF | |
9916 | cat confdefs.h >>conftest.$ac_ext | |
9917 | cat >>conftest.$ac_ext <<_ACEOF | |
9918 | /* end confdefs.h. */ | |
9919 | $ac_includes_default | |
9920 | #include <$ac_header> | |
9921 | _ACEOF | |
9922 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9923 | if { (ac_try="$ac_compile" |
9924 | case "(($ac_try" in | |
9925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9926 | *) ac_try_echo=$ac_try;; | |
9927 | esac | |
ec6a6fbe AK |
9928 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9929 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9930 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9931 | ac_status=$? |
8a2fc586 AK |
9932 | grep -v '^ *+' conftest.er1 >conftest.err |
9933 | rm -f conftest.er1 | |
9934 | cat conftest.err >&5 | |
ec6a6fbe | 9935 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9936 | (exit $ac_status); } && { |
9937 | test -z "$ac_c_werror_flag" || | |
9938 | test ! -s conftest.err | |
9939 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9940 | ac_header_compiler=yes |
9941 | else | |
ec6a6fbe | 9942 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9943 | sed 's/^/| /' conftest.$ac_ext >&5 |
9944 | ||
7a197a62 | 9945 | ac_header_compiler=no |
ad6254c5 | 9946 | fi |
7a197a62 AK |
9947 | |
9948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
9949 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9950 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9951 | |
9952 | # Is the header present? | |
ec6a6fbe AK |
9953 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9954 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 9955 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9956 | /* confdefs.h. */ |
9957 | _ACEOF | |
9958 | cat confdefs.h >>conftest.$ac_ext | |
9959 | cat >>conftest.$ac_ext <<_ACEOF | |
9960 | /* end confdefs.h. */ | |
9961 | #include <$ac_header> | |
9962 | _ACEOF | |
7a197a62 AK |
9963 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9964 | case "(($ac_try" in | |
9965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9966 | *) ac_try_echo=$ac_try;; | |
9967 | esac | |
ec6a6fbe AK |
9968 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9969 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9970 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9971 | ac_status=$? |
9972 | grep -v '^ *+' conftest.er1 >conftest.err | |
9973 | rm -f conftest.er1 | |
9974 | cat conftest.err >&5 | |
ec6a6fbe | 9975 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9976 | (exit $ac_status); } >/dev/null && { |
9977 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9978 | test ! -s conftest.err | |
9979 | }; then | |
ad6254c5 AK |
9980 | ac_header_preproc=yes |
9981 | else | |
ec6a6fbe | 9982 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9983 | sed 's/^/| /' conftest.$ac_ext >&5 |
9984 | ||
9985 | ac_header_preproc=no | |
9986 | fi | |
7a197a62 | 9987 | |
ad6254c5 | 9988 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
9989 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9990 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9991 | |
9992 | # So? What about this header? | |
8a2fc586 AK |
9993 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9994 | yes:no: ) | |
ec6a6fbe AK |
9995 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9996 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9997 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9998 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9999 | ac_header_preproc=yes |
ad6254c5 | 10000 | ;; |
8a2fc586 | 10001 | no:yes:* ) |
ec6a6fbe AK |
10002 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10003 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10004 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10005 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10006 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10007 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10008 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10009 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10010 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10011 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10012 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10013 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 10014 | |
ad6254c5 AK |
10015 | ;; |
10016 | esac | |
ec6a6fbe AK |
10017 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10018 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 10019 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10020 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10021 | else |
8a2fc586 | 10022 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 10023 | fi |
ec6a6fbe AK |
10024 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
10025 | $as_echo "$as_val"'` | |
10026 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10027 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
10028 | |
10029 | fi | |
ec6a6fbe AK |
10030 | as_val=`eval 'as_val=${'$as_ac_Header'} |
10031 | $as_echo "$as_val"'` | |
10032 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 10033 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10034 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
10035 | _ACEOF |
10036 | ||
10037 | fi | |
10038 | ||
10039 | done | |
10040 | ||
10041 | ||
10042 | for ac_func in getpagesize | |
10043 | do | |
ec6a6fbe AK |
10044 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10045 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10046 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 10047 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10048 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10049 | else |
10050 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10051 | /* confdefs.h. */ |
10052 | _ACEOF | |
10053 | cat confdefs.h >>conftest.$ac_ext | |
10054 | cat >>conftest.$ac_ext <<_ACEOF | |
10055 | /* end confdefs.h. */ | |
8a2fc586 AK |
10056 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10057 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10058 | #define $ac_func innocuous_$ac_func | |
10059 | ||
ad6254c5 AK |
10060 | /* System header to define __stub macros and hopefully few prototypes, |
10061 | which can conflict with char $ac_func (); below. | |
10062 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10063 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10064 | |
ad6254c5 AK |
10065 | #ifdef __STDC__ |
10066 | # include <limits.h> | |
10067 | #else | |
10068 | # include <assert.h> | |
10069 | #endif | |
8a2fc586 AK |
10070 | |
10071 | #undef $ac_func | |
10072 | ||
7a197a62 AK |
10073 | /* Override any GCC internal prototype to avoid an error. |
10074 | Use char because int might match the return type of a GCC | |
10075 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10076 | #ifdef __cplusplus |
10077 | extern "C" | |
ad6254c5 | 10078 | #endif |
ad6254c5 AK |
10079 | char $ac_func (); |
10080 | /* The GNU C library defines this for functions which it implements | |
10081 | to always fail with ENOSYS. Some functions are actually named | |
10082 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10083 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 10084 | choke me |
ad6254c5 AK |
10085 | #endif |
10086 | ||
10087 | int | |
10088 | main () | |
10089 | { | |
7a197a62 | 10090 | return $ac_func (); |
ad6254c5 AK |
10091 | ; |
10092 | return 0; | |
10093 | } | |
10094 | _ACEOF | |
10095 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10096 | if { (ac_try="$ac_link" |
10097 | case "(($ac_try" in | |
10098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10099 | *) ac_try_echo=$ac_try;; | |
10100 | esac | |
ec6a6fbe AK |
10101 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10102 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10103 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10104 | ac_status=$? |
8a2fc586 AK |
10105 | grep -v '^ *+' conftest.er1 >conftest.err |
10106 | rm -f conftest.er1 | |
10107 | cat conftest.err >&5 | |
ec6a6fbe | 10108 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10109 | (exit $ac_status); } && { |
10110 | test -z "$ac_c_werror_flag" || | |
10111 | test ! -s conftest.err | |
ec6a6fbe AK |
10112 | } && test -s conftest$ac_exeext && { |
10113 | test "$cross_compiling" = yes || | |
10114 | $as_test_x conftest$ac_exeext | |
10115 | }; then | |
ad6254c5 AK |
10116 | eval "$as_ac_var=yes" |
10117 | else | |
ec6a6fbe | 10118 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10119 | sed 's/^/| /' conftest.$ac_ext >&5 |
10120 | ||
7a197a62 | 10121 | eval "$as_ac_var=no" |
ad6254c5 | 10122 | fi |
7a197a62 | 10123 | |
ec6a6fbe | 10124 | rm -rf conftest.dSYM |
25fbec5b | 10125 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10126 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10127 | fi |
ec6a6fbe AK |
10128 | ac_res=`eval 'as_val=${'$as_ac_var'} |
10129 | $as_echo "$as_val"'` | |
10130 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10131 | $as_echo "$ac_res" >&6; } | |
10132 | as_val=`eval 'as_val=${'$as_ac_var'} | |
10133 | $as_echo "$as_val"'` | |
10134 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 10135 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10136 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
10137 | _ACEOF |
10138 | ||
10139 | fi | |
10140 | done | |
10141 | ||
ec6a6fbe AK |
10142 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
10143 | $as_echo_n "checking for working mmap... " >&6; } | |
ad6254c5 | 10144 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
ec6a6fbe | 10145 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10146 | else |
10147 | if test "$cross_compiling" = yes; then | |
10148 | ac_cv_func_mmap_fixed_mapped=no | |
10149 | else | |
10150 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10151 | /* confdefs.h. */ |
10152 | _ACEOF | |
10153 | cat confdefs.h >>conftest.$ac_ext | |
10154 | cat >>conftest.$ac_ext <<_ACEOF | |
10155 | /* end confdefs.h. */ | |
10156 | $ac_includes_default | |
10157 | /* malloc might have been renamed as rpl_malloc. */ | |
10158 | #undef malloc | |
10159 | ||
10160 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
10161 | Here is a matrix of mmap possibilities: | |
10162 | mmap private not fixed | |
10163 | mmap private fixed at somewhere currently unmapped | |
10164 | mmap private fixed at somewhere already mapped | |
10165 | mmap shared not fixed | |
10166 | mmap shared fixed at somewhere currently unmapped | |
10167 | mmap shared fixed at somewhere already mapped | |
10168 | For private mappings, we should verify that changes cannot be read() | |
10169 | back from the file, nor mmap's back from the file at a different | |
10170 | address. (There have been systems where private was not correctly | |
10171 | implemented like the infamous i386 svr4.0, and systems where the | |
10172 | VM page cache was not coherent with the file system buffer cache | |
10173 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
10174 | For shared mappings, we should conversely verify that changes get | |
10175 | propagated back to all the places they're supposed to be. | |
10176 | ||
10177 | Grep wants private fixed already mapped. | |
10178 | The main things grep needs to know about mmap are: | |
10179 | * does it exist and is it safe to write into the mmap'd area | |
10180 | * how to use it (BSD variants) */ | |
10181 | ||
10182 | #include <fcntl.h> | |
10183 | #include <sys/mman.h> | |
10184 | ||
25fbec5b | 10185 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
10186 | char *malloc (); |
10187 | #endif | |
10188 | ||
10189 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 10190 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 10191 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 10192 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
10193 | # define HAVE_SYS_PARAM_H 1 |
10194 | # endif | |
10195 | ||
10196 | # ifdef _SC_PAGESIZE | |
10197 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
10198 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 10199 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
10200 | # include <sys/param.h> |
10201 | # ifdef EXEC_PAGESIZE | |
10202 | # define getpagesize() EXEC_PAGESIZE | |
10203 | # else /* no EXEC_PAGESIZE */ | |
10204 | # ifdef NBPG | |
10205 | # define getpagesize() NBPG * CLSIZE | |
10206 | # ifndef CLSIZE | |
10207 | # define CLSIZE 1 | |
10208 | # endif /* no CLSIZE */ | |
10209 | # else /* no NBPG */ | |
10210 | # ifdef NBPC | |
10211 | # define getpagesize() NBPC | |
10212 | # else /* no NBPC */ | |
10213 | # ifdef PAGESIZE | |
10214 | # define getpagesize() PAGESIZE | |
10215 | # endif /* PAGESIZE */ | |
10216 | # endif /* no NBPC */ | |
10217 | # endif /* no NBPG */ | |
10218 | # endif /* no EXEC_PAGESIZE */ | |
10219 | # else /* no HAVE_SYS_PARAM_H */ | |
10220 | # define getpagesize() 8192 /* punt totally */ | |
10221 | # endif /* no HAVE_SYS_PARAM_H */ | |
10222 | # endif /* no _SC_PAGESIZE */ | |
10223 | ||
10224 | #endif /* no HAVE_GETPAGESIZE */ | |
10225 | ||
10226 | int | |
10227 | main () | |
10228 | { | |
10229 | char *data, *data2, *data3; | |
10230 | int i, pagesize; | |
10231 | int fd; | |
10232 | ||
10233 | pagesize = getpagesize (); | |
10234 | ||
10235 | /* First, make a file with some known garbage in it. */ | |
10236 | data = (char *) malloc (pagesize); | |
10237 | if (!data) | |
7a197a62 | 10238 | return 1; |
ad6254c5 AK |
10239 | for (i = 0; i < pagesize; ++i) |
10240 | *(data + i) = rand (); | |
10241 | umask (0); | |
10242 | fd = creat ("conftest.mmap", 0600); | |
10243 | if (fd < 0) | |
7a197a62 | 10244 | return 1; |
ad6254c5 | 10245 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 10246 | return 1; |
ad6254c5 AK |
10247 | close (fd); |
10248 | ||
10249 | /* Next, try to mmap the file at a fixed address which already has | |
10250 | something else allocated at it. If we can, also make sure that | |
10251 | we see the same garbage. */ | |
10252 | fd = open ("conftest.mmap", O_RDWR); | |
10253 | if (fd < 0) | |
7a197a62 | 10254 | return 1; |
ad6254c5 AK |
10255 | data2 = (char *) malloc (2 * pagesize); |
10256 | if (!data2) | |
7a197a62 AK |
10257 | return 1; |
10258 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 10259 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 10260 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 10261 | return 1; |
ad6254c5 AK |
10262 | for (i = 0; i < pagesize; ++i) |
10263 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 10264 | return 1; |
ad6254c5 | 10265 | |
d911ec67 AK |
10266 | /* Finally, make sure that changes to the mapped area do not |
10267 | percolate back to the file as seen by read(). (This is a bug on | |
10268 | some variants of i386 svr4.0.) */ | |
10269 | for (i = 0; i < pagesize; ++i) | |
10270 | *(data2 + i) = *(data2 + i) + 1; | |
10271 | data3 = (char *) malloc (pagesize); | |
10272 | if (!data3) | |
10273 | return 1; | |
10274 | if (read (fd, data3, pagesize) != pagesize) | |
10275 | return 1; | |
10276 | for (i = 0; i < pagesize; ++i) | |
10277 | if (*(data + i) != *(data3 + i)) | |
10278 | return 1; | |
10279 | close (fd); | |
10280 | return 0; | |
10281 | } | |
10282 | _ACEOF | |
10283 | rm -f conftest$ac_exeext | |
10284 | if { (ac_try="$ac_link" | |
10285 | case "(($ac_try" in | |
10286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10287 | *) ac_try_echo=$ac_try;; | |
10288 | esac | |
10289 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10290 | $as_echo "$ac_try_echo") >&5 | |
10291 | (eval "$ac_link") 2>&5 | |
10292 | ac_status=$? | |
10293 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10294 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
10295 | { (case "(($ac_try" in | |
10296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10297 | *) ac_try_echo=$ac_try;; | |
10298 | esac | |
10299 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10300 | $as_echo "$ac_try_echo") >&5 | |
10301 | (eval "$ac_try") 2>&5 | |
10302 | ac_status=$? | |
10303 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10304 | (exit $ac_status); }; }; then | |
10305 | ac_cv_func_mmap_fixed_mapped=yes | |
10306 | else | |
10307 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
10308 | $as_echo "$as_me: failed program was:" >&5 | |
10309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10310 | ||
10311 | ( exit $ac_status ) | |
10312 | ac_cv_func_mmap_fixed_mapped=no | |
10313 | fi | |
10314 | rm -rf conftest.dSYM | |
10315 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
10316 | fi | |
10317 | ||
10318 | ||
10319 | fi | |
10320 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
10321 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
10322 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
10323 | ||
10324 | cat >>confdefs.h <<\_ACEOF | |
10325 | #define HAVE_MMAP 1 | |
10326 | _ACEOF | |
10327 | ||
10328 | fi | |
10329 | rm -f conftest.mmap | |
10330 | ||
10331 | ||
10332 | for ac_header in stdlib.h | |
10333 | do | |
10334 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10335 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10336 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10337 | $as_echo_n "checking for $ac_header... " >&6; } | |
10338 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10339 | $as_echo_n "(cached) " >&6 | |
10340 | fi | |
10341 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10342 | $as_echo "$as_val"'` | |
10343 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10344 | $as_echo "$ac_res" >&6; } | |
10345 | else | |
10346 | # Is the header compilable? | |
10347 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10348 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10349 | cat >conftest.$ac_ext <<_ACEOF | |
10350 | /* confdefs.h. */ | |
10351 | _ACEOF | |
10352 | cat confdefs.h >>conftest.$ac_ext | |
10353 | cat >>conftest.$ac_ext <<_ACEOF | |
10354 | /* end confdefs.h. */ | |
10355 | $ac_includes_default | |
10356 | #include <$ac_header> | |
10357 | _ACEOF | |
10358 | rm -f conftest.$ac_objext | |
10359 | if { (ac_try="$ac_compile" | |
10360 | case "(($ac_try" in | |
10361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10362 | *) ac_try_echo=$ac_try;; | |
10363 | esac | |
10364 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10365 | $as_echo "$ac_try_echo") >&5 | |
10366 | (eval "$ac_compile") 2>conftest.er1 | |
10367 | ac_status=$? | |
10368 | grep -v '^ *+' conftest.er1 >conftest.err | |
10369 | rm -f conftest.er1 | |
10370 | cat conftest.err >&5 | |
10371 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10372 | (exit $ac_status); } && { | |
10373 | test -z "$ac_c_werror_flag" || | |
10374 | test ! -s conftest.err | |
10375 | } && test -s conftest.$ac_objext; then | |
10376 | ac_header_compiler=yes | |
10377 | else | |
10378 | $as_echo "$as_me: failed program was:" >&5 | |
10379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10380 | ||
10381 | ac_header_compiler=no | |
10382 | fi | |
10383 | ||
10384 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10385 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10386 | $as_echo "$ac_header_compiler" >&6; } | |
10387 | ||
10388 | # Is the header present? | |
10389 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10390 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10391 | cat >conftest.$ac_ext <<_ACEOF | |
10392 | /* confdefs.h. */ | |
10393 | _ACEOF | |
10394 | cat confdefs.h >>conftest.$ac_ext | |
10395 | cat >>conftest.$ac_ext <<_ACEOF | |
10396 | /* end confdefs.h. */ | |
10397 | #include <$ac_header> | |
10398 | _ACEOF | |
10399 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10400 | case "(($ac_try" in | |
10401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10402 | *) ac_try_echo=$ac_try;; | |
10403 | esac | |
10404 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10405 | $as_echo "$ac_try_echo") >&5 | |
10406 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10407 | ac_status=$? | |
10408 | grep -v '^ *+' conftest.er1 >conftest.err | |
10409 | rm -f conftest.er1 | |
10410 | cat conftest.err >&5 | |
10411 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10412 | (exit $ac_status); } >/dev/null && { | |
10413 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10414 | test ! -s conftest.err | |
10415 | }; then | |
10416 | ac_header_preproc=yes | |
10417 | else | |
10418 | $as_echo "$as_me: failed program was:" >&5 | |
10419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10420 | ||
10421 | ac_header_preproc=no | |
10422 | fi | |
10423 | ||
10424 | rm -f conftest.err conftest.$ac_ext | |
10425 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10426 | $as_echo "$ac_header_preproc" >&6; } | |
10427 | ||
10428 | # So? What about this header? | |
10429 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10430 | yes:no: ) | |
10431 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10432 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10433 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10434 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10435 | ac_header_preproc=yes | |
10436 | ;; | |
10437 | no:yes:* ) | |
10438 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10439 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10440 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10441 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10442 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10443 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10444 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10445 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10446 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10447 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10448 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10449 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10450 | ||
10451 | ;; | |
10452 | esac | |
10453 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10454 | $as_echo_n "checking for $ac_header... " >&6; } | |
10455 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10456 | $as_echo_n "(cached) " >&6 | |
10457 | else | |
10458 | eval "$as_ac_Header=\$ac_header_preproc" | |
10459 | fi | |
10460 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10461 | $as_echo "$as_val"'` | |
10462 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10463 | $as_echo "$ac_res" >&6; } | |
10464 | ||
10465 | fi | |
10466 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10467 | $as_echo "$as_val"'` | |
10468 | if test "x$as_val" = x""yes; then | |
10469 | cat >>confdefs.h <<_ACEOF | |
10470 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10471 | _ACEOF | |
10472 | ||
10473 | fi | |
10474 | ||
10475 | done | |
10476 | ||
10477 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 | |
10478 | $as_echo_n "checking for GNU libc compatible realloc... " >&6; } | |
10479 | if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then | |
10480 | $as_echo_n "(cached) " >&6 | |
10481 | else | |
10482 | if test "$cross_compiling" = yes; then | |
10483 | ac_cv_func_realloc_0_nonnull=no | |
10484 | else | |
10485 | cat >conftest.$ac_ext <<_ACEOF | |
10486 | /* confdefs.h. */ | |
10487 | _ACEOF | |
10488 | cat confdefs.h >>conftest.$ac_ext | |
10489 | cat >>conftest.$ac_ext <<_ACEOF | |
10490 | /* end confdefs.h. */ | |
10491 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | |
10492 | # include <stdlib.h> | |
10493 | #else | |
10494 | char *realloc (); | |
10495 | #endif | |
10496 | ||
10497 | int | |
10498 | main () | |
10499 | { | |
10500 | return ! realloc (0, 0); | |
10501 | ; | |
7a197a62 | 10502 | return 0; |
ad6254c5 AK |
10503 | } |
10504 | _ACEOF | |
10505 | rm -f conftest$ac_exeext | |
7a197a62 AK |
10506 | if { (ac_try="$ac_link" |
10507 | case "(($ac_try" in | |
10508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10509 | *) ac_try_echo=$ac_try;; | |
10510 | esac | |
ec6a6fbe AK |
10511 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10512 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10513 | (eval "$ac_link") 2>&5 |
ad6254c5 | 10514 | ac_status=$? |
ec6a6fbe | 10515 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10516 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
10517 | { (case "(($ac_try" in |
10518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10519 | *) ac_try_echo=$ac_try;; | |
10520 | esac | |
ec6a6fbe AK |
10521 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10522 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10523 | (eval "$ac_try") 2>&5 |
ad6254c5 | 10524 | ac_status=$? |
ec6a6fbe | 10525 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10526 | (exit $ac_status); }; }; then |
d911ec67 | 10527 | ac_cv_func_realloc_0_nonnull=yes |
ad6254c5 | 10528 | else |
ec6a6fbe AK |
10529 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
10530 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
10531 | sed 's/^/| /' conftest.$ac_ext >&5 |
10532 | ||
10533 | ( exit $ac_status ) | |
d911ec67 | 10534 | ac_cv_func_realloc_0_nonnull=no |
ad6254c5 | 10535 | fi |
ec6a6fbe | 10536 | rm -rf conftest.dSYM |
7a197a62 | 10537 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 10538 | fi |
7a197a62 AK |
10539 | |
10540 | ||
ad6254c5 | 10541 | fi |
d911ec67 AK |
10542 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 |
10543 | $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } | |
10544 | if test $ac_cv_func_realloc_0_nonnull = yes; then | |
ad6254c5 AK |
10545 | |
10546 | cat >>confdefs.h <<\_ACEOF | |
d911ec67 AK |
10547 | #define HAVE_REALLOC 1 |
10548 | _ACEOF | |
10549 | ||
10550 | else | |
10551 | cat >>confdefs.h <<\_ACEOF | |
10552 | #define HAVE_REALLOC 0 | |
10553 | _ACEOF | |
10554 | ||
10555 | case " $LIBOBJS " in | |
10556 | *" realloc.$ac_objext "* ) ;; | |
10557 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" | |
10558 | ;; | |
10559 | esac | |
10560 | ||
10561 | ||
10562 | cat >>confdefs.h <<\_ACEOF | |
10563 | #define realloc rpl_realloc | |
ad6254c5 AK |
10564 | _ACEOF |
10565 | ||
10566 | fi | |
d911ec67 AK |
10567 | |
10568 | ||
ad6254c5 | 10569 | |
ec6a6fbe AK |
10570 | { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
10571 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
ad6254c5 | 10572 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
ec6a6fbe | 10573 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10574 | else |
10575 | if test "$cross_compiling" = yes; then | |
10576 | ac_cv_func_stat_empty_string_bug=yes | |
10577 | else | |
10578 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10579 | /* confdefs.h. */ |
10580 | _ACEOF | |
10581 | cat confdefs.h >>conftest.$ac_ext | |
10582 | cat >>conftest.$ac_ext <<_ACEOF | |
10583 | /* end confdefs.h. */ | |
10584 | $ac_includes_default | |
10585 | int | |
10586 | main () | |
10587 | { | |
10588 | struct stat sbuf; | |
7a197a62 | 10589 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
10590 | ; |
10591 | return 0; | |
10592 | } | |
10593 | _ACEOF | |
10594 | rm -f conftest$ac_exeext | |
7a197a62 AK |
10595 | if { (ac_try="$ac_link" |
10596 | case "(($ac_try" in | |
10597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10598 | *) ac_try_echo=$ac_try;; | |
10599 | esac | |
ec6a6fbe AK |
10600 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10601 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10602 | (eval "$ac_link") 2>&5 |
ad6254c5 | 10603 | ac_status=$? |
ec6a6fbe | 10604 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10605 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
10606 | { (case "(($ac_try" in |
10607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10608 | *) ac_try_echo=$ac_try;; | |
10609 | esac | |
ec6a6fbe AK |
10610 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10611 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10612 | (eval "$ac_try") 2>&5 |
ad6254c5 | 10613 | ac_status=$? |
ec6a6fbe | 10614 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10615 | (exit $ac_status); }; }; then |
7a197a62 | 10616 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 10617 | else |
ec6a6fbe AK |
10618 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
10619 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
10620 | sed 's/^/| /' conftest.$ac_ext >&5 |
10621 | ||
10622 | ( exit $ac_status ) | |
7a197a62 | 10623 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 10624 | fi |
ec6a6fbe | 10625 | rm -rf conftest.dSYM |
7a197a62 | 10626 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 10627 | fi |
7a197a62 AK |
10628 | |
10629 | ||
ad6254c5 | 10630 | fi |
ec6a6fbe AK |
10631 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
10632 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 10633 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 10634 | case " $LIBOBJS " in |
8a2fc586 | 10635 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
10636 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
10637 | ;; | |
8a2fc586 AK |
10638 | esac |
10639 | ||
ad6254c5 AK |
10640 | |
10641 | cat >>confdefs.h <<_ACEOF | |
10642 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
10643 | _ACEOF | |
10644 | ||
10645 | fi | |
10646 | ||
ec6a6fbe AK |
10647 | { $as_echo "$as_me:$LINENO: checking for working strtod" >&5 |
10648 | $as_echo_n "checking for working strtod... " >&6; } | |
ad6254c5 | 10649 | if test "${ac_cv_func_strtod+set}" = set; then |
ec6a6fbe | 10650 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10651 | else |
10652 | if test "$cross_compiling" = yes; then | |
10653 | ac_cv_func_strtod=no | |
10654 | else | |
10655 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10656 | /* confdefs.h. */ |
10657 | _ACEOF | |
10658 | cat confdefs.h >>conftest.$ac_ext | |
10659 | cat >>conftest.$ac_ext <<_ACEOF | |
10660 | /* end confdefs.h. */ | |
10661 | ||
7a197a62 AK |
10662 | $ac_includes_default |
10663 | #ifndef strtod | |
ad6254c5 | 10664 | double strtod (); |
7a197a62 | 10665 | #endif |
ad6254c5 AK |
10666 | int |
10667 | main() | |
10668 | { | |
10669 | { | |
10670 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
10671 | char *string = " +69"; | |
10672 | char *term; | |
10673 | double value; | |
10674 | value = strtod (string, &term); | |
10675 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 10676 | return 1; |
ad6254c5 AK |
10677 | } |
10678 | ||
10679 | { | |
10680 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
10681 | terminating character under some conditions. */ | |
10682 | char *string = "NaN"; | |
10683 | char *term; | |
10684 | strtod (string, &term); | |
10685 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 10686 | return 1; |
ad6254c5 | 10687 | } |
7a197a62 | 10688 | return 0; |
ad6254c5 AK |
10689 | } |
10690 | ||
10691 | _ACEOF | |
10692 | rm -f conftest$ac_exeext | |
7a197a62 AK |
10693 | if { (ac_try="$ac_link" |
10694 | case "(($ac_try" in | |
10695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10696 | *) ac_try_echo=$ac_try;; | |
10697 | esac | |
ec6a6fbe AK |
10698 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10699 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10700 | (eval "$ac_link") 2>&5 |
ad6254c5 | 10701 | ac_status=$? |
ec6a6fbe | 10702 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10703 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
10704 | { (case "(($ac_try" in |
10705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10706 | *) ac_try_echo=$ac_try;; | |
10707 | esac | |
ec6a6fbe AK |
10708 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10709 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10710 | (eval "$ac_try") 2>&5 |
ad6254c5 | 10711 | ac_status=$? |
ec6a6fbe | 10712 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
10713 | (exit $ac_status); }; }; then |
10714 | ac_cv_func_strtod=yes | |
10715 | else | |
ec6a6fbe AK |
10716 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
10717 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
10718 | sed 's/^/| /' conftest.$ac_ext >&5 |
10719 | ||
10720 | ( exit $ac_status ) | |
10721 | ac_cv_func_strtod=no | |
10722 | fi | |
ec6a6fbe | 10723 | rm -rf conftest.dSYM |
7a197a62 | 10724 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 10725 | fi |
7a197a62 AK |
10726 | |
10727 | ||
ad6254c5 | 10728 | fi |
ec6a6fbe AK |
10729 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
10730 | $as_echo "$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 10731 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 10732 | case " $LIBOBJS " in |
8a2fc586 | 10733 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
10734 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
10735 | ;; | |
8a2fc586 AK |
10736 | esac |
10737 | ||
ec6a6fbe AK |
10738 | { $as_echo "$as_me:$LINENO: checking for pow" >&5 |
10739 | $as_echo_n "checking for pow... " >&6; } | |
ad6254c5 | 10740 | if test "${ac_cv_func_pow+set}" = set; then |
ec6a6fbe | 10741 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10742 | else |
10743 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10744 | /* confdefs.h. */ |
10745 | _ACEOF | |
10746 | cat confdefs.h >>conftest.$ac_ext | |
10747 | cat >>conftest.$ac_ext <<_ACEOF | |
10748 | /* end confdefs.h. */ | |
8a2fc586 AK |
10749 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
10750 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10751 | #define pow innocuous_pow | |
10752 | ||
ad6254c5 AK |
10753 | /* System header to define __stub macros and hopefully few prototypes, |
10754 | which can conflict with char pow (); below. | |
10755 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10756 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10757 | |
ad6254c5 AK |
10758 | #ifdef __STDC__ |
10759 | # include <limits.h> | |
10760 | #else | |
10761 | # include <assert.h> | |
10762 | #endif | |
8a2fc586 AK |
10763 | |
10764 | #undef pow | |
10765 | ||
7a197a62 AK |
10766 | /* Override any GCC internal prototype to avoid an error. |
10767 | Use char because int might match the return type of a GCC | |
10768 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10769 | #ifdef __cplusplus |
10770 | extern "C" | |
ad6254c5 | 10771 | #endif |
ad6254c5 AK |
10772 | char pow (); |
10773 | /* The GNU C library defines this for functions which it implements | |
10774 | to always fail with ENOSYS. Some functions are actually named | |
10775 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10776 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 10777 | choke me |
ad6254c5 AK |
10778 | #endif |
10779 | ||
10780 | int | |
10781 | main () | |
10782 | { | |
7a197a62 | 10783 | return pow (); |
ad6254c5 AK |
10784 | ; |
10785 | return 0; | |
10786 | } | |
10787 | _ACEOF | |
10788 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10789 | if { (ac_try="$ac_link" |
10790 | case "(($ac_try" in | |
10791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10792 | *) ac_try_echo=$ac_try;; | |
10793 | esac | |
ec6a6fbe AK |
10794 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10795 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10796 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10797 | ac_status=$? |
8a2fc586 AK |
10798 | grep -v '^ *+' conftest.er1 >conftest.err |
10799 | rm -f conftest.er1 | |
10800 | cat conftest.err >&5 | |
ec6a6fbe | 10801 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10802 | (exit $ac_status); } && { |
10803 | test -z "$ac_c_werror_flag" || | |
10804 | test ! -s conftest.err | |
ec6a6fbe AK |
10805 | } && test -s conftest$ac_exeext && { |
10806 | test "$cross_compiling" = yes || | |
10807 | $as_test_x conftest$ac_exeext | |
10808 | }; then | |
ad6254c5 AK |
10809 | ac_cv_func_pow=yes |
10810 | else | |
ec6a6fbe | 10811 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10812 | sed 's/^/| /' conftest.$ac_ext >&5 |
10813 | ||
7a197a62 | 10814 | ac_cv_func_pow=no |
ad6254c5 | 10815 | fi |
7a197a62 | 10816 | |
ec6a6fbe | 10817 | rm -rf conftest.dSYM |
25fbec5b | 10818 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10819 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10820 | fi |
ec6a6fbe AK |
10821 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
10822 | $as_echo "$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
10823 | |
10824 | if test $ac_cv_func_pow = no; then | |
ec6a6fbe AK |
10825 | { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
10826 | $as_echo_n "checking for pow in -lm... " >&6; } | |
ad6254c5 | 10827 | if test "${ac_cv_lib_m_pow+set}" = set; then |
ec6a6fbe | 10828 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10829 | else |
10830 | ac_check_lib_save_LIBS=$LIBS | |
10831 | LIBS="-lm $LIBS" | |
10832 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10833 | /* confdefs.h. */ |
10834 | _ACEOF | |
10835 | cat confdefs.h >>conftest.$ac_ext | |
10836 | cat >>conftest.$ac_ext <<_ACEOF | |
10837 | /* end confdefs.h. */ | |
10838 | ||
7a197a62 AK |
10839 | /* Override any GCC internal prototype to avoid an error. |
10840 | Use char because int might match the return type of a GCC | |
10841 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10842 | #ifdef __cplusplus |
10843 | extern "C" | |
10844 | #endif | |
ad6254c5 AK |
10845 | char pow (); |
10846 | int | |
10847 | main () | |
10848 | { | |
7a197a62 | 10849 | return pow (); |
ad6254c5 AK |
10850 | ; |
10851 | return 0; | |
10852 | } | |
10853 | _ACEOF | |
10854 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10855 | if { (ac_try="$ac_link" |
10856 | case "(($ac_try" in | |
10857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10858 | *) ac_try_echo=$ac_try;; | |
10859 | esac | |
ec6a6fbe AK |
10860 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10861 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10862 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10863 | ac_status=$? |
8a2fc586 AK |
10864 | grep -v '^ *+' conftest.er1 >conftest.err |
10865 | rm -f conftest.er1 | |
10866 | cat conftest.err >&5 | |
ec6a6fbe | 10867 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10868 | (exit $ac_status); } && { |
10869 | test -z "$ac_c_werror_flag" || | |
10870 | test ! -s conftest.err | |
ec6a6fbe AK |
10871 | } && test -s conftest$ac_exeext && { |
10872 | test "$cross_compiling" = yes || | |
10873 | $as_test_x conftest$ac_exeext | |
10874 | }; then | |
ad6254c5 AK |
10875 | ac_cv_lib_m_pow=yes |
10876 | else | |
ec6a6fbe | 10877 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10878 | sed 's/^/| /' conftest.$ac_ext >&5 |
10879 | ||
7a197a62 | 10880 | ac_cv_lib_m_pow=no |
ad6254c5 | 10881 | fi |
7a197a62 | 10882 | |
ec6a6fbe | 10883 | rm -rf conftest.dSYM |
25fbec5b | 10884 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10885 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10886 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 10887 | fi |
ec6a6fbe AK |
10888 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
10889 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
10890 | if test "x$ac_cv_lib_m_pow" = x""yes; then | |
d0191583 JM |
10891 | POW_LIB=-lm |
10892 | else | |
ec6a6fbe AK |
10893 | { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
10894 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 10895 | fi |
72b2cb61 | 10896 | |
d0191583 | 10897 | fi |
72b2cb61 | 10898 | |
ad6254c5 AK |
10899 | fi |
10900 | ||
ad6254c5 | 10901 | |
d0191583 JM |
10902 | for ac_func in vprintf |
10903 | do | |
ec6a6fbe AK |
10904 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10905 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10906 | $as_echo_n "checking for $ac_func... " >&6; } | |
d0191583 | 10907 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10908 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10909 | else |
d0191583 JM |
10910 | cat >conftest.$ac_ext <<_ACEOF |
10911 | /* confdefs.h. */ | |
10912 | _ACEOF | |
10913 | cat confdefs.h >>conftest.$ac_ext | |
10914 | cat >>conftest.$ac_ext <<_ACEOF | |
10915 | /* end confdefs.h. */ | |
10916 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10917 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10918 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 10919 | |
d0191583 JM |
10920 | /* System header to define __stub macros and hopefully few prototypes, |
10921 | which can conflict with char $ac_func (); below. | |
10922 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10923 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 10924 | |
d0191583 JM |
10925 | #ifdef __STDC__ |
10926 | # include <limits.h> | |
10927 | #else | |
10928 | # include <assert.h> | |
10929 | #endif | |
ad6254c5 | 10930 | |
d0191583 | 10931 | #undef $ac_func |
72b2cb61 | 10932 | |
d0191583 JM |
10933 | /* Override any GCC internal prototype to avoid an error. |
10934 | Use char because int might match the return type of a GCC | |
10935 | builtin and then its argument prototype would still apply. */ | |
10936 | #ifdef __cplusplus | |
10937 | extern "C" | |
10938 | #endif | |
10939 | char $ac_func (); | |
10940 | /* The GNU C library defines this for functions which it implements | |
10941 | to always fail with ENOSYS. Some functions are actually named | |
10942 | something starting with __ and the normal name is an alias. */ | |
10943 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
10944 | choke me | |
10945 | #endif | |
10946 | ||
10947 | int | |
10948 | main () | |
10949 | { | |
10950 | return $ac_func (); | |
10951 | ; | |
10952 | return 0; | |
10953 | } | |
72b2cb61 | 10954 | _ACEOF |
d0191583 JM |
10955 | rm -f conftest.$ac_objext conftest$ac_exeext |
10956 | if { (ac_try="$ac_link" | |
10957 | case "(($ac_try" in | |
10958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10959 | *) ac_try_echo=$ac_try;; | |
10960 | esac | |
ec6a6fbe AK |
10961 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10962 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
10963 | (eval "$ac_link") 2>conftest.er1 |
10964 | ac_status=$? | |
10965 | grep -v '^ *+' conftest.er1 >conftest.err | |
10966 | rm -f conftest.er1 | |
10967 | cat conftest.err >&5 | |
ec6a6fbe | 10968 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
10969 | (exit $ac_status); } && { |
10970 | test -z "$ac_c_werror_flag" || | |
10971 | test ! -s conftest.err | |
ec6a6fbe AK |
10972 | } && test -s conftest$ac_exeext && { |
10973 | test "$cross_compiling" = yes || | |
10974 | $as_test_x conftest$ac_exeext | |
10975 | }; then | |
d0191583 JM |
10976 | eval "$as_ac_var=yes" |
10977 | else | |
ec6a6fbe | 10978 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 10979 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 10980 | |
d0191583 | 10981 | eval "$as_ac_var=no" |
ad6254c5 AK |
10982 | fi |
10983 | ||
ec6a6fbe | 10984 | rm -rf conftest.dSYM |
d0191583 JM |
10985 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10986 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 10987 | fi |
ec6a6fbe AK |
10988 | ac_res=`eval 'as_val=${'$as_ac_var'} |
10989 | $as_echo "$as_val"'` | |
10990 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10991 | $as_echo "$ac_res" >&6; } | |
10992 | as_val=`eval 'as_val=${'$as_ac_var'} | |
10993 | $as_echo "$as_val"'` | |
10994 | if test "x$as_val" = x""yes; then | |
d0191583 | 10995 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10996 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 10997 | _ACEOF |
7a197a62 | 10998 | |
ec6a6fbe AK |
10999 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
11000 | $as_echo_n "checking for _doprnt... " >&6; } | |
d0191583 | 11001 | if test "${ac_cv_func__doprnt+set}" = set; then |
ec6a6fbe | 11002 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 11003 | else |
d0191583 JM |
11004 | cat >conftest.$ac_ext <<_ACEOF |
11005 | /* confdefs.h. */ | |
11006 | _ACEOF | |
11007 | cat confdefs.h >>conftest.$ac_ext | |
11008 | cat >>conftest.$ac_ext <<_ACEOF | |
11009 | /* end confdefs.h. */ | |
11010 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
11011 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11012 | #define _doprnt innocuous__doprnt | |
7a197a62 | 11013 | |
d0191583 JM |
11014 | /* System header to define __stub macros and hopefully few prototypes, |
11015 | which can conflict with char _doprnt (); below. | |
11016 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11017 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 11018 | |
d0191583 JM |
11019 | #ifdef __STDC__ |
11020 | # include <limits.h> | |
11021 | #else | |
11022 | # include <assert.h> | |
11023 | #endif | |
72b2cb61 | 11024 | |
d0191583 JM |
11025 | #undef _doprnt |
11026 | ||
11027 | /* Override any GCC internal prototype to avoid an error. | |
11028 | Use char because int might match the return type of a GCC | |
11029 | builtin and then its argument prototype would still apply. */ | |
11030 | #ifdef __cplusplus | |
11031 | extern "C" | |
11032 | #endif | |
11033 | char _doprnt (); | |
11034 | /* The GNU C library defines this for functions which it implements | |
11035 | to always fail with ENOSYS. Some functions are actually named | |
11036 | something starting with __ and the normal name is an alias. */ | |
11037 | #if defined __stub__doprnt || defined __stub____doprnt | |
11038 | choke me | |
11039 | #endif | |
11040 | ||
11041 | int | |
11042 | main () | |
11043 | { | |
11044 | return _doprnt (); | |
11045 | ; | |
11046 | return 0; | |
11047 | } | |
72b2cb61 | 11048 | _ACEOF |
d0191583 JM |
11049 | rm -f conftest.$ac_objext conftest$ac_exeext |
11050 | if { (ac_try="$ac_link" | |
11051 | case "(($ac_try" in | |
11052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11053 | *) ac_try_echo=$ac_try;; | |
11054 | esac | |
ec6a6fbe AK |
11055 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
11056 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
11057 | (eval "$ac_link") 2>conftest.er1 |
11058 | ac_status=$? | |
11059 | grep -v '^ *+' conftest.er1 >conftest.err | |
11060 | rm -f conftest.er1 | |
11061 | cat conftest.err >&5 | |
ec6a6fbe | 11062 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
11063 | (exit $ac_status); } && { |
11064 | test -z "$ac_c_werror_flag" || | |
11065 | test ! -s conftest.err | |
ec6a6fbe AK |
11066 | } && test -s conftest$ac_exeext && { |
11067 | test "$cross_compiling" = yes || | |
11068 | $as_test_x conftest$ac_exeext | |
11069 | }; then | |
d0191583 JM |
11070 | ac_cv_func__doprnt=yes |
11071 | else | |
ec6a6fbe | 11072 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 11073 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 11074 | |
d0191583 | 11075 | ac_cv_func__doprnt=no |
ad6254c5 AK |
11076 | fi |
11077 | ||
ec6a6fbe | 11078 | rm -rf conftest.dSYM |
d0191583 JM |
11079 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11080 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 11081 | fi |
ec6a6fbe AK |
11082 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
11083 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
11084 | if test "x$ac_cv_func__doprnt" = x""yes; then | |
7a197a62 | 11085 | |
d0191583 JM |
11086 | cat >>confdefs.h <<\_ACEOF |
11087 | #define HAVE_DOPRNT 1 | |
11088 | _ACEOF | |
ad6254c5 | 11089 | |
7a197a62 AK |
11090 | fi |
11091 | ||
d0191583 JM |
11092 | fi |
11093 | done | |
8b1a3214 | 11094 | |
ad6254c5 | 11095 | |
7a197a62 | 11096 | |
9c961554 | 11097 | ################################################################################ |
ec6a6fbe AK |
11098 | { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
11099 | $as_echo_n "checking whether to use static linking... " >&6; } | |
9c961554 MB |
11100 | # Check whether --enable-static_link was given. |
11101 | if test "${enable_static_link+set}" = set; then | |
11102 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
11103 | else | |
11104 | STATIC_LINK=no | |
11105 | fi | |
11106 | ||
ec6a6fbe AK |
11107 | { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
11108 | $as_echo "$STATIC_LINK" >&6; } | |
9c961554 | 11109 | |
d0191583 | 11110 | ################################################################################ |
ad6254c5 | 11111 | |
ad6254c5 AK |
11112 | |
11113 | ################################################################################ | |
ec6a6fbe AK |
11114 | { $as_echo "$as_me:$LINENO: checking file owner" >&5 |
11115 | $as_echo_n "checking file owner... " >&6; } | |
d0191583 JM |
11116 | |
11117 | # Check whether --with-user was given. | |
11118 | if test "${with_user+set}" = set; then | |
71082be4 | 11119 | withval=$with_user; OWNER=$withval |
7a197a62 AK |
11120 | fi |
11121 | ||
ec6a6fbe AK |
11122 | { $as_echo "$as_me:$LINENO: result: $OWNER" >&5 |
11123 | $as_echo "$OWNER" >&6; } | |
ad6254c5 | 11124 | |
d0191583 | 11125 | if test x$OWNER != x; then |
23b059e7 | 11126 | INSTALL="$INSTALL -o $OWNER" |
ad6254c5 AK |
11127 | fi |
11128 | ||
11129 | ################################################################################ | |
ec6a6fbe AK |
11130 | { $as_echo "$as_me:$LINENO: checking group owner" >&5 |
11131 | $as_echo_n "checking group owner... " >&6; } | |
ad6254c5 | 11132 | |
d0191583 JM |
11133 | # Check whether --with-group was given. |
11134 | if test "${with_group+set}" = set; then | |
71082be4 | 11135 | withval=$with_group; GROUP=$withval |
7a197a62 AK |
11136 | fi |
11137 | ||
ec6a6fbe AK |
11138 | { $as_echo "$as_me:$LINENO: result: $GROUP" >&5 |
11139 | $as_echo "$GROUP" >&6; } | |
d0191583 JM |
11140 | |
11141 | if test x$GROUP != x; then | |
23b059e7 | 11142 | INSTALL="$INSTALL -g $GROUP" |
d0191583 | 11143 | fi |
ad6254c5 | 11144 | |
24bbc4d7 | 11145 | ################################################################################ |
ec6a6fbe AK |
11146 | { $as_echo "$as_me:$LINENO: checking device node uid" >&5 |
11147 | $as_echo_n "checking device node uid... " >&6; } | |
24bbc4d7 AK |
11148 | |
11149 | ||
11150 | # Check whether --with-device-uid was given. | |
11151 | if test "${with_device_uid+set}" = set; then | |
71082be4 | 11152 | withval=$with_device_uid; DM_DEVICE_UID=$withval |
24bbc4d7 | 11153 | else |
71082be4 | 11154 | DM_DEVICE_UID=0 |
24bbc4d7 AK |
11155 | fi |
11156 | ||
ec6a6fbe AK |
11157 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5 |
11158 | $as_echo "$DM_DEVICE_UID" >&6; } | |
24bbc4d7 AK |
11159 | |
11160 | ################################################################################ | |
ec6a6fbe AK |
11161 | { $as_echo "$as_me:$LINENO: checking device node gid" >&5 |
11162 | $as_echo_n "checking device node gid... " >&6; } | |
24bbc4d7 AK |
11163 | |
11164 | ||
11165 | # Check whether --with-device-gid was given. | |
11166 | if test "${with_device_gid+set}" = set; then | |
71082be4 | 11167 | withval=$with_device_gid; DM_DEVICE_GID=$withval |
24bbc4d7 | 11168 | else |
71082be4 | 11169 | DM_DEVICE_GID=0 |
24bbc4d7 AK |
11170 | fi |
11171 | ||
ec6a6fbe AK |
11172 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5 |
11173 | $as_echo "$DM_DEVICE_GID" >&6; } | |
24bbc4d7 | 11174 | |
93bd259b | 11175 | ################################################################################ |
ec6a6fbe AK |
11176 | { $as_echo "$as_me:$LINENO: checking device node mode" >&5 |
11177 | $as_echo_n "checking device node mode... " >&6; } | |
93bd259b AK |
11178 | |
11179 | ||
11180 | # Check whether --with-device-mode was given. | |
11181 | if test "${with_device_mode+set}" = set; then | |
71082be4 | 11182 | withval=$with_device_mode; DM_DEVICE_MODE=$withval |
93bd259b | 11183 | else |
71082be4 | 11184 | DM_DEVICE_MODE=0600 |
93bd259b AK |
11185 | fi |
11186 | ||
ec6a6fbe AK |
11187 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5 |
11188 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
93bd259b | 11189 | |
ad6254c5 | 11190 | ################################################################################ |
ec6a6fbe AK |
11191 | { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
11192 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
d0191583 JM |
11193 | # Check whether --enable-lvm1_fallback was given. |
11194 | if test "${enable_lvm1_fallback+set}" = set; then | |
11195 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
11196 | else | |
11197 | LVM1_FALLBACK=no | |
7a197a62 AK |
11198 | fi |
11199 | ||
ec6a6fbe AK |
11200 | { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
11201 | $as_echo "$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 11202 | |
d0191583 | 11203 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
11204 | |
11205 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 11206 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
11207 | _ACEOF |
11208 | ||
ad6254c5 AK |
11209 | fi |
11210 | ||
11211 | ################################################################################ | |
ec6a6fbe AK |
11212 | { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
11213 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
d0191583 JM |
11214 | |
11215 | # Check whether --with-lvm1 was given. | |
11216 | if test "${with_lvm1+set}" = set; then | |
71082be4 | 11217 | withval=$with_lvm1; LVM1=$withval |
d0191583 | 11218 | else |
71082be4 | 11219 | LVM1=internal |
7a197a62 AK |
11220 | fi |
11221 | ||
ec6a6fbe AK |
11222 | { $as_echo "$as_me:$LINENO: result: $LVM1" >&5 |
11223 | $as_echo "$LVM1" >&6; } | |
ad6254c5 | 11224 | |
d0191583 | 11225 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
ec6a6fbe | 11226 | then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 11227 | " >&5 |
ec6a6fbe | 11228 | $as_echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
11229 | " >&2;} |
11230 | { (exit 1); exit 1; }; } | |
11231 | fi; | |
11232 | ||
11233 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
11234 | |
11235 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 11236 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
11237 | _ACEOF |
11238 | ||
ad6254c5 AK |
11239 | fi |
11240 | ||
11241 | ################################################################################ | |
ec6a6fbe AK |
11242 | { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
11243 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
d0191583 JM |
11244 | |
11245 | # Check whether --with-pool was given. | |
11246 | if test "${with_pool+set}" = set; then | |
71082be4 | 11247 | withval=$with_pool; POOL=$withval |
ad6254c5 | 11248 | else |
71082be4 | 11249 | POOL=internal |
7a197a62 AK |
11250 | fi |
11251 | ||
ec6a6fbe AK |
11252 | { $as_echo "$as_me:$LINENO: result: $POOL" >&5 |
11253 | $as_echo "$POOL" >&6; } | |
ad6254c5 | 11254 | |
d0191583 | 11255 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
ec6a6fbe | 11256 | then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 11257 | " >&5 |
ec6a6fbe | 11258 | $as_echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
11259 | " >&2;} |
11260 | { (exit 1); exit 1; }; } | |
11261 | fi; | |
7a197a62 | 11262 | |
d0191583 JM |
11263 | if test x$POOL = xinternal; then |
11264 | ||
11265 | cat >>confdefs.h <<\_ACEOF | |
11266 | #define POOL_INTERNAL 1 | |
11267 | _ACEOF | |
11268 | ||
11269 | fi | |
ad6254c5 | 11270 | |
06f62ad1 | 11271 | ################################################################################ |
ec6a6fbe AK |
11272 | { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
11273 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
d0191583 JM |
11274 | |
11275 | # Check whether --with-cluster was given. | |
11276 | if test "${with_cluster+set}" = set; then | |
71082be4 | 11277 | withval=$with_cluster; CLUSTER=$withval |
7a197a62 AK |
11278 | fi |
11279 | ||
ec6a6fbe AK |
11280 | { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
11281 | $as_echo "$CLUSTER" >&6; } | |
06f62ad1 | 11282 | |
d0191583 | 11283 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
ec6a6fbe | 11284 | then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 11285 | " >&5 |
ec6a6fbe | 11286 | $as_echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
11287 | " >&2;} |
11288 | { (exit 1); exit 1; }; } | |
d0191583 | 11289 | fi; |
06f62ad1 | 11290 | |
d0191583 | 11291 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
11292 | |
11293 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 11294 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
11295 | _ACEOF |
11296 | ||
15d91f5a | 11297 | fi |
ad6254c5 AK |
11298 | |
11299 | ################################################################################ | |
ec6a6fbe AK |
11300 | { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
11301 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
ad6254c5 | 11302 | |
d0191583 JM |
11303 | # Check whether --with-snapshots was given. |
11304 | if test "${with_snapshots+set}" = set; then | |
71082be4 | 11305 | withval=$with_snapshots; SNAPSHOTS=$withval |
d0191583 | 11306 | else |
71082be4 | 11307 | SNAPSHOTS=internal |
ad6254c5 AK |
11308 | fi |
11309 | ||
ec6a6fbe AK |
11310 | { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
11311 | $as_echo "$SNAPSHOTS" >&6; } | |
ad6254c5 | 11312 | |
d0191583 | 11313 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
ec6a6fbe | 11314 | then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 11315 | " >&5 |
ec6a6fbe | 11316 | $as_echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
11317 | " >&2;} |
11318 | { (exit 1); exit 1; }; } | |
11319 | fi; | |
11320 | ||
11321 | if test x$SNAPSHOTS = xinternal; then | |
11322 | ||
11323 | cat >>confdefs.h <<\_ACEOF | |
11324 | #define SNAPSHOT_INTERNAL 1 | |
11325 | _ACEOF | |
ad6254c5 | 11326 | |
ad6254c5 | 11327 | fi |
7a197a62 | 11328 | |
d0191583 | 11329 | ################################################################################ |
ec6a6fbe AK |
11330 | { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
11331 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
d0191583 JM |
11332 | |
11333 | # Check whether --with-mirrors was given. | |
11334 | if test "${with_mirrors+set}" = set; then | |
71082be4 | 11335 | withval=$with_mirrors; MIRRORS=$withval |
d0191583 | 11336 | else |
71082be4 | 11337 | MIRRORS=internal |
ad6254c5 | 11338 | fi |
ad6254c5 | 11339 | |
ec6a6fbe AK |
11340 | { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
11341 | $as_echo "$MIRRORS" >&6; } | |
ad6254c5 | 11342 | |
d0191583 | 11343 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
ec6a6fbe | 11344 | then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 11345 | " >&5 |
ec6a6fbe | 11346 | $as_echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
11347 | " >&2;} |
11348 | { (exit 1); exit 1; }; } | |
11349 | fi; | |
ad6254c5 | 11350 | |
d0191583 | 11351 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 11352 | |
d0191583 JM |
11353 | cat >>confdefs.h <<\_ACEOF |
11354 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 11355 | _ACEOF |
8a2fc586 | 11356 | |
d0191583 | 11357 | fi |
8a2fc586 | 11358 | |
8fea97b7 ZK |
11359 | ################################################################################ |
11360 | { $as_echo "$as_me:$LINENO: checking whether to include replicators" >&5 | |
11361 | $as_echo_n "checking whether to include replicators... " >&6; } | |
11362 | ||
11363 | # Check whether --with-replicators was given. | |
11364 | if test "${with_replicators+set}" = set; then | |
11365 | withval=$with_replicators; REPLICATORS=$withval | |
11366 | else | |
71082be4 | 11367 | REPLICATORS=none |
8fea97b7 ZK |
11368 | fi |
11369 | ||
11370 | { $as_echo "$as_me:$LINENO: result: $REPLICATORS" >&5 | |
11371 | $as_echo "$REPLICATORS" >&6; } | |
11372 | ||
11373 | case "$REPLICATORS" in | |
11374 | none|shared) ;; | |
11375 | internal) | |
11376 | cat >>confdefs.h <<\_ACEOF | |
11377 | #define REPLICATOR_INTERNAL 1 | |
11378 | _ACEOF | |
11379 | ;; | |
11380 | *) { { $as_echo "$as_me:$LINENO: error: --with-replicators parameter invalid ($REPLICATORS)" >&5 | |
11381 | $as_echo "$as_me: error: --with-replicators parameter invalid ($REPLICATORS)" >&2;} | |
11382 | { (exit 1); exit 1; }; } ;; | |
11383 | esac | |
11384 | ||
d0191583 | 11385 | ################################################################################ |
ec6a6fbe AK |
11386 | { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
11387 | $as_echo_n "checking whether to enable readline... " >&6; } | |
d0191583 JM |
11388 | # Check whether --enable-readline was given. |
11389 | if test "${enable_readline+set}" = set; then | |
11390 | enableval=$enable_readline; READLINE=$enableval | |
11391 | else | |
06e459df | 11392 | READLINE=maybe |
d0191583 | 11393 | fi |
8a2fc586 | 11394 | |
ec6a6fbe AK |
11395 | { $as_echo "$as_me:$LINENO: result: $READLINE" >&5 |
11396 | $as_echo "$READLINE" >&6; } | |
8a2fc586 | 11397 | |
d0191583 | 11398 | ################################################################################ |
ec6a6fbe AK |
11399 | { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
11400 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
d0191583 JM |
11401 | # Check whether --enable-realtime was given. |
11402 | if test "${enable_realtime+set}" = set; then | |
11403 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 11404 | fi |
ad6254c5 | 11405 | |
ec6a6fbe AK |
11406 | { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5 |
11407 | $as_echo "$REALTIME" >&6; } | |
d0191583 JM |
11408 | |
11409 | ################################################################################ | |
90c80887 | 11410 | pkg_config_init() { |
e2997b73 AK |
11411 | |
11412 | ||
11413 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
11414 | if test -n "$ac_tool_prefix"; then | |
11415 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
11416 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
11417 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11418 | $as_echo_n "checking for $ac_word... " >&6; } | |
11419 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
11420 | $as_echo_n "(cached) " >&6 | |
11421 | else | |
11422 | case $PKG_CONFIG in | |
11423 | [\\/]* | ?:[\\/]*) | |
11424 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11425 | ;; | |
11426 | *) | |
11427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11428 | for as_dir in $PATH | |
11429 | do | |
11430 | IFS=$as_save_IFS | |
11431 | test -z "$as_dir" && as_dir=. | |
11432 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11433 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11434 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11435 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11436 | break 2 | |
11437 | fi | |
11438 | done | |
11439 | done | |
11440 | IFS=$as_save_IFS | |
11441 | ||
11442 | ;; | |
11443 | esac | |
11444 | fi | |
11445 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
11446 | if test -n "$PKG_CONFIG"; then | |
11447 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
11448 | $as_echo "$PKG_CONFIG" >&6; } | |
11449 | else | |
11450 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11451 | $as_echo "no" >&6; } | |
11452 | fi | |
11453 | ||
11454 | ||
11455 | fi | |
11456 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
11457 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
11458 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
11459 | set dummy pkg-config; ac_word=$2 | |
11460 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11461 | $as_echo_n "checking for $ac_word... " >&6; } | |
11462 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
11463 | $as_echo_n "(cached) " >&6 | |
11464 | else | |
11465 | case $ac_pt_PKG_CONFIG in | |
11466 | [\\/]* | ?:[\\/]*) | |
11467 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
11468 | ;; | |
11469 | *) | |
11470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11471 | for as_dir in $PATH | |
11472 | do | |
11473 | IFS=$as_save_IFS | |
11474 | test -z "$as_dir" && as_dir=. | |
11475 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11476 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11477 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11478 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11479 | break 2 | |
11480 | fi | |
11481 | done | |
11482 | done | |
11483 | IFS=$as_save_IFS | |
11484 | ||
11485 | ;; | |
11486 | esac | |
11487 | fi | |
11488 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
11489 | if test -n "$ac_pt_PKG_CONFIG"; then | |
11490 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
11491 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
11492 | else | |
11493 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11494 | $as_echo "no" >&6; } | |
11495 | fi | |
11496 | ||
11497 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
11498 | PKG_CONFIG="" | |
11499 | else | |
11500 | case $cross_compiling:$ac_tool_warned in | |
11501 | yes:) | |
11502 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
11503 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
11504 | ac_tool_warned=yes ;; | |
11505 | esac | |
11506 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
11507 | fi | |
11508 | else | |
11509 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
11510 | fi | |
11511 | ||
11512 | fi | |
11513 | if test -n "$PKG_CONFIG"; then | |
11514 | _pkg_min_version=0.9.0 | |
11515 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
11516 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
11517 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
11518 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11519 | $as_echo "yes" >&6; } | |
11520 | else | |
11521 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11522 | $as_echo "no" >&6; } | |
11523 | PKG_CONFIG="" | |
11524 | fi | |
8c4e8a18 | 11525 | |
e2997b73 AK |
11526 | fi |
11527 | ||
11528 | pkg_failed=no | |
a946372e AK |
11529 | { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5 |
11530 | $as_echo_n "checking for PKGCONFIGINIT... " >&6; } | |
e2997b73 | 11531 | |
a946372e AK |
11532 | if test -n "$PKGCONFIGINIT_CFLAGS"; then |
11533 | pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS" | |
e2997b73 AK |
11534 | elif test -n "$PKG_CONFIG"; then |
11535 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11536 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
11537 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
11538 | ac_status=$? |
11539 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11540 | (exit $ac_status); }; then | |
a946372e | 11541 | pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
11542 | else |
11543 | pkg_failed=yes | |
11544 | fi | |
11545 | else | |
11546 | pkg_failed=untried | |
11547 | fi | |
a946372e AK |
11548 | if test -n "$PKGCONFIGINIT_LIBS"; then |
11549 | pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS" | |
e2997b73 AK |
11550 | elif test -n "$PKG_CONFIG"; then |
11551 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11552 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
11553 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
11554 | ac_status=$? |
11555 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11556 | (exit $ac_status); }; then | |
a946372e | 11557 | pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
11558 | else |
11559 | pkg_failed=yes | |
11560 | fi | |
11561 | else | |
11562 | pkg_failed=untried | |
11563 | fi | |
11564 | ||
11565 | ||
11566 | ||
11567 | if test $pkg_failed = yes; then | |
11568 | ||
11569 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11570 | _pkg_short_errors_supported=yes | |
11571 | else | |
11572 | _pkg_short_errors_supported=no | |
11573 | fi | |
11574 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 11575 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1` |
e2997b73 | 11576 | else |
a946372e | 11577 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1` |
e2997b73 AK |
11578 | fi |
11579 | # Put the nasty error message in config.log where it belongs | |
a946372e | 11580 | echo "$PKGCONFIGINIT_PKG_ERRORS" >&5 |
e2997b73 | 11581 | |
8c4e8a18 FDN |
11582 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11583 | $as_echo "no" >&6; } | |
11584 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 | |
a946372e | 11585 | $as_echo "pkg-config initialized" >&6; } |
e2997b73 | 11586 | elif test $pkg_failed = untried; then |
a946372e AK |
11587 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 |
11588 | $as_echo "pkg-config initialized" >&6; } | |
e2997b73 | 11589 | else |
a946372e AK |
11590 | PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS |
11591 | PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS | |
e2997b73 AK |
11592 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
11593 | $as_echo "yes" >&6; } | |
8c4e8a18 | 11594 | : |
e2997b73 | 11595 | fi |
90c80887 AK |
11596 | PKGCONFIG_INIT=1 |
11597 | } | |
11598 | ||
11599 | ################################################################################ | |
11600 | { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 | |
11601 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
11602 | ||
11603 | # Check whether --with-clvmd was given. | |
11604 | if test "${with_clvmd+set}" = set; then | |
71082be4 | 11605 | withval=$with_clvmd; CLVMD=$withval |
90c80887 | 11606 | else |
71082be4 | 11607 | CLVMD=none |
90c80887 AK |
11608 | fi |
11609 | ||
11610 | if test x$CLVMD = xyes; then | |
11611 | CLVMD=all | |
11612 | fi | |
11613 | { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5 | |
11614 | $as_echo "$CLVMD" >&6; } | |
11615 | ||
11616 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then | |
11617 | CLUSTER=internal | |
11618 | fi | |
11619 | ||
11620 | if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then | |
11621 | pkg_config_init | |
11622 | fi | |
11623 | ||
11624 | ||
11625 | if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then | |
11626 | BUILDGULM=yes | |
11627 | fi | |
11628 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then | |
11629 | BUILDCOROSYNC=yes | |
11630 | fi | |
11631 | if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then | |
11632 | BUILDOPENAIS=yes | |
11633 | fi | |
11634 | if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then | |
11635 | BUILDCMAN=yes | |
11636 | fi | |
11637 | ||
11638 | if test x$BUILDGULM = xyes; then | |
11639 | if test x$BUILDCOROSYNC = xyes || \ | |
11640 | test x$BUILDOPENAIS = xyes; then | |
11641 | { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5 | |
11642 | $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;} | |
11643 | { (exit 1); exit 1; }; } | |
11644 | fi | |
a946372e | 11645 | fi |
e2997b73 | 11646 | |
a946372e AK |
11647 | soft_bailout() { |
11648 | NOTFOUND=1 | |
11649 | } | |
e2997b73 | 11650 | |
a946372e AK |
11651 | hard_bailout() { |
11652 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
11653 | $as_echo "$as_me: error: bailing out" >&2;} | |
11654 | { (exit 1); exit 1; }; } | |
11655 | } | |
11656 | ||
11657 | if test x$CLVMD = xall; then | |
11658 | bailout=soft_bailout | |
11659 | BUILDGULM=yes | |
11660 | BUILDCMAN=yes | |
11661 | BUILDCOROSYNC=yes | |
11662 | BUILDOPENAIS=yes | |
e2997b73 | 11663 | else |
a946372e | 11664 | bailout=hard_bailout |
e2997b73 | 11665 | fi |
a946372e AK |
11666 | |
11667 | check_lib_no_libs() { | |
11668 | lib_no_libs_arg1=$1 | |
11669 | shift | |
11670 | lib_no_libs_arg2=$1 | |
11671 | shift | |
11672 | lib_no_libs_args=$@ | |
11673 | ||
11674 | as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh` | |
11675 | { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5 | |
11676 | $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; } | |
11677 | if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then | |
11678 | $as_echo_n "(cached) " >&6 | |
11679 | else | |
11680 | ac_check_lib_save_LIBS=$LIBS | |
11681 | LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS" | |
11682 | cat >conftest.$ac_ext <<_ACEOF | |
11683 | /* confdefs.h. */ | |
11684 | _ACEOF | |
11685 | cat confdefs.h >>conftest.$ac_ext | |
11686 | cat >>conftest.$ac_ext <<_ACEOF | |
11687 | /* end confdefs.h. */ | |
11688 | ||
11689 | /* Override any GCC internal prototype to avoid an error. | |
11690 | Use char because int might match the return type of a GCC | |
11691 | builtin and then its argument prototype would still apply. */ | |
11692 | #ifdef __cplusplus | |
11693 | extern "C" | |
11694 | #endif | |
11695 | char $lib_no_libs_arg2 (); | |
11696 | int | |
11697 | main () | |
11698 | { | |
11699 | return $lib_no_libs_arg2 (); | |
11700 | ; | |
11701 | return 0; | |
11702 | } | |
11703 | _ACEOF | |
11704 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11705 | if { (ac_try="$ac_link" | |
11706 | case "(($ac_try" in | |
11707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11708 | *) ac_try_echo=$ac_try;; | |
11709 | esac | |
11710 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11711 | $as_echo "$ac_try_echo") >&5 | |
11712 | (eval "$ac_link") 2>conftest.er1 | |
e2997b73 | 11713 | ac_status=$? |
a946372e AK |
11714 | grep -v '^ *+' conftest.er1 >conftest.err |
11715 | rm -f conftest.er1 | |
11716 | cat conftest.err >&5 | |
e2997b73 | 11717 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a946372e AK |
11718 | (exit $ac_status); } && { |
11719 | test -z "$ac_c_werror_flag" || | |
11720 | test ! -s conftest.err | |
11721 | } && test -s conftest$ac_exeext && { | |
11722 | test "$cross_compiling" = yes || | |
11723 | $as_test_x conftest$ac_exeext | |
11724 | }; then | |
11725 | eval "$as_ac_Lib=yes" | |
e2997b73 | 11726 | else |
a946372e AK |
11727 | $as_echo "$as_me: failed program was:" >&5 |
11728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
e2997b73 | 11729 | |
a946372e AK |
11730 | eval "$as_ac_Lib=no" |
11731 | fi | |
e2997b73 | 11732 | |
a946372e AK |
11733 | rm -rf conftest.dSYM |
11734 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11735 | conftest$ac_exeext conftest.$ac_ext | |
11736 | LIBS=$ac_check_lib_save_LIBS | |
11737 | fi | |
11738 | ac_res=`eval 'as_val=${'$as_ac_Lib'} | |
11739 | $as_echo "$as_val"'` | |
11740 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11741 | $as_echo "$ac_res" >&6; } | |
11742 | as_val=`eval 'as_val=${'$as_ac_Lib'} | |
11743 | $as_echo "$as_val"'` | |
11744 | if test "x$as_val" = x""yes; then | |
11745 | cat >>confdefs.h <<_ACEOF | |
11746 | #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1 | |
11747 | _ACEOF | |
e2997b73 | 11748 | |
a946372e | 11749 | LIBS="-l$lib_no_libs_arg1 $LIBS" |
e2997b73 | 11750 | |
e2997b73 | 11751 | else |
a946372e | 11752 | $bailout |
e2997b73 | 11753 | fi |
e2997b73 | 11754 | |
a946372e AK |
11755 | LIBS=$ac_check_lib_save_LIBS |
11756 | } | |
11757 | ||
11758 | if test x$BUILDGULM = xyes; then | |
e2997b73 AK |
11759 | |
11760 | pkg_failed=no | |
a946372e AK |
11761 | { $as_echo "$as_me:$LINENO: checking for CCS" >&5 |
11762 | $as_echo_n "checking for CCS... " >&6; } | |
e2997b73 | 11763 | |
a946372e AK |
11764 | if test -n "$CCS_CFLAGS"; then |
11765 | pkg_cv_CCS_CFLAGS="$CCS_CFLAGS" | |
e2997b73 AK |
11766 | elif test -n "$PKG_CONFIG"; then |
11767 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11768 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
11769 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
11770 | ac_status=$? |
11771 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11772 | (exit $ac_status); }; then | |
a946372e | 11773 | pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null` |
e2997b73 AK |
11774 | else |
11775 | pkg_failed=yes | |
11776 | fi | |
11777 | else | |
11778 | pkg_failed=untried | |
11779 | fi | |
a946372e AK |
11780 | if test -n "$CCS_LIBS"; then |
11781 | pkg_cv_CCS_LIBS="$CCS_LIBS" | |
e2997b73 AK |
11782 | elif test -n "$PKG_CONFIG"; then |
11783 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11784 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
11785 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
11786 | ac_status=$? |
11787 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11788 | (exit $ac_status); }; then | |
a946372e | 11789 | pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null` |
e2997b73 AK |
11790 | else |
11791 | pkg_failed=yes | |
11792 | fi | |
11793 | else | |
11794 | pkg_failed=untried | |
11795 | fi | |
11796 | ||
11797 | ||
11798 | ||
11799 | if test $pkg_failed = yes; then | |
11800 | ||
11801 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11802 | _pkg_short_errors_supported=yes | |
11803 | else | |
11804 | _pkg_short_errors_supported=no | |
11805 | fi | |
11806 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 11807 | CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1` |
e2997b73 | 11808 | else |
a946372e | 11809 | CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1` |
e2997b73 AK |
11810 | fi |
11811 | # Put the nasty error message in config.log where it belongs | |
a946372e | 11812 | echo "$CCS_PKG_ERRORS" >&5 |
e2997b73 | 11813 | |
8c4e8a18 FDN |
11814 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11815 | $as_echo "no" >&6; } | |
11816 | NOTFOUND=0 | |
e2997b73 | 11817 | |
a946372e AK |
11818 | for ac_header in ccs.h |
11819 | do | |
11820 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11821 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11822 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11823 | $as_echo_n "checking for $ac_header... " >&6; } | |
11824 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11825 | $as_echo_n "(cached) " >&6 | |
d0191583 | 11826 | fi |
a946372e AK |
11827 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11828 | $as_echo "$as_val"'` | |
11829 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11830 | $as_echo "$ac_res" >&6; } | |
fc54be10 | 11831 | else |
a946372e AK |
11832 | # Is the header compilable? |
11833 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11834 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11835 | cat >conftest.$ac_ext <<_ACEOF | |
11836 | /* confdefs.h. */ | |
11837 | _ACEOF | |
11838 | cat confdefs.h >>conftest.$ac_ext | |
11839 | cat >>conftest.$ac_ext <<_ACEOF | |
11840 | /* end confdefs.h. */ | |
11841 | $ac_includes_default | |
11842 | #include <$ac_header> | |
11843 | _ACEOF | |
11844 | rm -f conftest.$ac_objext | |
11845 | if { (ac_try="$ac_compile" | |
11846 | case "(($ac_try" in | |
11847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11848 | *) ac_try_echo=$ac_try;; | |
11849 | esac | |
11850 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11851 | $as_echo "$ac_try_echo") >&5 | |
11852 | (eval "$ac_compile") 2>conftest.er1 | |
11853 | ac_status=$? | |
11854 | grep -v '^ *+' conftest.er1 >conftest.err | |
11855 | rm -f conftest.er1 | |
11856 | cat conftest.err >&5 | |
11857 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11858 | (exit $ac_status); } && { | |
11859 | test -z "$ac_c_werror_flag" || | |
11860 | test ! -s conftest.err | |
11861 | } && test -s conftest.$ac_objext; then | |
11862 | ac_header_compiler=yes | |
11863 | else | |
11864 | $as_echo "$as_me: failed program was:" >&5 | |
11865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d0191583 | 11866 | |
a946372e | 11867 | ac_header_compiler=no |
d0191583 JM |
11868 | fi |
11869 | ||
a946372e AK |
11870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11871 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11872 | $as_echo "$ac_header_compiler" >&6; } | |
fddafd51 | 11873 | |
a946372e AK |
11874 | # Is the header present? |
11875 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11876 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11877 | cat >conftest.$ac_ext <<_ACEOF | |
11878 | /* confdefs.h. */ | |
11879 | _ACEOF | |
11880 | cat confdefs.h >>conftest.$ac_ext | |
11881 | cat >>conftest.$ac_ext <<_ACEOF | |
11882 | /* end confdefs.h. */ | |
11883 | #include <$ac_header> | |
11884 | _ACEOF | |
11885 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11886 | case "(($ac_try" in | |
11887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11888 | *) ac_try_echo=$ac_try;; | |
11889 | esac | |
11890 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11891 | $as_echo "$ac_try_echo") >&5 | |
11892 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11893 | ac_status=$? | |
11894 | grep -v '^ *+' conftest.er1 >conftest.err | |
11895 | rm -f conftest.er1 | |
11896 | cat conftest.err >&5 | |
11897 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11898 | (exit $ac_status); } >/dev/null && { | |
11899 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11900 | test ! -s conftest.err | |
11901 | }; then | |
11902 | ac_header_preproc=yes | |
11903 | else | |
11904 | $as_echo "$as_me: failed program was:" >&5 | |
11905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11906 | ||
11907 | ac_header_preproc=no | |
11908 | fi | |
11909 | ||
11910 | rm -f conftest.err conftest.$ac_ext | |
11911 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11912 | $as_echo "$ac_header_preproc" >&6; } | |
11913 | ||
11914 | # So? What about this header? | |
11915 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11916 | yes:no: ) | |
11917 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11918 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11919 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11920 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11921 | ac_header_preproc=yes | |
11922 | ;; | |
11923 | no:yes:* ) | |
11924 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11925 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11926 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11927 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11928 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11929 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11930 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11931 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11932 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11933 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11934 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11935 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11936 | ||
11937 | ;; | |
11938 | esac | |
11939 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11940 | $as_echo_n "checking for $ac_header... " >&6; } | |
11941 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11942 | $as_echo_n "(cached) " >&6 | |
11943 | else | |
11944 | eval "$as_ac_Header=\$ac_header_preproc" | |
11945 | fi | |
11946 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11947 | $as_echo "$as_val"'` | |
11948 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11949 | $as_echo "$ac_res" >&6; } | |
11950 | ||
11951 | fi | |
11952 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11953 | $as_echo "$as_val"'` | |
11954 | if test "x$as_val" = x""yes; then | |
11955 | cat >>confdefs.h <<_ACEOF | |
11956 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11957 | _ACEOF | |
11958 | ||
11959 | else | |
11960 | $bailout | |
11961 | fi | |
11962 | ||
11963 | done | |
11964 | ||
11965 | check_lib_no_libs ccs ccs_connect | |
11966 | if test $NOTFOUND = 0; then | |
11967 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
11968 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
11969 | CCS_LIBS="-lccs" | |
11970 | HAVE_CCS=yes | |
11971 | fi | |
11972 | elif test $pkg_failed = untried; then | |
11973 | NOTFOUND=0 | |
11974 | ||
11975 | for ac_header in ccs.h | |
11976 | do | |
11977 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11978 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11979 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11980 | $as_echo_n "checking for $ac_header... " >&6; } | |
11981 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11982 | $as_echo_n "(cached) " >&6 | |
11983 | fi | |
11984 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11985 | $as_echo "$as_val"'` | |
11986 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11987 | $as_echo "$ac_res" >&6; } | |
11988 | else | |
11989 | # Is the header compilable? | |
11990 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11991 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11992 | cat >conftest.$ac_ext <<_ACEOF | |
11993 | /* confdefs.h. */ | |
11994 | _ACEOF | |
11995 | cat confdefs.h >>conftest.$ac_ext | |
11996 | cat >>conftest.$ac_ext <<_ACEOF | |
11997 | /* end confdefs.h. */ | |
11998 | $ac_includes_default | |
11999 | #include <$ac_header> | |
12000 | _ACEOF | |
12001 | rm -f conftest.$ac_objext | |
12002 | if { (ac_try="$ac_compile" | |
12003 | case "(($ac_try" in | |
12004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12005 | *) ac_try_echo=$ac_try;; | |
12006 | esac | |
12007 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12008 | $as_echo "$ac_try_echo") >&5 | |
12009 | (eval "$ac_compile") 2>conftest.er1 | |
12010 | ac_status=$? | |
12011 | grep -v '^ *+' conftest.er1 >conftest.err | |
12012 | rm -f conftest.er1 | |
12013 | cat conftest.err >&5 | |
12014 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12015 | (exit $ac_status); } && { | |
12016 | test -z "$ac_c_werror_flag" || | |
12017 | test ! -s conftest.err | |
12018 | } && test -s conftest.$ac_objext; then | |
12019 | ac_header_compiler=yes | |
12020 | else | |
12021 | $as_echo "$as_me: failed program was:" >&5 | |
12022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12023 | ||
12024 | ac_header_compiler=no | |
12025 | fi | |
12026 | ||
12027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12028 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12029 | $as_echo "$ac_header_compiler" >&6; } | |
12030 | ||
12031 | # Is the header present? | |
12032 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12033 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12034 | cat >conftest.$ac_ext <<_ACEOF | |
12035 | /* confdefs.h. */ | |
12036 | _ACEOF | |
12037 | cat confdefs.h >>conftest.$ac_ext | |
12038 | cat >>conftest.$ac_ext <<_ACEOF | |
12039 | /* end confdefs.h. */ | |
12040 | #include <$ac_header> | |
12041 | _ACEOF | |
12042 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12043 | case "(($ac_try" in | |
12044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12045 | *) ac_try_echo=$ac_try;; | |
12046 | esac | |
12047 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12048 | $as_echo "$ac_try_echo") >&5 | |
12049 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12050 | ac_status=$? | |
12051 | grep -v '^ *+' conftest.er1 >conftest.err | |
12052 | rm -f conftest.er1 | |
12053 | cat conftest.err >&5 | |
12054 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12055 | (exit $ac_status); } >/dev/null && { | |
12056 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12057 | test ! -s conftest.err | |
12058 | }; then | |
12059 | ac_header_preproc=yes | |
12060 | else | |
12061 | $as_echo "$as_me: failed program was:" >&5 | |
12062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12063 | ||
12064 | ac_header_preproc=no | |
12065 | fi | |
12066 | ||
12067 | rm -f conftest.err conftest.$ac_ext | |
12068 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12069 | $as_echo "$ac_header_preproc" >&6; } | |
12070 | ||
12071 | # So? What about this header? | |
12072 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12073 | yes:no: ) | |
12074 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12075 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12076 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12077 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12078 | ac_header_preproc=yes | |
12079 | ;; | |
12080 | no:yes:* ) | |
12081 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12082 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12083 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12084 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12085 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12086 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12087 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12088 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12089 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12090 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12091 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12092 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12093 | ||
12094 | ;; | |
12095 | esac | |
12096 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12097 | $as_echo_n "checking for $ac_header... " >&6; } | |
12098 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12099 | $as_echo_n "(cached) " >&6 | |
12100 | else | |
12101 | eval "$as_ac_Header=\$ac_header_preproc" | |
12102 | fi | |
12103 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12104 | $as_echo "$as_val"'` | |
12105 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12106 | $as_echo "$ac_res" >&6; } | |
12107 | ||
12108 | fi | |
12109 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12110 | $as_echo "$as_val"'` | |
12111 | if test "x$as_val" = x""yes; then | |
12112 | cat >>confdefs.h <<_ACEOF | |
12113 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12114 | _ACEOF | |
12115 | ||
12116 | else | |
12117 | $bailout | |
12118 | fi | |
12119 | ||
12120 | done | |
12121 | ||
12122 | check_lib_no_libs ccs ccs_connect | |
12123 | if test $NOTFOUND = 0; then | |
12124 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
12125 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
12126 | CCS_LIBS="-lccs" | |
12127 | HAVE_CCS=yes | |
12128 | fi | |
12129 | else | |
12130 | CCS_CFLAGS=$pkg_cv_CCS_CFLAGS | |
12131 | CCS_LIBS=$pkg_cv_CCS_LIBS | |
12132 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12133 | $as_echo "yes" >&6; } | |
12134 | HAVE_CCS=yes | |
12135 | fi | |
12136 | ||
12137 | pkg_failed=no | |
12138 | { $as_echo "$as_me:$LINENO: checking for GULM" >&5 | |
12139 | $as_echo_n "checking for GULM... " >&6; } | |
12140 | ||
12141 | if test -n "$GULM_CFLAGS"; then | |
12142 | pkg_cv_GULM_CFLAGS="$GULM_CFLAGS" | |
12143 | elif test -n "$PKG_CONFIG"; then | |
12144 | if test -n "$PKG_CONFIG" && \ | |
12145 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
12146 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
12147 | ac_status=$? | |
12148 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12149 | (exit $ac_status); }; then | |
12150 | pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null` | |
12151 | else | |
12152 | pkg_failed=yes | |
12153 | fi | |
12154 | else | |
12155 | pkg_failed=untried | |
12156 | fi | |
12157 | if test -n "$GULM_LIBS"; then | |
12158 | pkg_cv_GULM_LIBS="$GULM_LIBS" | |
12159 | elif test -n "$PKG_CONFIG"; then | |
12160 | if test -n "$PKG_CONFIG" && \ | |
12161 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
12162 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
12163 | ac_status=$? | |
12164 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12165 | (exit $ac_status); }; then | |
12166 | pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null` | |
12167 | else | |
12168 | pkg_failed=yes | |
12169 | fi | |
12170 | else | |
12171 | pkg_failed=untried | |
12172 | fi | |
12173 | ||
12174 | ||
12175 | ||
12176 | if test $pkg_failed = yes; then | |
12177 | ||
12178 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12179 | _pkg_short_errors_supported=yes | |
12180 | else | |
12181 | _pkg_short_errors_supported=no | |
12182 | fi | |
12183 | if test $_pkg_short_errors_supported = yes; then | |
12184 | GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1` | |
12185 | else | |
12186 | GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1` | |
12187 | fi | |
12188 | # Put the nasty error message in config.log where it belongs | |
12189 | echo "$GULM_PKG_ERRORS" >&5 | |
12190 | ||
8c4e8a18 FDN |
12191 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12192 | $as_echo "no" >&6; } | |
12193 | NOTFOUND=0 | |
a946372e AK |
12194 | |
12195 | for ac_header in libgulm.h | |
12196 | do | |
12197 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12198 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12199 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12200 | $as_echo_n "checking for $ac_header... " >&6; } | |
12201 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12202 | $as_echo_n "(cached) " >&6 | |
12203 | fi | |
12204 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12205 | $as_echo "$as_val"'` | |
12206 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12207 | $as_echo "$ac_res" >&6; } | |
12208 | else | |
12209 | # Is the header compilable? | |
12210 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12211 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12212 | cat >conftest.$ac_ext <<_ACEOF | |
12213 | /* confdefs.h. */ | |
12214 | _ACEOF | |
12215 | cat confdefs.h >>conftest.$ac_ext | |
12216 | cat >>conftest.$ac_ext <<_ACEOF | |
12217 | /* end confdefs.h. */ | |
12218 | $ac_includes_default | |
12219 | #include <$ac_header> | |
12220 | _ACEOF | |
12221 | rm -f conftest.$ac_objext | |
12222 | if { (ac_try="$ac_compile" | |
12223 | case "(($ac_try" in | |
12224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12225 | *) ac_try_echo=$ac_try;; | |
12226 | esac | |
12227 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12228 | $as_echo "$ac_try_echo") >&5 | |
12229 | (eval "$ac_compile") 2>conftest.er1 | |
12230 | ac_status=$? | |
12231 | grep -v '^ *+' conftest.er1 >conftest.err | |
12232 | rm -f conftest.er1 | |
12233 | cat conftest.err >&5 | |
12234 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12235 | (exit $ac_status); } && { | |
12236 | test -z "$ac_c_werror_flag" || | |
12237 | test ! -s conftest.err | |
12238 | } && test -s conftest.$ac_objext; then | |
12239 | ac_header_compiler=yes | |
12240 | else | |
12241 | $as_echo "$as_me: failed program was:" >&5 | |
12242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12243 | ||
12244 | ac_header_compiler=no | |
12245 | fi | |
12246 | ||
12247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12248 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12249 | $as_echo "$ac_header_compiler" >&6; } | |
12250 | ||
12251 | # Is the header present? | |
12252 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12253 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12254 | cat >conftest.$ac_ext <<_ACEOF | |
12255 | /* confdefs.h. */ | |
12256 | _ACEOF | |
12257 | cat confdefs.h >>conftest.$ac_ext | |
12258 | cat >>conftest.$ac_ext <<_ACEOF | |
12259 | /* end confdefs.h. */ | |
12260 | #include <$ac_header> | |
12261 | _ACEOF | |
12262 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12263 | case "(($ac_try" in | |
12264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12265 | *) ac_try_echo=$ac_try;; | |
12266 | esac | |
12267 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12268 | $as_echo "$ac_try_echo") >&5 | |
12269 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12270 | ac_status=$? | |
12271 | grep -v '^ *+' conftest.er1 >conftest.err | |
12272 | rm -f conftest.er1 | |
12273 | cat conftest.err >&5 | |
12274 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12275 | (exit $ac_status); } >/dev/null && { | |
12276 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12277 | test ! -s conftest.err | |
12278 | }; then | |
12279 | ac_header_preproc=yes | |
12280 | else | |
12281 | $as_echo "$as_me: failed program was:" >&5 | |
12282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12283 | ||
12284 | ac_header_preproc=no | |
12285 | fi | |
12286 | ||
12287 | rm -f conftest.err conftest.$ac_ext | |
12288 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12289 | $as_echo "$ac_header_preproc" >&6; } | |
12290 | ||
12291 | # So? What about this header? | |
12292 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12293 | yes:no: ) | |
12294 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12295 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12296 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12297 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12298 | ac_header_preproc=yes | |
12299 | ;; | |
12300 | no:yes:* ) | |
12301 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12302 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12303 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12304 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12305 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12306 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12307 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12308 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12309 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12310 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12311 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12312 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12313 | ||
12314 | ;; | |
12315 | esac | |
12316 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12317 | $as_echo_n "checking for $ac_header... " >&6; } | |
12318 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12319 | $as_echo_n "(cached) " >&6 | |
12320 | else | |
12321 | eval "$as_ac_Header=\$ac_header_preproc" | |
12322 | fi | |
12323 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12324 | $as_echo "$as_val"'` | |
12325 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12326 | $as_echo "$ac_res" >&6; } | |
12327 | ||
12328 | fi | |
12329 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12330 | $as_echo "$as_val"'` | |
12331 | if test "x$as_val" = x""yes; then | |
12332 | cat >>confdefs.h <<_ACEOF | |
12333 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12334 | _ACEOF | |
12335 | ||
12336 | else | |
12337 | $bailout | |
12338 | fi | |
12339 | ||
12340 | done | |
12341 | ||
12342 | check_lib_no_libs gulm lg_core_login | |
12343 | if test $NOTFOUND = 0; then | |
12344 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
12345 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
12346 | GULM_LIBS="-lgulm" | |
12347 | HAVE_GULM=yes | |
12348 | fi | |
12349 | elif test $pkg_failed = untried; then | |
12350 | NOTFOUND=0 | |
12351 | ||
12352 | for ac_header in libgulm.h | |
12353 | do | |
12354 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12355 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12356 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12357 | $as_echo_n "checking for $ac_header... " >&6; } | |
12358 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12359 | $as_echo_n "(cached) " >&6 | |
12360 | fi | |
12361 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12362 | $as_echo "$as_val"'` | |
12363 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12364 | $as_echo "$ac_res" >&6; } | |
12365 | else | |
12366 | # Is the header compilable? | |
12367 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12368 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12369 | cat >conftest.$ac_ext <<_ACEOF | |
12370 | /* confdefs.h. */ | |
12371 | _ACEOF | |
12372 | cat confdefs.h >>conftest.$ac_ext | |
12373 | cat >>conftest.$ac_ext <<_ACEOF | |
12374 | /* end confdefs.h. */ | |
12375 | $ac_includes_default | |
12376 | #include <$ac_header> | |
12377 | _ACEOF | |
12378 | rm -f conftest.$ac_objext | |
12379 | if { (ac_try="$ac_compile" | |
12380 | case "(($ac_try" in | |
12381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12382 | *) ac_try_echo=$ac_try;; | |
12383 | esac | |
12384 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12385 | $as_echo "$ac_try_echo") >&5 | |
12386 | (eval "$ac_compile") 2>conftest.er1 | |
12387 | ac_status=$? | |
12388 | grep -v '^ *+' conftest.er1 >conftest.err | |
12389 | rm -f conftest.er1 | |
12390 | cat conftest.err >&5 | |
12391 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12392 | (exit $ac_status); } && { | |
12393 | test -z "$ac_c_werror_flag" || | |
12394 | test ! -s conftest.err | |
12395 | } && test -s conftest.$ac_objext; then | |
12396 | ac_header_compiler=yes | |
12397 | else | |
12398 | $as_echo "$as_me: failed program was:" >&5 | |
12399 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12400 | ||
12401 | ac_header_compiler=no | |
12402 | fi | |
12403 | ||
12404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12405 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12406 | $as_echo "$ac_header_compiler" >&6; } | |
12407 | ||
12408 | # Is the header present? | |
12409 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12410 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12411 | cat >conftest.$ac_ext <<_ACEOF | |
12412 | /* confdefs.h. */ | |
12413 | _ACEOF | |
12414 | cat confdefs.h >>conftest.$ac_ext | |
12415 | cat >>conftest.$ac_ext <<_ACEOF | |
12416 | /* end confdefs.h. */ | |
12417 | #include <$ac_header> | |
12418 | _ACEOF | |
12419 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12420 | case "(($ac_try" in | |
12421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12422 | *) ac_try_echo=$ac_try;; | |
12423 | esac | |
12424 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12425 | $as_echo "$ac_try_echo") >&5 | |
12426 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12427 | ac_status=$? | |
12428 | grep -v '^ *+' conftest.er1 >conftest.err | |
12429 | rm -f conftest.er1 | |
12430 | cat conftest.err >&5 | |
12431 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12432 | (exit $ac_status); } >/dev/null && { | |
12433 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12434 | test ! -s conftest.err | |
12435 | }; then | |
12436 | ac_header_preproc=yes | |
12437 | else | |
12438 | $as_echo "$as_me: failed program was:" >&5 | |
12439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12440 | ||
12441 | ac_header_preproc=no | |
12442 | fi | |
12443 | ||
12444 | rm -f conftest.err conftest.$ac_ext | |
12445 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12446 | $as_echo "$ac_header_preproc" >&6; } | |
12447 | ||
12448 | # So? What about this header? | |
12449 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12450 | yes:no: ) | |
12451 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12452 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12453 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12454 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12455 | ac_header_preproc=yes | |
12456 | ;; | |
12457 | no:yes:* ) | |
12458 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12459 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12460 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12461 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12462 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12463 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12464 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12465 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12466 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12467 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12468 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12469 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12470 | ||
12471 | ;; | |
12472 | esac | |
12473 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12474 | $as_echo_n "checking for $ac_header... " >&6; } | |
12475 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12476 | $as_echo_n "(cached) " >&6 | |
12477 | else | |
12478 | eval "$as_ac_Header=\$ac_header_preproc" | |
12479 | fi | |
12480 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12481 | $as_echo "$as_val"'` | |
12482 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12483 | $as_echo "$ac_res" >&6; } | |
12484 | ||
12485 | fi | |
12486 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12487 | $as_echo "$as_val"'` | |
12488 | if test "x$as_val" = x""yes; then | |
12489 | cat >>confdefs.h <<_ACEOF | |
12490 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12491 | _ACEOF | |
12492 | ||
12493 | else | |
12494 | $bailout | |
12495 | fi | |
12496 | ||
12497 | done | |
12498 | ||
12499 | check_lib_no_libs gulm lg_core_login | |
12500 | if test $NOTFOUND = 0; then | |
12501 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
12502 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
12503 | GULM_LIBS="-lgulm" | |
12504 | HAVE_GULM=yes | |
12505 | fi | |
12506 | else | |
12507 | GULM_CFLAGS=$pkg_cv_GULM_CFLAGS | |
12508 | GULM_LIBS=$pkg_cv_GULM_LIBS | |
12509 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12510 | $as_echo "yes" >&6; } | |
12511 | HAVE_GULM=yes | |
12512 | fi | |
12513 | fi | |
12514 | ||
12515 | if test x$BUILDCMAN = xyes; then | |
12516 | ||
12517 | pkg_failed=no | |
12518 | { $as_echo "$as_me:$LINENO: checking for CMAN" >&5 | |
12519 | $as_echo_n "checking for CMAN... " >&6; } | |
12520 | ||
12521 | if test -n "$CMAN_CFLAGS"; then | |
12522 | pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS" | |
12523 | elif test -n "$PKG_CONFIG"; then | |
12524 | if test -n "$PKG_CONFIG" && \ | |
12525 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
12526 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
12527 | ac_status=$? | |
12528 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12529 | (exit $ac_status); }; then | |
12530 | pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null` | |
12531 | else | |
12532 | pkg_failed=yes | |
12533 | fi | |
12534 | else | |
12535 | pkg_failed=untried | |
12536 | fi | |
12537 | if test -n "$CMAN_LIBS"; then | |
12538 | pkg_cv_CMAN_LIBS="$CMAN_LIBS" | |
12539 | elif test -n "$PKG_CONFIG"; then | |
12540 | if test -n "$PKG_CONFIG" && \ | |
12541 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
12542 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
12543 | ac_status=$? | |
12544 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12545 | (exit $ac_status); }; then | |
12546 | pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null` | |
12547 | else | |
12548 | pkg_failed=yes | |
12549 | fi | |
12550 | else | |
12551 | pkg_failed=untried | |
12552 | fi | |
12553 | ||
12554 | ||
12555 | ||
12556 | if test $pkg_failed = yes; then | |
12557 | ||
12558 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12559 | _pkg_short_errors_supported=yes | |
12560 | else | |
12561 | _pkg_short_errors_supported=no | |
12562 | fi | |
12563 | if test $_pkg_short_errors_supported = yes; then | |
12564 | CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1` | |
12565 | else | |
12566 | CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1` | |
12567 | fi | |
12568 | # Put the nasty error message in config.log where it belongs | |
12569 | echo "$CMAN_PKG_ERRORS" >&5 | |
12570 | ||
8c4e8a18 FDN |
12571 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12572 | $as_echo "no" >&6; } | |
12573 | NOTFOUND=0 | |
a946372e AK |
12574 | |
12575 | for ac_header in libcman.h | |
12576 | do | |
12577 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12578 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12579 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12580 | $as_echo_n "checking for $ac_header... " >&6; } | |
12581 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12582 | $as_echo_n "(cached) " >&6 | |
12583 | fi | |
12584 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12585 | $as_echo "$as_val"'` | |
12586 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12587 | $as_echo "$ac_res" >&6; } | |
12588 | else | |
12589 | # Is the header compilable? | |
12590 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12591 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12592 | cat >conftest.$ac_ext <<_ACEOF | |
12593 | /* confdefs.h. */ | |
12594 | _ACEOF | |
12595 | cat confdefs.h >>conftest.$ac_ext | |
12596 | cat >>conftest.$ac_ext <<_ACEOF | |
12597 | /* end confdefs.h. */ | |
12598 | $ac_includes_default | |
12599 | #include <$ac_header> | |
12600 | _ACEOF | |
12601 | rm -f conftest.$ac_objext | |
12602 | if { (ac_try="$ac_compile" | |
12603 | case "(($ac_try" in | |
12604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12605 | *) ac_try_echo=$ac_try;; | |
12606 | esac | |
12607 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12608 | $as_echo "$ac_try_echo") >&5 | |
12609 | (eval "$ac_compile") 2>conftest.er1 | |
12610 | ac_status=$? | |
12611 | grep -v '^ *+' conftest.er1 >conftest.err | |
12612 | rm -f conftest.er1 | |
12613 | cat conftest.err >&5 | |
12614 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12615 | (exit $ac_status); } && { | |
12616 | test -z "$ac_c_werror_flag" || | |
12617 | test ! -s conftest.err | |
12618 | } && test -s conftest.$ac_objext; then | |
12619 | ac_header_compiler=yes | |
12620 | else | |
12621 | $as_echo "$as_me: failed program was:" >&5 | |
12622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12623 | ||
12624 | ac_header_compiler=no | |
12625 | fi | |
12626 | ||
12627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12628 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12629 | $as_echo "$ac_header_compiler" >&6; } | |
12630 | ||
12631 | # Is the header present? | |
12632 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12633 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12634 | cat >conftest.$ac_ext <<_ACEOF | |
12635 | /* confdefs.h. */ | |
12636 | _ACEOF | |
12637 | cat confdefs.h >>conftest.$ac_ext | |
12638 | cat >>conftest.$ac_ext <<_ACEOF | |
12639 | /* end confdefs.h. */ | |
12640 | #include <$ac_header> | |
12641 | _ACEOF | |
12642 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12643 | case "(($ac_try" in | |
12644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12645 | *) ac_try_echo=$ac_try;; | |
12646 | esac | |
12647 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12648 | $as_echo "$ac_try_echo") >&5 | |
12649 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12650 | ac_status=$? | |
12651 | grep -v '^ *+' conftest.er1 >conftest.err | |
12652 | rm -f conftest.er1 | |
12653 | cat conftest.err >&5 | |
12654 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12655 | (exit $ac_status); } >/dev/null && { | |
12656 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12657 | test ! -s conftest.err | |
12658 | }; then | |
12659 | ac_header_preproc=yes | |
12660 | else | |
12661 | $as_echo "$as_me: failed program was:" >&5 | |
12662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12663 | ||
12664 | ac_header_preproc=no | |
12665 | fi | |
12666 | ||
12667 | rm -f conftest.err conftest.$ac_ext | |
12668 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12669 | $as_echo "$ac_header_preproc" >&6; } | |
12670 | ||
12671 | # So? What about this header? | |
12672 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12673 | yes:no: ) | |
12674 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12675 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12676 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12677 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12678 | ac_header_preproc=yes | |
12679 | ;; | |
12680 | no:yes:* ) | |
12681 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12682 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12683 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12684 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12685 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12686 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12687 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12688 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12689 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12690 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12691 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12692 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12693 | ||
12694 | ;; | |
12695 | esac | |
12696 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12697 | $as_echo_n "checking for $ac_header... " >&6; } | |
12698 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12699 | $as_echo_n "(cached) " >&6 | |
12700 | else | |
12701 | eval "$as_ac_Header=\$ac_header_preproc" | |
12702 | fi | |
12703 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12704 | $as_echo "$as_val"'` | |
12705 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12706 | $as_echo "$ac_res" >&6; } | |
12707 | ||
12708 | fi | |
12709 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12710 | $as_echo "$as_val"'` | |
12711 | if test "x$as_val" = x""yes; then | |
12712 | cat >>confdefs.h <<_ACEOF | |
12713 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12714 | _ACEOF | |
12715 | ||
12716 | else | |
12717 | $bailout | |
12718 | fi | |
12719 | ||
12720 | done | |
12721 | ||
12722 | check_lib_no_libs cman cman_init | |
12723 | if test $NOTFOUND = 0; then | |
12724 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
12725 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
12726 | CMAN_LIBS="-lcman" | |
12727 | HAVE_CMAN=yes | |
12728 | fi | |
12729 | elif test $pkg_failed = untried; then | |
12730 | NOTFOUND=0 | |
12731 | ||
12732 | for ac_header in libcman.h | |
12733 | do | |
12734 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12735 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12736 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12737 | $as_echo_n "checking for $ac_header... " >&6; } | |
12738 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12739 | $as_echo_n "(cached) " >&6 | |
12740 | fi | |
12741 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12742 | $as_echo "$as_val"'` | |
12743 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12744 | $as_echo "$ac_res" >&6; } | |
12745 | else | |
12746 | # Is the header compilable? | |
12747 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12748 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12749 | cat >conftest.$ac_ext <<_ACEOF | |
12750 | /* confdefs.h. */ | |
12751 | _ACEOF | |
12752 | cat confdefs.h >>conftest.$ac_ext | |
12753 | cat >>conftest.$ac_ext <<_ACEOF | |
12754 | /* end confdefs.h. */ | |
12755 | $ac_includes_default | |
12756 | #include <$ac_header> | |
12757 | _ACEOF | |
12758 | rm -f conftest.$ac_objext | |
12759 | if { (ac_try="$ac_compile" | |
12760 | case "(($ac_try" in | |
12761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12762 | *) ac_try_echo=$ac_try;; | |
12763 | esac | |
12764 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12765 | $as_echo "$ac_try_echo") >&5 | |
12766 | (eval "$ac_compile") 2>conftest.er1 | |
12767 | ac_status=$? | |
12768 | grep -v '^ *+' conftest.er1 >conftest.err | |
12769 | rm -f conftest.er1 | |
12770 | cat conftest.err >&5 | |
12771 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12772 | (exit $ac_status); } && { | |
12773 | test -z "$ac_c_werror_flag" || | |
12774 | test ! -s conftest.err | |
12775 | } && test -s conftest.$ac_objext; then | |
12776 | ac_header_compiler=yes | |
12777 | else | |
12778 | $as_echo "$as_me: failed program was:" >&5 | |
12779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12780 | ||
12781 | ac_header_compiler=no | |
12782 | fi | |
12783 | ||
12784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12785 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12786 | $as_echo "$ac_header_compiler" >&6; } | |
12787 | ||
12788 | # Is the header present? | |
12789 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12790 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12791 | cat >conftest.$ac_ext <<_ACEOF | |
12792 | /* confdefs.h. */ | |
12793 | _ACEOF | |
12794 | cat confdefs.h >>conftest.$ac_ext | |
12795 | cat >>conftest.$ac_ext <<_ACEOF | |
12796 | /* end confdefs.h. */ | |
12797 | #include <$ac_header> | |
12798 | _ACEOF | |
12799 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12800 | case "(($ac_try" in | |
12801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12802 | *) ac_try_echo=$ac_try;; | |
12803 | esac | |
12804 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12805 | $as_echo "$ac_try_echo") >&5 | |
12806 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12807 | ac_status=$? | |
12808 | grep -v '^ *+' conftest.er1 >conftest.err | |
12809 | rm -f conftest.er1 | |
12810 | cat conftest.err >&5 | |
12811 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12812 | (exit $ac_status); } >/dev/null && { | |
12813 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12814 | test ! -s conftest.err | |
12815 | }; then | |
12816 | ac_header_preproc=yes | |
12817 | else | |
12818 | $as_echo "$as_me: failed program was:" >&5 | |
12819 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12820 | ||
12821 | ac_header_preproc=no | |
12822 | fi | |
12823 | ||
12824 | rm -f conftest.err conftest.$ac_ext | |
12825 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12826 | $as_echo "$ac_header_preproc" >&6; } | |
12827 | ||
12828 | # So? What about this header? | |
12829 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12830 | yes:no: ) | |
12831 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12832 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12833 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12834 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12835 | ac_header_preproc=yes | |
12836 | ;; | |
12837 | no:yes:* ) | |
12838 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12839 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12840 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12841 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12842 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12843 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12844 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12845 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12846 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12847 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12848 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12849 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12850 | ||
12851 | ;; | |
12852 | esac | |
12853 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12854 | $as_echo_n "checking for $ac_header... " >&6; } | |
12855 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12856 | $as_echo_n "(cached) " >&6 | |
12857 | else | |
12858 | eval "$as_ac_Header=\$ac_header_preproc" | |
12859 | fi | |
12860 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12861 | $as_echo "$as_val"'` | |
12862 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12863 | $as_echo "$ac_res" >&6; } | |
12864 | ||
12865 | fi | |
12866 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12867 | $as_echo "$as_val"'` | |
12868 | if test "x$as_val" = x""yes; then | |
12869 | cat >>confdefs.h <<_ACEOF | |
12870 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12871 | _ACEOF | |
12872 | ||
12873 | else | |
12874 | $bailout | |
12875 | fi | |
12876 | ||
12877 | done | |
12878 | ||
12879 | check_lib_no_libs cman cman_init | |
12880 | if test $NOTFOUND = 0; then | |
12881 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
12882 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
12883 | CMAN_LIBS="-lcman" | |
12884 | HAVE_CMAN=yes | |
12885 | fi | |
12886 | else | |
12887 | CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS | |
12888 | CMAN_LIBS=$pkg_cv_CMAN_LIBS | |
12889 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12890 | $as_echo "yes" >&6; } | |
12891 | HAVE_CMAN=yes | |
12892 | fi | |
12893 | CHECKCONFDB=yes | |
12894 | CHECKDLM=yes | |
12895 | fi | |
12896 | ||
12897 | if test x$BUILDCOROSYNC = xyes || \ | |
12898 | test x$BUILDOPENAIS = xyes; then | |
12899 | ||
12900 | pkg_failed=no | |
12901 | { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5 | |
12902 | $as_echo_n "checking for COROSYNC... " >&6; } | |
12903 | ||
12904 | if test -n "$COROSYNC_CFLAGS"; then | |
12905 | pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS" | |
12906 | elif test -n "$PKG_CONFIG"; then | |
12907 | if test -n "$PKG_CONFIG" && \ | |
12908 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
12909 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
12910 | ac_status=$? | |
12911 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12912 | (exit $ac_status); }; then | |
12913 | pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null` | |
12914 | else | |
12915 | pkg_failed=yes | |
12916 | fi | |
12917 | else | |
12918 | pkg_failed=untried | |
12919 | fi | |
12920 | if test -n "$COROSYNC_LIBS"; then | |
12921 | pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS" | |
12922 | elif test -n "$PKG_CONFIG"; then | |
12923 | if test -n "$PKG_CONFIG" && \ | |
12924 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
12925 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
12926 | ac_status=$? | |
12927 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12928 | (exit $ac_status); }; then | |
12929 | pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null` | |
12930 | else | |
12931 | pkg_failed=yes | |
12932 | fi | |
12933 | else | |
12934 | pkg_failed=untried | |
12935 | fi | |
12936 | ||
12937 | ||
12938 | ||
12939 | if test $pkg_failed = yes; then | |
12940 | ||
12941 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12942 | _pkg_short_errors_supported=yes | |
12943 | else | |
12944 | _pkg_short_errors_supported=no | |
12945 | fi | |
12946 | if test $_pkg_short_errors_supported = yes; then | |
12947 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1` | |
12948 | else | |
12949 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1` | |
12950 | fi | |
12951 | # Put the nasty error message in config.log where it belongs | |
12952 | echo "$COROSYNC_PKG_ERRORS" >&5 | |
12953 | ||
8c4e8a18 | 12954 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 12955 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
12956 | $bailout |
12957 | elif test $pkg_failed = untried; then | |
a946372e AK |
12958 | $bailout |
12959 | else | |
12960 | COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS | |
12961 | COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS | |
12962 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12963 | $as_echo "yes" >&6; } | |
12964 | HAVE_COROSYNC=yes | |
12965 | fi | |
12966 | CHECKCONFDB=yes | |
12967 | fi | |
12968 | ||
12969 | if test x$BUILDCOROSYNC = xyes; then | |
12970 | ||
12971 | pkg_failed=no | |
12972 | { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5 | |
12973 | $as_echo_n "checking for QUORUM... " >&6; } | |
12974 | ||
12975 | if test -n "$QUORUM_CFLAGS"; then | |
12976 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
12977 | elif test -n "$PKG_CONFIG"; then | |
12978 | if test -n "$PKG_CONFIG" && \ | |
12979 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
12980 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
12981 | ac_status=$? | |
12982 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12983 | (exit $ac_status); }; then | |
12984 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
12985 | else | |
12986 | pkg_failed=yes | |
12987 | fi | |
12988 | else | |
12989 | pkg_failed=untried | |
12990 | fi | |
12991 | if test -n "$QUORUM_LIBS"; then | |
12992 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
12993 | elif test -n "$PKG_CONFIG"; then | |
12994 | if test -n "$PKG_CONFIG" && \ | |
12995 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
12996 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
12997 | ac_status=$? | |
12998 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12999 | (exit $ac_status); }; then | |
13000 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
13001 | else | |
13002 | pkg_failed=yes | |
13003 | fi | |
13004 | else | |
13005 | pkg_failed=untried | |
13006 | fi | |
13007 | ||
13008 | ||
13009 | ||
13010 | if test $pkg_failed = yes; then | |
13011 | ||
13012 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13013 | _pkg_short_errors_supported=yes | |
13014 | else | |
13015 | _pkg_short_errors_supported=no | |
13016 | fi | |
13017 | if test $_pkg_short_errors_supported = yes; then | |
13018 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
13019 | else | |
13020 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
13021 | fi | |
13022 | # Put the nasty error message in config.log where it belongs | |
13023 | echo "$QUORUM_PKG_ERRORS" >&5 | |
13024 | ||
8c4e8a18 | 13025 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 13026 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
13027 | $bailout |
13028 | elif test $pkg_failed = untried; then | |
a946372e AK |
13029 | $bailout |
13030 | else | |
13031 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
13032 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
13033 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13034 | $as_echo "yes" >&6; } | |
13035 | HAVE_QUORUM=yes | |
13036 | fi | |
13037 | CHECKCPG=yes | |
13038 | CHECKDLM=yes | |
13039 | fi | |
13040 | ||
13041 | if test x$BUILDOPENAIS = xyes; then | |
13042 | ||
13043 | pkg_failed=no | |
13044 | { $as_echo "$as_me:$LINENO: checking for SALCK" >&5 | |
13045 | $as_echo_n "checking for SALCK... " >&6; } | |
13046 | ||
13047 | if test -n "$SALCK_CFLAGS"; then | |
13048 | pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS" | |
13049 | elif test -n "$PKG_CONFIG"; then | |
13050 | if test -n "$PKG_CONFIG" && \ | |
13051 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
13052 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
13053 | ac_status=$? | |
13054 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13055 | (exit $ac_status); }; then | |
13056 | pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null` | |
13057 | else | |
13058 | pkg_failed=yes | |
13059 | fi | |
13060 | else | |
13061 | pkg_failed=untried | |
13062 | fi | |
13063 | if test -n "$SALCK_LIBS"; then | |
13064 | pkg_cv_SALCK_LIBS="$SALCK_LIBS" | |
13065 | elif test -n "$PKG_CONFIG"; then | |
13066 | if test -n "$PKG_CONFIG" && \ | |
13067 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
13068 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
13069 | ac_status=$? | |
13070 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13071 | (exit $ac_status); }; then | |
13072 | pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null` | |
13073 | else | |
13074 | pkg_failed=yes | |
13075 | fi | |
13076 | else | |
13077 | pkg_failed=untried | |
13078 | fi | |
13079 | ||
13080 | ||
13081 | ||
13082 | if test $pkg_failed = yes; then | |
13083 | ||
13084 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13085 | _pkg_short_errors_supported=yes | |
13086 | else | |
13087 | _pkg_short_errors_supported=no | |
13088 | fi | |
13089 | if test $_pkg_short_errors_supported = yes; then | |
13090 | SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1` | |
13091 | else | |
13092 | SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1` | |
13093 | fi | |
13094 | # Put the nasty error message in config.log where it belongs | |
13095 | echo "$SALCK_PKG_ERRORS" >&5 | |
13096 | ||
8c4e8a18 | 13097 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 13098 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
13099 | $bailout |
13100 | elif test $pkg_failed = untried; then | |
a946372e AK |
13101 | $bailout |
13102 | else | |
13103 | SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS | |
13104 | SALCK_LIBS=$pkg_cv_SALCK_LIBS | |
13105 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13106 | $as_echo "yes" >&6; } | |
13107 | HAVE_SALCK=yes | |
13108 | fi | |
13109 | CHECKCPG=yes | |
13110 | fi | |
13111 | ||
13112 | ||
13113 | ||
13114 | if test x$CHECKCONFDB = xyes; then | |
13115 | ||
13116 | pkg_failed=no | |
13117 | { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5 | |
13118 | $as_echo_n "checking for CONFDB... " >&6; } | |
13119 | ||
13120 | if test -n "$CONFDB_CFLAGS"; then | |
13121 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
13122 | elif test -n "$PKG_CONFIG"; then | |
13123 | if test -n "$PKG_CONFIG" && \ | |
13124 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
13125 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
13126 | ac_status=$? | |
13127 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13128 | (exit $ac_status); }; then | |
13129 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
13130 | else | |
13131 | pkg_failed=yes | |
13132 | fi | |
13133 | else | |
13134 | pkg_failed=untried | |
13135 | fi | |
13136 | if test -n "$CONFDB_LIBS"; then | |
13137 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
13138 | elif test -n "$PKG_CONFIG"; then | |
13139 | if test -n "$PKG_CONFIG" && \ | |
13140 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
13141 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
13142 | ac_status=$? | |
13143 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13144 | (exit $ac_status); }; then | |
13145 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
13146 | else | |
13147 | pkg_failed=yes | |
13148 | fi | |
13149 | else | |
13150 | pkg_failed=untried | |
13151 | fi | |
13152 | ||
13153 | ||
13154 | ||
13155 | if test $pkg_failed = yes; then | |
13156 | ||
13157 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13158 | _pkg_short_errors_supported=yes | |
13159 | else | |
13160 | _pkg_short_errors_supported=no | |
13161 | fi | |
13162 | if test $_pkg_short_errors_supported = yes; then | |
13163 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
13164 | else | |
13165 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
13166 | fi | |
13167 | # Put the nasty error message in config.log where it belongs | |
13168 | echo "$CONFDB_PKG_ERRORS" >&5 | |
13169 | ||
8c4e8a18 | 13170 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 13171 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
13172 | HAVE_CONFDB=no |
13173 | elif test $pkg_failed = untried; then | |
a946372e AK |
13174 | HAVE_CONFDB=no |
13175 | else | |
13176 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
13177 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
13178 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13179 | $as_echo "yes" >&6; } | |
13180 | HAVE_CONFDB=yes | |
13181 | fi | |
13182 | ||
13183 | ||
13184 | for ac_header in corosync/confdb.h | |
13185 | do | |
13186 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13187 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13188 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13189 | $as_echo_n "checking for $ac_header... " >&6; } | |
13190 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13191 | $as_echo_n "(cached) " >&6 | |
13192 | fi | |
13193 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13194 | $as_echo "$as_val"'` | |
13195 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13196 | $as_echo "$ac_res" >&6; } | |
13197 | else | |
13198 | # Is the header compilable? | |
13199 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13200 | $as_echo_n "checking $ac_header usability... " >&6; } | |
13201 | cat >conftest.$ac_ext <<_ACEOF | |
13202 | /* confdefs.h. */ | |
13203 | _ACEOF | |
13204 | cat confdefs.h >>conftest.$ac_ext | |
13205 | cat >>conftest.$ac_ext <<_ACEOF | |
13206 | /* end confdefs.h. */ | |
13207 | $ac_includes_default | |
13208 | #include <$ac_header> | |
13209 | _ACEOF | |
13210 | rm -f conftest.$ac_objext | |
13211 | if { (ac_try="$ac_compile" | |
13212 | case "(($ac_try" in | |
13213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13214 | *) ac_try_echo=$ac_try;; | |
13215 | esac | |
13216 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13217 | $as_echo "$ac_try_echo") >&5 | |
13218 | (eval "$ac_compile") 2>conftest.er1 | |
13219 | ac_status=$? | |
13220 | grep -v '^ *+' conftest.er1 >conftest.err | |
13221 | rm -f conftest.er1 | |
13222 | cat conftest.err >&5 | |
13223 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13224 | (exit $ac_status); } && { | |
13225 | test -z "$ac_c_werror_flag" || | |
13226 | test ! -s conftest.err | |
13227 | } && test -s conftest.$ac_objext; then | |
13228 | ac_header_compiler=yes | |
13229 | else | |
13230 | $as_echo "$as_me: failed program was:" >&5 | |
13231 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13232 | ||
13233 | ac_header_compiler=no | |
13234 | fi | |
13235 | ||
13236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13237 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13238 | $as_echo "$ac_header_compiler" >&6; } | |
13239 | ||
13240 | # Is the header present? | |
13241 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13242 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13243 | cat >conftest.$ac_ext <<_ACEOF | |
13244 | /* confdefs.h. */ | |
13245 | _ACEOF | |
13246 | cat confdefs.h >>conftest.$ac_ext | |
13247 | cat >>conftest.$ac_ext <<_ACEOF | |
13248 | /* end confdefs.h. */ | |
13249 | #include <$ac_header> | |
13250 | _ACEOF | |
13251 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13252 | case "(($ac_try" in | |
13253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13254 | *) ac_try_echo=$ac_try;; | |
13255 | esac | |
13256 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13257 | $as_echo "$ac_try_echo") >&5 | |
13258 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13259 | ac_status=$? | |
13260 | grep -v '^ *+' conftest.er1 >conftest.err | |
13261 | rm -f conftest.er1 | |
13262 | cat conftest.err >&5 | |
13263 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13264 | (exit $ac_status); } >/dev/null && { | |
13265 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13266 | test ! -s conftest.err | |
13267 | }; then | |
13268 | ac_header_preproc=yes | |
13269 | else | |
13270 | $as_echo "$as_me: failed program was:" >&5 | |
13271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13272 | ||
13273 | ac_header_preproc=no | |
13274 | fi | |
13275 | ||
13276 | rm -f conftest.err conftest.$ac_ext | |
13277 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13278 | $as_echo "$ac_header_preproc" >&6; } | |
13279 | ||
13280 | # So? What about this header? | |
13281 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13282 | yes:no: ) | |
13283 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13284 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13285 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13286 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13287 | ac_header_preproc=yes | |
13288 | ;; | |
13289 | no:yes:* ) | |
13290 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13291 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13292 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13293 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13294 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13295 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13296 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13297 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13298 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13299 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13300 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13301 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13302 | ||
13303 | ;; | |
13304 | esac | |
13305 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13306 | $as_echo_n "checking for $ac_header... " >&6; } | |
13307 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13308 | $as_echo_n "(cached) " >&6 | |
13309 | else | |
13310 | eval "$as_ac_Header=\$ac_header_preproc" | |
13311 | fi | |
13312 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13313 | $as_echo "$as_val"'` | |
13314 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13315 | $as_echo "$ac_res" >&6; } | |
13316 | ||
13317 | fi | |
13318 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
13319 | $as_echo "$as_val"'` | |
13320 | if test "x$as_val" = x""yes; then | |
13321 | cat >>confdefs.h <<_ACEOF | |
13322 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13323 | _ACEOF | |
13324 | HAVE_CONFDB_H=yes | |
13325 | else | |
13326 | HAVE_CONFDB_H=no | |
13327 | fi | |
13328 | ||
13329 | done | |
13330 | ||
13331 | ||
13332 | if test x$HAVE_CONFDB != xyes && \ | |
13333 | test x$HAVE_CONFDB_H = xyes; then | |
13334 | check_lib_no_libs confdb confdb_initialize | |
13335 | { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5 | |
13336 | $as_echo "no pkg for confdb, using -lconfdb" >&6; } | |
13337 | CONFDB_LIBS="-lconfdb" | |
13338 | HAVE_CONFDB=yes | |
13339 | fi | |
13340 | ||
13341 | if test x$BUILDCOROSYNC = xyes && \ | |
13342 | test x$HAVE_CONFDB != xyes && | |
13343 | test x$CLVMD != xall; then | |
13344 | { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5 | |
13345 | $as_echo "$as_me: error: bailing out... confdb library is required" >&2;} | |
13346 | { (exit 1); exit 1; }; } | |
13347 | fi | |
13348 | fi | |
13349 | ||
13350 | if test x$CHECKCPG = xyes; then | |
13351 | ||
13352 | pkg_failed=no | |
13353 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
13354 | $as_echo_n "checking for CPG... " >&6; } | |
13355 | ||
13356 | if test -n "$CPG_CFLAGS"; then | |
13357 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
13358 | elif test -n "$PKG_CONFIG"; then | |
13359 | if test -n "$PKG_CONFIG" && \ | |
13360 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
13361 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
13362 | ac_status=$? | |
13363 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13364 | (exit $ac_status); }; then | |
13365 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
13366 | else | |
13367 | pkg_failed=yes | |
13368 | fi | |
13369 | else | |
13370 | pkg_failed=untried | |
13371 | fi | |
13372 | if test -n "$CPG_LIBS"; then | |
13373 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
13374 | elif test -n "$PKG_CONFIG"; then | |
13375 | if test -n "$PKG_CONFIG" && \ | |
13376 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
13377 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
13378 | ac_status=$? | |
13379 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13380 | (exit $ac_status); }; then | |
13381 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
13382 | else | |
13383 | pkg_failed=yes | |
13384 | fi | |
13385 | else | |
13386 | pkg_failed=untried | |
13387 | fi | |
13388 | ||
13389 | ||
13390 | ||
13391 | if test $pkg_failed = yes; then | |
13392 | ||
13393 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13394 | _pkg_short_errors_supported=yes | |
13395 | else | |
13396 | _pkg_short_errors_supported=no | |
13397 | fi | |
13398 | if test $_pkg_short_errors_supported = yes; then | |
13399 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
13400 | else | |
13401 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
13402 | fi | |
13403 | # Put the nasty error message in config.log where it belongs | |
13404 | echo "$CPG_PKG_ERRORS" >&5 | |
13405 | ||
8c4e8a18 | 13406 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 13407 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
13408 | $bailout |
13409 | elif test $pkg_failed = untried; then | |
a946372e AK |
13410 | $bailout |
13411 | else | |
13412 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
13413 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
13414 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13415 | $as_echo "yes" >&6; } | |
13416 | HAVE_CPG=yes | |
13417 | fi | |
13418 | fi | |
13419 | ||
13420 | if test x$CHECKDLM = xyes; then | |
13421 | ||
13422 | pkg_failed=no | |
13423 | { $as_echo "$as_me:$LINENO: checking for DLM" >&5 | |
13424 | $as_echo_n "checking for DLM... " >&6; } | |
13425 | ||
13426 | if test -n "$DLM_CFLAGS"; then | |
13427 | pkg_cv_DLM_CFLAGS="$DLM_CFLAGS" | |
13428 | elif test -n "$PKG_CONFIG"; then | |
13429 | if test -n "$PKG_CONFIG" && \ | |
13430 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
13431 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
13432 | ac_status=$? | |
13433 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13434 | (exit $ac_status); }; then | |
13435 | pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null` | |
13436 | else | |
13437 | pkg_failed=yes | |
13438 | fi | |
13439 | else | |
13440 | pkg_failed=untried | |
13441 | fi | |
13442 | if test -n "$DLM_LIBS"; then | |
13443 | pkg_cv_DLM_LIBS="$DLM_LIBS" | |
13444 | elif test -n "$PKG_CONFIG"; then | |
13445 | if test -n "$PKG_CONFIG" && \ | |
13446 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
13447 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
13448 | ac_status=$? | |
13449 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13450 | (exit $ac_status); }; then | |
13451 | pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null` | |
13452 | else | |
13453 | pkg_failed=yes | |
13454 | fi | |
13455 | else | |
13456 | pkg_failed=untried | |
13457 | fi | |
13458 | ||
13459 | ||
13460 | ||
13461 | if test $pkg_failed = yes; then | |
13462 | ||
13463 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13464 | _pkg_short_errors_supported=yes | |
13465 | else | |
13466 | _pkg_short_errors_supported=no | |
13467 | fi | |
13468 | if test $_pkg_short_errors_supported = yes; then | |
13469 | DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1` | |
13470 | else | |
13471 | DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1` | |
13472 | fi | |
13473 | # Put the nasty error message in config.log where it belongs | |
13474 | echo "$DLM_PKG_ERRORS" >&5 | |
13475 | ||
8c4e8a18 FDN |
13476 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13477 | $as_echo "no" >&6; } | |
13478 | NOTFOUND=0 | |
a946372e AK |
13479 | |
13480 | for ac_header in libdlm.h | |
13481 | do | |
13482 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13483 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13484 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13485 | $as_echo_n "checking for $ac_header... " >&6; } | |
13486 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13487 | $as_echo_n "(cached) " >&6 | |
13488 | fi | |
13489 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13490 | $as_echo "$as_val"'` | |
13491 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13492 | $as_echo "$ac_res" >&6; } | |
13493 | else | |
13494 | # Is the header compilable? | |
13495 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13496 | $as_echo_n "checking $ac_header usability... " >&6; } | |
13497 | cat >conftest.$ac_ext <<_ACEOF | |
13498 | /* confdefs.h. */ | |
13499 | _ACEOF | |
13500 | cat confdefs.h >>conftest.$ac_ext | |
13501 | cat >>conftest.$ac_ext <<_ACEOF | |
13502 | /* end confdefs.h. */ | |
13503 | $ac_includes_default | |
13504 | #include <$ac_header> | |
13505 | _ACEOF | |
13506 | rm -f conftest.$ac_objext | |
13507 | if { (ac_try="$ac_compile" | |
13508 | case "(($ac_try" in | |
13509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13510 | *) ac_try_echo=$ac_try;; | |
13511 | esac | |
13512 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13513 | $as_echo "$ac_try_echo") >&5 | |
13514 | (eval "$ac_compile") 2>conftest.er1 | |
13515 | ac_status=$? | |
13516 | grep -v '^ *+' conftest.er1 >conftest.err | |
13517 | rm -f conftest.er1 | |
13518 | cat conftest.err >&5 | |
13519 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13520 | (exit $ac_status); } && { | |
13521 | test -z "$ac_c_werror_flag" || | |
13522 | test ! -s conftest.err | |
13523 | } && test -s conftest.$ac_objext; then | |
13524 | ac_header_compiler=yes | |
13525 | else | |
13526 | $as_echo "$as_me: failed program was:" >&5 | |
13527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13528 | ||
13529 | ac_header_compiler=no | |
13530 | fi | |
13531 | ||
13532 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13533 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13534 | $as_echo "$ac_header_compiler" >&6; } | |
13535 | ||
13536 | # Is the header present? | |
13537 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13538 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13539 | cat >conftest.$ac_ext <<_ACEOF | |
13540 | /* confdefs.h. */ | |
13541 | _ACEOF | |
13542 | cat confdefs.h >>conftest.$ac_ext | |
13543 | cat >>conftest.$ac_ext <<_ACEOF | |
13544 | /* end confdefs.h. */ | |
13545 | #include <$ac_header> | |
13546 | _ACEOF | |
13547 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13548 | case "(($ac_try" in | |
13549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13550 | *) ac_try_echo=$ac_try;; | |
13551 | esac | |
13552 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13553 | $as_echo "$ac_try_echo") >&5 | |
13554 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13555 | ac_status=$? | |
13556 | grep -v '^ *+' conftest.er1 >conftest.err | |
13557 | rm -f conftest.er1 | |
13558 | cat conftest.err >&5 | |
13559 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13560 | (exit $ac_status); } >/dev/null && { | |
13561 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13562 | test ! -s conftest.err | |
13563 | }; then | |
13564 | ac_header_preproc=yes | |
13565 | else | |
13566 | $as_echo "$as_me: failed program was:" >&5 | |
13567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13568 | ||
13569 | ac_header_preproc=no | |
13570 | fi | |
13571 | ||
13572 | rm -f conftest.err conftest.$ac_ext | |
13573 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13574 | $as_echo "$ac_header_preproc" >&6; } | |
13575 | ||
13576 | # So? What about this header? | |
13577 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13578 | yes:no: ) | |
13579 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13580 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13581 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13582 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13583 | ac_header_preproc=yes | |
13584 | ;; | |
13585 | no:yes:* ) | |
13586 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13587 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13588 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13589 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13590 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13591 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13592 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13593 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13594 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13595 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13596 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13597 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13598 | ||
13599 | ;; | |
13600 | esac | |
13601 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13602 | $as_echo_n "checking for $ac_header... " >&6; } | |
13603 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13604 | $as_echo_n "(cached) " >&6 | |
13605 | else | |
13606 | eval "$as_ac_Header=\$ac_header_preproc" | |
13607 | fi | |
13608 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13609 | $as_echo "$as_val"'` | |
13610 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13611 | $as_echo "$ac_res" >&6; } | |
13612 | ||
13613 | fi | |
13614 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
13615 | $as_echo "$as_val"'` | |
13616 | if test "x$as_val" = x""yes; then | |
13617 | cat >>confdefs.h <<_ACEOF | |
13618 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13619 | _ACEOF | |
13620 | ||
13621 | else | |
13622 | $bailout | |
13623 | fi | |
13624 | ||
13625 | done | |
13626 | ||
13627 | check_lib_no_libs dlm dlm_lock -lpthread | |
13628 | if test $NOTFOUND = 0; then | |
13629 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
13630 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
13631 | DLM_LIBS="-ldlm -lpthread" | |
13632 | HAVE_DLM=yes | |
13633 | fi | |
13634 | elif test $pkg_failed = untried; then | |
13635 | NOTFOUND=0 | |
13636 | ||
13637 | for ac_header in libdlm.h | |
13638 | do | |
13639 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13640 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13641 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13642 | $as_echo_n "checking for $ac_header... " >&6; } | |
13643 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13644 | $as_echo_n "(cached) " >&6 | |
13645 | fi | |
13646 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13647 | $as_echo "$as_val"'` | |
13648 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13649 | $as_echo "$ac_res" >&6; } | |
13650 | else | |
13651 | # Is the header compilable? | |
13652 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13653 | $as_echo_n "checking $ac_header usability... " >&6; } | |
13654 | cat >conftest.$ac_ext <<_ACEOF | |
13655 | /* confdefs.h. */ | |
13656 | _ACEOF | |
13657 | cat confdefs.h >>conftest.$ac_ext | |
13658 | cat >>conftest.$ac_ext <<_ACEOF | |
13659 | /* end confdefs.h. */ | |
13660 | $ac_includes_default | |
13661 | #include <$ac_header> | |
13662 | _ACEOF | |
13663 | rm -f conftest.$ac_objext | |
13664 | if { (ac_try="$ac_compile" | |
13665 | case "(($ac_try" in | |
13666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13667 | *) ac_try_echo=$ac_try;; | |
13668 | esac | |
13669 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13670 | $as_echo "$ac_try_echo") >&5 | |
13671 | (eval "$ac_compile") 2>conftest.er1 | |
13672 | ac_status=$? | |
13673 | grep -v '^ *+' conftest.er1 >conftest.err | |
13674 | rm -f conftest.er1 | |
13675 | cat conftest.err >&5 | |
13676 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13677 | (exit $ac_status); } && { | |
13678 | test -z "$ac_c_werror_flag" || | |
13679 | test ! -s conftest.err | |
13680 | } && test -s conftest.$ac_objext; then | |
13681 | ac_header_compiler=yes | |
13682 | else | |
13683 | $as_echo "$as_me: failed program was:" >&5 | |
13684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13685 | ||
13686 | ac_header_compiler=no | |
13687 | fi | |
13688 | ||
13689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13690 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13691 | $as_echo "$ac_header_compiler" >&6; } | |
13692 | ||
13693 | # Is the header present? | |
13694 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13695 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13696 | cat >conftest.$ac_ext <<_ACEOF | |
13697 | /* confdefs.h. */ | |
13698 | _ACEOF | |
13699 | cat confdefs.h >>conftest.$ac_ext | |
13700 | cat >>conftest.$ac_ext <<_ACEOF | |
13701 | /* end confdefs.h. */ | |
13702 | #include <$ac_header> | |
13703 | _ACEOF | |
13704 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13705 | case "(($ac_try" in | |
13706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13707 | *) ac_try_echo=$ac_try;; | |
13708 | esac | |
13709 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13710 | $as_echo "$ac_try_echo") >&5 | |
13711 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13712 | ac_status=$? | |
13713 | grep -v '^ *+' conftest.er1 >conftest.err | |
13714 | rm -f conftest.er1 | |
13715 | cat conftest.err >&5 | |
13716 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13717 | (exit $ac_status); } >/dev/null && { | |
13718 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13719 | test ! -s conftest.err | |
13720 | }; then | |
13721 | ac_header_preproc=yes | |
13722 | else | |
13723 | $as_echo "$as_me: failed program was:" >&5 | |
13724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13725 | ||
13726 | ac_header_preproc=no | |
13727 | fi | |
13728 | ||
13729 | rm -f conftest.err conftest.$ac_ext | |
13730 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13731 | $as_echo "$ac_header_preproc" >&6; } | |
13732 | ||
13733 | # So? What about this header? | |
13734 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13735 | yes:no: ) | |
13736 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13737 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13738 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13739 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13740 | ac_header_preproc=yes | |
13741 | ;; | |
13742 | no:yes:* ) | |
13743 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13744 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13745 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13746 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13747 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13748 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13749 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13750 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13751 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13752 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13753 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13754 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13755 | ||
13756 | ;; | |
13757 | esac | |
13758 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13759 | $as_echo_n "checking for $ac_header... " >&6; } | |
13760 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13761 | $as_echo_n "(cached) " >&6 | |
13762 | else | |
13763 | eval "$as_ac_Header=\$ac_header_preproc" | |
13764 | fi | |
13765 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13766 | $as_echo "$as_val"'` | |
13767 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13768 | $as_echo "$ac_res" >&6; } | |
13769 | ||
13770 | fi | |
13771 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
13772 | $as_echo "$as_val"'` | |
13773 | if test "x$as_val" = x""yes; then | |
13774 | cat >>confdefs.h <<_ACEOF | |
13775 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13776 | _ACEOF | |
13777 | ||
13778 | else | |
13779 | $bailout | |
13780 | fi | |
13781 | ||
13782 | done | |
13783 | ||
13784 | check_lib_no_libs dlm dlm_lock -lpthread | |
13785 | if test $NOTFOUND = 0; then | |
13786 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
13787 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
13788 | DLM_LIBS="-ldlm -lpthread" | |
13789 | HAVE_DLM=yes | |
13790 | fi | |
13791 | else | |
13792 | DLM_CFLAGS=$pkg_cv_DLM_CFLAGS | |
13793 | DLM_LIBS=$pkg_cv_DLM_LIBS | |
13794 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13795 | $as_echo "yes" >&6; } | |
13796 | HAVE_DLM=yes | |
13797 | fi | |
13798 | fi | |
13799 | ||
13800 | if test x$CLVMD = xall; then | |
8c222979 | 13801 | CLVMD=none |
a946372e AK |
13802 | if test x$HAVE_CCS = xyes && \ |
13803 | test x$HAVE_GULM = xyes; then | |
8c222979 FDN |
13804 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5 |
13805 | $as_echo "Enabling clvmd gulm cluster manager" >&6; } | |
13806 | CLVMD="$CLVMD,gulm" | |
a946372e AK |
13807 | fi |
13808 | if test x$HAVE_CMAN = xyes && \ | |
13809 | test x$HAVE_DLM = xyes; then | |
8c222979 FDN |
13810 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5 |
13811 | $as_echo "Enabling clvmd cman cluster manager" >&6; } | |
13812 | CLVMD="$CLVMD,cman" | |
a946372e AK |
13813 | fi |
13814 | if test x$HAVE_COROSYNC = xyes && \ | |
13815 | test x$HAVE_QUORUM = xyes && \ | |
13816 | test x$HAVE_CPG = xyes && \ | |
13817 | test x$HAVE_DLM = xyes && \ | |
13818 | test x$HAVE_CONFDB = xyes; then | |
8c222979 FDN |
13819 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5 |
13820 | $as_echo "Enabling clvmd corosync cluster manager" >&6; } | |
13821 | CLVMD="$CLVMD,corosync" | |
a946372e AK |
13822 | fi |
13823 | if test x$HAVE_COROSYNC = xyes && \ | |
13824 | test x$HAVE_CPG = xyes && \ | |
13825 | test x$HAVE_SALCK = xyes; then | |
8c222979 FDN |
13826 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5 |
13827 | $as_echo "Enabling clvmd openais cluster manager" >&6; } | |
13828 | CLVMD="$CLVMD,openais" | |
13829 | fi | |
13830 | if test x$CLVMD = xnone; then | |
13831 | { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5 | |
13832 | $as_echo "Disabling clvmd build. No cluster manager detected." >&6; } | |
a946372e | 13833 | fi |
a946372e AK |
13834 | fi |
13835 | ||
8c4e8a18 FDN |
13836 | ################################################################################ |
13837 | if test "x$CLVMD" != xnone; then | |
13838 | ||
13839 | # Check whether --with-clvmd-pidfile was given. | |
13840 | if test "${with_clvmd_pidfile+set}" = set; then | |
13841 | withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval | |
13842 | else | |
13843 | CLVMD_PIDFILE="/var/run/clvmd.pid" | |
13844 | fi | |
13845 | ||
13846 | ||
13847 | cat >>confdefs.h <<_ACEOF | |
13848 | #define CLVMD_PIDFILE "$CLVMD_PIDFILE" | |
13849 | _ACEOF | |
13850 | ||
13851 | fi | |
13852 | ||
a946372e | 13853 | ################################################################################ |
66fd4529 AK |
13854 | { $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5 |
13855 | $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; } | |
13856 | # Check whether --enable-cmirrord was given. | |
13857 | if test "${enable_cmirrord+set}" = set; then | |
13858 | enableval=$enable_cmirrord; CMIRRORD=$enableval | |
13859 | else | |
13860 | CMIRRORD=no | |
13861 | fi | |
13862 | ||
13863 | { $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5 | |
13864 | $as_echo "$CMIRRORD" >&6; } | |
13865 | ||
13866 | BUILD_CMIRRORD=$CMIRRORD | |
13867 | ||
13868 | ################################################################################ | |
66fd4529 AK |
13869 | if test "x$BUILD_CMIRRORD" = xyes; then |
13870 | ||
13871 | # Check whether --with-cmirrord-pidfile was given. | |
13872 | if test "${with_cmirrord_pidfile+set}" = set; then | |
71082be4 | 13873 | withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval |
66fd4529 | 13874 | else |
71082be4 | 13875 | CMIRRORD_PIDFILE="/var/run/cmirrord.pid" |
a946372e AK |
13876 | fi |
13877 | ||
71082be4 ZK |
13878 | |
13879 | cat >>confdefs.h <<_ACEOF | |
13880 | #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE" | |
13881 | _ACEOF | |
13882 | ||
66fd4529 | 13883 | fi |
a946372e | 13884 | |
66fd4529 AK |
13885 | ################################################################################ |
13886 | if [ "x$BUILD_CMIRRORD" = xyes ]; then | |
90c80887 AK |
13887 | if test x$PKGCONFIG_INIT != x1; then |
13888 | pkg_config_init | |
13889 | fi | |
13890 | ||
13891 | pkg_failed=no | |
13892 | { $as_echo "$as_me:$LINENO: checking for SACKPT" >&5 | |
13893 | $as_echo_n "checking for SACKPT... " >&6; } | |
13894 | ||
13895 | if test -n "$SACKPT_CFLAGS"; then | |
13896 | pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS" | |
13897 | elif test -n "$PKG_CONFIG"; then | |
13898 | if test -n "$PKG_CONFIG" && \ | |
13899 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
13900 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
13901 | ac_status=$? | |
13902 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13903 | (exit $ac_status); }; then | |
13904 | pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null` | |
13905 | else | |
13906 | pkg_failed=yes | |
13907 | fi | |
13908 | else | |
13909 | pkg_failed=untried | |
13910 | fi | |
13911 | if test -n "$SACKPT_LIBS"; then | |
13912 | pkg_cv_SACKPT_LIBS="$SACKPT_LIBS" | |
13913 | elif test -n "$PKG_CONFIG"; then | |
13914 | if test -n "$PKG_CONFIG" && \ | |
13915 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
13916 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
13917 | ac_status=$? | |
13918 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13919 | (exit $ac_status); }; then | |
13920 | pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null` | |
13921 | else | |
13922 | pkg_failed=yes | |
13923 | fi | |
13924 | else | |
13925 | pkg_failed=untried | |
13926 | fi | |
13927 | ||
13928 | ||
13929 | ||
13930 | if test $pkg_failed = yes; then | |
13931 | ||
13932 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13933 | _pkg_short_errors_supported=yes | |
13934 | else | |
13935 | _pkg_short_errors_supported=no | |
13936 | fi | |
13937 | if test $_pkg_short_errors_supported = yes; then | |
13938 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1` | |
13939 | else | |
13940 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1` | |
13941 | fi | |
13942 | # Put the nasty error message in config.log where it belongs | |
13943 | echo "$SACKPT_PKG_ERRORS" >&5 | |
13944 | ||
13945 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met: | |
13946 | ||
13947 | $SACKPT_PKG_ERRORS | |
13948 | ||
13949 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
13950 | installed software in a non-standard prefix. | |
13951 | ||
13952 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
13953 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
8c4e8a18 FDN |
13954 | See the pkg-config man page for more details. |
13955 | " >&5 | |
90c80887 AK |
13956 | $as_echo "$as_me: error: Package requirements (libSaCkpt) were not met: |
13957 | ||
13958 | $SACKPT_PKG_ERRORS | |
13959 | ||
13960 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
13961 | installed software in a non-standard prefix. | |
13962 | ||
13963 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
13964 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
8c4e8a18 FDN |
13965 | See the pkg-config man page for more details. |
13966 | " >&2;} | |
90c80887 AK |
13967 | { (exit 1); exit 1; }; } |
13968 | elif test $pkg_failed = untried; then | |
13969 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
13970 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13971 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
13972 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
13973 | path to pkg-config. | |
13974 | ||
13975 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
13976 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
13977 | See the pkg-config man page for more details. | |
13978 | ||
13979 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
13980 | See \`config.log' for more details." >&5 | |
13981 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
13982 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
13983 | path to pkg-config. | |
13984 | ||
13985 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
13986 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
13987 | See the pkg-config man page for more details. | |
13988 | ||
13989 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
13990 | See \`config.log' for more details." >&2;} | |
13991 | { (exit 1); exit 1; }; }; } | |
13992 | else | |
13993 | SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS | |
13994 | SACKPT_LIBS=$pkg_cv_SACKPT_LIBS | |
13995 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13996 | $as_echo "yes" >&6; } | |
8c4e8a18 | 13997 | : |
90c80887 AK |
13998 | fi |
13999 | if test x$HAVE_CPG != xyes; then | |
a946372e AK |
14000 | |
14001 | pkg_failed=no | |
14002 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
14003 | $as_echo_n "checking for CPG... " >&6; } | |
14004 | ||
14005 | if test -n "$CPG_CFLAGS"; then | |
14006 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
14007 | elif test -n "$PKG_CONFIG"; then | |
14008 | if test -n "$PKG_CONFIG" && \ | |
14009 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
14010 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
14011 | ac_status=$? | |
14012 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14013 | (exit $ac_status); }; then | |
14014 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
14015 | else | |
14016 | pkg_failed=yes | |
14017 | fi | |
14018 | else | |
14019 | pkg_failed=untried | |
14020 | fi | |
14021 | if test -n "$CPG_LIBS"; then | |
14022 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
14023 | elif test -n "$PKG_CONFIG"; then | |
14024 | if test -n "$PKG_CONFIG" && \ | |
14025 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
14026 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
14027 | ac_status=$? | |
14028 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14029 | (exit $ac_status); }; then | |
14030 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
14031 | else | |
14032 | pkg_failed=yes | |
14033 | fi | |
14034 | else | |
14035 | pkg_failed=untried | |
14036 | fi | |
14037 | ||
14038 | ||
14039 | ||
14040 | if test $pkg_failed = yes; then | |
14041 | ||
14042 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
14043 | _pkg_short_errors_supported=yes | |
14044 | else | |
14045 | _pkg_short_errors_supported=no | |
14046 | fi | |
14047 | if test $_pkg_short_errors_supported = yes; then | |
14048 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
14049 | else | |
14050 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
14051 | fi | |
14052 | # Put the nasty error message in config.log where it belongs | |
14053 | echo "$CPG_PKG_ERRORS" >&5 | |
14054 | ||
90c80887 AK |
14055 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met: |
14056 | ||
14057 | $CPG_PKG_ERRORS | |
14058 | ||
14059 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
14060 | installed software in a non-standard prefix. | |
14061 | ||
14062 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14063 | and CPG_LIBS to avoid the need to call pkg-config. | |
8c4e8a18 FDN |
14064 | See the pkg-config man page for more details. |
14065 | " >&5 | |
90c80887 AK |
14066 | $as_echo "$as_me: error: Package requirements (libcpg) were not met: |
14067 | ||
14068 | $CPG_PKG_ERRORS | |
14069 | ||
14070 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
14071 | installed software in a non-standard prefix. | |
14072 | ||
14073 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14074 | and CPG_LIBS to avoid the need to call pkg-config. | |
8c4e8a18 FDN |
14075 | See the pkg-config man page for more details. |
14076 | " >&2;} | |
90c80887 | 14077 | { (exit 1); exit 1; }; } |
a946372e | 14078 | elif test $pkg_failed = untried; then |
90c80887 AK |
14079 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
14080 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14081 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
14082 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
14083 | path to pkg-config. | |
14084 | ||
14085 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14086 | and CPG_LIBS to avoid the need to call pkg-config. | |
14087 | See the pkg-config man page for more details. | |
14088 | ||
14089 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
14090 | See \`config.log' for more details." >&5 | |
14091 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
14092 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
14093 | path to pkg-config. | |
14094 | ||
14095 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14096 | and CPG_LIBS to avoid the need to call pkg-config. | |
14097 | See the pkg-config man page for more details. | |
14098 | ||
14099 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
14100 | See \`config.log' for more details." >&2;} | |
14101 | { (exit 1); exit 1; }; }; } | |
a946372e AK |
14102 | else |
14103 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
14104 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
14105 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14106 | $as_echo "yes" >&6; } | |
8c4e8a18 | 14107 | : |
a946372e | 14108 | fi |
90c80887 | 14109 | fi |
a946372e AK |
14110 | fi |
14111 | ||
14112 | ################################################################################ | |
14113 | { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5 | |
14114 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
14115 | # Check whether --enable-debug was given. | |
14116 | if test "${enable_debug+set}" = set; then | |
14117 | enableval=$enable_debug; DEBUG=$enableval | |
14118 | else | |
14119 | DEBUG=no | |
14120 | fi | |
14121 | ||
14122 | { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5 | |
14123 | $as_echo "$DEBUG" >&6; } | |
14124 | ||
14125 | if test x$DEBUG = xyes; then | |
14126 | COPTIMISE_FLAG= | |
14127 | else | |
14128 | CSCOPE_CMD= | |
14129 | fi | |
14130 | ||
14131 | ################################################################################ | |
14132 | { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5 | |
14133 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
14134 | ||
14135 | # Check whether --with-optimisation was given. | |
14136 | if test "${with_optimisation+set}" = set; then | |
71082be4 | 14137 | withval=$with_optimisation; COPTIMISE_FLAG=$withval |
a946372e AK |
14138 | fi |
14139 | ||
14140 | { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 | |
14141 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
14142 | ||
14143 | ################################################################################ | |
14144 | { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 | |
14145 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
14146 | # Check whether --enable-profiling was given. | |
14147 | if test "${enable_profiling+set}" = set; then | |
5556819a | 14148 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 14149 | else |
5556819a | 14150 | PROFILING=no |
fddafd51 ZK |
14151 | fi |
14152 | ||
ec6a6fbe AK |
14153 | { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5 |
14154 | $as_echo "$PROFILING" >&6; } | |
5556819a AK |
14155 | |
14156 | if test "x$PROFILING" = xyes; then | |
14157 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
14158 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 14159 | set dummy lcov; ac_word=$2 |
ec6a6fbe AK |
14160 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14161 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 14162 | if test "${ac_cv_path_LCOV+set}" = set; then |
ec6a6fbe | 14163 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
14164 | else |
14165 | case $LCOV in | |
14166 | [\\/]* | ?:[\\/]*) | |
14167 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
14168 | ;; | |
14169 | *) | |
14170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14171 | for as_dir in $PATH | |
14172 | do | |
14173 | IFS=$as_save_IFS | |
14174 | test -z "$as_dir" && as_dir=. | |
14175 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14176 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14177 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 14178 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
14179 | break 2 |
14180 | fi | |
14181 | done | |
14182 | done | |
14183 | IFS=$as_save_IFS | |
14184 | ||
14185 | ;; | |
14186 | esac | |
14187 | fi | |
14188 | LCOV=$ac_cv_path_LCOV | |
14189 | if test -n "$LCOV"; then | |
ec6a6fbe AK |
14190 | { $as_echo "$as_me:$LINENO: result: $LCOV" >&5 |
14191 | $as_echo "$LCOV" >&6; } | |
fddafd51 | 14192 | else |
ec6a6fbe AK |
14193 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14194 | $as_echo "no" >&6; } | |
fddafd51 ZK |
14195 | fi |
14196 | ||
14197 | ||
5556819a | 14198 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 14199 | set dummy genhtml; ac_word=$2 |
ec6a6fbe AK |
14200 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14201 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 14202 | if test "${ac_cv_path_GENHTML+set}" = set; then |
ec6a6fbe | 14203 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
14204 | else |
14205 | case $GENHTML in | |
14206 | [\\/]* | ?:[\\/]*) | |
14207 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
14208 | ;; | |
14209 | *) | |
14210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14211 | for as_dir in $PATH | |
14212 | do | |
14213 | IFS=$as_save_IFS | |
14214 | test -z "$as_dir" && as_dir=. | |
14215 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14216 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14217 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 14218 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
14219 | break 2 |
14220 | fi | |
14221 | done | |
14222 | done | |
14223 | IFS=$as_save_IFS | |
14224 | ||
14225 | ;; | |
14226 | esac | |
14227 | fi | |
14228 | GENHTML=$ac_cv_path_GENHTML | |
14229 | if test -n "$GENHTML"; then | |
ec6a6fbe AK |
14230 | { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5 |
14231 | $as_echo "$GENHTML" >&6; } | |
fddafd51 | 14232 | else |
ec6a6fbe AK |
14233 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14234 | $as_echo "no" >&6; } | |
fddafd51 ZK |
14235 | fi |
14236 | ||
14237 | ||
fd4728e1 | 14238 | if test -z "$LCOV" -o -z "$GENHTML"; then |
ec6a6fbe AK |
14239 | { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5 |
14240 | $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;} | |
b145d876 ZK |
14241 | { (exit 1); exit 1; }; } |
14242 | fi | |
fd4728e1 ZK |
14243 | # Extract the first word of "genpng", so it can be a program name with args. |
14244 | set dummy genpng; ac_word=$2 | |
14245 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14246 | $as_echo_n "checking for $ac_word... " >&6; } | |
14247 | if test "${ac_cv_path_GENPNG+set}" = set; then | |
14248 | $as_echo_n "(cached) " >&6 | |
14249 | else | |
14250 | case $GENPNG in | |
14251 | [\\/]* | ?:[\\/]*) | |
14252 | ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path. | |
14253 | ;; | |
14254 | *) | |
14255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14256 | for as_dir in $PATH | |
14257 | do | |
14258 | IFS=$as_save_IFS | |
14259 | test -z "$as_dir" && as_dir=. | |
14260 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14261 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14262 | ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext" | |
14263 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14264 | break 2 | |
14265 | fi | |
14266 | done | |
14267 | done | |
14268 | IFS=$as_save_IFS | |
14269 | ||
14270 | ;; | |
14271 | esac | |
14272 | fi | |
14273 | GENPNG=$ac_cv_path_GENPNG | |
14274 | if test -n "$GENPNG"; then | |
14275 | { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5 | |
14276 | $as_echo "$GENPNG" >&6; } | |
14277 | else | |
14278 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14279 | $as_echo "no" >&6; } | |
14280 | fi | |
14281 | ||
14282 | ||
14283 | if test -n "$GENPNG"; then | |
14284 | { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5 | |
14285 | $as_echo_n "checking whether $GENPNG has all required modules... " >&6; } | |
14286 | if $GENPNG --help > /dev/null 2>&1 ; then | |
14287 | { $as_echo "$as_me:$LINENO: result: ok" >&5 | |
14288 | $as_echo "ok" >&6; } | |
14289 | GENHTML="$GENHTML --frames" | |
14290 | else | |
14291 | { $as_echo "$as_me:$LINENO: result: not supported" >&5 | |
14292 | $as_echo "not supported" >&6; } | |
14293 | { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5 | |
14294 | $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;} | |
14295 | GENPNG= | |
14296 | fi | |
14297 | fi | |
5556819a | 14298 | fi |
d0191583 JM |
14299 | |
14300 | ################################################################################ | |
ec6a6fbe AK |
14301 | { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
14302 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
d0191583 JM |
14303 | # Check whether --enable-devmapper was given. |
14304 | if test "${enable_devmapper+set}" = set; then | |
14305 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
14306 | fi |
14307 | ||
ec6a6fbe AK |
14308 | { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
14309 | $as_echo "$DEVMAPPER" >&6; } | |
d0191583 JM |
14310 | |
14311 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
14312 | |
14313 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 14314 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
14315 | _ACEOF |
14316 | ||
14317 | fi | |
14318 | ||
a5f46f6a AK |
14319 | ################################################################################ |
14320 | { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5 | |
14321 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
14322 | # Check whether --enable-udev_sync was given. | |
14323 | if test "${enable_udev_sync+set}" = set; then | |
14324 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
14325 | else | |
14326 | UDEV_SYNC=no | |
14327 | fi | |
14328 | ||
14329 | { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5 | |
14330 | $as_echo "$UDEV_SYNC" >&6; } | |
14331 | ||
90c80887 AK |
14332 | if test x$UDEV_SYNC = xyes; then |
14333 | { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5 | |
14334 | $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; } | |
14335 | if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then | |
14336 | $as_echo_n "(cached) " >&6 | |
14337 | else | |
14338 | ac_check_lib_save_LIBS=$LIBS | |
14339 | LIBS="-ludev $LIBS" | |
14340 | cat >conftest.$ac_ext <<_ACEOF | |
14341 | /* confdefs.h. */ | |
14342 | _ACEOF | |
14343 | cat confdefs.h >>conftest.$ac_ext | |
14344 | cat >>conftest.$ac_ext <<_ACEOF | |
14345 | /* end confdefs.h. */ | |
14346 | ||
14347 | /* Override any GCC internal prototype to avoid an error. | |
14348 | Use char because int might match the return type of a GCC | |
14349 | builtin and then its argument prototype would still apply. */ | |
14350 | #ifdef __cplusplus | |
14351 | extern "C" | |
14352 | #endif | |
14353 | char udev_queue_get_udev_is_active (); | |
14354 | int | |
14355 | main () | |
14356 | { | |
14357 | return udev_queue_get_udev_is_active (); | |
14358 | ; | |
14359 | return 0; | |
14360 | } | |
14361 | _ACEOF | |
14362 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14363 | if { (ac_try="$ac_link" | |
14364 | case "(($ac_try" in | |
14365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14366 | *) ac_try_echo=$ac_try;; | |
14367 | esac | |
14368 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14369 | $as_echo "$ac_try_echo") >&5 | |
14370 | (eval "$ac_link") 2>conftest.er1 | |
14371 | ac_status=$? | |
14372 | grep -v '^ *+' conftest.er1 >conftest.err | |
14373 | rm -f conftest.er1 | |
14374 | cat conftest.err >&5 | |
14375 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14376 | (exit $ac_status); } && { | |
14377 | test -z "$ac_c_werror_flag" || | |
14378 | test ! -s conftest.err | |
14379 | } && test -s conftest$ac_exeext && { | |
14380 | test "$cross_compiling" = yes || | |
14381 | $as_test_x conftest$ac_exeext | |
14382 | }; then | |
14383 | ac_cv_lib_udev_udev_queue_get_udev_is_active=yes | |
14384 | else | |
14385 | $as_echo "$as_me: failed program was:" >&5 | |
14386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14387 | ||
14388 | ac_cv_lib_udev_udev_queue_get_udev_is_active=no | |
14389 | fi | |
14390 | ||
14391 | rm -rf conftest.dSYM | |
14392 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14393 | conftest$ac_exeext conftest.$ac_ext | |
14394 | LIBS=$ac_check_lib_save_LIBS | |
14395 | fi | |
14396 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5 | |
14397 | $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; } | |
14398 | if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then | |
f7f0854e | 14399 | UDEV_PC="libudev"; UDEV_LIBS="-ludev" |
90c80887 | 14400 | else |
5161ecb9 PR |
14401 | { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5 |
14402 | $as_echo "$as_me: error: bailing out... libudev library is required" >&2;} | |
14403 | { (exit 1); exit 1; }; } | |
90c80887 AK |
14404 | fi |
14405 | ||
14406 | ||
90c80887 | 14407 | cat >>confdefs.h <<\_ACEOF |
5161ecb9 | 14408 | #define UDEV_SYNC_SUPPORT 1 |
90c80887 AK |
14409 | _ACEOF |
14410 | ||
90c80887 AK |
14411 | fi |
14412 | ||
5161ecb9 PR |
14413 | { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5 |
14414 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
14415 | # Check whether --enable-udev_rules was given. | |
14416 | if test "${enable_udev_rules+set}" = set; then | |
14417 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
14418 | else | |
14419 | UDEV_RULES=$UDEV_SYNC | |
14420 | fi | |
14421 | ||
14422 | { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5 | |
14423 | $as_echo "$UDEV_RULES" >&6; } | |
14424 | ||
93bd259b AK |
14425 | ################################################################################ |
14426 | # Check whether --enable-compat was given. | |
14427 | if test "${enable_compat+set}" = set; then | |
14428 | enableval=$enable_compat; DM_COMPAT=$enableval | |
14429 | else | |
14430 | DM_COMPAT=no | |
14431 | fi | |
14432 | ||
14433 | ||
95eaa683 AK |
14434 | ################################################################################ |
14435 | # Check whether --enable-units-compat was given. | |
14436 | if test "${enable_units_compat+set}" = set; then | |
14437 | enableval=$enable_units_compat; UNITS_COMPAT=$enableval | |
14438 | else | |
14439 | UNITS_COMPAT=no | |
14440 | fi | |
14441 | ||
14442 | ||
14443 | if test x$UNITS_COMPAT = xyes; then | |
14444 | ||
14445 | cat >>confdefs.h <<\_ACEOF | |
14446 | #define DEFAULT_SI_UNIT_CONSISTENCY 0 | |
14447 | _ACEOF | |
14448 | ||
14449 | fi | |
14450 | ||
93bd259b AK |
14451 | ################################################################################ |
14452 | # Check whether --enable-ioctl was given. | |
14453 | if test "${enable_ioctl+set}" = set; then | |
14454 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
14455 | fi | |
14456 | ||
14457 | ||
d0191583 | 14458 | ################################################################################ |
ec6a6fbe AK |
14459 | { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
14460 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
d0191583 JM |
14461 | # Check whether --enable-o_direct was given. |
14462 | if test "${enable_o_direct+set}" = set; then | |
14463 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 14464 | fi |
ad6254c5 | 14465 | |
ec6a6fbe AK |
14466 | { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
14467 | $as_echo "$ODIRECT" >&6; } | |
ad6254c5 | 14468 | |
d0191583 | 14469 | if test x$ODIRECT = xyes; then |
ad6254c5 | 14470 | |
d0191583 JM |
14471 | cat >>confdefs.h <<\_ACEOF |
14472 | #define O_DIRECT_SUPPORT 1 | |
14473 | _ACEOF | |
ad6254c5 | 14474 | |
d0191583 | 14475 | fi |
ad6254c5 | 14476 | |
572fefeb AK |
14477 | ################################################################################ |
14478 | { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5 | |
14479 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
14480 | # Check whether --enable-applib was given. | |
14481 | if test "${enable_applib+set}" = set; then | |
14482 | enableval=$enable_applib; APPLIB=$enableval | |
14483 | else | |
14484 | APPLIB=no | |
14485 | fi | |
14486 | ||
14487 | { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5 | |
14488 | $as_echo "$APPLIB" >&6; } | |
14489 | ||
14490 | test x$APPLIB = xyes \ | |
14491 | && LVM2APP_LIB=-llvm2app \ | |
14492 | || LVM2APP_LIB= | |
14493 | ||
d0191583 | 14494 | ################################################################################ |
ec6a6fbe AK |
14495 | { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
14496 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
d0191583 JM |
14497 | # Check whether --enable-cmdlib was given. |
14498 | if test "${enable_cmdlib+set}" = set; then | |
14499 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 14500 | else |
d0191583 JM |
14501 | CMDLIB=no |
14502 | fi | |
8a2fc586 | 14503 | |
ec6a6fbe AK |
14504 | { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
14505 | $as_echo "$CMDLIB" >&6; } | |
8a2fc586 | 14506 | |
2a9a80c9 | 14507 | test x$CMDLIB = xyes \ |
d179cc7a JM |
14508 | && LVM2CMD_LIB=-llvm2cmd \ |
14509 | || LVM2CMD_LIB= | |
14510 | ||
93bd259b AK |
14511 | ################################################################################ |
14512 | # Check whether --enable-pkgconfig was given. | |
14513 | if test "${enable_pkgconfig+set}" = set; then | |
14514 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
14515 | else | |
14516 | PKGCONFIG=no | |
14517 | fi | |
14518 | ||
2a9a80c9 | 14519 | |
23b059e7 ZK |
14520 | ################################################################################ |
14521 | # Check whether --enable-write_install was given. | |
14522 | if test "${enable_write_install+set}" = set; then | |
14523 | enableval=$enable_write_install; WRITE_INSTALL=$enableval | |
14524 | else | |
14525 | WRITE_INSTALL=no | |
14526 | fi | |
14527 | ||
14528 | ||
d0191583 | 14529 | ################################################################################ |
ec6a6fbe AK |
14530 | { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
14531 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
d0191583 JM |
14532 | # Check whether --enable-fsadm was given. |
14533 | if test "${enable_fsadm+set}" = set; then | |
14534 | enableval=$enable_fsadm; FSADM=$enableval | |
14535 | fi | |
8a2fc586 | 14536 | |
ec6a6fbe AK |
14537 | { $as_echo "$as_me:$LINENO: result: $FSADM" >&5 |
14538 | $as_echo "$FSADM" >&6; } | |
8a2fc586 | 14539 | |
d0191583 | 14540 | ################################################################################ |
ec6a6fbe AK |
14541 | { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
14542 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
d0191583 JM |
14543 | # Check whether --enable-dmeventd was given. |
14544 | if test "${enable_dmeventd+set}" = set; then | |
14545 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
14546 | fi | |
ad6254c5 | 14547 | |
ec6a6fbe AK |
14548 | { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
14549 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 14550 | |
93bd259b AK |
14551 | BUILD_DMEVENTD=$DMEVENTD |
14552 | ||
2a9a80c9 PR |
14553 | if test x$DMEVENTD = xyes; then |
14554 | if test x$MIRRORS != xinternal; then | |
ec6a6fbe | 14555 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 14556 | " >&5 |
ec6a6fbe | 14557 | $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 14558 | " >&2;} |
d0191583 | 14559 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
14560 | fi |
14561 | if test x$CMDLIB = xno; then | |
ec6a6fbe | 14562 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 | 14563 | " >&5 |
ec6a6fbe | 14564 | $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 PR |
14565 | " >&2;} |
14566 | { (exit 1); exit 1; }; } | |
14567 | fi | |
ad6254c5 | 14568 | fi |
7a197a62 | 14569 | |
d0191583 JM |
14570 | if test x$DMEVENTD = xyes; then |
14571 | ||
14572 | cat >>confdefs.h <<\_ACEOF | |
14573 | #define DMEVENTD 1 | |
ad6254c5 AK |
14574 | _ACEOF |
14575 | ||
ad6254c5 | 14576 | fi |
93bd259b AK |
14577 | |
14578 | ################################################################################ | |
14579 | ||
ec6a6fbe AK |
14580 | { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5 |
14581 | $as_echo_n "checking for getline in -lc... " >&6; } | |
93bd259b | 14582 | if test "${ac_cv_lib_c_getline+set}" = set; then |
ec6a6fbe | 14583 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
14584 | else |
14585 | ac_check_lib_save_LIBS=$LIBS | |
14586 | LIBS="-lc $LIBS" | |
14587 | cat >conftest.$ac_ext <<_ACEOF | |
14588 | /* confdefs.h. */ | |
14589 | _ACEOF | |
14590 | cat confdefs.h >>conftest.$ac_ext | |
14591 | cat >>conftest.$ac_ext <<_ACEOF | |
14592 | /* end confdefs.h. */ | |
14593 | ||
14594 | /* Override any GCC internal prototype to avoid an error. | |
14595 | Use char because int might match the return type of a GCC | |
14596 | builtin and then its argument prototype would still apply. */ | |
14597 | #ifdef __cplusplus | |
14598 | extern "C" | |
14599 | #endif | |
14600 | char getline (); | |
14601 | int | |
14602 | main () | |
14603 | { | |
14604 | return getline (); | |
14605 | ; | |
14606 | return 0; | |
14607 | } | |
14608 | _ACEOF | |
14609 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14610 | if { (ac_try="$ac_link" | |
14611 | case "(($ac_try" in | |
14612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14613 | *) ac_try_echo=$ac_try;; | |
14614 | esac | |
ec6a6fbe AK |
14615 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14616 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
14617 | (eval "$ac_link") 2>conftest.er1 |
14618 | ac_status=$? | |
14619 | grep -v '^ *+' conftest.er1 >conftest.err | |
14620 | rm -f conftest.er1 | |
14621 | cat conftest.err >&5 | |
ec6a6fbe | 14622 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
14623 | (exit $ac_status); } && { |
14624 | test -z "$ac_c_werror_flag" || | |
14625 | test ! -s conftest.err | |
ec6a6fbe AK |
14626 | } && test -s conftest$ac_exeext && { |
14627 | test "$cross_compiling" = yes || | |
14628 | $as_test_x conftest$ac_exeext | |
14629 | }; then | |
93bd259b AK |
14630 | ac_cv_lib_c_getline=yes |
14631 | else | |
ec6a6fbe | 14632 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
14633 | sed 's/^/| /' conftest.$ac_ext >&5 |
14634 | ||
14635 | ac_cv_lib_c_getline=no | |
14636 | fi | |
14637 | ||
ec6a6fbe | 14638 | rm -rf conftest.dSYM |
93bd259b AK |
14639 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14640 | conftest$ac_exeext conftest.$ac_ext | |
14641 | LIBS=$ac_check_lib_save_LIBS | |
14642 | fi | |
ec6a6fbe AK |
14643 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5 |
14644 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
14645 | if test "x$ac_cv_lib_c_getline" = x""yes; then | |
93bd259b AK |
14646 | |
14647 | cat >>confdefs.h <<\_ACEOF | |
14648 | #define HAVE_GETLINE 1 | |
14649 | _ACEOF | |
14650 | ||
14651 | fi | |
14652 | ||
14653 | ||
14654 | ################################################################################ | |
14655 | ||
ec6a6fbe AK |
14656 | { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5 |
14657 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
93bd259b | 14658 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then |
ec6a6fbe | 14659 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
14660 | else |
14661 | ac_check_lib_save_LIBS=$LIBS | |
14662 | LIBS="-lc $LIBS" | |
14663 | cat >conftest.$ac_ext <<_ACEOF | |
14664 | /* confdefs.h. */ | |
14665 | _ACEOF | |
14666 | cat confdefs.h >>conftest.$ac_ext | |
14667 | cat >>conftest.$ac_ext <<_ACEOF | |
14668 | /* end confdefs.h. */ | |
14669 | ||
14670 | /* Override any GCC internal prototype to avoid an error. | |
14671 | Use char because int might match the return type of a GCC | |
14672 | builtin and then its argument prototype would still apply. */ | |
14673 | #ifdef __cplusplus | |
14674 | extern "C" | |
14675 | #endif | |
14676 | char canonicalize_file_name (); | |
14677 | int | |
14678 | main () | |
14679 | { | |
14680 | return canonicalize_file_name (); | |
14681 | ; | |
14682 | return 0; | |
14683 | } | |
14684 | _ACEOF | |
14685 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14686 | if { (ac_try="$ac_link" | |
14687 | case "(($ac_try" in | |
14688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14689 | *) ac_try_echo=$ac_try;; | |
14690 | esac | |
ec6a6fbe AK |
14691 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14692 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
14693 | (eval "$ac_link") 2>conftest.er1 |
14694 | ac_status=$? | |
14695 | grep -v '^ *+' conftest.er1 >conftest.err | |
14696 | rm -f conftest.er1 | |
14697 | cat conftest.err >&5 | |
ec6a6fbe | 14698 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
14699 | (exit $ac_status); } && { |
14700 | test -z "$ac_c_werror_flag" || | |
14701 | test ! -s conftest.err | |
ec6a6fbe AK |
14702 | } && test -s conftest$ac_exeext && { |
14703 | test "$cross_compiling" = yes || | |
14704 | $as_test_x conftest$ac_exeext | |
14705 | }; then | |
93bd259b AK |
14706 | ac_cv_lib_c_canonicalize_file_name=yes |
14707 | else | |
ec6a6fbe | 14708 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
14709 | sed 's/^/| /' conftest.$ac_ext >&5 |
14710 | ||
14711 | ac_cv_lib_c_canonicalize_file_name=no | |
14712 | fi | |
14713 | ||
ec6a6fbe | 14714 | rm -rf conftest.dSYM |
93bd259b AK |
14715 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14716 | conftest$ac_exeext conftest.$ac_ext | |
14717 | LIBS=$ac_check_lib_save_LIBS | |
14718 | fi | |
ec6a6fbe AK |
14719 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5 |
14720 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
14721 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then | |
93bd259b AK |
14722 | |
14723 | cat >>confdefs.h <<\_ACEOF | |
14724 | #define HAVE_CANONICALIZE_FILE_NAME 1 | |
14725 | _ACEOF | |
14726 | ||
14727 | fi | |
14728 | ||
14729 | ||
d0191583 JM |
14730 | ################################################################################ |
14731 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
14732 | then exec_prefix=""; | |
14733 | fi; | |
ad6254c5 | 14734 | |
ad6254c5 | 14735 | ################################################################################ |
ec6a6fbe AK |
14736 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
14737 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
ad6254c5 | 14738 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
ec6a6fbe | 14739 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
14740 | else |
14741 | ac_check_lib_save_LIBS=$LIBS | |
14742 | LIBS="-ldl $LIBS" | |
14743 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
14744 | /* confdefs.h. */ |
14745 | _ACEOF | |
14746 | cat confdefs.h >>conftest.$ac_ext | |
14747 | cat >>conftest.$ac_ext <<_ACEOF | |
14748 | /* end confdefs.h. */ | |
14749 | ||
7a197a62 AK |
14750 | /* Override any GCC internal prototype to avoid an error. |
14751 | Use char because int might match the return type of a GCC | |
14752 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
14753 | #ifdef __cplusplus |
14754 | extern "C" | |
14755 | #endif | |
ad6254c5 AK |
14756 | char dlopen (); |
14757 | int | |
14758 | main () | |
14759 | { | |
7a197a62 | 14760 | return dlopen (); |
ad6254c5 AK |
14761 | ; |
14762 | return 0; | |
14763 | } | |
14764 | _ACEOF | |
14765 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14766 | if { (ac_try="$ac_link" |
14767 | case "(($ac_try" in | |
14768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14769 | *) ac_try_echo=$ac_try;; | |
14770 | esac | |
ec6a6fbe AK |
14771 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14772 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14773 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14774 | ac_status=$? |
8a2fc586 AK |
14775 | grep -v '^ *+' conftest.er1 >conftest.err |
14776 | rm -f conftest.er1 | |
14777 | cat conftest.err >&5 | |
ec6a6fbe | 14778 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14779 | (exit $ac_status); } && { |
14780 | test -z "$ac_c_werror_flag" || | |
14781 | test ! -s conftest.err | |
ec6a6fbe AK |
14782 | } && test -s conftest$ac_exeext && { |
14783 | test "$cross_compiling" = yes || | |
14784 | $as_test_x conftest$ac_exeext | |
14785 | }; then | |
ad6254c5 AK |
14786 | ac_cv_lib_dl_dlopen=yes |
14787 | else | |
ec6a6fbe | 14788 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14789 | sed 's/^/| /' conftest.$ac_ext >&5 |
14790 | ||
7a197a62 | 14791 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 14792 | fi |
7a197a62 | 14793 | |
ec6a6fbe | 14794 | rm -rf conftest.dSYM |
25fbec5b | 14795 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 14796 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
14797 | LIBS=$ac_check_lib_save_LIBS |
14798 | fi | |
ec6a6fbe AK |
14799 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
14800 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
14801 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
ad6254c5 | 14802 | |
72b2cb61 AK |
14803 | |
14804 | cat >>confdefs.h <<\_ACEOF | |
14805 | #define HAVE_LIBDL 1 | |
14806 | _ACEOF | |
14807 | ||
19a2c6e0 ZK |
14808 | DL_LIBS="-ldl" |
14809 | HAVE_LIBDL=yes | |
ad6254c5 | 14810 | else |
19a2c6e0 ZK |
14811 | |
14812 | DL_LIBS= | |
ad6254c5 AK |
14813 | HAVE_LIBDL=no |
14814 | fi | |
14815 | ||
19a2c6e0 | 14816 | |
ad6254c5 AK |
14817 | ################################################################################ |
14818 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
14819 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
14820 | \) -a "x$STATIC_LINK" = xyes ]; | |
ec6a6fbe | 14821 | then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 14822 | " >&5 |
ec6a6fbe | 14823 | $as_echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
14824 | " >&2;} |
14825 | { (exit 1); exit 1; }; } | |
14826 | fi | |
14827 | ||
f30875db ZK |
14828 | ################################################################################ |
14829 | if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then | |
14830 | { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5 | |
14831 | $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } | |
14832 | if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then | |
14833 | $as_echo_n "(cached) " >&6 | |
14834 | else | |
14835 | ac_check_lib_save_LIBS=$LIBS | |
14836 | LIBS="-lpthread $LIBS" | |
14837 | cat >conftest.$ac_ext <<_ACEOF | |
14838 | /* confdefs.h. */ | |
14839 | _ACEOF | |
14840 | cat confdefs.h >>conftest.$ac_ext | |
14841 | cat >>conftest.$ac_ext <<_ACEOF | |
14842 | /* end confdefs.h. */ | |
14843 | ||
14844 | /* Override any GCC internal prototype to avoid an error. | |
14845 | Use char because int might match the return type of a GCC | |
14846 | builtin and then its argument prototype would still apply. */ | |
14847 | #ifdef __cplusplus | |
14848 | extern "C" | |
14849 | #endif | |
14850 | char pthread_mutex_lock (); | |
14851 | int | |
14852 | main () | |
14853 | { | |
14854 | return pthread_mutex_lock (); | |
14855 | ; | |
14856 | return 0; | |
14857 | } | |
14858 | _ACEOF | |
14859 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14860 | if { (ac_try="$ac_link" | |
14861 | case "(($ac_try" in | |
14862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14863 | *) ac_try_echo=$ac_try;; | |
14864 | esac | |
14865 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14866 | $as_echo "$ac_try_echo") >&5 | |
14867 | (eval "$ac_link") 2>conftest.er1 | |
14868 | ac_status=$? | |
14869 | grep -v '^ *+' conftest.er1 >conftest.err | |
14870 | rm -f conftest.er1 | |
14871 | cat conftest.err >&5 | |
14872 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14873 | (exit $ac_status); } && { | |
14874 | test -z "$ac_c_werror_flag" || | |
14875 | test ! -s conftest.err | |
14876 | } && test -s conftest$ac_exeext && { | |
14877 | test "$cross_compiling" = yes || | |
14878 | $as_test_x conftest$ac_exeext | |
14879 | }; then | |
14880 | ac_cv_lib_pthread_pthread_mutex_lock=yes | |
14881 | else | |
14882 | $as_echo "$as_me: failed program was:" >&5 | |
14883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14884 | ||
14885 | ac_cv_lib_pthread_pthread_mutex_lock=no | |
14886 | fi | |
14887 | ||
14888 | rm -rf conftest.dSYM | |
14889 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14890 | conftest$ac_exeext conftest.$ac_ext | |
14891 | LIBS=$ac_check_lib_save_LIBS | |
14892 | fi | |
14893 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 | |
14894 | $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } | |
14895 | if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then | |
14896 | PTHREAD_LIBS="-lpthread" | |
14897 | else | |
14898 | hard_bailout | |
14899 | fi | |
14900 | ||
14901 | fi | |
14902 | ||
d0191583 | 14903 | ################################################################################ |
ec6a6fbe AK |
14904 | { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
14905 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
d0191583 JM |
14906 | # Check whether --enable-selinux was given. |
14907 | if test "${enable_selinux+set}" = set; then | |
14908 | enableval=$enable_selinux; SELINUX=$enableval | |
14909 | fi | |
14910 | ||
ec6a6fbe AK |
14911 | { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5 |
14912 | $as_echo "$SELINUX" >&6; } | |
d0191583 | 14913 | |
ad6254c5 AK |
14914 | ################################################################################ |
14915 | if test x$SELINUX = xyes; then | |
ec6a6fbe AK |
14916 | { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
14917 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
8a2fc586 | 14918 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
ec6a6fbe | 14919 | $as_echo_n "(cached) " >&6 |
8a2fc586 AK |
14920 | else |
14921 | ac_check_lib_save_LIBS=$LIBS | |
14922 | LIBS="-lsepol $LIBS" | |
14923 | cat >conftest.$ac_ext <<_ACEOF | |
14924 | /* confdefs.h. */ | |
14925 | _ACEOF | |
14926 | cat confdefs.h >>conftest.$ac_ext | |
14927 | cat >>conftest.$ac_ext <<_ACEOF | |
14928 | /* end confdefs.h. */ | |
14929 | ||
7a197a62 AK |
14930 | /* Override any GCC internal prototype to avoid an error. |
14931 | Use char because int might match the return type of a GCC | |
14932 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
14933 | #ifdef __cplusplus |
14934 | extern "C" | |
14935 | #endif | |
8a2fc586 AK |
14936 | char sepol_check_context (); |
14937 | int | |
14938 | main () | |
14939 | { | |
7a197a62 | 14940 | return sepol_check_context (); |
8a2fc586 AK |
14941 | ; |
14942 | return 0; | |
14943 | } | |
14944 | _ACEOF | |
14945 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14946 | if { (ac_try="$ac_link" |
14947 | case "(($ac_try" in | |
14948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14949 | *) ac_try_echo=$ac_try;; | |
14950 | esac | |
ec6a6fbe AK |
14951 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14952 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14953 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
14954 | ac_status=$? |
14955 | grep -v '^ *+' conftest.er1 >conftest.err | |
14956 | rm -f conftest.er1 | |
14957 | cat conftest.err >&5 | |
ec6a6fbe | 14958 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14959 | (exit $ac_status); } && { |
14960 | test -z "$ac_c_werror_flag" || | |
14961 | test ! -s conftest.err | |
ec6a6fbe AK |
14962 | } && test -s conftest$ac_exeext && { |
14963 | test "$cross_compiling" = yes || | |
14964 | $as_test_x conftest$ac_exeext | |
14965 | }; then | |
8a2fc586 AK |
14966 | ac_cv_lib_sepol_sepol_check_context=yes |
14967 | else | |
ec6a6fbe | 14968 | $as_echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
14969 | sed 's/^/| /' conftest.$ac_ext >&5 |
14970 | ||
7a197a62 | 14971 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 14972 | fi |
7a197a62 | 14973 | |
ec6a6fbe | 14974 | rm -rf conftest.dSYM |
25fbec5b | 14975 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
14976 | conftest$ac_exeext conftest.$ac_ext |
14977 | LIBS=$ac_check_lib_save_LIBS | |
14978 | fi | |
ec6a6fbe AK |
14979 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
14980 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
14981 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then | |
8a2fc586 | 14982 | |
d0191583 JM |
14983 | |
14984 | cat >>confdefs.h <<\_ACEOF | |
14985 | #define HAVE_SEPOL 1 | |
14986 | _ACEOF | |
14987 | ||
f8f6ec92 ZK |
14988 | SELINUX_LIBS="-lsepol" |
14989 | fi | |
14990 | ||
8a2fc586 | 14991 | |
ec6a6fbe AK |
14992 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
14993 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
ad6254c5 | 14994 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
ec6a6fbe | 14995 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
14996 | else |
14997 | ac_check_lib_save_LIBS=$LIBS | |
14998 | LIBS="-lselinux $LIBS" | |
14999 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
15000 | /* confdefs.h. */ |
15001 | _ACEOF | |
15002 | cat confdefs.h >>conftest.$ac_ext | |
15003 | cat >>conftest.$ac_ext <<_ACEOF | |
15004 | /* end confdefs.h. */ | |
15005 | ||
7a197a62 AK |
15006 | /* Override any GCC internal prototype to avoid an error. |
15007 | Use char because int might match the return type of a GCC | |
15008 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
15009 | #ifdef __cplusplus |
15010 | extern "C" | |
15011 | #endif | |
ad6254c5 AK |
15012 | char is_selinux_enabled (); |
15013 | int | |
15014 | main () | |
15015 | { | |
7a197a62 | 15016 | return is_selinux_enabled (); |
ad6254c5 AK |
15017 | ; |
15018 | return 0; | |
15019 | } | |
15020 | _ACEOF | |
15021 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15022 | if { (ac_try="$ac_link" |
15023 | case "(($ac_try" in | |
15024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15025 | *) ac_try_echo=$ac_try;; | |
15026 | esac | |
ec6a6fbe AK |
15027 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15028 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15029 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 15030 | ac_status=$? |
8a2fc586 AK |
15031 | grep -v '^ *+' conftest.er1 >conftest.err |
15032 | rm -f conftest.er1 | |
15033 | cat conftest.err >&5 | |
ec6a6fbe | 15034 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15035 | (exit $ac_status); } && { |
15036 | test -z "$ac_c_werror_flag" || | |
15037 | test ! -s conftest.err | |
ec6a6fbe AK |
15038 | } && test -s conftest$ac_exeext && { |
15039 | test "$cross_compiling" = yes || | |
15040 | $as_test_x conftest$ac_exeext | |
15041 | }; then | |
ad6254c5 AK |
15042 | ac_cv_lib_selinux_is_selinux_enabled=yes |
15043 | else | |
ec6a6fbe | 15044 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15045 | sed 's/^/| /' conftest.$ac_ext >&5 |
15046 | ||
7a197a62 | 15047 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 15048 | fi |
7a197a62 | 15049 | |
ec6a6fbe | 15050 | rm -rf conftest.dSYM |
25fbec5b | 15051 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 15052 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
15053 | LIBS=$ac_check_lib_save_LIBS |
15054 | fi | |
ec6a6fbe AK |
15055 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
15056 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
15057 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then | |
ad6254c5 | 15058 | |
72b2cb61 | 15059 | |
f8f6ec92 ZK |
15060 | for ac_header in selinux/selinux.h |
15061 | do | |
15062 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15063 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15064 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15065 | $as_echo_n "checking for $ac_header... " >&6; } | |
15066 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ec6a6fbe | 15067 | $as_echo_n "(cached) " >&6 |
f8f6ec92 ZK |
15068 | fi |
15069 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15070 | $as_echo "$as_val"'` | |
15071 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15072 | $as_echo "$ac_res" >&6; } | |
66e941e8 | 15073 | else |
f8f6ec92 ZK |
15074 | # Is the header compilable? |
15075 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15076 | $as_echo_n "checking $ac_header usability... " >&6; } | |
66e941e8 JM |
15077 | cat >conftest.$ac_ext <<_ACEOF |
15078 | /* confdefs.h. */ | |
15079 | _ACEOF | |
15080 | cat confdefs.h >>conftest.$ac_ext | |
15081 | cat >>conftest.$ac_ext <<_ACEOF | |
15082 | /* end confdefs.h. */ | |
f8f6ec92 ZK |
15083 | $ac_includes_default |
15084 | #include <$ac_header> | |
66e941e8 | 15085 | _ACEOF |
f8f6ec92 ZK |
15086 | rm -f conftest.$ac_objext |
15087 | if { (ac_try="$ac_compile" | |
66e941e8 JM |
15088 | case "(($ac_try" in |
15089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15090 | *) ac_try_echo=$ac_try;; | |
15091 | esac | |
ec6a6fbe AK |
15092 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15093 | $as_echo "$ac_try_echo") >&5 | |
f8f6ec92 | 15094 | (eval "$ac_compile") 2>conftest.er1 |
66e941e8 JM |
15095 | ac_status=$? |
15096 | grep -v '^ *+' conftest.er1 >conftest.err | |
15097 | rm -f conftest.er1 | |
15098 | cat conftest.err >&5 | |
ec6a6fbe | 15099 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15100 | (exit $ac_status); } && { |
15101 | test -z "$ac_c_werror_flag" || | |
15102 | test ! -s conftest.err | |
f8f6ec92 ZK |
15103 | } && test -s conftest.$ac_objext; then |
15104 | ac_header_compiler=yes | |
15105 | else | |
15106 | $as_echo "$as_me: failed program was:" >&5 | |
15107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15108 | ||
15109 | ac_header_compiler=no | |
15110 | fi | |
15111 | ||
15112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15113 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15114 | $as_echo "$ac_header_compiler" >&6; } | |
15115 | ||
15116 | # Is the header present? | |
15117 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15118 | $as_echo_n "checking $ac_header presence... " >&6; } | |
15119 | cat >conftest.$ac_ext <<_ACEOF | |
15120 | /* confdefs.h. */ | |
15121 | _ACEOF | |
15122 | cat confdefs.h >>conftest.$ac_ext | |
15123 | cat >>conftest.$ac_ext <<_ACEOF | |
15124 | /* end confdefs.h. */ | |
15125 | #include <$ac_header> | |
15126 | _ACEOF | |
15127 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15128 | case "(($ac_try" in | |
15129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15130 | *) ac_try_echo=$ac_try;; | |
15131 | esac | |
15132 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15133 | $as_echo "$ac_try_echo") >&5 | |
15134 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15135 | ac_status=$? | |
15136 | grep -v '^ *+' conftest.er1 >conftest.err | |
15137 | rm -f conftest.er1 | |
15138 | cat conftest.err >&5 | |
15139 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15140 | (exit $ac_status); } >/dev/null && { | |
15141 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15142 | test ! -s conftest.err | |
ec6a6fbe | 15143 | }; then |
f8f6ec92 | 15144 | ac_header_preproc=yes |
66e941e8 | 15145 | else |
ec6a6fbe | 15146 | $as_echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
15147 | sed 's/^/| /' conftest.$ac_ext >&5 |
15148 | ||
f8f6ec92 ZK |
15149 | ac_header_preproc=no |
15150 | fi | |
15151 | ||
15152 | rm -f conftest.err conftest.$ac_ext | |
15153 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15154 | $as_echo "$ac_header_preproc" >&6; } | |
15155 | ||
15156 | # So? What about this header? | |
15157 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15158 | yes:no: ) | |
15159 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15160 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15161 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15162 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15163 | ac_header_preproc=yes | |
15164 | ;; | |
15165 | no:yes:* ) | |
15166 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15167 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15168 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15169 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15170 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15171 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15172 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15173 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15174 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15175 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15176 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15177 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
66e941e8 | 15178 | |
f8f6ec92 ZK |
15179 | ;; |
15180 | esac | |
15181 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15182 | $as_echo_n "checking for $ac_header... " >&6; } | |
15183 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15184 | $as_echo_n "(cached) " >&6 | |
15185 | else | |
15186 | eval "$as_ac_Header=\$ac_header_preproc" | |
66e941e8 | 15187 | fi |
f8f6ec92 ZK |
15188 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15189 | $as_echo "$as_val"'` | |
15190 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15191 | $as_echo "$ac_res" >&6; } | |
66e941e8 | 15192 | |
66e941e8 | 15193 | fi |
f8f6ec92 ZK |
15194 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15195 | $as_echo "$as_val"'` | |
15196 | if test "x$as_val" = x""yes; then | |
15197 | cat >>confdefs.h <<_ACEOF | |
15198 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15199 | _ACEOF | |
15200 | ||
66e941e8 | 15201 | else |
f8f6ec92 | 15202 | hard_bailout |
66e941e8 | 15203 | fi |
f8f6ec92 ZK |
15204 | |
15205 | done | |
15206 | ||
15207 | ||
15208 | cat >>confdefs.h <<\_ACEOF | |
15209 | #define HAVE_SELINUX 1 | |
15210 | _ACEOF | |
15211 | ||
15212 | SELINUX_LIBS="-lselinux $SELINUX_LIBS" | |
f7f0854e | 15213 | SELINUX_PC="libselinux" |
f8f6ec92 ZK |
15214 | HAVE_SELINUX=yes |
15215 | else | |
15216 | ||
15217 | { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 | |
15218 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
15219 | SELINUX_LIBS= | |
f7f0854e | 15220 | SELINUX_PC= |
f8f6ec92 | 15221 | HAVE_SELINUX=no |
66e941e8 JM |
15222 | fi |
15223 | ||
ad6254c5 AK |
15224 | fi |
15225 | ||
8b1a3214 AK |
15226 | ################################################################################ |
15227 | if test x$REALTIME = xyes; then | |
ec6a6fbe AK |
15228 | { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
15229 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
8b1a3214 | 15230 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
ec6a6fbe | 15231 | $as_echo_n "(cached) " >&6 |
8b1a3214 AK |
15232 | else |
15233 | ac_check_lib_save_LIBS=$LIBS | |
15234 | LIBS="-lrt $LIBS" | |
15235 | cat >conftest.$ac_ext <<_ACEOF | |
15236 | /* confdefs.h. */ | |
15237 | _ACEOF | |
15238 | cat confdefs.h >>conftest.$ac_ext | |
15239 | cat >>conftest.$ac_ext <<_ACEOF | |
15240 | /* end confdefs.h. */ | |
15241 | ||
7a197a62 AK |
15242 | /* Override any GCC internal prototype to avoid an error. |
15243 | Use char because int might match the return type of a GCC | |
15244 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
15245 | #ifdef __cplusplus |
15246 | extern "C" | |
15247 | #endif | |
8b1a3214 AK |
15248 | char clock_gettime (); |
15249 | int | |
15250 | main () | |
15251 | { | |
7a197a62 | 15252 | return clock_gettime (); |
8b1a3214 AK |
15253 | ; |
15254 | return 0; | |
15255 | } | |
15256 | _ACEOF | |
15257 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15258 | if { (ac_try="$ac_link" |
15259 | case "(($ac_try" in | |
15260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15261 | *) ac_try_echo=$ac_try;; | |
15262 | esac | |
ec6a6fbe AK |
15263 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15264 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15265 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
15266 | ac_status=$? |
15267 | grep -v '^ *+' conftest.er1 >conftest.err | |
15268 | rm -f conftest.er1 | |
15269 | cat conftest.err >&5 | |
ec6a6fbe | 15270 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15271 | (exit $ac_status); } && { |
15272 | test -z "$ac_c_werror_flag" || | |
15273 | test ! -s conftest.err | |
ec6a6fbe AK |
15274 | } && test -s conftest$ac_exeext && { |
15275 | test "$cross_compiling" = yes || | |
15276 | $as_test_x conftest$ac_exeext | |
15277 | }; then | |
8b1a3214 AK |
15278 | ac_cv_lib_rt_clock_gettime=yes |
15279 | else | |
ec6a6fbe | 15280 | $as_echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
15281 | sed 's/^/| /' conftest.$ac_ext >&5 |
15282 | ||
7a197a62 | 15283 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 15284 | fi |
7a197a62 | 15285 | |
ec6a6fbe | 15286 | rm -rf conftest.dSYM |
25fbec5b | 15287 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
15288 | conftest$ac_exeext conftest.$ac_ext |
15289 | LIBS=$ac_check_lib_save_LIBS | |
15290 | fi | |
ec6a6fbe AK |
15291 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
15292 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
15293 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then | |
8b1a3214 AK |
15294 | HAVE_REALTIME=yes |
15295 | else | |
15296 | HAVE_REALTIME=no | |
15297 | fi | |
15298 | ||
8b1a3214 AK |
15299 | |
15300 | if test x$HAVE_REALTIME = xyes; then | |
15301 | ||
15302 | cat >>confdefs.h <<\_ACEOF | |
15303 | #define HAVE_REALTIME 1 | |
15304 | _ACEOF | |
15305 | ||
15306 | LIBS="-lrt $LIBS" | |
15307 | else | |
ec6a6fbe AK |
15308 | { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
15309 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
15310 | fi |
15311 | fi | |
15312 | ||
ad6254c5 AK |
15313 | ################################################################################ |
15314 | ||
15315 | for ac_header in getopt.h | |
15316 | do | |
ec6a6fbe | 15317 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 15318 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
15319 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15320 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15321 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15322 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15323 | fi |
ec6a6fbe AK |
15324 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15325 | $as_echo "$as_val"'` | |
15326 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15327 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
15328 | else |
15329 | # Is the header compilable? | |
ec6a6fbe AK |
15330 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15331 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 15332 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15333 | /* confdefs.h. */ |
15334 | _ACEOF | |
15335 | cat confdefs.h >>conftest.$ac_ext | |
15336 | cat >>conftest.$ac_ext <<_ACEOF | |
15337 | /* end confdefs.h. */ | |
15338 | $ac_includes_default | |
15339 | #include <$ac_header> | |
15340 | _ACEOF | |
15341 | rm -f conftest.$ac_objext | |
7a197a62 AK |
15342 | if { (ac_try="$ac_compile" |
15343 | case "(($ac_try" in | |
15344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15345 | *) ac_try_echo=$ac_try;; | |
15346 | esac | |
ec6a6fbe AK |
15347 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15348 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15349 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 15350 | ac_status=$? |
8a2fc586 AK |
15351 | grep -v '^ *+' conftest.er1 >conftest.err |
15352 | rm -f conftest.er1 | |
15353 | cat conftest.err >&5 | |
ec6a6fbe | 15354 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15355 | (exit $ac_status); } && { |
15356 | test -z "$ac_c_werror_flag" || | |
15357 | test ! -s conftest.err | |
15358 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
15359 | ac_header_compiler=yes |
15360 | else | |
ec6a6fbe | 15361 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15362 | sed 's/^/| /' conftest.$ac_ext >&5 |
15363 | ||
7a197a62 | 15364 | ac_header_compiler=no |
ad6254c5 | 15365 | fi |
7a197a62 AK |
15366 | |
15367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
15368 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15369 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
15370 | |
15371 | # Is the header present? | |
ec6a6fbe AK |
15372 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15373 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 15374 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15375 | /* confdefs.h. */ |
15376 | _ACEOF | |
15377 | cat confdefs.h >>conftest.$ac_ext | |
15378 | cat >>conftest.$ac_ext <<_ACEOF | |
15379 | /* end confdefs.h. */ | |
15380 | #include <$ac_header> | |
15381 | _ACEOF | |
7a197a62 AK |
15382 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15383 | case "(($ac_try" in | |
15384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15385 | *) ac_try_echo=$ac_try;; | |
15386 | esac | |
ec6a6fbe AK |
15387 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15388 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15389 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
15390 | ac_status=$? |
15391 | grep -v '^ *+' conftest.er1 >conftest.err | |
15392 | rm -f conftest.er1 | |
15393 | cat conftest.err >&5 | |
ec6a6fbe | 15394 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15395 | (exit $ac_status); } >/dev/null && { |
15396 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15397 | test ! -s conftest.err | |
15398 | }; then | |
ad6254c5 AK |
15399 | ac_header_preproc=yes |
15400 | else | |
ec6a6fbe | 15401 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15402 | sed 's/^/| /' conftest.$ac_ext >&5 |
15403 | ||
15404 | ac_header_preproc=no | |
15405 | fi | |
7a197a62 | 15406 | |
ad6254c5 | 15407 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
15408 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15409 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
15410 | |
15411 | # So? What about this header? | |
8a2fc586 AK |
15412 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15413 | yes:no: ) | |
ec6a6fbe AK |
15414 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15415 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15416 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15417 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 15418 | ac_header_preproc=yes |
ad6254c5 | 15419 | ;; |
8a2fc586 | 15420 | no:yes:* ) |
ec6a6fbe AK |
15421 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15422 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15423 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15424 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15425 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15426 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15427 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15428 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15429 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15430 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15431 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15432 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 15433 | |
ad6254c5 AK |
15434 | ;; |
15435 | esac | |
ec6a6fbe AK |
15436 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15437 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15438 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15439 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15440 | else |
8a2fc586 | 15441 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 15442 | fi |
ec6a6fbe AK |
15443 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15444 | $as_echo "$as_val"'` | |
15445 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15446 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
15447 | |
15448 | fi | |
ec6a6fbe AK |
15449 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15450 | $as_echo "$as_val"'` | |
15451 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 15452 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 15453 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 15454 | _ACEOF |
72b2cb61 AK |
15455 | |
15456 | cat >>confdefs.h <<\_ACEOF | |
15457 | #define HAVE_GETOPTLONG 1 | |
15458 | _ACEOF | |
15459 | ||
ad6254c5 AK |
15460 | fi |
15461 | ||
15462 | done | |
15463 | ||
15464 | ||
15465 | ################################################################################ | |
06e459df | 15466 | if test x$READLINE != xno; then |
539f4a77 ZK |
15467 | lvm_saved_libs=$LIBS |
15468 | { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 | |
15469 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
15470 | if test "${ac_cv_search_tgetent+set}" = set; then | |
15471 | $as_echo_n "(cached) " >&6 | |
15472 | else | |
15473 | ac_func_search_save_LIBS=$LIBS | |
15474 | cat >conftest.$ac_ext <<_ACEOF | |
15475 | /* confdefs.h. */ | |
15476 | _ACEOF | |
15477 | cat confdefs.h >>conftest.$ac_ext | |
15478 | cat >>conftest.$ac_ext <<_ACEOF | |
15479 | /* end confdefs.h. */ | |
bc1024f8 | 15480 | |
539f4a77 ZK |
15481 | /* Override any GCC internal prototype to avoid an error. |
15482 | Use char because int might match the return type of a GCC | |
15483 | builtin and then its argument prototype would still apply. */ | |
15484 | #ifdef __cplusplus | |
15485 | extern "C" | |
15486 | #endif | |
15487 | char tgetent (); | |
15488 | int | |
15489 | main () | |
15490 | { | |
15491 | return tgetent (); | |
15492 | ; | |
15493 | return 0; | |
15494 | } | |
15495 | _ACEOF | |
15496 | for ac_lib in '' tinfo ncurses curses termcap termlib; do | |
15497 | if test -z "$ac_lib"; then | |
15498 | ac_res="none required" | |
15499 | else | |
15500 | ac_res=-l$ac_lib | |
15501 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15502 | fi | |
15503 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15504 | if { (ac_try="$ac_link" | |
15505 | case "(($ac_try" in | |
15506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15507 | *) ac_try_echo=$ac_try;; | |
15508 | esac | |
15509 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15510 | $as_echo "$ac_try_echo") >&5 | |
15511 | (eval "$ac_link") 2>conftest.er1 | |
15512 | ac_status=$? | |
15513 | grep -v '^ *+' conftest.er1 >conftest.err | |
15514 | rm -f conftest.er1 | |
15515 | cat conftest.err >&5 | |
15516 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15517 | (exit $ac_status); } && { | |
15518 | test -z "$ac_c_werror_flag" || | |
15519 | test ! -s conftest.err | |
15520 | } && test -s conftest$ac_exeext && { | |
15521 | test "$cross_compiling" = yes || | |
15522 | $as_test_x conftest$ac_exeext | |
15523 | }; then | |
15524 | ac_cv_search_tgetent=$ac_res | |
15525 | else | |
15526 | $as_echo "$as_me: failed program was:" >&5 | |
15527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15528 | ||
15529 | ||
15530 | fi | |
15531 | ||
15532 | rm -rf conftest.dSYM | |
15533 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15534 | conftest$ac_exeext | |
15535 | if test "${ac_cv_search_tgetent+set}" = set; then | |
15536 | break | |
15537 | fi | |
15538 | done | |
15539 | if test "${ac_cv_search_tgetent+set}" = set; then | |
15540 | : | |
15541 | else | |
15542 | ac_cv_search_tgetent=no | |
15543 | fi | |
15544 | rm conftest.$ac_ext | |
15545 | LIBS=$ac_func_search_save_LIBS | |
15546 | fi | |
15547 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 | |
15548 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
15549 | ac_res=$ac_cv_search_tgetent | |
15550 | if test "$ac_res" != no; then | |
15551 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
15552 | READLINE_LIBS=$ac_cv_search_tgetent | |
15553 | else | |
15554 | ||
15555 | if test "$READLINE" = yes; then | |
15556 | { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the | |
15557 | --enable-readline option (which is enabled by default). Either disable readline | |
15558 | support with --disable-readline or download and install termcap from: | |
15559 | ftp.gnu.org/gnu/termcap | |
15560 | Note: if you are using precompiled packages you will also need the development | |
15561 | package as well (which may be called termcap-devel or something similar). | |
15562 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
15563 | not found either - but you could try installing that as well." >&5 | |
15564 | $as_echo "$as_me: error: termcap could not be found which is required for the | |
15565 | --enable-readline option (which is enabled by default). Either disable readline | |
15566 | support with --disable-readline or download and install termcap from: | |
15567 | ftp.gnu.org/gnu/termcap | |
15568 | Note: if you are using precompiled packages you will also need the development | |
15569 | package as well (which may be called termcap-devel or something similar). | |
15570 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
15571 | not found either - but you could try installing that as well." >&2;} | |
15572 | { (exit 1); exit 1; }; } | |
15573 | fi | |
15574 | fi | |
15575 | ||
15576 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 | |
ec6a6fbe | 15577 | $as_echo_n "checking for readline in -lreadline... " >&6; } |
ad6254c5 | 15578 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
ec6a6fbe | 15579 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
15580 | else |
15581 | ac_check_lib_save_LIBS=$LIBS | |
15582 | LIBS="-lreadline $LIBS" | |
15583 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
15584 | /* confdefs.h. */ |
15585 | _ACEOF | |
15586 | cat confdefs.h >>conftest.$ac_ext | |
15587 | cat >>conftest.$ac_ext <<_ACEOF | |
15588 | /* end confdefs.h. */ | |
15589 | ||
7a197a62 AK |
15590 | /* Override any GCC internal prototype to avoid an error. |
15591 | Use char because int might match the return type of a GCC | |
15592 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
15593 | #ifdef __cplusplus |
15594 | extern "C" | |
15595 | #endif | |
ad6254c5 AK |
15596 | char readline (); |
15597 | int | |
15598 | main () | |
15599 | { | |
7a197a62 | 15600 | return readline (); |
ad6254c5 AK |
15601 | ; |
15602 | return 0; | |
15603 | } | |
15604 | _ACEOF | |
15605 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15606 | if { (ac_try="$ac_link" |
15607 | case "(($ac_try" in | |
15608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15609 | *) ac_try_echo=$ac_try;; | |
15610 | esac | |
ec6a6fbe AK |
15611 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15612 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15613 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 15614 | ac_status=$? |
8a2fc586 AK |
15615 | grep -v '^ *+' conftest.er1 >conftest.err |
15616 | rm -f conftest.er1 | |
15617 | cat conftest.err >&5 | |
ec6a6fbe | 15618 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15619 | (exit $ac_status); } && { |
15620 | test -z "$ac_c_werror_flag" || | |
15621 | test ! -s conftest.err | |
ec6a6fbe AK |
15622 | } && test -s conftest$ac_exeext && { |
15623 | test "$cross_compiling" = yes || | |
15624 | $as_test_x conftest$ac_exeext | |
15625 | }; then | |
ad6254c5 AK |
15626 | ac_cv_lib_readline_readline=yes |
15627 | else | |
ec6a6fbe | 15628 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15629 | sed 's/^/| /' conftest.$ac_ext >&5 |
15630 | ||
7a197a62 | 15631 | ac_cv_lib_readline_readline=no |
ad6254c5 | 15632 | fi |
7a197a62 | 15633 | |
ec6a6fbe | 15634 | rm -rf conftest.dSYM |
25fbec5b | 15635 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 15636 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
15637 | LIBS=$ac_check_lib_save_LIBS |
15638 | fi | |
ec6a6fbe AK |
15639 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
15640 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
15641 | if test "x$ac_cv_lib_readline_readline" = x""yes; then | |
539f4a77 ZK |
15642 | |
15643 | ||
15644 | cat >>confdefs.h <<\_ACEOF | |
15645 | #define READLINE_SUPPORT 1 | |
bc1024f8 JM |
15646 | _ACEOF |
15647 | ||
539f4a77 ZK |
15648 | LIBS=$lvm_saved_libs |
15649 | { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5 | |
15650 | $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; } | |
15651 | if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then | |
15652 | $as_echo_n "(cached) " >&6 | |
15653 | else | |
15654 | ac_check_lib_save_LIBS=$LIBS | |
15655 | LIBS="-lreadline $LIBS" | |
15656 | cat >conftest.$ac_ext <<_ACEOF | |
15657 | /* confdefs.h. */ | |
15658 | _ACEOF | |
15659 | cat confdefs.h >>conftest.$ac_ext | |
15660 | cat >>conftest.$ac_ext <<_ACEOF | |
15661 | /* end confdefs.h. */ | |
bc1024f8 | 15662 | |
539f4a77 ZK |
15663 | /* Override any GCC internal prototype to avoid an error. |
15664 | Use char because int might match the return type of a GCC | |
15665 | builtin and then its argument prototype would still apply. */ | |
15666 | #ifdef __cplusplus | |
15667 | extern "C" | |
15668 | #endif | |
15669 | char rl_line_buffer (); | |
15670 | int | |
15671 | main () | |
15672 | { | |
15673 | return rl_line_buffer (); | |
15674 | ; | |
15675 | return 0; | |
15676 | } | |
15677 | _ACEOF | |
15678 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15679 | if { (ac_try="$ac_link" | |
15680 | case "(($ac_try" in | |
15681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15682 | *) ac_try_echo=$ac_try;; | |
15683 | esac | |
15684 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15685 | $as_echo "$ac_try_echo") >&5 | |
15686 | (eval "$ac_link") 2>conftest.er1 | |
15687 | ac_status=$? | |
15688 | grep -v '^ *+' conftest.er1 >conftest.err | |
15689 | rm -f conftest.er1 | |
15690 | cat conftest.err >&5 | |
15691 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15692 | (exit $ac_status); } && { | |
15693 | test -z "$ac_c_werror_flag" || | |
15694 | test ! -s conftest.err | |
15695 | } && test -s conftest$ac_exeext && { | |
15696 | test "$cross_compiling" = yes || | |
15697 | $as_test_x conftest$ac_exeext | |
15698 | }; then | |
15699 | ac_cv_lib_readline_rl_line_buffer=yes | |
ad6254c5 | 15700 | else |
539f4a77 ZK |
15701 | $as_echo "$as_me: failed program was:" >&5 |
15702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15703 | ||
15704 | ac_cv_lib_readline_rl_line_buffer=no | |
06e459df JM |
15705 | fi |
15706 | ||
539f4a77 ZK |
15707 | rm -rf conftest.dSYM |
15708 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15709 | conftest$ac_exeext conftest.$ac_ext | |
15710 | LIBS=$ac_check_lib_save_LIBS | |
15711 | fi | |
15712 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5 | |
15713 | $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; } | |
15714 | if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then | |
15715 | READLINE_LIBS="-lreadline" | |
15716 | else | |
15717 | ||
15718 | { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5 | |
15719 | $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; } | |
15720 | READLINE_LIBS="-lreadline $READLINE_LIBS" | |
15721 | ||
15722 | fi | |
15723 | ||
15724 | else | |
15725 | ||
15726 | READLINE_LIBS= | |
15727 | if test "$READLINE" = yes; then | |
15728 | { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the | |
ad6254c5 AK |
15729 | --enable-readline option (which is enabled by default). Either disable readline |
15730 | support with --disable-readline or download and install readline from: | |
15731 | ftp.gnu.org/gnu/readline | |
15732 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 | 15733 | package as well (which may be called readline-devel or something similar)." >&5 |
ec6a6fbe | 15734 | $as_echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
15735 | --enable-readline option (which is enabled by default). Either disable readline |
15736 | support with --disable-readline or download and install readline from: | |
15737 | ftp.gnu.org/gnu/readline | |
15738 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 | 15739 | package as well (which may be called readline-devel or something similar)." >&2;} |
ad6254c5 | 15740 | { (exit 1); exit 1; }; } |
539f4a77 ZK |
15741 | fi |
15742 | fi | |
15743 | ||
15744 | LIBS="$READLINE_LIBS $lvm_saved_libs" | |
bc1024f8 JM |
15745 | |
15746 | for ac_func in rl_completion_matches | |
15747 | do | |
ec6a6fbe AK |
15748 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15749 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15750 | $as_echo_n "checking for $ac_func... " >&6; } | |
bc1024f8 | 15751 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15752 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
15753 | else |
15754 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
15755 | /* confdefs.h. */ |
15756 | _ACEOF | |
15757 | cat confdefs.h >>conftest.$ac_ext | |
15758 | cat >>conftest.$ac_ext <<_ACEOF | |
15759 | /* end confdefs.h. */ | |
bc1024f8 | 15760 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8a2fc586 | 15761 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
bc1024f8 | 15762 | #define $ac_func innocuous_$ac_func |
8a2fc586 | 15763 | |
ad6254c5 | 15764 | /* System header to define __stub macros and hopefully few prototypes, |
bc1024f8 | 15765 | which can conflict with char $ac_func (); below. |
ad6254c5 AK |
15766 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
15767 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 15768 | |
ad6254c5 AK |
15769 | #ifdef __STDC__ |
15770 | # include <limits.h> | |
15771 | #else | |
15772 | # include <assert.h> | |
15773 | #endif | |
8a2fc586 | 15774 | |
bc1024f8 | 15775 | #undef $ac_func |
8a2fc586 | 15776 | |
7a197a62 AK |
15777 | /* Override any GCC internal prototype to avoid an error. |
15778 | Use char because int might match the return type of a GCC | |
15779 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
15780 | #ifdef __cplusplus |
15781 | extern "C" | |
ad6254c5 | 15782 | #endif |
bc1024f8 | 15783 | char $ac_func (); |
ad6254c5 AK |
15784 | /* The GNU C library defines this for functions which it implements |
15785 | to always fail with ENOSYS. Some functions are actually named | |
15786 | something starting with __ and the normal name is an alias. */ | |
bc1024f8 | 15787 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 15788 | choke me |
ad6254c5 AK |
15789 | #endif |
15790 | ||
15791 | int | |
15792 | main () | |
15793 | { | |
bc1024f8 | 15794 | return $ac_func (); |
ad6254c5 AK |
15795 | ; |
15796 | return 0; | |
15797 | } | |
15798 | _ACEOF | |
15799 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15800 | if { (ac_try="$ac_link" |
15801 | case "(($ac_try" in | |
15802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15803 | *) ac_try_echo=$ac_try;; | |
15804 | esac | |
ec6a6fbe AK |
15805 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15806 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15807 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 15808 | ac_status=$? |
8a2fc586 AK |
15809 | grep -v '^ *+' conftest.er1 >conftest.err |
15810 | rm -f conftest.er1 | |
15811 | cat conftest.err >&5 | |
ec6a6fbe | 15812 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15813 | (exit $ac_status); } && { |
15814 | test -z "$ac_c_werror_flag" || | |
15815 | test ! -s conftest.err | |
ec6a6fbe AK |
15816 | } && test -s conftest$ac_exeext && { |
15817 | test "$cross_compiling" = yes || | |
15818 | $as_test_x conftest$ac_exeext | |
15819 | }; then | |
bc1024f8 | 15820 | eval "$as_ac_var=yes" |
ad6254c5 | 15821 | else |
ec6a6fbe | 15822 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15823 | sed 's/^/| /' conftest.$ac_ext >&5 |
15824 | ||
bc1024f8 | 15825 | eval "$as_ac_var=no" |
ad6254c5 | 15826 | fi |
7a197a62 | 15827 | |
ec6a6fbe | 15828 | rm -rf conftest.dSYM |
25fbec5b | 15829 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 15830 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 15831 | fi |
ec6a6fbe AK |
15832 | ac_res=`eval 'as_val=${'$as_ac_var'} |
15833 | $as_echo "$as_val"'` | |
15834 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15835 | $as_echo "$ac_res" >&6; } | |
15836 | as_val=`eval 'as_val=${'$as_ac_var'} | |
15837 | $as_echo "$as_val"'` | |
15838 | if test "x$as_val" = x""yes; then | |
bc1024f8 | 15839 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 15840 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
72b2cb61 AK |
15841 | _ACEOF |
15842 | ||
15843 | fi | |
bc1024f8 | 15844 | done |
ad6254c5 | 15845 | |
539f4a77 | 15846 | LIBS=$lvm_saved_libs |
ad6254c5 AK |
15847 | fi |
15848 | ||
15849 | ################################################################################ | |
ec6a6fbe AK |
15850 | { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
15851 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
7a197a62 | 15852 | # Check whether --enable-nls was given. |
ad6254c5 | 15853 | if test "${enable_nls+set}" = set; then |
7a197a62 | 15854 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
15855 | else |
15856 | INTL=no | |
7a197a62 AK |
15857 | fi |
15858 | ||
ec6a6fbe AK |
15859 | { $as_echo "$as_me:$LINENO: result: $INTL" >&5 |
15860 | $as_echo "$INTL" >&6; } | |
ad6254c5 AK |
15861 | |
15862 | if test x$INTL = xyes; then | |
93bd259b | 15863 | # FIXME - Move this - can be device-mapper too |
ad6254c5 AK |
15864 | INTL_PACKAGE="lvm2" |
15865 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
15866 | set dummy msgfmt; ac_word=$2 | |
ec6a6fbe AK |
15867 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
15868 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 15869 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
ec6a6fbe | 15870 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
15871 | else |
15872 | case $MSGFMT in | |
15873 | [\\/]* | ?:[\\/]*) | |
15874 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
15875 | ;; | |
15876 | *) | |
15877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15878 | for as_dir in $PATH | |
15879 | do | |
15880 | IFS=$as_save_IFS | |
15881 | test -z "$as_dir" && as_dir=. | |
15882 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 15883 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 15884 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 15885 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
15886 | break 2 |
15887 | fi | |
15888 | done | |
15889 | done | |
7a197a62 | 15890 | IFS=$as_save_IFS |
ad6254c5 AK |
15891 | |
15892 | ;; | |
15893 | esac | |
15894 | fi | |
15895 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 15896 | if test -n "$MSGFMT"; then |
ec6a6fbe AK |
15897 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
15898 | $as_echo "$MSGFMT" >&6; } | |
ad6254c5 | 15899 | else |
ec6a6fbe AK |
15900 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15901 | $as_echo "no" >&6; } | |
ad6254c5 AK |
15902 | fi |
15903 | ||
7a197a62 | 15904 | |
ad6254c5 | 15905 | if [ "x$MSGFMT" == x ]; |
ec6a6fbe | 15906 | then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 15907 | " >&5 |
ec6a6fbe | 15908 | $as_echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
15909 | " >&2;} |
15910 | { (exit 1); exit 1; }; } | |
15911 | fi; | |
15912 | ||
15913 | ||
7a197a62 | 15914 | # Check whether --with-localedir was given. |
ad6254c5 | 15915 | if test "${with_localedir+set}" = set; then |
71082be4 | 15916 | withval=$with_localedir; LOCALEDIR=$withval |
ad6254c5 | 15917 | else |
71082be4 | 15918 | LOCALEDIR='${prefix}/share/locale' |
7a197a62 AK |
15919 | fi |
15920 | ||
ad6254c5 AK |
15921 | fi |
15922 | ||
15923 | ################################################################################ | |
15924 | ||
7a197a62 | 15925 | # Check whether --with-confdir was given. |
ad6254c5 | 15926 | if test "${with_confdir+set}" = set; then |
71082be4 | 15927 | withval=$with_confdir; CONFDIR=$withval |
ad6254c5 | 15928 | else |
71082be4 | 15929 | CONFDIR="/etc" |
7a197a62 AK |
15930 | fi |
15931 | ||
ad6254c5 AK |
15932 | |
15933 | ||
7a197a62 | 15934 | # Check whether --with-staticdir was given. |
ad6254c5 | 15935 | if test "${with_staticdir+set}" = set; then |
71082be4 | 15936 | withval=$with_staticdir; STATICDIR=$withval |
ad6254c5 | 15937 | else |
71082be4 | 15938 | STATICDIR='${exec_prefix}/sbin' |
7a197a62 | 15939 | fi |
ad6254c5 | 15940 | |
33f732c5 | 15941 | |
7a197a62 | 15942 | |
68f2de6d AK |
15943 | # Check whether --with-usrlibdir was given. |
15944 | if test "${with_usrlibdir+set}" = set; then | |
71082be4 | 15945 | withval=$with_usrlibdir; usrlibdir=$withval |
68f2de6d | 15946 | else |
71082be4 | 15947 | usrlibdir='${prefix}/lib' |
68f2de6d AK |
15948 | fi |
15949 | ||
15950 | ||
15951 | ||
15952 | # Check whether --with-usrsbindir was given. | |
15953 | if test "${with_usrsbindir+set}" = set; then | |
71082be4 | 15954 | withval=$with_usrsbindir; usrsbindir=$withval |
68f2de6d | 15955 | else |
71082be4 | 15956 | usrsbindir='${prefix}/sbin' |
68f2de6d AK |
15957 | fi |
15958 | ||
15959 | ||
a5f46f6a AK |
15960 | ################################################################################ |
15961 | ||
15962 | # Check whether --with-udev_prefix was given. | |
15963 | if test "${with_udev_prefix+set}" = set; then | |
71082be4 | 15964 | withval=$with_udev_prefix; udev_prefix=$withval |
a5f46f6a | 15965 | else |
71082be4 | 15966 | udev_prefix='${exec_prefix}' |
a5f46f6a AK |
15967 | fi |
15968 | ||
15969 | ||
78ce7acc AK |
15970 | |
15971 | # Check whether --with-udevdir was given. | |
15972 | if test "${with_udevdir+set}" = set; then | |
71082be4 | 15973 | withval=$with_udevdir; udevdir=$withval |
78ce7acc | 15974 | else |
71082be4 | 15975 | udevdir='${udev_prefix}/lib/udev/rules.d' |
78ce7acc AK |
15976 | fi |
15977 | ||
a5f46f6a | 15978 | |
ad6254c5 AK |
15979 | ################################################################################ |
15980 | if test x$READLINE = xyes; then | |
15981 | ||
15982 | ||
15983 | for ac_header in readline/readline.h readline/history.h | |
15984 | do | |
ec6a6fbe | 15985 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 15986 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
15987 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15988 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15989 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15990 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15991 | fi |
ec6a6fbe AK |
15992 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15993 | $as_echo "$as_val"'` | |
15994 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15995 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
15996 | else |
15997 | # Is the header compilable? | |
ec6a6fbe AK |
15998 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15999 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 16000 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16001 | /* confdefs.h. */ |
16002 | _ACEOF | |
16003 | cat confdefs.h >>conftest.$ac_ext | |
16004 | cat >>conftest.$ac_ext <<_ACEOF | |
16005 | /* end confdefs.h. */ | |
16006 | $ac_includes_default | |
16007 | #include <$ac_header> | |
16008 | _ACEOF | |
16009 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16010 | if { (ac_try="$ac_compile" |
16011 | case "(($ac_try" in | |
16012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16013 | *) ac_try_echo=$ac_try;; | |
16014 | esac | |
ec6a6fbe AK |
16015 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16016 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16017 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16018 | ac_status=$? |
8a2fc586 AK |
16019 | grep -v '^ *+' conftest.er1 >conftest.err |
16020 | rm -f conftest.er1 | |
16021 | cat conftest.err >&5 | |
ec6a6fbe | 16022 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16023 | (exit $ac_status); } && { |
16024 | test -z "$ac_c_werror_flag" || | |
16025 | test ! -s conftest.err | |
16026 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
16027 | ac_header_compiler=yes |
16028 | else | |
ec6a6fbe | 16029 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16030 | sed 's/^/| /' conftest.$ac_ext >&5 |
16031 | ||
7a197a62 | 16032 | ac_header_compiler=no |
ad6254c5 | 16033 | fi |
7a197a62 AK |
16034 | |
16035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16036 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16037 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16038 | |
16039 | # Is the header present? | |
ec6a6fbe AK |
16040 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16041 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16042 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16043 | /* confdefs.h. */ |
16044 | _ACEOF | |
16045 | cat confdefs.h >>conftest.$ac_ext | |
16046 | cat >>conftest.$ac_ext <<_ACEOF | |
16047 | /* end confdefs.h. */ | |
16048 | #include <$ac_header> | |
16049 | _ACEOF | |
7a197a62 AK |
16050 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16051 | case "(($ac_try" in | |
16052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16053 | *) ac_try_echo=$ac_try;; | |
16054 | esac | |
ec6a6fbe AK |
16055 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16056 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16057 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16058 | ac_status=$? |
16059 | grep -v '^ *+' conftest.er1 >conftest.err | |
16060 | rm -f conftest.er1 | |
16061 | cat conftest.err >&5 | |
ec6a6fbe | 16062 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16063 | (exit $ac_status); } >/dev/null && { |
16064 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16065 | test ! -s conftest.err | |
16066 | }; then | |
ad6254c5 AK |
16067 | ac_header_preproc=yes |
16068 | else | |
ec6a6fbe | 16069 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16070 | sed 's/^/| /' conftest.$ac_ext >&5 |
16071 | ||
16072 | ac_header_preproc=no | |
16073 | fi | |
7a197a62 | 16074 | |
ad6254c5 | 16075 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16076 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16077 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16078 | |
16079 | # So? What about this header? | |
8a2fc586 AK |
16080 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16081 | yes:no: ) | |
ec6a6fbe AK |
16082 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16083 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16084 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16085 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16086 | ac_header_preproc=yes |
ad6254c5 | 16087 | ;; |
8a2fc586 | 16088 | no:yes:* ) |
ec6a6fbe AK |
16089 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16090 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16091 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16092 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16093 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16094 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16095 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16096 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16097 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16098 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16099 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16100 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16101 | |
ad6254c5 AK |
16102 | ;; |
16103 | esac | |
ec6a6fbe AK |
16104 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16105 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16106 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16107 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16108 | else |
8a2fc586 | 16109 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 16110 | fi |
ec6a6fbe AK |
16111 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16112 | $as_echo "$as_val"'` | |
16113 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16114 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16115 | |
16116 | fi | |
ec6a6fbe AK |
16117 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16118 | $as_echo "$as_val"'` | |
16119 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16120 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16121 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16122 | _ACEOF |
16123 | ||
16124 | else | |
ec6a6fbe AK |
16125 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16126 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
16127 | { (exit 1); exit 1; }; } |
16128 | fi | |
16129 | ||
16130 | done | |
16131 | ||
16132 | fi | |
16133 | ||
5c7fc7c4 | 16134 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
16135 | |
16136 | ||
16137 | ||
16138 | ||
16139 | ||
16140 | ||
16141 | ||
16142 | ||
16143 | ||
16144 | ||
16145 | 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 | |
16146 | do | |
ec6a6fbe | 16147 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 16148 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
16149 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16150 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16151 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16152 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16153 | fi |
ec6a6fbe AK |
16154 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16155 | $as_echo "$as_val"'` | |
16156 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16157 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16158 | else |
16159 | # Is the header compilable? | |
ec6a6fbe AK |
16160 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16161 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 16162 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16163 | /* confdefs.h. */ |
16164 | _ACEOF | |
16165 | cat confdefs.h >>conftest.$ac_ext | |
16166 | cat >>conftest.$ac_ext <<_ACEOF | |
16167 | /* end confdefs.h. */ | |
16168 | $ac_includes_default | |
16169 | #include <$ac_header> | |
16170 | _ACEOF | |
16171 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16172 | if { (ac_try="$ac_compile" |
16173 | case "(($ac_try" in | |
16174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16175 | *) ac_try_echo=$ac_try;; | |
16176 | esac | |
ec6a6fbe AK |
16177 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16178 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16179 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16180 | ac_status=$? |
8a2fc586 AK |
16181 | grep -v '^ *+' conftest.er1 >conftest.err |
16182 | rm -f conftest.er1 | |
16183 | cat conftest.err >&5 | |
ec6a6fbe | 16184 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16185 | (exit $ac_status); } && { |
16186 | test -z "$ac_c_werror_flag" || | |
16187 | test ! -s conftest.err | |
16188 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
16189 | ac_header_compiler=yes |
16190 | else | |
ec6a6fbe | 16191 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16192 | sed 's/^/| /' conftest.$ac_ext >&5 |
16193 | ||
7a197a62 | 16194 | ac_header_compiler=no |
ad6254c5 | 16195 | fi |
7a197a62 AK |
16196 | |
16197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16198 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16199 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16200 | |
16201 | # Is the header present? | |
ec6a6fbe AK |
16202 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16203 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16204 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16205 | /* confdefs.h. */ |
16206 | _ACEOF | |
16207 | cat confdefs.h >>conftest.$ac_ext | |
16208 | cat >>conftest.$ac_ext <<_ACEOF | |
16209 | /* end confdefs.h. */ | |
16210 | #include <$ac_header> | |
16211 | _ACEOF | |
7a197a62 AK |
16212 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16213 | case "(($ac_try" in | |
16214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16215 | *) ac_try_echo=$ac_try;; | |
16216 | esac | |
ec6a6fbe AK |
16217 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16218 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16219 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16220 | ac_status=$? |
16221 | grep -v '^ *+' conftest.er1 >conftest.err | |
16222 | rm -f conftest.er1 | |
16223 | cat conftest.err >&5 | |
ec6a6fbe | 16224 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16225 | (exit $ac_status); } >/dev/null && { |
16226 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16227 | test ! -s conftest.err | |
16228 | }; then | |
ad6254c5 AK |
16229 | ac_header_preproc=yes |
16230 | else | |
ec6a6fbe | 16231 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16232 | sed 's/^/| /' conftest.$ac_ext >&5 |
16233 | ||
16234 | ac_header_preproc=no | |
16235 | fi | |
7a197a62 | 16236 | |
ad6254c5 | 16237 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16238 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16239 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16240 | |
16241 | # So? What about this header? | |
8a2fc586 AK |
16242 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16243 | yes:no: ) | |
ec6a6fbe AK |
16244 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16245 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16246 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16247 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16248 | ac_header_preproc=yes |
ad6254c5 | 16249 | ;; |
8a2fc586 | 16250 | no:yes:* ) |
ec6a6fbe AK |
16251 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16252 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16253 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16254 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16255 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16256 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16257 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16258 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16259 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16260 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16261 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16262 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16263 | |
ad6254c5 AK |
16264 | ;; |
16265 | esac | |
ec6a6fbe AK |
16266 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16267 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16268 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16269 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16270 | else |
8a2fc586 | 16271 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 16272 | fi |
ec6a6fbe AK |
16273 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16274 | $as_echo "$as_val"'` | |
16275 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16276 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16277 | |
16278 | fi | |
ec6a6fbe AK |
16279 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16280 | $as_echo "$as_val"'` | |
16281 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16282 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16283 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16284 | _ACEOF |
16285 | ||
16286 | else | |
ec6a6fbe AK |
16287 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16288 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 16289 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
16290 | fi |
16291 | ||
ad6254c5 AK |
16292 | done |
16293 | ||
16294 | ||
795ca3e5 | 16295 | |
8106cdd5 | 16296 | |
ad6254c5 AK |
16297 | |
16298 | ||
16299 | for ac_func in dup2 getmntent memmove select socket | |
16300 | do | |
ec6a6fbe AK |
16301 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16302 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16303 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 16304 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16305 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 16306 | else |
ad6254c5 | 16307 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16308 | /* confdefs.h. */ |
16309 | _ACEOF | |
16310 | cat confdefs.h >>conftest.$ac_ext | |
16311 | cat >>conftest.$ac_ext <<_ACEOF | |
16312 | /* end confdefs.h. */ | |
8a2fc586 AK |
16313 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16314 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16315 | #define $ac_func innocuous_$ac_func | |
16316 | ||
795ca3e5 | 16317 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
16318 | which can conflict with char $ac_func (); below. |
16319 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16320 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 16321 | |
ad6254c5 AK |
16322 | #ifdef __STDC__ |
16323 | # include <limits.h> | |
16324 | #else | |
16325 | # include <assert.h> | |
16326 | #endif | |
8a2fc586 AK |
16327 | |
16328 | #undef $ac_func | |
16329 | ||
7a197a62 AK |
16330 | /* Override any GCC internal prototype to avoid an error. |
16331 | Use char because int might match the return type of a GCC | |
16332 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
16333 | #ifdef __cplusplus |
16334 | extern "C" | |
ad6254c5 | 16335 | #endif |
ad6254c5 | 16336 | char $ac_func (); |
795ca3e5 AK |
16337 | /* The GNU C library defines this for functions which it implements |
16338 | to always fail with ENOSYS. Some functions are actually named | |
16339 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 16340 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 16341 | choke me |
795ca3e5 AK |
16342 | #endif |
16343 | ||
ad6254c5 AK |
16344 | int |
16345 | main () | |
16346 | { | |
7a197a62 | 16347 | return $ac_func (); |
ad6254c5 AK |
16348 | ; |
16349 | return 0; | |
16350 | } | |
16351 | _ACEOF | |
16352 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
16353 | if { (ac_try="$ac_link" |
16354 | case "(($ac_try" in | |
16355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16356 | *) ac_try_echo=$ac_try;; | |
16357 | esac | |
ec6a6fbe AK |
16358 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16359 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16360 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 16361 | ac_status=$? |
8a2fc586 AK |
16362 | grep -v '^ *+' conftest.er1 >conftest.err |
16363 | rm -f conftest.er1 | |
16364 | cat conftest.err >&5 | |
ec6a6fbe | 16365 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16366 | (exit $ac_status); } && { |
16367 | test -z "$ac_c_werror_flag" || | |
16368 | test ! -s conftest.err | |
ec6a6fbe AK |
16369 | } && test -s conftest$ac_exeext && { |
16370 | test "$cross_compiling" = yes || | |
16371 | $as_test_x conftest$ac_exeext | |
16372 | }; then | |
ad6254c5 | 16373 | eval "$as_ac_var=yes" |
795ca3e5 | 16374 | else |
ec6a6fbe | 16375 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16376 | sed 's/^/| /' conftest.$ac_ext >&5 |
16377 | ||
7a197a62 | 16378 | eval "$as_ac_var=no" |
80992638 | 16379 | fi |
7a197a62 | 16380 | |
ec6a6fbe | 16381 | rm -rf conftest.dSYM |
25fbec5b | 16382 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 16383 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 16384 | fi |
ec6a6fbe AK |
16385 | ac_res=`eval 'as_val=${'$as_ac_var'} |
16386 | $as_echo "$as_val"'` | |
16387 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16388 | $as_echo "$ac_res" >&6; } | |
16389 | as_val=`eval 'as_val=${'$as_ac_var'} | |
16390 | $as_echo "$as_val"'` | |
16391 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16392 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16393 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 16394 | _ACEOF |
80992638 AK |
16395 | |
16396 | else | |
ec6a6fbe AK |
16397 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16398 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 16399 | { (exit 1); exit 1; }; } |
8106cdd5 | 16400 | fi |
ad6254c5 | 16401 | done |
795ca3e5 | 16402 | |
25fbec5b AK |
16403 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
16404 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
ec6a6fbe AK |
16405 | { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
16406 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
25fbec5b | 16407 | if test "${ac_cv_search_getmntent+set}" = set; then |
ec6a6fbe | 16408 | $as_echo_n "(cached) " >&6 |
25fbec5b AK |
16409 | else |
16410 | ac_func_search_save_LIBS=$LIBS | |
16411 | cat >conftest.$ac_ext <<_ACEOF | |
16412 | /* confdefs.h. */ | |
16413 | _ACEOF | |
16414 | cat confdefs.h >>conftest.$ac_ext | |
16415 | cat >>conftest.$ac_ext <<_ACEOF | |
16416 | /* end confdefs.h. */ | |
80992638 | 16417 | |
7a197a62 AK |
16418 | /* Override any GCC internal prototype to avoid an error. |
16419 | Use char because int might match the return type of a GCC | |
ad6254c5 | 16420 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
16421 | #ifdef __cplusplus |
16422 | extern "C" | |
16423 | #endif | |
25fbec5b | 16424 | char getmntent (); |
ad6254c5 AK |
16425 | int |
16426 | main () | |
16427 | { | |
25fbec5b | 16428 | return getmntent (); |
ad6254c5 AK |
16429 | ; |
16430 | return 0; | |
16431 | } | |
16432 | _ACEOF | |
25fbec5b AK |
16433 | for ac_lib in '' sun seq gen; do |
16434 | if test -z "$ac_lib"; then | |
16435 | ac_res="none required" | |
16436 | else | |
16437 | ac_res=-l$ac_lib | |
16438 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
16439 | fi | |
16440 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
16441 | if { (ac_try="$ac_link" |
16442 | case "(($ac_try" in | |
16443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16444 | *) ac_try_echo=$ac_try;; | |
16445 | esac | |
ec6a6fbe AK |
16446 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16447 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16448 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 16449 | ac_status=$? |
8a2fc586 AK |
16450 | grep -v '^ *+' conftest.er1 >conftest.err |
16451 | rm -f conftest.er1 | |
16452 | cat conftest.err >&5 | |
ec6a6fbe | 16453 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16454 | (exit $ac_status); } && { |
16455 | test -z "$ac_c_werror_flag" || | |
16456 | test ! -s conftest.err | |
ec6a6fbe AK |
16457 | } && test -s conftest$ac_exeext && { |
16458 | test "$cross_compiling" = yes || | |
16459 | $as_test_x conftest$ac_exeext | |
16460 | }; then | |
25fbec5b | 16461 | ac_cv_search_getmntent=$ac_res |
80992638 | 16462 | else |
ec6a6fbe | 16463 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16464 | sed 's/^/| /' conftest.$ac_ext >&5 |
16465 | ||
25fbec5b | 16466 | |
795ca3e5 AK |
16467 | fi |
16468 | ||
ec6a6fbe | 16469 | rm -rf conftest.dSYM |
25fbec5b AK |
16470 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
16471 | conftest$ac_exeext | |
16472 | if test "${ac_cv_search_getmntent+set}" = set; then | |
16473 | break | |
795ca3e5 | 16474 | fi |
25fbec5b AK |
16475 | done |
16476 | if test "${ac_cv_search_getmntent+set}" = set; then | |
16477 | : | |
16478 | else | |
16479 | ac_cv_search_getmntent=no | |
16480 | fi | |
16481 | rm conftest.$ac_ext | |
16482 | LIBS=$ac_func_search_save_LIBS | |
16483 | fi | |
ec6a6fbe AK |
16484 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
16485 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
16486 | ac_res=$ac_cv_search_getmntent |
16487 | if test "$ac_res" != no; then | |
16488 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
16489 | ac_cv_func_getmntent=yes | |
16490 | ||
16491 | cat >>confdefs.h <<\_ACEOF | |
9c961554 | 16492 | #define HAVE_GETMNTENT 1 |
ad6254c5 | 16493 | _ACEOF |
795ca3e5 | 16494 | |
25fbec5b AK |
16495 | else |
16496 | ac_cv_func_getmntent=no | |
795ca3e5 | 16497 | fi |
795ca3e5 AK |
16498 | |
16499 | ||
ad6254c5 AK |
16500 | |
16501 | ||
16502 | for ac_header in sys/select.h sys/socket.h | |
16503 | do | |
ec6a6fbe | 16504 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 16505 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
16506 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16507 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16508 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16509 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16510 | fi |
ec6a6fbe AK |
16511 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16512 | $as_echo "$as_val"'` | |
16513 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16514 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 16515 | else |
ad6254c5 | 16516 | # Is the header compilable? |
ec6a6fbe AK |
16517 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16518 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 16519 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16520 | /* confdefs.h. */ |
16521 | _ACEOF | |
16522 | cat confdefs.h >>conftest.$ac_ext | |
16523 | cat >>conftest.$ac_ext <<_ACEOF | |
16524 | /* end confdefs.h. */ | |
16525 | $ac_includes_default | |
16526 | #include <$ac_header> | |
16527 | _ACEOF | |
16528 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16529 | if { (ac_try="$ac_compile" |
16530 | case "(($ac_try" in | |
16531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16532 | *) ac_try_echo=$ac_try;; | |
16533 | esac | |
ec6a6fbe AK |
16534 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16535 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16536 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16537 | ac_status=$? |
8a2fc586 AK |
16538 | grep -v '^ *+' conftest.er1 >conftest.err |
16539 | rm -f conftest.er1 | |
16540 | cat conftest.err >&5 | |
ec6a6fbe | 16541 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16542 | (exit $ac_status); } && { |
16543 | test -z "$ac_c_werror_flag" || | |
16544 | test ! -s conftest.err | |
16545 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 16546 | ac_header_compiler=yes |
80992638 | 16547 | else |
ec6a6fbe | 16548 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16549 | sed 's/^/| /' conftest.$ac_ext >&5 |
16550 | ||
7a197a62 | 16551 | ac_header_compiler=no |
ad6254c5 | 16552 | fi |
7a197a62 AK |
16553 | |
16554 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16555 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16556 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16557 | |
16558 | # Is the header present? | |
ec6a6fbe AK |
16559 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16560 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16561 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16562 | /* confdefs.h. */ |
16563 | _ACEOF | |
16564 | cat confdefs.h >>conftest.$ac_ext | |
16565 | cat >>conftest.$ac_ext <<_ACEOF | |
16566 | /* end confdefs.h. */ | |
16567 | #include <$ac_header> | |
16568 | _ACEOF | |
7a197a62 AK |
16569 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16570 | case "(($ac_try" in | |
16571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16572 | *) ac_try_echo=$ac_try;; | |
16573 | esac | |
ec6a6fbe AK |
16574 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16575 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16576 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16577 | ac_status=$? |
16578 | grep -v '^ *+' conftest.er1 >conftest.err | |
16579 | rm -f conftest.er1 | |
16580 | cat conftest.err >&5 | |
ec6a6fbe | 16581 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16582 | (exit $ac_status); } >/dev/null && { |
16583 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16584 | test ! -s conftest.err | |
16585 | }; then | |
ad6254c5 AK |
16586 | ac_header_preproc=yes |
16587 | else | |
ec6a6fbe | 16588 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16589 | sed 's/^/| /' conftest.$ac_ext >&5 |
16590 | ||
16591 | ac_header_preproc=no | |
16592 | fi | |
7a197a62 | 16593 | |
ad6254c5 | 16594 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16595 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16596 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16597 | |
16598 | # So? What about this header? | |
8a2fc586 AK |
16599 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16600 | yes:no: ) | |
ec6a6fbe AK |
16601 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16602 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16603 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16604 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16605 | ac_header_preproc=yes |
ad6254c5 | 16606 | ;; |
8a2fc586 | 16607 | no:yes:* ) |
ec6a6fbe AK |
16608 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16609 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16610 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16611 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16612 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16613 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16614 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16615 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16616 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16617 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16618 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16619 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16620 | |
ad6254c5 AK |
16621 | ;; |
16622 | esac | |
ec6a6fbe AK |
16623 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16624 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16625 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16626 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16627 | else |
8a2fc586 | 16628 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 16629 | fi |
ec6a6fbe AK |
16630 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16631 | $as_echo "$as_val"'` | |
16632 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16633 | $as_echo "$ac_res" >&6; } | |
8106cdd5 | 16634 | |
795ca3e5 | 16635 | fi |
ec6a6fbe AK |
16636 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16637 | $as_echo "$as_val"'` | |
16638 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16639 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16640 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16641 | _ACEOF |
16642 | ||
795ca3e5 AK |
16643 | fi |
16644 | ||
ad6254c5 AK |
16645 | done |
16646 | ||
ec6a6fbe AK |
16647 | { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
16648 | $as_echo_n "checking types of arguments for select... " >&6; } | |
ad6254c5 | 16649 | if test "${ac_cv_func_select_args+set}" = set; then |
ec6a6fbe | 16650 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 16651 | else |
ad6254c5 | 16652 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 16653 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
16654 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
16655 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
16656 | /* confdefs.h. */ |
16657 | _ACEOF | |
16658 | cat confdefs.h >>conftest.$ac_ext | |
16659 | cat >>conftest.$ac_ext <<_ACEOF | |
16660 | /* end confdefs.h. */ | |
16661 | $ac_includes_default | |
25fbec5b | 16662 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
16663 | # include <sys/select.h> |
16664 | #endif | |
25fbec5b | 16665 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
16666 | # include <sys/socket.h> |
16667 | #endif | |
16668 | ||
16669 | int | |
16670 | main () | |
16671 | { | |
16672 | extern int select ($ac_arg1, | |
8a2fc586 AK |
16673 | $ac_arg234, $ac_arg234, $ac_arg234, |
16674 | $ac_arg5); | |
ad6254c5 AK |
16675 | ; |
16676 | return 0; | |
16677 | } | |
16678 | _ACEOF | |
16679 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16680 | if { (ac_try="$ac_compile" |
16681 | case "(($ac_try" in | |
16682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16683 | *) ac_try_echo=$ac_try;; | |
16684 | esac | |
ec6a6fbe AK |
16685 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16686 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16687 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16688 | ac_status=$? |
8a2fc586 AK |
16689 | grep -v '^ *+' conftest.er1 >conftest.err |
16690 | rm -f conftest.er1 | |
16691 | cat conftest.err >&5 | |
ec6a6fbe | 16692 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16693 | (exit $ac_status); } && { |
16694 | test -z "$ac_c_werror_flag" || | |
16695 | test ! -s conftest.err | |
16696 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
16697 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
16698 | else | |
ec6a6fbe | 16699 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16700 | sed 's/^/| /' conftest.$ac_ext >&5 |
16701 | ||
7a197a62 | 16702 | |
ad6254c5 | 16703 | fi |
7a197a62 AK |
16704 | |
16705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
16706 | done |
16707 | done | |
16708 | done | |
16709 | # Provide a safe default value. | |
16710 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
16711 | ||
26e7f2e0 | 16712 | fi |
ec6a6fbe AK |
16713 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
16714 | $as_echo "$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
16715 | ac_save_IFS=$IFS; IFS=',' |
16716 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
16717 | IFS=$ac_save_IFS | |
16718 | shift | |
16719 | ||
16720 | cat >>confdefs.h <<_ACEOF | |
16721 | #define SELECT_TYPE_ARG1 $1 | |
16722 | _ACEOF | |
16723 | ||
16724 | ||
16725 | cat >>confdefs.h <<_ACEOF | |
16726 | #define SELECT_TYPE_ARG234 ($2) | |
16727 | _ACEOF | |
16728 | ||
16729 | ||
16730 | cat >>confdefs.h <<_ACEOF | |
16731 | #define SELECT_TYPE_ARG5 ($3) | |
16732 | _ACEOF | |
16733 | ||
80992638 | 16734 | rm -f conftest* |
80992638 | 16735 | |
8106cdd5 | 16736 | fi |
ad6254c5 | 16737 | |
ad6254c5 AK |
16738 | if test x$CLUSTER != xnone; then |
16739 | ||
16740 | ||
16741 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 16742 | do |
ec6a6fbe | 16743 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 16744 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
16745 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16746 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16747 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16748 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16749 | fi |
ec6a6fbe AK |
16750 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16751 | $as_echo "$as_val"'` | |
16752 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16753 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16754 | else |
16755 | # Is the header compilable? | |
ec6a6fbe AK |
16756 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16757 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 16758 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16759 | /* confdefs.h. */ |
16760 | _ACEOF | |
16761 | cat confdefs.h >>conftest.$ac_ext | |
16762 | cat >>conftest.$ac_ext <<_ACEOF | |
16763 | /* end confdefs.h. */ | |
16764 | $ac_includes_default | |
16765 | #include <$ac_header> | |
16766 | _ACEOF | |
16767 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16768 | if { (ac_try="$ac_compile" |
16769 | case "(($ac_try" in | |
16770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16771 | *) ac_try_echo=$ac_try;; | |
16772 | esac | |
ec6a6fbe AK |
16773 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16774 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16775 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16776 | ac_status=$? |
8a2fc586 AK |
16777 | grep -v '^ *+' conftest.er1 >conftest.err |
16778 | rm -f conftest.er1 | |
16779 | cat conftest.err >&5 | |
ec6a6fbe | 16780 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16781 | (exit $ac_status); } && { |
16782 | test -z "$ac_c_werror_flag" || | |
16783 | test ! -s conftest.err | |
16784 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
16785 | ac_header_compiler=yes |
16786 | else | |
ec6a6fbe | 16787 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16788 | sed 's/^/| /' conftest.$ac_ext >&5 |
16789 | ||
7a197a62 | 16790 | ac_header_compiler=no |
ad6254c5 | 16791 | fi |
7a197a62 AK |
16792 | |
16793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16794 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16795 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16796 | |
16797 | # Is the header present? | |
ec6a6fbe AK |
16798 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16799 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16800 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16801 | /* confdefs.h. */ |
16802 | _ACEOF | |
16803 | cat confdefs.h >>conftest.$ac_ext | |
16804 | cat >>conftest.$ac_ext <<_ACEOF | |
16805 | /* end confdefs.h. */ | |
16806 | #include <$ac_header> | |
16807 | _ACEOF | |
7a197a62 AK |
16808 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16809 | case "(($ac_try" in | |
16810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16811 | *) ac_try_echo=$ac_try;; | |
16812 | esac | |
ec6a6fbe AK |
16813 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16814 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16815 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16816 | ac_status=$? |
16817 | grep -v '^ *+' conftest.er1 >conftest.err | |
16818 | rm -f conftest.er1 | |
16819 | cat conftest.err >&5 | |
ec6a6fbe | 16820 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16821 | (exit $ac_status); } >/dev/null && { |
16822 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16823 | test ! -s conftest.err | |
16824 | }; then | |
ad6254c5 AK |
16825 | ac_header_preproc=yes |
16826 | else | |
ec6a6fbe | 16827 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16828 | sed 's/^/| /' conftest.$ac_ext >&5 |
16829 | ||
16830 | ac_header_preproc=no | |
16831 | fi | |
7a197a62 | 16832 | |
ad6254c5 | 16833 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16834 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16835 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16836 | |
16837 | # So? What about this header? | |
8a2fc586 AK |
16838 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16839 | yes:no: ) | |
ec6a6fbe AK |
16840 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16841 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16842 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16843 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16844 | ac_header_preproc=yes |
ad6254c5 | 16845 | ;; |
8a2fc586 | 16846 | no:yes:* ) |
ec6a6fbe AK |
16847 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16848 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16849 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16850 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16851 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16852 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16853 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16854 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16855 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16856 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16857 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16858 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16859 | |
ad6254c5 AK |
16860 | ;; |
16861 | esac | |
ec6a6fbe AK |
16862 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16863 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16864 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16865 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16866 | else |
8a2fc586 | 16867 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 16868 | fi |
ec6a6fbe AK |
16869 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16870 | $as_echo "$as_val"'` | |
16871 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16872 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16873 | |
16874 | fi | |
ec6a6fbe AK |
16875 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16876 | $as_echo "$as_val"'` | |
16877 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16878 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16879 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16880 | _ACEOF |
16881 | ||
80992638 | 16882 | else |
ec6a6fbe AK |
16883 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16884 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 16885 | { (exit 1); exit 1; }; } |
b896caa1 | 16886 | fi |
ad6254c5 | 16887 | |
b896caa1 AK |
16888 | done |
16889 | ||
16890 | ||
ad6254c5 AK |
16891 | for ac_func in socket |
16892 | do | |
ec6a6fbe AK |
16893 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16894 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16895 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 16896 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16897 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 16898 | else |
ad6254c5 | 16899 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16900 | /* confdefs.h. */ |
16901 | _ACEOF | |
16902 | cat confdefs.h >>conftest.$ac_ext | |
16903 | cat >>conftest.$ac_ext <<_ACEOF | |
16904 | /* end confdefs.h. */ | |
8a2fc586 AK |
16905 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16906 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16907 | #define $ac_func innocuous_$ac_func | |
16908 | ||
ad6254c5 AK |
16909 | /* System header to define __stub macros and hopefully few prototypes, |
16910 | which can conflict with char $ac_func (); below. | |
16911 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16912 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 16913 | |
ad6254c5 AK |
16914 | #ifdef __STDC__ |
16915 | # include <limits.h> | |
16916 | #else | |
16917 | # include <assert.h> | |
16918 | #endif | |
8a2fc586 AK |
16919 | |
16920 | #undef $ac_func | |
16921 | ||
7a197a62 AK |
16922 | /* Override any GCC internal prototype to avoid an error. |
16923 | Use char because int might match the return type of a GCC | |
16924 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
16925 | #ifdef __cplusplus |
16926 | extern "C" | |
ad6254c5 | 16927 | #endif |
ad6254c5 AK |
16928 | char $ac_func (); |
16929 | /* The GNU C library defines this for functions which it implements | |
16930 | to always fail with ENOSYS. Some functions are actually named | |
16931 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 16932 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 16933 | choke me |
ad6254c5 AK |
16934 | #endif |
16935 | ||
16936 | int | |
16937 | main () | |
16938 | { | |
7a197a62 | 16939 | return $ac_func (); |
ad6254c5 AK |
16940 | ; |
16941 | return 0; | |
16942 | } | |
16943 | _ACEOF | |
16944 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
16945 | if { (ac_try="$ac_link" |
16946 | case "(($ac_try" in | |
16947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16948 | *) ac_try_echo=$ac_try;; | |
16949 | esac | |
ec6a6fbe AK |
16950 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16951 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16952 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 16953 | ac_status=$? |
8a2fc586 AK |
16954 | grep -v '^ *+' conftest.er1 >conftest.err |
16955 | rm -f conftest.er1 | |
16956 | cat conftest.err >&5 | |
ec6a6fbe | 16957 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16958 | (exit $ac_status); } && { |
16959 | test -z "$ac_c_werror_flag" || | |
16960 | test ! -s conftest.err | |
ec6a6fbe AK |
16961 | } && test -s conftest$ac_exeext && { |
16962 | test "$cross_compiling" = yes || | |
16963 | $as_test_x conftest$ac_exeext | |
16964 | }; then | |
ad6254c5 AK |
16965 | eval "$as_ac_var=yes" |
16966 | else | |
ec6a6fbe | 16967 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16968 | sed 's/^/| /' conftest.$ac_ext >&5 |
16969 | ||
7a197a62 | 16970 | eval "$as_ac_var=no" |
ad6254c5 | 16971 | fi |
7a197a62 | 16972 | |
ec6a6fbe | 16973 | rm -rf conftest.dSYM |
25fbec5b | 16974 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 16975 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 16976 | fi |
ec6a6fbe AK |
16977 | ac_res=`eval 'as_val=${'$as_ac_var'} |
16978 | $as_echo "$as_val"'` | |
16979 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16980 | $as_echo "$ac_res" >&6; } | |
16981 | as_val=`eval 'as_val=${'$as_ac_var'} | |
16982 | $as_echo "$as_val"'` | |
16983 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16984 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16985 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
16986 | _ACEOF |
16987 | ||
16988 | else | |
ec6a6fbe AK |
16989 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16990 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
16991 | { (exit 1); exit 1; }; } |
16992 | fi | |
16993 | done | |
16994 | ||
16995 | fi | |
16996 | ||
d911ec67 AK |
16997 | if test x$DMEVENTD = xyes; then |
16998 | ||
16999 | for ac_header in arpa/inet.h | |
17000 | do | |
17001 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17002 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17003 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17004 | $as_echo_n "checking for $ac_header... " >&6; } | |
17005 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17006 | $as_echo_n "(cached) " >&6 | |
17007 | fi | |
17008 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17009 | $as_echo "$as_val"'` | |
17010 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17011 | $as_echo "$ac_res" >&6; } | |
17012 | else | |
17013 | # Is the header compilable? | |
17014 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17015 | $as_echo_n "checking $ac_header usability... " >&6; } | |
17016 | cat >conftest.$ac_ext <<_ACEOF | |
17017 | /* confdefs.h. */ | |
17018 | _ACEOF | |
17019 | cat confdefs.h >>conftest.$ac_ext | |
17020 | cat >>conftest.$ac_ext <<_ACEOF | |
17021 | /* end confdefs.h. */ | |
17022 | $ac_includes_default | |
17023 | #include <$ac_header> | |
17024 | _ACEOF | |
17025 | rm -f conftest.$ac_objext | |
17026 | if { (ac_try="$ac_compile" | |
17027 | case "(($ac_try" in | |
17028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17029 | *) ac_try_echo=$ac_try;; | |
17030 | esac | |
17031 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17032 | $as_echo "$ac_try_echo") >&5 | |
17033 | (eval "$ac_compile") 2>conftest.er1 | |
17034 | ac_status=$? | |
17035 | grep -v '^ *+' conftest.er1 >conftest.err | |
17036 | rm -f conftest.er1 | |
17037 | cat conftest.err >&5 | |
17038 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17039 | (exit $ac_status); } && { | |
17040 | test -z "$ac_c_werror_flag" || | |
17041 | test ! -s conftest.err | |
17042 | } && test -s conftest.$ac_objext; then | |
17043 | ac_header_compiler=yes | |
17044 | else | |
17045 | $as_echo "$as_me: failed program was:" >&5 | |
17046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17047 | ||
17048 | ac_header_compiler=no | |
17049 | fi | |
17050 | ||
17051 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17052 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17053 | $as_echo "$ac_header_compiler" >&6; } | |
17054 | ||
17055 | # Is the header present? | |
17056 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17057 | $as_echo_n "checking $ac_header presence... " >&6; } | |
17058 | cat >conftest.$ac_ext <<_ACEOF | |
17059 | /* confdefs.h. */ | |
17060 | _ACEOF | |
17061 | cat confdefs.h >>conftest.$ac_ext | |
17062 | cat >>conftest.$ac_ext <<_ACEOF | |
17063 | /* end confdefs.h. */ | |
17064 | #include <$ac_header> | |
17065 | _ACEOF | |
17066 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
17067 | case "(($ac_try" in | |
17068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17069 | *) ac_try_echo=$ac_try;; | |
17070 | esac | |
17071 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17072 | $as_echo "$ac_try_echo") >&5 | |
17073 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
17074 | ac_status=$? | |
17075 | grep -v '^ *+' conftest.er1 >conftest.err | |
17076 | rm -f conftest.er1 | |
17077 | cat conftest.err >&5 | |
17078 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17079 | (exit $ac_status); } >/dev/null && { | |
17080 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17081 | test ! -s conftest.err | |
17082 | }; then | |
17083 | ac_header_preproc=yes | |
17084 | else | |
17085 | $as_echo "$as_me: failed program was:" >&5 | |
17086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17087 | ||
17088 | ac_header_preproc=no | |
17089 | fi | |
17090 | ||
17091 | rm -f conftest.err conftest.$ac_ext | |
17092 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17093 | $as_echo "$ac_header_preproc" >&6; } | |
17094 | ||
17095 | # So? What about this header? | |
17096 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17097 | yes:no: ) | |
17098 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17099 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17100 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17101 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17102 | ac_header_preproc=yes | |
17103 | ;; | |
17104 | no:yes:* ) | |
17105 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17106 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17107 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17108 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17109 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17110 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17111 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17112 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17113 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17114 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17115 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17116 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17117 | ||
17118 | ;; | |
17119 | esac | |
17120 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17121 | $as_echo_n "checking for $ac_header... " >&6; } | |
17122 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17123 | $as_echo_n "(cached) " >&6 | |
17124 | else | |
17125 | eval "$as_ac_Header=\$ac_header_preproc" | |
17126 | fi | |
17127 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17128 | $as_echo "$as_val"'` | |
17129 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17130 | $as_echo "$ac_res" >&6; } | |
17131 | ||
17132 | fi | |
17133 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
17134 | $as_echo "$as_val"'` | |
17135 | if test "x$as_val" = x""yes; then | |
17136 | cat >>confdefs.h <<_ACEOF | |
17137 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17138 | _ACEOF | |
17139 | ||
17140 | else | |
17141 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
17142 | $as_echo "$as_me: error: bailing out" >&2;} | |
17143 | { (exit 1); exit 1; }; } | |
17144 | fi | |
17145 | ||
17146 | done | |
17147 | ||
17148 | fi | |
17149 | ||
ad6254c5 AK |
17150 | if test x$HAVE_LIBDL = xyes; then |
17151 | ||
17152 | for ac_header in dlfcn.h | |
17153 | do | |
ec6a6fbe | 17154 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 17155 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
17156 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17157 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17158 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17159 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17160 | fi |
ec6a6fbe AK |
17161 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17162 | $as_echo "$as_val"'` | |
17163 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17164 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
17165 | else |
17166 | # Is the header compilable? | |
ec6a6fbe AK |
17167 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
17168 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 17169 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17170 | /* confdefs.h. */ |
17171 | _ACEOF | |
17172 | cat confdefs.h >>conftest.$ac_ext | |
17173 | cat >>conftest.$ac_ext <<_ACEOF | |
17174 | /* end confdefs.h. */ | |
17175 | $ac_includes_default | |
17176 | #include <$ac_header> | |
17177 | _ACEOF | |
17178 | rm -f conftest.$ac_objext | |
7a197a62 AK |
17179 | if { (ac_try="$ac_compile" |
17180 | case "(($ac_try" in | |
17181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17182 | *) ac_try_echo=$ac_try;; | |
17183 | esac | |
ec6a6fbe AK |
17184 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17185 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17186 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 17187 | ac_status=$? |
8a2fc586 AK |
17188 | grep -v '^ *+' conftest.er1 >conftest.err |
17189 | rm -f conftest.er1 | |
17190 | cat conftest.err >&5 | |
ec6a6fbe | 17191 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17192 | (exit $ac_status); } && { |
17193 | test -z "$ac_c_werror_flag" || | |
17194 | test ! -s conftest.err | |
17195 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
17196 | ac_header_compiler=yes |
17197 | else | |
ec6a6fbe | 17198 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17199 | sed 's/^/| /' conftest.$ac_ext >&5 |
17200 | ||
7a197a62 | 17201 | ac_header_compiler=no |
ad6254c5 | 17202 | fi |
7a197a62 AK |
17203 | |
17204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
17205 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17206 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
17207 | |
17208 | # Is the header present? | |
ec6a6fbe AK |
17209 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
17210 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 17211 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17212 | /* confdefs.h. */ |
17213 | _ACEOF | |
17214 | cat confdefs.h >>conftest.$ac_ext | |
17215 | cat >>conftest.$ac_ext <<_ACEOF | |
17216 | /* end confdefs.h. */ | |
17217 | #include <$ac_header> | |
17218 | _ACEOF | |
7a197a62 AK |
17219 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17220 | case "(($ac_try" in | |
17221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17222 | *) ac_try_echo=$ac_try;; | |
17223 | esac | |
ec6a6fbe AK |
17224 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17225 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17226 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
17227 | ac_status=$? |
17228 | grep -v '^ *+' conftest.er1 >conftest.err | |
17229 | rm -f conftest.er1 | |
17230 | cat conftest.err >&5 | |
ec6a6fbe | 17231 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17232 | (exit $ac_status); } >/dev/null && { |
17233 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17234 | test ! -s conftest.err | |
17235 | }; then | |
ad6254c5 AK |
17236 | ac_header_preproc=yes |
17237 | else | |
ec6a6fbe | 17238 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17239 | sed 's/^/| /' conftest.$ac_ext >&5 |
17240 | ||
17241 | ac_header_preproc=no | |
17242 | fi | |
7a197a62 | 17243 | |
ad6254c5 | 17244 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
17245 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17246 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
17247 | |
17248 | # So? What about this header? | |
8a2fc586 AK |
17249 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17250 | yes:no: ) | |
ec6a6fbe AK |
17251 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17252 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17253 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17254 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 17255 | ac_header_preproc=yes |
ad6254c5 | 17256 | ;; |
8a2fc586 | 17257 | no:yes:* ) |
ec6a6fbe AK |
17258 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17259 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17260 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17261 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17262 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17263 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17264 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17265 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17266 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17267 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17268 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17269 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 17270 | |
ad6254c5 AK |
17271 | ;; |
17272 | esac | |
ec6a6fbe AK |
17273 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17274 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17275 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17276 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17277 | else |
8a2fc586 | 17278 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 17279 | fi |
ec6a6fbe AK |
17280 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17281 | $as_echo "$as_val"'` | |
17282 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17283 | $as_echo "$ac_res" >&6; } | |
80992638 | 17284 | |
8106cdd5 | 17285 | fi |
ec6a6fbe AK |
17286 | as_val=`eval 'as_val=${'$as_ac_Header'} |
17287 | $as_echo "$as_val"'` | |
17288 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 17289 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 17290 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 17291 | _ACEOF |
795ca3e5 AK |
17292 | |
17293 | else | |
ec6a6fbe AK |
17294 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
17295 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 17296 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
17297 | fi |
17298 | ||
ad6254c5 | 17299 | done |
80992638 | 17300 | |
ad6254c5 | 17301 | fi |
80992638 | 17302 | |
ad6254c5 | 17303 | if test x$INTL = xyes; then |
83912faa | 17304 | |
ad6254c5 AK |
17305 | for ac_header in libintl.h |
17306 | do | |
ec6a6fbe | 17307 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 17308 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
17309 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17310 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17311 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17312 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17313 | fi |
ec6a6fbe AK |
17314 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17315 | $as_echo "$as_val"'` | |
17316 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17317 | $as_echo "$ac_res" >&6; } | |
83912faa | 17318 | else |
ad6254c5 | 17319 | # Is the header compilable? |
ec6a6fbe AK |
17320 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
17321 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 17322 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17323 | /* confdefs.h. */ |
17324 | _ACEOF | |
17325 | cat confdefs.h >>conftest.$ac_ext | |
17326 | cat >>conftest.$ac_ext <<_ACEOF | |
17327 | /* end confdefs.h. */ | |
17328 | $ac_includes_default | |
17329 | #include <$ac_header> | |
17330 | _ACEOF | |
17331 | rm -f conftest.$ac_objext | |
7a197a62 AK |
17332 | if { (ac_try="$ac_compile" |
17333 | case "(($ac_try" in | |
17334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17335 | *) ac_try_echo=$ac_try;; | |
17336 | esac | |
ec6a6fbe AK |
17337 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17338 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17339 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 17340 | ac_status=$? |
8a2fc586 AK |
17341 | grep -v '^ *+' conftest.er1 >conftest.err |
17342 | rm -f conftest.er1 | |
17343 | cat conftest.err >&5 | |
ec6a6fbe | 17344 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17345 | (exit $ac_status); } && { |
17346 | test -z "$ac_c_werror_flag" || | |
17347 | test ! -s conftest.err | |
17348 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
17349 | ac_header_compiler=yes |
17350 | else | |
ec6a6fbe | 17351 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17352 | sed 's/^/| /' conftest.$ac_ext >&5 |
17353 | ||
7a197a62 | 17354 | ac_header_compiler=no |
ad6254c5 | 17355 | fi |
7a197a62 AK |
17356 | |
17357 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
17358 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17359 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
17360 | |
17361 | # Is the header present? | |
ec6a6fbe AK |
17362 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
17363 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 17364 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17365 | /* confdefs.h. */ |
17366 | _ACEOF | |
17367 | cat confdefs.h >>conftest.$ac_ext | |
17368 | cat >>conftest.$ac_ext <<_ACEOF | |
17369 | /* end confdefs.h. */ | |
17370 | #include <$ac_header> | |
17371 | _ACEOF | |
7a197a62 AK |
17372 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17373 | case "(($ac_try" in | |
17374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17375 | *) ac_try_echo=$ac_try;; | |
17376 | esac | |
ec6a6fbe AK |
17377 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17378 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17379 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
17380 | ac_status=$? |
17381 | grep -v '^ *+' conftest.er1 >conftest.err | |
17382 | rm -f conftest.er1 | |
17383 | cat conftest.err >&5 | |
ec6a6fbe | 17384 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17385 | (exit $ac_status); } >/dev/null && { |
17386 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17387 | test ! -s conftest.err | |
17388 | }; then | |
ad6254c5 AK |
17389 | ac_header_preproc=yes |
17390 | else | |
ec6a6fbe | 17391 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17392 | sed 's/^/| /' conftest.$ac_ext >&5 |
17393 | ||
17394 | ac_header_preproc=no | |
17395 | fi | |
7a197a62 | 17396 | |
ad6254c5 | 17397 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
17398 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17399 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
17400 | |
17401 | # So? What about this header? | |
8a2fc586 AK |
17402 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17403 | yes:no: ) | |
ec6a6fbe AK |
17404 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17405 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17406 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17407 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 17408 | ac_header_preproc=yes |
ad6254c5 | 17409 | ;; |
8a2fc586 | 17410 | no:yes:* ) |
ec6a6fbe AK |
17411 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17412 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17413 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17414 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17415 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17416 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17417 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17418 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17419 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17420 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17421 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17422 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 17423 | |
ad6254c5 AK |
17424 | ;; |
17425 | esac | |
ec6a6fbe AK |
17426 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17427 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17428 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17429 | $as_echo_n "(cached) " >&6 |
80992638 | 17430 | else |
8a2fc586 | 17431 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 17432 | fi |
ec6a6fbe AK |
17433 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17434 | $as_echo "$as_val"'` | |
17435 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17436 | $as_echo "$ac_res" >&6; } | |
83912faa | 17437 | |
69792976 | 17438 | fi |
ec6a6fbe AK |
17439 | as_val=`eval 'as_val=${'$as_ac_Header'} |
17440 | $as_echo "$as_val"'` | |
17441 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 17442 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 17443 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 17444 | _ACEOF |
69792976 | 17445 | |
69792976 | 17446 | else |
ec6a6fbe AK |
17447 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
17448 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 17449 | { (exit 1); exit 1; }; } |
80992638 AK |
17450 | fi |
17451 | ||
ad6254c5 | 17452 | done |
69792976 | 17453 | |
ad6254c5 AK |
17454 | fi |
17455 | ||
a5f46f6a AK |
17456 | if test x$UDEV_SYNC = xyes; then |
17457 | ||
17458 | ||
17459 | for ac_header in sys/ipc.h sys/sem.h | |
17460 | do | |
17461 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17462 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17463 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17464 | $as_echo_n "checking for $ac_header... " >&6; } | |
17465 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17466 | $as_echo_n "(cached) " >&6 | |
17467 | fi | |
17468 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17469 | $as_echo "$as_val"'` | |
17470 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17471 | $as_echo "$ac_res" >&6; } | |
17472 | else | |
17473 | # Is the header compilable? | |
17474 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17475 | $as_echo_n "checking $ac_header usability... " >&6; } | |
17476 | cat >conftest.$ac_ext <<_ACEOF | |
17477 | /* confdefs.h. */ | |
17478 | _ACEOF | |
17479 | cat confdefs.h >>conftest.$ac_ext | |
17480 | cat >>conftest.$ac_ext <<_ACEOF | |
17481 | /* end confdefs.h. */ | |
17482 | $ac_includes_default | |
17483 | #include <$ac_header> | |
17484 | _ACEOF | |
17485 | rm -f conftest.$ac_objext | |
17486 | if { (ac_try="$ac_compile" | |
17487 | case "(($ac_try" in | |
17488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17489 | *) ac_try_echo=$ac_try;; | |
17490 | esac | |
17491 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17492 | $as_echo "$ac_try_echo") >&5 | |
17493 | (eval "$ac_compile") 2>conftest.er1 | |
17494 | ac_status=$? | |
17495 | grep -v '^ *+' conftest.er1 >conftest.err | |
17496 | rm -f conftest.er1 | |
17497 | cat conftest.err >&5 | |
17498 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17499 | (exit $ac_status); } && { | |
17500 | test -z "$ac_c_werror_flag" || | |
17501 | test ! -s conftest.err | |
17502 | } && test -s conftest.$ac_objext; then | |
17503 | ac_header_compiler=yes | |
17504 | else | |
17505 | $as_echo "$as_me: failed program was:" >&5 | |
17506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17507 | ||
17508 | ac_header_compiler=no | |
17509 | fi | |
17510 | ||
17511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17512 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17513 | $as_echo "$ac_header_compiler" >&6; } | |
17514 | ||
17515 | # Is the header present? | |
17516 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17517 | $as_echo_n "checking $ac_header presence... " >&6; } | |
17518 | cat >conftest.$ac_ext <<_ACEOF | |
17519 | /* confdefs.h. */ | |
17520 | _ACEOF | |
17521 | cat confdefs.h >>conftest.$ac_ext | |
17522 | cat >>conftest.$ac_ext <<_ACEOF | |
17523 | /* end confdefs.h. */ | |
17524 | #include <$ac_header> | |
17525 | _ACEOF | |
17526 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
17527 | case "(($ac_try" in | |
17528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17529 | *) ac_try_echo=$ac_try;; | |
17530 | esac | |
17531 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17532 | $as_echo "$ac_try_echo") >&5 | |
17533 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
17534 | ac_status=$? | |
17535 | grep -v '^ *+' conftest.er1 >conftest.err | |
17536 | rm -f conftest.er1 | |
17537 | cat conftest.err >&5 | |
17538 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17539 | (exit $ac_status); } >/dev/null && { | |
17540 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17541 | test ! -s conftest.err | |
17542 | }; then | |
17543 | ac_header_preproc=yes | |
17544 | else | |
17545 | $as_echo "$as_me: failed program was:" >&5 | |
17546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17547 | ||
17548 | ac_header_preproc=no | |
17549 | fi | |
17550 | ||
17551 | rm -f conftest.err conftest.$ac_ext | |
17552 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17553 | $as_echo "$ac_header_preproc" >&6; } | |
17554 | ||
17555 | # So? What about this header? | |
17556 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17557 | yes:no: ) | |
17558 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17559 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17560 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17561 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17562 | ac_header_preproc=yes | |
17563 | ;; | |
17564 | no:yes:* ) | |
17565 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17566 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17567 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17568 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17569 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17570 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17571 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17572 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17573 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17574 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17575 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17576 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17577 | ||
17578 | ;; | |
17579 | esac | |
17580 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17581 | $as_echo_n "checking for $ac_header... " >&6; } | |
17582 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17583 | $as_echo_n "(cached) " >&6 | |
17584 | else | |
17585 | eval "$as_ac_Header=\$ac_header_preproc" | |
17586 | fi | |
17587 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17588 | $as_echo "$as_val"'` | |
17589 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17590 | $as_echo "$ac_res" >&6; } | |
17591 | ||
17592 | fi | |
17593 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
17594 | $as_echo "$as_val"'` | |
17595 | if test "x$as_val" = x""yes; then | |
17596 | cat >>confdefs.h <<_ACEOF | |
17597 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17598 | _ACEOF | |
17599 | ||
17600 | else | |
17601 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
17602 | $as_echo "$as_me: error: bailing out" >&2;} | |
17603 | { (exit 1); exit 1; }; } | |
17604 | fi | |
17605 | ||
17606 | done | |
17607 | ||
17608 | fi | |
17609 | ||
a653923f AK |
17610 | ################################################################################ |
17611 | # Extract the first word of "modprobe", so it can be a program name with args. | |
17612 | set dummy modprobe; ac_word=$2 | |
ec6a6fbe AK |
17613 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
17614 | $as_echo_n "checking for $ac_word... " >&6; } | |
72b2cb61 | 17615 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
ec6a6fbe | 17616 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
17617 | else |
17618 | case $MODPROBE_CMD in | |
17619 | [\\/]* | ?:[\\/]*) | |
17620 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
17621 | ;; | |
17622 | *) | |
17623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17624 | for as_dir in $PATH | |
17625 | do | |
17626 | IFS=$as_save_IFS | |
17627 | test -z "$as_dir" && as_dir=. | |
17628 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 17629 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 17630 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 17631 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
17632 | break 2 |
17633 | fi | |
17634 | done | |
17635 | done | |
7a197a62 | 17636 | IFS=$as_save_IFS |
72b2cb61 AK |
17637 | |
17638 | ;; | |
17639 | esac | |
17640 | fi | |
17641 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 17642 | if test -n "$MODPROBE_CMD"; then |
ec6a6fbe AK |
17643 | { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
17644 | $as_echo "$MODPROBE_CMD" >&6; } | |
72b2cb61 | 17645 | else |
ec6a6fbe AK |
17646 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
17647 | $as_echo "no" >&6; } | |
72b2cb61 AK |
17648 | fi |
17649 | ||
a653923f | 17650 | |
7a197a62 | 17651 | |
a653923f | 17652 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
17653 | |
17654 | cat >>confdefs.h <<_ACEOF | |
17655 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
17656 | _ACEOF | |
17657 | ||
a653923f AK |
17658 | fi |
17659 | ||
b5c2529b | 17660 | |
a9b601e2 ZK |
17661 | lvm_exec_prefix=$exec_prefix |
17662 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix | |
17663 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix | |
17664 | ||
b5c2529b | 17665 | cat >>confdefs.h <<_ACEOF |
a9b601e2 | 17666 | #define LVM_PATH "$lvm_exec_prefix/sbin/lvm" |
b5c2529b ZK |
17667 | _ACEOF |
17668 | ||
17669 | ||
17670 | if test "$CLVMD" != none; then | |
17671 | clvmd_prefix=$ac_default_prefix | |
17672 | test "$prefix" != NONE && clvmd_prefix=$prefix | |
17673 | ||
17674 | cat >>confdefs.h <<_ACEOF | |
17675 | #define CLVMD_PATH "$clvmd_prefix/sbin/clvmd" | |
17676 | _ACEOF | |
17677 | ||
17678 | fi | |
17679 | ||
80992638 | 17680 | ################################################################################ |
93bd259b AK |
17681 | if test "$BUILD_DMEVENTD" = yes; then |
17682 | ||
17683 | # Check whether --with-dmeventd-pidfile was given. | |
17684 | if test "${with_dmeventd_pidfile+set}" = set; then | |
71082be4 | 17685 | withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval |
93bd259b | 17686 | else |
71082be4 | 17687 | DMEVENTD_PIDFILE="/var/run/dmeventd.pid" |
93bd259b AK |
17688 | fi |
17689 | ||
93bd259b | 17690 | |
71082be4 ZK |
17691 | cat >>confdefs.h <<_ACEOF |
17692 | #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE" | |
17693 | _ACEOF | |
93bd259b | 17694 | |
71082be4 | 17695 | fi |
93bd259b AK |
17696 | |
17697 | if test "$BUILD_DMEVENTD" = yes; then | |
93bd259b AK |
17698 | |
17699 | # Check whether --with-dmeventd-path was given. | |
17700 | if test "${with_dmeventd_path+set}" = set; then | |
71082be4 | 17701 | withval=$with_dmeventd_path; DMEVENTD_PATH=$withval |
93bd259b | 17702 | else |
71082be4 | 17703 | DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd" |
93bd259b AK |
17704 | fi |
17705 | ||
93bd259b | 17706 | |
71082be4 ZK |
17707 | cat >>confdefs.h <<_ACEOF |
17708 | #define DMEVENTD_PATH "$DMEVENTD_PATH" | |
17709 | _ACEOF | |
3399ae32 | 17710 | |
71082be4 | 17711 | fi |
3399ae32 | 17712 | |
71082be4 | 17713 | ################################################################################ |
3399ae32 AK |
17714 | |
17715 | # Check whether --with-default-system-dir was given. | |
17716 | if test "${with_default_system_dir+set}" = set; then | |
71082be4 | 17717 | withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval |
3399ae32 | 17718 | else |
71082be4 | 17719 | DEFAULT_SYS_DIR="/etc/lvm" |
3399ae32 AK |
17720 | fi |
17721 | ||
71082be4 | 17722 | |
3399ae32 AK |
17723 | cat >>confdefs.h <<_ACEOF |
17724 | #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR" | |
17725 | _ACEOF | |
17726 | ||
17727 | ||
17728 | ||
3399ae32 AK |
17729 | # Check whether --with-default-archive-subdir was given. |
17730 | if test "${with_default_archive_subdir+set}" = set; then | |
71082be4 | 17731 | withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval |
3399ae32 | 17732 | else |
71082be4 | 17733 | DEFAULT_ARCHIVE_SUBDIR=archive |
3399ae32 AK |
17734 | fi |
17735 | ||
71082be4 | 17736 | |
3399ae32 AK |
17737 | cat >>confdefs.h <<_ACEOF |
17738 | #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR" | |
17739 | _ACEOF | |
17740 | ||
17741 | ||
17742 | ||
3399ae32 AK |
17743 | # Check whether --with-default-backup-subdir was given. |
17744 | if test "${with_default_backup_subdir+set}" = set; then | |
71082be4 | 17745 | withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval |
3399ae32 | 17746 | else |
71082be4 | 17747 | DEFAULT_BACKUP_SUBDIR=backup |
3399ae32 AK |
17748 | fi |
17749 | ||
71082be4 | 17750 | |
3399ae32 AK |
17751 | cat >>confdefs.h <<_ACEOF |
17752 | #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR" | |
17753 | _ACEOF | |
17754 | ||
17755 | ||
17756 | ||
3399ae32 AK |
17757 | # Check whether --with-default-cache-subdir was given. |
17758 | if test "${with_default_cache_subdir+set}" = set; then | |
71082be4 | 17759 | withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval |
3399ae32 | 17760 | else |
71082be4 | 17761 | DEFAULT_CACHE_SUBDIR=cache |
3399ae32 AK |
17762 | fi |
17763 | ||
71082be4 | 17764 | |
3399ae32 AK |
17765 | cat >>confdefs.h <<_ACEOF |
17766 | #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR" | |
17767 | _ACEOF | |
17768 | ||
17769 | ||
17770 | ||
3399ae32 AK |
17771 | # Check whether --with-default-locking-dir was given. |
17772 | if test "${with_default_locking_dir+set}" = set; then | |
71082be4 | 17773 | withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval |
3399ae32 | 17774 | else |
71082be4 | 17775 | DEFAULT_LOCK_DIR="/var/lock/lvm" |
3399ae32 AK |
17776 | fi |
17777 | ||
71082be4 | 17778 | |
3399ae32 AK |
17779 | cat >>confdefs.h <<_ACEOF |
17780 | #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR" | |
17781 | _ACEOF | |
17782 | ||
17783 | ||
93bd259b | 17784 | ################################################################################ |
ec6a6fbe AK |
17785 | { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5 |
17786 | $as_echo_n "checking for kernel interface choice... " >&6; } | |
93bd259b AK |
17787 | |
17788 | # Check whether --with-interface was given. | |
17789 | if test "${with_interface+set}" = set; then | |
71082be4 | 17790 | withval=$with_interface; interface=$withval |
93bd259b | 17791 | else |
71082be4 | 17792 | interface=ioctl |
93bd259b AK |
17793 | fi |
17794 | ||
17795 | if [ "x$interface" != xioctl ]; | |
17796 | then | |
ec6a6fbe AK |
17797 | { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5 |
17798 | $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;} | |
93bd259b AK |
17799 | { (exit 1); exit 1; }; } |
17800 | fi | |
ec6a6fbe AK |
17801 | { $as_echo "$as_me:$LINENO: result: $interface" >&5 |
17802 | $as_echo "$interface" >&6; } | |
93bd259b AK |
17803 | |
17804 | ################################################################################ | |
db8b5af9 | 17805 | DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
17806 | |
17807 | cat >>confdefs.h <<_ACEOF | |
17808 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
17809 | _ACEOF | |
17810 | ||
17811 | ||
db8b5af9 | 17812 | DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 17813 | |
db8b5af9 | 17814 | LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 17815 | |
db8b5af9 | 17816 | VER=`cat "$srcdir"/VERSION` |
bf456146 | 17817 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
17818 | VER=`echo "$VER" | $AWK '{print $1}'` |
17819 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
17820 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
17821 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
17822 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
17823 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
17824 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 17825 | |
80992638 | 17826 | ################################################################################ |
fae0c576 | 17827 | |
83912faa | 17828 | |
795ca3e5 AK |
17829 | |
17830 | ||
17831 | ||
17832 | ||
17833 | ||
17834 | ||
5a52dca9 | 17835 | |
8ef2b021 | 17836 | |
199e490e | 17837 | |
69792976 AK |
17838 | |
17839 | ||
17840 | ||
d0191583 | 17841 | |
69792976 | 17842 | |
8106cdd5 AK |
17843 | |
17844 | ||
17845 | ||
17846 | ||
17847 | ||
d68a82ec | 17848 | |
036f273a | 17849 | |
7d1552c9 | 17850 | |
8106cdd5 | 17851 | |
0a62c911 | 17852 | |
8106cdd5 | 17853 | |
4a7f3eb2 | 17854 | |
4922197a AK |
17855 | |
17856 | ||
d8ac0fbc | 17857 | |
1a9ea74d | 17858 | |
8a2fc586 AK |
17859 | |
17860 | ||
d0191583 | 17861 | |
93bd259b AK |
17862 | |
17863 | ||
17864 | ||
17865 | ||
17866 | ||
d0191583 JM |
17867 | |
17868 | ||
17869 | ||
17870 | ||
17871 | ||
8a2fc586 | 17872 | |
19a2c6e0 | 17873 | |
f7f0854e ZK |
17874 | |
17875 | ||
3ceb7608 | 17876 | |
8ce0cbda | 17877 | |
8b1a3214 | 17878 | |
ec6a6fbe AK |
17879 | |
17880 | ||
17881 | ||
17882 | ||
e2997b73 AK |
17883 | |
17884 | ||
17885 | ||
17886 | ||
17887 | ||
17888 | ||
a946372e AK |
17889 | |
17890 | ||
17891 | ||
17892 | ||
17893 | ||
17894 | ||
17895 | ||
17896 | ||
17897 | ||
17898 | ||
17899 | ||
ec6a6fbe | 17900 | |
33f732c5 | 17901 | |
66e941e8 | 17902 | |
d3c8211f | 17903 | |
7e3fe830 | 17904 | |
a5f46f6a AK |
17905 | |
17906 | ||
17907 | ||
572fefeb | 17908 | |
90c80887 | 17909 | |
3399ae32 AK |
17910 | |
17911 | ||
17912 | ||
17913 | ||
17914 | ||
90c80887 | 17915 | |
bf456146 | 17916 | |
e1b8a236 | 17917 | |
0878503f | 17918 | |
8fea97b7 | 17919 | |
68f2de6d AK |
17920 | |
17921 | ||
80992638 | 17922 | ################################################################################ |
8fea97b7 | 17923 | 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" |
7a197a62 | 17924 | |
ad6254c5 | 17925 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
17926 | # This file is a shell script that caches the results of configure |
17927 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
17928 | # scripts and configure runs, see configure's option --config-cache. |
17929 | # It is not useful on other systems. If it contains results you don't | |
17930 | # want to keep, you may remove or edit it. | |
795ca3e5 | 17931 | # |
ad6254c5 AK |
17932 | # config.status only pays attention to the cache file if you give it |
17933 | # the --recheck option to rerun configure. | |
795ca3e5 | 17934 | # |
ad6254c5 AK |
17935 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
17936 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17937 | # following values. | |
17938 | ||
17939 | _ACEOF | |
17940 | ||
795ca3e5 AK |
17941 | # The following way of writing the cache mishandles newlines in values, |
17942 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 17943 | # So, we kill variables containing newlines. |
795ca3e5 AK |
17944 | # Ultrix sh set writes to stderr and can't be redirected directly, |
17945 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
17946 | ( |
17947 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17948 | eval ac_val=\$$ac_var | |
17949 | case $ac_val in #( | |
17950 | *${as_nl}*) | |
17951 | case $ac_var in #( | |
ec6a6fbe AK |
17952 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
17953 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
17954 | esac |
17955 | case $ac_var in #( | |
17956 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 17957 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
17958 | *) $as_unset $ac_var ;; |
17959 | esac ;; | |
17960 | esac | |
17961 | done | |
17962 | ||
ad6254c5 | 17963 | (set) 2>&1 | |
7a197a62 AK |
17964 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
17965 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
17966 | # `set' does not quote correctly, so add quotes (double-quote |
17967 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
17968 | sed -n \ | |
8a2fc586 AK |
17969 | "s/'/'\\\\''/g; |
17970 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 17971 | ;; #( |
ad6254c5 AK |
17972 | *) |
17973 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 17974 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 17975 | ;; |
7a197a62 AK |
17976 | esac | |
17977 | sort | |
17978 | ) | | |
ad6254c5 | 17979 | sed ' |
7a197a62 | 17980 | /^ac_cv_env_/b end |
ad6254c5 | 17981 | t clear |
7a197a62 | 17982 | :clear |
ad6254c5 AK |
17983 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
17984 | t end | |
7a197a62 AK |
17985 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
17986 | :end' >>confcache | |
17987 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
17988 | if test -w "$cache_file"; then | |
17989 | test "x$cache_file" != "x/dev/null" && | |
ec6a6fbe AK |
17990 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
17991 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 17992 | cat confcache >$cache_file |
795ca3e5 | 17993 | else |
ec6a6fbe AK |
17994 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
17995 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
17996 | fi |
17997 | fi | |
17998 | rm -f confcache | |
17999 | ||
795ca3e5 AK |
18000 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18001 | # Let make expand exec_prefix. | |
18002 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
18003 | ||
72b2cb61 | 18004 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
18005 | |
18006 | ac_libobjs= | |
18007 | ac_ltlibobjs= | |
18008 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
18009 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 18010 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 18011 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
18012 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
18013 | # will be set to the directory where LIBOBJS objects are built. | |
18014 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
18015 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
18016 | done |
18017 | LIBOBJS=$ac_libobjs | |
80992638 | 18018 | |
ad6254c5 AK |
18019 | LTLIBOBJS=$ac_ltlibobjs |
18020 | ||
18021 | ||
18022 | ||
18023 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 18024 | ac_write_fail=0 |
ad6254c5 AK |
18025 | ac_clean_files_save=$ac_clean_files |
18026 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
ec6a6fbe AK |
18027 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
18028 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
18029 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 AK |
18030 | #! $SHELL |
18031 | # Generated by $as_me. | |
795ca3e5 | 18032 | # Run this file to recreate the current configuration. |
795ca3e5 | 18033 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
18034 | # configure, is in config.log if it exists. |
18035 | ||
18036 | debug=false | |
18037 | ac_cs_recheck=false | |
18038 | ac_cs_silent=false | |
18039 | SHELL=\${CONFIG_SHELL-$SHELL} | |
18040 | _ACEOF | |
18041 | ||
ec6a6fbe | 18042 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
18043 | ## --------------------- ## |
18044 | ## M4sh Initialization. ## | |
18045 | ## --------------------- ## | |
18046 | ||
25fbec5b AK |
18047 | # Be more Bourne compatible |
18048 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
18049 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
18050 | emulate sh | |
18051 | NULLCMD=: | |
ec6a6fbe | 18052 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
18053 | # is contrary to our usage. Disable this feature. |
18054 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
18055 | setopt NO_GLOB_SUBST |
18056 | else | |
25fbec5b AK |
18057 | case `(set -o) 2>/dev/null` in |
18058 | *posix*) set -o posix ;; | |
18059 | esac | |
18060 | ||
7a197a62 | 18061 | fi |
25fbec5b AK |
18062 | |
18063 | ||
7a197a62 AK |
18064 | |
18065 | ||
18066 | # PATH needs CR | |
18067 | # Avoid depending upon Character Ranges. | |
18068 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18069 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18070 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18071 | as_cr_digits='0123456789' | |
18072 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18073 | ||
ec6a6fbe AK |
18074 | as_nl=' |
18075 | ' | |
18076 | export as_nl | |
18077 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18078 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18079 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18080 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18081 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18082 | as_echo='printf %s\n' | |
18083 | as_echo_n='printf %s' | |
18084 | else | |
18085 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
18086 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18087 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 18088 | else |
ec6a6fbe AK |
18089 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
18090 | as_echo_n_body='eval | |
18091 | arg=$1; | |
18092 | case $arg in | |
18093 | *"$as_nl"*) | |
18094 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18095 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18096 | esac; | |
18097 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18098 | ' | |
18099 | export as_echo_n_body | |
18100 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 18101 | fi |
ec6a6fbe AK |
18102 | export as_echo_body |
18103 | as_echo='sh -c $as_echo_body as_echo' | |
18104 | fi | |
18105 | ||
18106 | # The user is always right. | |
18107 | if test "${PATH_SEPARATOR+set}" != set; then | |
18108 | PATH_SEPARATOR=: | |
18109 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18110 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18111 | PATH_SEPARATOR=';' | |
18112 | } | |
ad6254c5 AK |
18113 | fi |
18114 | ||
18115 | # Support unset when possible. | |
8a2fc586 | 18116 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
18117 | as_unset=unset |
18118 | else | |
18119 | as_unset=false | |
18120 | fi | |
8106cdd5 | 18121 | |
ad6254c5 | 18122 | |
7a197a62 AK |
18123 | # IFS |
18124 | # We need space, tab and new line, in precisely that order. Quoting is | |
18125 | # there to prevent editors from complaining about space-tab. | |
18126 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18127 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
18128 | IFS=" "" $as_nl" |
18129 | ||
18130 | # Find who we are. Look in the path if we contain no directory separator. | |
18131 | case $0 in | |
18132 | *[\\/]* ) as_myself=$0 ;; | |
18133 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18134 | for as_dir in $PATH | |
18135 | do | |
18136 | IFS=$as_save_IFS | |
18137 | test -z "$as_dir" && as_dir=. | |
18138 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18139 | done | |
18140 | IFS=$as_save_IFS | |
18141 | ||
18142 | ;; | |
18143 | esac | |
18144 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18145 | # in which case we are not to be found in the path. | |
18146 | if test "x$as_myself" = x; then | |
18147 | as_myself=$0 | |
18148 | fi | |
18149 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 18150 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
18151 | { (exit 1); exit 1; } |
18152 | fi | |
18153 | ||
ad6254c5 | 18154 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
18155 | for as_var in ENV MAIL MAILPATH |
18156 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
18157 | done | |
ad6254c5 AK |
18158 | PS1='$ ' |
18159 | PS2='> ' | |
18160 | PS4='+ ' | |
18161 | ||
18162 | # NLS nuisances. | |
ec6a6fbe AK |
18163 | LC_ALL=C |
18164 | export LC_ALL | |
18165 | LANGUAGE=C | |
18166 | export LANGUAGE | |
8106cdd5 | 18167 | |
ad6254c5 | 18168 | # Required to use basename. |
7a197a62 AK |
18169 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18170 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
18171 | as_expr=expr |
18172 | else | |
18173 | as_expr=false | |
18174 | fi | |
8106cdd5 | 18175 | |
7a197a62 | 18176 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
18177 | as_basename=basename |
18178 | else | |
18179 | as_basename=false | |
18180 | fi | |
18181 | ||
18182 | ||
18183 | # Name of the executable. | |
7a197a62 | 18184 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
18185 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
18186 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 18187 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 18188 | $as_echo X/"$0" | |
7a197a62 AK |
18189 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
18190 | s//\1/ | |
18191 | q | |
18192 | } | |
18193 | /^X\/\(\/\/\)$/{ | |
18194 | s//\1/ | |
18195 | q | |
18196 | } | |
18197 | /^X\/\(\/\).*/{ | |
18198 | s//\1/ | |
18199 | q | |
18200 | } | |
18201 | s/.*/./; q'` | |
ad6254c5 | 18202 | |
7a197a62 AK |
18203 | # CDPATH. |
18204 | $as_unset CDPATH | |
ad6254c5 AK |
18205 | |
18206 | ||
ad6254c5 | 18207 | |
ad6254c5 AK |
18208 | as_lineno_1=$LINENO |
18209 | as_lineno_2=$LINENO | |
ad6254c5 | 18210 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 18211 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 18212 | |
ad6254c5 AK |
18213 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
18214 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
18215 | # line-number line after each line using $LINENO; the second 'sed' |
18216 | # does the real work. The second script uses 'N' to pair each | |
18217 | # line-number line with the line containing $LINENO, and appends | |
18218 | # trailing '-' during substitution so that $LINENO is not a special | |
18219 | # case at line end. | |
ad6254c5 | 18220 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
18221 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
18222 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
18223 | sed -n ' | |
18224 | p | |
18225 | /[$]LINENO/= | |
18226 | ' <$as_myself | | |
ad6254c5 | 18227 | sed ' |
7a197a62 AK |
18228 | s/[$]LINENO.*/&-/ |
18229 | t lineno | |
18230 | b | |
18231 | :lineno | |
ad6254c5 | 18232 | N |
7a197a62 AK |
18233 | :loop |
18234 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 18235 | t loop |
7a197a62 | 18236 | s/-\n.*// |
ad6254c5 | 18237 | ' >$as_me.lineno && |
7a197a62 | 18238 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 18239 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
18240 | { (exit 1); exit 1; }; } |
18241 | ||
18242 | # Don't try to exec as it changes $[0], causing all sort of problems | |
18243 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
18244 | # original and so on. Autoconf is especially sensitive to this). |
18245 | . "./$as_me.lineno" | |
ad6254c5 AK |
18246 | # Exit status is that of the last command. |
18247 | exit | |
18248 | } | |
18249 | ||
18250 | ||
7a197a62 AK |
18251 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18252 | as_dirname=dirname | |
18253 | else | |
18254 | as_dirname=false | |
18255 | fi | |
18256 | ||
18257 | ECHO_C= ECHO_N= ECHO_T= | |
18258 | case `echo -n x` in | |
18259 | -n*) | |
18260 | case `echo 'x\c'` in | |
18261 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
18262 | *) ECHO_C='\c';; | |
18263 | esac;; | |
18264 | *) | |
18265 | ECHO_N='-n';; | |
ad6254c5 | 18266 | esac |
7a197a62 AK |
18267 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18268 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
18269 | as_expr=expr |
18270 | else | |
18271 | as_expr=false | |
18272 | fi | |
80992638 | 18273 | |
ad6254c5 | 18274 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
18275 | if test -d conf$$.dir; then |
18276 | rm -f conf$$.dir/conf$$.file | |
18277 | else | |
18278 | rm -f conf$$.dir | |
ec6a6fbe AK |
18279 | mkdir conf$$.dir 2>/dev/null |
18280 | fi | |
18281 | if (echo >conf$$.file) 2>/dev/null; then | |
18282 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
18283 | as_ln_s='ln -s' | |
18284 | # ... but there are two gotchas: | |
18285 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18286 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
18287 | # In both cases, we have to default to `cp -p'. | |
18288 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
18289 | as_ln_s='cp -p' | |
18290 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
18291 | as_ln_s=ln | |
18292 | else | |
ad6254c5 | 18293 | as_ln_s='cp -p' |
ec6a6fbe | 18294 | fi |
ad6254c5 AK |
18295 | else |
18296 | as_ln_s='cp -p' | |
18297 | fi | |
7a197a62 AK |
18298 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
18299 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 18300 | |
ad6254c5 AK |
18301 | if mkdir -p . 2>/dev/null; then |
18302 | as_mkdir_p=: | |
18303 | else | |
8a2fc586 | 18304 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
18305 | as_mkdir_p=false |
18306 | fi | |
18307 | ||
25fbec5b AK |
18308 | if test -x / >/dev/null 2>&1; then |
18309 | as_test_x='test -x' | |
7a197a62 | 18310 | else |
25fbec5b AK |
18311 | if ls -dL / >/dev/null 2>&1; then |
18312 | as_ls_L_option=L | |
18313 | else | |
18314 | as_ls_L_option= | |
18315 | fi | |
18316 | as_test_x=' | |
18317 | eval sh -c '\'' | |
18318 | if test -d "$1"; then | |
ec6a6fbe | 18319 | test -d "$1/."; |
25fbec5b AK |
18320 | else |
18321 | case $1 in | |
ec6a6fbe | 18322 | -*)set "./$1";; |
25fbec5b AK |
18323 | esac; |
18324 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
18325 | ???[sx]*):;;*)false;;esac;fi | |
18326 | '\'' sh | |
18327 | ' | |
7a197a62 | 18328 | fi |
25fbec5b | 18329 | as_executable_p=$as_test_x |
ad6254c5 AK |
18330 | |
18331 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 18332 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
18333 | |
18334 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 18335 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
18336 | |
18337 | ||
ad6254c5 AK |
18338 | exec 6>&1 |
18339 | ||
7a197a62 | 18340 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 18341 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
18342 | # values after options handling. |
18343 | ac_log=" | |
ad6254c5 | 18344 | This file was extended by $as_me, which was |
ec6a6fbe | 18345 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
18346 | |
18347 | CONFIG_FILES = $CONFIG_FILES | |
18348 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18349 | CONFIG_LINKS = $CONFIG_LINKS | |
18350 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18351 | $ $0 $@ | |
18352 | ||
7a197a62 AK |
18353 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
18354 | " | |
18355 | ||
ad6254c5 AK |
18356 | _ACEOF |
18357 | ||
ec6a6fbe AK |
18358 | case $ac_config_files in *" |
18359 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18360 | esac | |
18361 | ||
18362 | case $ac_config_headers in *" | |
18363 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
18364 | esac | |
18365 | ||
18366 | ||
18367 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 18368 | # Files that config.status was made for. |
68f2de6d AK |
18369 | config_files="$ac_config_files" |
18370 | config_headers="$ac_config_headers" | |
ad6254c5 | 18371 | |
7a197a62 | 18372 | _ACEOF |
ad6254c5 | 18373 | |
ec6a6fbe | 18374 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
18375 | ac_cs_usage="\ |
18376 | \`$as_me' instantiates files from templates according to the | |
18377 | current configuration. | |
18378 | ||
ec6a6fbe | 18379 | Usage: $0 [OPTION]... [FILE]... |
ad6254c5 AK |
18380 | |
18381 | -h, --help print this help, then exit | |
25fbec5b | 18382 | -V, --version print version number and configuration settings, then exit |
ec6a6fbe AK |
18383 | -q, --quiet, --silent |
18384 | do not print progress messages | |
ad6254c5 AK |
18385 | -d, --debug don't remove temporary files |
18386 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
18387 | --file=FILE[:TEMPLATE] |
18388 | instantiate the configuration file FILE | |
18389 | --header=FILE[:TEMPLATE] | |
18390 | instantiate the configuration header FILE | |
ad6254c5 AK |
18391 | |
18392 | Configuration files: | |
18393 | $config_files | |
18394 | ||
72b2cb61 AK |
18395 | Configuration headers: |
18396 | $config_headers | |
18397 | ||
ad6254c5 | 18398 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 18399 | |
7a197a62 | 18400 | _ACEOF |
ec6a6fbe | 18401 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
18402 | ac_cs_version="\\ |
18403 | config.status | |
ec6a6fbe AK |
18404 | configured by $0, generated by GNU Autoconf 2.63, |
18405 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 18406 | |
ec6a6fbe | 18407 | Copyright (C) 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
18408 | This config.status script is free software; the Free Software Foundation |
18409 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
18410 | |
18411 | ac_pwd='$ac_pwd' | |
18412 | srcdir='$srcdir' | |
18413 | INSTALL='$INSTALL' | |
fddafd51 | 18414 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
18415 | AWK='$AWK' |
18416 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
18417 | _ACEOF |
18418 | ||
ec6a6fbe AK |
18419 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18420 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
18421 | ac_need_defaults=: |
18422 | while test $# != 0 | |
18423 | do | |
18424 | case $1 in | |
18425 | --*=*) | |
7a197a62 AK |
18426 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18427 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
18428 | ac_shift=: |
18429 | ;; | |
7a197a62 | 18430 | *) |
ad6254c5 AK |
18431 | ac_option=$1 |
18432 | ac_optarg=$2 | |
18433 | ac_shift=shift | |
18434 | ;; | |
ad6254c5 AK |
18435 | esac |
18436 | ||
18437 | case $ac_option in | |
18438 | # Handling of the options. | |
ad6254c5 AK |
18439 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
18440 | ac_cs_recheck=: ;; | |
7a197a62 | 18441 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 18442 | $as_echo "$ac_cs_version"; exit ;; |
7a197a62 | 18443 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
18444 | debug=: ;; |
18445 | --file | --fil | --fi | --f ) | |
18446 | $ac_shift | |
ec6a6fbe AK |
18447 | case $ac_optarg in |
18448 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18449 | esac | |
18450 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
ad6254c5 AK |
18451 | ac_need_defaults=false;; |
18452 | --header | --heade | --head | --hea ) | |
18453 | $ac_shift | |
ec6a6fbe AK |
18454 | case $ac_optarg in |
18455 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18456 | esac | |
18457 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
ad6254c5 | 18458 | ac_need_defaults=false;; |
7a197a62 AK |
18459 | --he | --h) |
18460 | # Conflict between --help and --header | |
ec6a6fbe | 18461 | { $as_echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
18462 | Try \`$0 --help' for more information." >&2 |
18463 | { (exit 1); exit 1; }; };; | |
18464 | --help | --hel | -h ) | |
ec6a6fbe | 18465 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
18466 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18467 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18468 | ac_cs_silent=: ;; | |
18469 | ||
18470 | # This is an error. | |
ec6a6fbe | 18471 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 18472 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
18473 | { (exit 1); exit 1; }; } ;; |
18474 | ||
7a197a62 AK |
18475 | *) ac_config_targets="$ac_config_targets $1" |
18476 | ac_need_defaults=false ;; | |
ad6254c5 AK |
18477 | |
18478 | esac | |
18479 | shift | |
18480 | done | |
18481 | ||
18482 | ac_configure_extra_args= | |
18483 | ||
18484 | if $ac_cs_silent; then | |
18485 | exec 6>/dev/null | |
18486 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
18487 | fi | |
18488 | ||
18489 | _ACEOF | |
ec6a6fbe | 18490 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 18491 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
18492 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
18493 | shift | |
18494 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
18495 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 18496 | export CONFIG_SHELL |
ec6a6fbe | 18497 | exec "\$@" |
ad6254c5 AK |
18498 | fi |
18499 | ||
18500 | _ACEOF | |
ec6a6fbe | 18501 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
18502 | exec 5>>config.log |
18503 | { | |
18504 | echo | |
18505 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18506 | ## Running $as_me. ## | |
18507 | _ASBOX | |
ec6a6fbe | 18508 | $as_echo "$ac_log" |
7a197a62 | 18509 | } >&5 |
ad6254c5 | 18510 | |
7a197a62 | 18511 | _ACEOF |
ec6a6fbe | 18512 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 18513 | _ACEOF |
ad6254c5 | 18514 | |
ec6a6fbe | 18515 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
18516 | |
18517 | # Handling of arguments. | |
ad6254c5 AK |
18518 | for ac_config_target in $ac_config_targets |
18519 | do | |
7a197a62 AK |
18520 | case $ac_config_target in |
18521 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
18522 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
18523 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
18524 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
18525 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
5d311afb | 18526 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; |
93bd259b AK |
18527 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
18528 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 18529 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
d3d98fdc | 18530 | "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;; |
93bd259b AK |
18531 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
18532 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 18533 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
da05c479 | 18534 | "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; |
db8b5af9 | 18535 | "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;; |
93bd259b AK |
18536 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
18537 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
18538 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
18539 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
18540 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
18541 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
8fea97b7 | 18542 | "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;; |
ec6a6fbe | 18543 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
7a197a62 | 18544 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
93bd259b AK |
18545 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
18546 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 18547 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 18548 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
18549 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
18550 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 18551 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
81410c8f | 18552 | "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;; |
595eaf92 | 18553 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; |
7a197a62 | 18554 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 18555 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 18556 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 18557 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 18558 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
7a197a62 | 18559 | |
ec6a6fbe AK |
18560 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
18561 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 18562 | { (exit 1); exit 1; }; };; |
80992638 | 18563 | esac |
ad6254c5 AK |
18564 | done |
18565 | ||
7a197a62 | 18566 | |
ad6254c5 AK |
18567 | # If the user did not use the arguments to specify the items to instantiate, |
18568 | # then the envvar interface is used. Set only those that are not. | |
18569 | # We use the long form for the default assignment because of an extremely | |
18570 | # bizarre bug on SunOS 4.1.3. | |
18571 | if $ac_need_defaults; then | |
18572 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 18573 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
18574 | fi |
18575 | ||
18576 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 18577 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 18578 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
18579 | # Hook for its removal unless debugging. |
18580 | # Note that there is a small window in which the directory will not be cleaned: | |
18581 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
18582 | $debug || |
18583 | { | |
7a197a62 AK |
18584 | tmp= |
18585 | trap 'exit_status=$? | |
18586 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
18587 | ' 0 | |
ad6254c5 AK |
18588 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
18589 | } | |
ad6254c5 AK |
18590 | # Create a (secure) tmp directory for tmp files. |
18591 | ||
18592 | { | |
7a197a62 | 18593 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
18594 | test -n "$tmp" && test -d "$tmp" |
18595 | } || | |
18596 | { | |
7a197a62 AK |
18597 | tmp=./conf$$-$RANDOM |
18598 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
18599 | } || |
18600 | { | |
ec6a6fbe | 18601 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
18602 | { (exit 1); exit 1; } |
18603 | } | |
18604 | ||
ec6a6fbe AK |
18605 | # Set up the scripts for CONFIG_FILES section. |
18606 | # No need to generate them if there are no CONFIG_FILES. | |
18607 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 18608 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 18609 | |
68f2de6d | 18610 | |
ec6a6fbe AK |
18611 | ac_cr='\r' |
18612 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18613 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
18614 | ac_cs_awk_cr='\\r' | |
18615 | else | |
18616 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 18617 | fi |
7a197a62 | 18618 | |
ec6a6fbe | 18619 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 18620 | _ACEOF |
7a197a62 | 18621 | |
8106cdd5 | 18622 | |
ec6a6fbe AK |
18623 | { |
18624 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
18625 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
18626 | echo "_ACEOF" | |
18627 | } >conf$$subs.sh || | |
18628 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
18629 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
18630 | { (exit 1); exit 1; }; } | |
18631 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
1995c9ff AK |
18632 | ac_delim='%!_!# ' |
18633 | for ac_last_try in false false false false false :; do | |
ec6a6fbe AK |
18634 | . ./conf$$subs.sh || |
18635 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
18636 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
18637 | { (exit 1); exit 1; }; } | |
18638 | ||
18639 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
18640 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
18641 | break |
18642 | elif $ac_last_try; then | |
ec6a6fbe AK |
18643 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
18644 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
18645 | { (exit 1); exit 1; }; } |
18646 | else | |
18647 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18648 | fi | |
18649 | done | |
ec6a6fbe AK |
18650 | rm -f conf$$subs.sh |
18651 | ||
18652 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18653 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
18654 | _ACEOF | |
18655 | sed -n ' | |
18656 | h | |
18657 | s/^/S["/; s/!.*/"]=/ | |
18658 | p | |
18659 | g | |
18660 | s/^[^!]*!// | |
18661 | :repl | |
18662 | t repl | |
18663 | s/'"$ac_delim"'$// | |
18664 | t delim | |
18665 | :nl | |
18666 | h | |
18667 | s/\(.\{148\}\).*/\1/ | |
18668 | t more1 | |
18669 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
18670 | p | |
18671 | n | |
18672 | b repl | |
18673 | :more1 | |
18674 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18675 | p | |
18676 | g | |
18677 | s/.\{148\}// | |
18678 | t nl | |
18679 | :delim | |
18680 | h | |
18681 | s/\(.\{148\}\).*/\1/ | |
18682 | t more2 | |
18683 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
18684 | p | |
18685 | b | |
18686 | :more2 | |
18687 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18688 | p | |
18689 | g | |
18690 | s/.\{148\}// | |
18691 | t delim | |
18692 | ' <conf$$subs.awk | sed ' | |
18693 | /^[^""]/{ | |
18694 | N | |
18695 | s/\n// | |
18696 | } | |
18697 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
18698 | rm -f conf$$subs.awk | |
18699 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18700 | _ACAWK | |
18701 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
18702 | for (key in S) S_is_set[key] = 1 | |
18703 | FS = "\a" | |
7a197a62 | 18704 | |
ec6a6fbe AK |
18705 | } |
18706 | { | |
18707 | line = $ 0 | |
18708 | nfields = split(line, field, "@") | |
18709 | substed = 0 | |
18710 | len = length(field[1]) | |
18711 | for (i = 2; i < nfields; i++) { | |
18712 | key = field[i] | |
18713 | keylen = length(key) | |
18714 | if (S_is_set[key]) { | |
18715 | value = S[key] | |
18716 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
18717 | len += length(value) + length(field[++i]) | |
18718 | substed = 1 | |
18719 | } else | |
18720 | len += 1 + keylen | |
18721 | } | |
18722 | ||
18723 | print line | |
18724 | } | |
fddafd51 | 18725 | |
ec6a6fbe | 18726 | _ACAWK |
1995c9ff | 18727 | _ACEOF |
ec6a6fbe AK |
18728 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18729 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
18730 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
18731 | else | |
18732 | cat | |
18733 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
18734 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
18735 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
18736 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
18737 | _ACEOF |
18738 | ||
7a197a62 AK |
18739 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
18740 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
18741 | # trailing colons and then remove the whole line if VPATH becomes empty | |
18742 | # (actually we leave an empty line to preserve line numbers). | |
18743 | if test "x$srcdir" = x.; then | |
18744 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
18745 | s/:*\$(srcdir):*/:/ | |
18746 | s/:*\${srcdir}:*/:/ | |
18747 | s/:*@srcdir@:*/:/ | |
18748 | s/^\([^=]*=[ ]*\):*/\1/ | |
18749 | s/:*$// | |
18750 | s/^[^=]*=[ ]*$// | |
18751 | }' | |
18752 | fi | |
18753 | ||
ec6a6fbe | 18754 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
18755 | fi # test -n "$CONFIG_FILES" |
18756 | ||
ec6a6fbe AK |
18757 | # Set up the scripts for CONFIG_HEADERS section. |
18758 | # No need to generate them if there are no CONFIG_HEADERS. | |
18759 | # This happens for instance with `./config.status Makefile'. | |
18760 | if test -n "$CONFIG_HEADERS"; then | |
18761 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
18762 | BEGIN { | |
18763 | _ACEOF | |
18764 | ||
18765 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
18766 | # here-document in config.status, that substitutes the proper values into | |
18767 | # config.h.in to produce config.h. | |
18768 | ||
18769 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
18770 | # handling of long lines. | |
18771 | ac_delim='%!_!# ' | |
18772 | for ac_last_try in false false :; do | |
18773 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
18774 | if test -z "$ac_t"; then | |
18775 | break | |
18776 | elif $ac_last_try; then | |
18777 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
18778 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
18779 | { (exit 1); exit 1; }; } | |
18780 | else | |
18781 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18782 | fi | |
18783 | done | |
18784 | ||
18785 | # For the awk script, D is an array of macro values keyed by name, | |
18786 | # likewise P contains macro parameters if any. Preserve backslash | |
18787 | # newline sequences. | |
18788 | ||
18789 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
18790 | sed -n ' | |
18791 | s/.\{148\}/&'"$ac_delim"'/g | |
18792 | t rset | |
18793 | :rset | |
18794 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
18795 | t def | |
18796 | d | |
18797 | :def | |
18798 | s/\\$// | |
18799 | t bsnl | |
18800 | s/["\\]/\\&/g | |
18801 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18802 | D["\1"]=" \3"/p | |
18803 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
18804 | d | |
18805 | :bsnl | |
18806 | s/["\\]/\\&/g | |
18807 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18808 | D["\1"]=" \3\\\\\\n"\\/p | |
18809 | t cont | |
18810 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
18811 | t cont | |
18812 | d | |
18813 | :cont | |
18814 | n | |
18815 | s/.\{148\}/&'"$ac_delim"'/g | |
18816 | t clear | |
18817 | :clear | |
18818 | s/\\$// | |
18819 | t bsnlc | |
18820 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
18821 | d | |
18822 | :bsnlc | |
18823 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
18824 | b cont | |
18825 | ' <confdefs.h | sed ' | |
18826 | s/'"$ac_delim"'/"\\\ | |
18827 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
18828 | ||
18829 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18830 | for (key in D) D_is_set[key] = 1 | |
18831 | FS = "\a" | |
18832 | } | |
18833 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
18834 | line = \$ 0 | |
18835 | split(line, arg, " ") | |
18836 | if (arg[1] == "#") { | |
18837 | defundef = arg[2] | |
18838 | mac1 = arg[3] | |
18839 | } else { | |
18840 | defundef = substr(arg[1], 2) | |
18841 | mac1 = arg[2] | |
18842 | } | |
18843 | split(mac1, mac2, "(") #) | |
18844 | macro = mac2[1] | |
18845 | prefix = substr(line, 1, index(line, defundef) - 1) | |
18846 | if (D_is_set[macro]) { | |
18847 | # Preserve the white space surrounding the "#". | |
18848 | print prefix "define", macro P[macro] D[macro] | |
18849 | next | |
18850 | } else { | |
18851 | # Replace #undef with comments. This is necessary, for example, | |
18852 | # in the case of _POSIX_SOURCE, which is predefined and required | |
18853 | # on some systems where configure will not decide to define it. | |
18854 | if (defundef == "undef") { | |
18855 | print "/*", prefix defundef, macro, "*/" | |
18856 | next | |
18857 | } | |
18858 | } | |
18859 | } | |
18860 | { print } | |
18861 | _ACAWK | |
18862 | _ACEOF | |
18863 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18864 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
18865 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
18866 | { (exit 1); exit 1; }; } | |
18867 | fi # test -n "$CONFIG_HEADERS" | |
18868 | ||
7a197a62 | 18869 | |
ec6a6fbe AK |
18870 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
18871 | shift | |
18872 | for ac_tag | |
7a197a62 AK |
18873 | do |
18874 | case $ac_tag in | |
18875 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
18876 | esac | |
18877 | case $ac_mode$ac_tag in | |
18878 | :[FHL]*:*);; | |
ec6a6fbe AK |
18879 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
18880 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
7a197a62 AK |
18881 | { (exit 1); exit 1; }; };; |
18882 | :[FH]-) ac_tag=-:-;; | |
18883 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
18884 | esac | |
18885 | ac_save_IFS=$IFS | |
18886 | IFS=: | |
18887 | set x $ac_tag | |
18888 | IFS=$ac_save_IFS | |
18889 | shift | |
18890 | ac_file=$1 | |
18891 | shift | |
18892 | ||
18893 | case $ac_mode in | |
18894 | :L) ac_source=$1;; | |
18895 | :[FH]) | |
18896 | ac_file_inputs= | |
18897 | for ac_f | |
18898 | do | |
18899 | case $ac_f in | |
18900 | -) ac_f="$tmp/stdin";; | |
18901 | *) # Look for the file first in the build tree, then in the source tree | |
18902 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
18903 | # because $ac_f cannot contain `:'. | |
18904 | test -f "$ac_f" || | |
18905 | case $ac_f in | |
18906 | [\\/$]*) false;; | |
18907 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
18908 | esac || | |
ec6a6fbe AK |
18909 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
18910 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
18911 | { (exit 1); exit 1; }; };; |
18912 | esac | |
ec6a6fbe AK |
18913 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
18914 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
7a197a62 AK |
18915 | done |
18916 | ||
18917 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
18918 | # use $as_me), people would be surprised to read: | |
18919 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
18920 | configure_input='Generated from '` |
18921 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
18922 | `' by configure.' | |
7a197a62 AK |
18923 | if test x"$ac_file" != x-; then |
18924 | configure_input="$ac_file. $configure_input" | |
ec6a6fbe AK |
18925 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
18926 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 | 18927 | fi |
ec6a6fbe AK |
18928 | # Neutralize special characters interpreted by sed in replacement strings. |
18929 | case $configure_input in #( | |
18930 | *\&* | *\|* | *\\* ) | |
18931 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
18932 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
18933 | *) ac_sed_conf_input=$configure_input;; | |
18934 | esac | |
7a197a62 AK |
18935 | |
18936 | case $ac_tag in | |
ec6a6fbe AK |
18937 | *:-:* | *:-) cat >"$tmp/stdin" \ |
18938 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
18939 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
18940 | { (exit 1); exit 1; }; } ;; | |
7a197a62 AK |
18941 | esac |
18942 | ;; | |
80992638 | 18943 | esac |
8106cdd5 | 18944 | |
7a197a62 | 18945 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 18946 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
18947 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
18948 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 18949 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 18950 | $as_echo X"$ac_file" | |
7a197a62 AK |
18951 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
18952 | s//\1/ | |
18953 | q | |
18954 | } | |
18955 | /^X\(\/\/\)[^/].*/{ | |
18956 | s//\1/ | |
18957 | q | |
18958 | } | |
18959 | /^X\(\/\/\)$/{ | |
18960 | s//\1/ | |
18961 | q | |
18962 | } | |
18963 | /^X\(\/\).*/{ | |
18964 | s//\1/ | |
18965 | q | |
18966 | } | |
18967 | s/.*/./; q'` | |
18968 | { as_dir="$ac_dir" | |
18969 | case $as_dir in #( | |
18970 | -*) as_dir=./$as_dir;; | |
18971 | esac | |
18972 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 18973 | as_dirs= |
7a197a62 AK |
18974 | while :; do |
18975 | case $as_dir in #( | |
ec6a6fbe | 18976 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7a197a62 AK |
18977 | *) as_qdir=$as_dir;; |
18978 | esac | |
18979 | as_dirs="'$as_qdir' $as_dirs" | |
18980 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 18981 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
18982 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
18983 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 18984 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 18985 | $as_echo X"$as_dir" | |
7a197a62 AK |
18986 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
18987 | s//\1/ | |
18988 | q | |
18989 | } | |
18990 | /^X\(\/\/\)[^/].*/{ | |
18991 | s//\1/ | |
18992 | q | |
18993 | } | |
18994 | /^X\(\/\/\)$/{ | |
18995 | s//\1/ | |
18996 | q | |
18997 | } | |
18998 | /^X\(\/\).*/{ | |
18999 | s//\1/ | |
19000 | q | |
19001 | } | |
19002 | s/.*/./; q'` | |
19003 | test -d "$as_dir" && break | |
ad6254c5 | 19004 | done |
7a197a62 | 19005 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
ec6a6fbe AK |
19006 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
19007 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 19008 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
19009 | ac_builddir=. |
19010 | ||
7a197a62 AK |
19011 | case "$ac_dir" in |
19012 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19013 | *) | |
ec6a6fbe | 19014 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 19015 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 19016 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
19017 | case $ac_top_builddir_sub in |
19018 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19019 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19020 | esac ;; | |
19021 | esac | |
19022 | ac_abs_top_builddir=$ac_pwd | |
19023 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19024 | # for backward compatibility: | |
19025 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
19026 | |
19027 | case $srcdir in | |
7a197a62 | 19028 | .) # We are building in place. |
ad6254c5 | 19029 | ac_srcdir=. |
7a197a62 AK |
19030 | ac_top_srcdir=$ac_top_builddir_sub |
19031 | ac_abs_top_srcdir=$ac_pwd ;; | |
19032 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 19033 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
19034 | ac_top_srcdir=$srcdir |
19035 | ac_abs_top_srcdir=$srcdir ;; | |
19036 | *) # Relative name. | |
19037 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19038 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19039 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 19040 | esac |
7a197a62 | 19041 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 19042 | |
ad6254c5 | 19043 | |
7a197a62 AK |
19044 | case $ac_mode in |
19045 | :F) | |
19046 | # | |
19047 | # CONFIG_FILE | |
19048 | # | |
ad6254c5 AK |
19049 | |
19050 | case $INSTALL in | |
19051 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 19052 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 19053 | esac |
fddafd51 ZK |
19054 | ac_MKDIR_P=$MKDIR_P |
19055 | case $MKDIR_P in | |
19056 | [\\/$]* | ?:[\\/]* ) ;; | |
19057 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
19058 | esac | |
7a197a62 | 19059 | _ACEOF |
795ca3e5 | 19060 | |
ec6a6fbe | 19061 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
19062 | # If the template does not know about datarootdir, expand it. |
19063 | # FIXME: This hack should be removed a few years after 2.60. | |
19064 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19065 | ||
ec6a6fbe AK |
19066 | ac_sed_dataroot=' |
19067 | /datarootdir/ { | |
7a197a62 AK |
19068 | p |
19069 | q | |
19070 | } | |
19071 | /@datadir@/p | |
19072 | /@docdir@/p | |
19073 | /@infodir@/p | |
19074 | /@localedir@/p | |
19075 | /@mandir@/p | |
ec6a6fbe AK |
19076 | ' |
19077 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7a197a62 AK |
19078 | *datarootdir*) ac_datarootdir_seen=yes;; |
19079 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
ec6a6fbe AK |
19080 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
19081 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 19082 | _ACEOF |
ec6a6fbe | 19083 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
19084 | ac_datarootdir_hack=' |
19085 | s&@datadir@&$datadir&g | |
19086 | s&@docdir@&$docdir&g | |
19087 | s&@infodir@&$infodir&g | |
19088 | s&@localedir@&$localedir&g | |
19089 | s&@mandir@&$mandir&g | |
19090 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19091 | esac | |
19092 | _ACEOF | |
19093 | ||
19094 | # Neutralize VPATH when `$srcdir' = `.'. | |
19095 | # Shell code in configure.ac might set extrasub. | |
19096 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
19097 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19098 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
19099 | $extrasub |
19100 | _ACEOF | |
ec6a6fbe | 19101 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
19102 | :t |
19103 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 19104 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 19105 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 19106 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
19107 | s&@srcdir@&$ac_srcdir&;t t |
19108 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19109 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19110 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19111 | s&@builddir@&$ac_builddir&;t t | |
19112 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19113 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19114 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 19115 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 19116 | $ac_datarootdir_hack |
ec6a6fbe AK |
19117 | " |
19118 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
19119 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19120 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19121 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
19122 | |
19123 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
19124 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
19125 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
ec6a6fbe | 19126 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 19127 | which seems to be undefined. Please make sure it is defined." >&5 |
ec6a6fbe | 19128 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
19129 | which seems to be undefined. Please make sure it is defined." >&2;} |
19130 | ||
19131 | rm -f "$tmp/stdin" | |
72b2cb61 | 19132 | case $ac_file in |
ec6a6fbe AK |
19133 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
19134 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
19135 | esac \ | |
19136 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19137 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19138 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
19139 | ;; |
19140 | :H) | |
19141 | # | |
19142 | # CONFIG_HEADER | |
19143 | # | |
72b2cb61 | 19144 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
19145 | { |
19146 | $as_echo "/* $configure_input */" \ | |
19147 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
19148 | } >"$tmp/config.h" \ | |
19149 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19150 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19151 | { (exit 1); exit 1; }; } | |
19152 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
19153 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
19154 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 19155 | else |
ec6a6fbe AK |
19156 | rm -f "$ac_file" |
19157 | mv "$tmp/config.h" "$ac_file" \ | |
19158 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19159 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19160 | { (exit 1); exit 1; }; } | |
72b2cb61 AK |
19161 | fi |
19162 | else | |
ec6a6fbe AK |
19163 | $as_echo "/* $configure_input */" \ |
19164 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
19165 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
19166 | $as_echo "$as_me: error: could not create -" >&2;} | |
19167 | { (exit 1); exit 1; }; } | |
72b2cb61 | 19168 | fi |
7a197a62 AK |
19169 | ;; |
19170 | ||
19171 | ||
19172 | esac | |
19173 | ||
19174 | done # for ac_tag | |
795ca3e5 | 19175 | |
795ca3e5 | 19176 | |
ad6254c5 AK |
19177 | { (exit 0); exit 0; } |
19178 | _ACEOF | |
795ca3e5 | 19179 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
19180 | ac_clean_files=$ac_clean_files_save |
19181 | ||
ec6a6fbe AK |
19182 | test $ac_write_fail = 0 || |
19183 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
19184 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
19185 | { (exit 1); exit 1; }; } | |
19186 | ||
ad6254c5 AK |
19187 | |
19188 | # configure is writing to config.log, and then calls config.status. | |
19189 | # config.status does its own redirection, appending to config.log. | |
19190 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19191 | # by configure, so config.status won't be able to write to it; its | |
19192 | # output is simply discarded. So we exec the FD to /dev/null, | |
19193 | # effectively closing config.log, so it can be properly (re)opened and | |
19194 | # appended to by config.status. When coming back to configure, we | |
19195 | # need to make the FD available again. | |
19196 | if test "$no_create" != yes; then | |
19197 | ac_cs_success=: | |
19198 | ac_config_status_args= | |
19199 | test "$silent" = yes && | |
19200 | ac_config_status_args="$ac_config_status_args --quiet" | |
19201 | exec 5>/dev/null | |
19202 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19203 | exec 5>>config.log | |
19204 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19205 | # would make configure fail if this is the last instruction. | |
19206 | $ac_cs_success || { (exit 1); exit 1; } | |
19207 | fi | |
ec6a6fbe AK |
19208 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
19209 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19210 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
19211 | fi | |
795ca3e5 | 19212 | |
2dc95e1c AK |
19213 | |
19214 | if test x$ODIRECT != xyes; then | |
ec6a6fbe AK |
19215 | { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
19216 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 19217 | fi |