]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
ec6a6fbe | 3 | # Generated by GNU Autoconf 2.63. |
795ca3e5 | 4 | # |
7a197a62 | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
795ca3e5 AK |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
ad6254c5 AK |
9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
12 | ||
25fbec5b AK |
13 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh | |
17 | NULLCMD=: | |
ec6a6fbe | 18 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
19 | # is contrary to our usage. Disable this feature. |
20 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
21 | setopt NO_GLOB_SUBST |
22 | else | |
25fbec5b AK |
23 | case `(set -o) 2>/dev/null` in |
24 | *posix*) set -o posix ;; | |
25 | esac | |
26 | ||
7a197a62 | 27 | fi |
25fbec5b AK |
28 | |
29 | ||
7a197a62 AK |
30 | |
31 | ||
32 | # PATH needs CR | |
33 | # Avoid depending upon Character Ranges. | |
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37 | as_cr_digits='0123456789' | |
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39 | ||
ec6a6fbe AK |
40 | as_nl=' |
41 | ' | |
42 | export as_nl | |
43 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
44 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
47 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 54 | else |
ec6a6fbe AK |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 67 | fi |
ec6a6fbe AK |
68 | export as_echo_body |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
ad6254c5 AK |
79 | fi |
80 | ||
81 | # Support unset when possible. | |
8a2fc586 | 82 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
83 | as_unset=unset |
84 | else | |
85 | as_unset=false | |
86 | fi | |
87 | ||
88 | ||
7a197a62 AK |
89 | # IFS |
90 | # We need space, tab and new line, in precisely that order. Quoting is | |
91 | # there to prevent editors from complaining about space-tab. | |
92 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
93 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
94 | IFS=" "" $as_nl" |
95 | ||
96 | # Find who we are. Look in the path if we contain no directory separator. | |
97 | case $0 in | |
98 | *[\\/]* ) as_myself=$0 ;; | |
99 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
100 | for as_dir in $PATH | |
101 | do | |
102 | IFS=$as_save_IFS | |
103 | test -z "$as_dir" && as_dir=. | |
104 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
105 | done | |
106 | IFS=$as_save_IFS | |
107 | ||
108 | ;; | |
109 | esac | |
110 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
111 | # in which case we are not to be found in the path. | |
112 | if test "x$as_myself" = x; then | |
113 | as_myself=$0 | |
114 | fi | |
115 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 116 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
117 | { (exit 1); exit 1; } |
118 | fi | |
119 | ||
ad6254c5 | 120 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
121 | for as_var in ENV MAIL MAILPATH |
122 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
123 | done | |
ad6254c5 AK |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
ec6a6fbe AK |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
ad6254c5 AK |
133 | |
134 | # Required to use basename. | |
7a197a62 AK |
135 | if expr a : '\(a\)' >/dev/null 2>&1 && |
136 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
137 | as_expr=expr |
138 | else | |
139 | as_expr=false | |
140 | fi | |
141 | ||
7a197a62 | 142 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
143 | as_basename=basename |
144 | else | |
145 | as_basename=false | |
146 | fi | |
147 | ||
148 | ||
149 | # Name of the executable. | |
7a197a62 | 150 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
152 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 153 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 154 | $as_echo X/"$0" | |
7a197a62 AK |
155 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
156 | s//\1/ | |
157 | q | |
158 | } | |
159 | /^X\/\(\/\/\)$/{ | |
160 | s//\1/ | |
161 | q | |
162 | } | |
163 | /^X\/\(\/\).*/{ | |
164 | s//\1/ | |
165 | q | |
166 | } | |
167 | s/.*/./; q'` | |
ad6254c5 | 168 | |
7a197a62 AK |
169 | # CDPATH. |
170 | $as_unset CDPATH | |
ad6254c5 | 171 | |
ad6254c5 | 172 | |
7a197a62 AK |
173 | if test "x$CONFIG_SHELL" = x; then |
174 | if (eval ":") 2>/dev/null; then | |
175 | as_have_required=yes | |
176 | else | |
177 | as_have_required=no | |
ad6254c5 AK |
178 | fi |
179 | ||
ec6a6fbe | 180 | if test $as_have_required = yes && (eval ": |
7a197a62 AK |
181 | (as_func_return () { |
182 | (exit \$1) | |
183 | } | |
184 | as_func_success () { | |
185 | as_func_return 0 | |
186 | } | |
187 | as_func_failure () { | |
188 | as_func_return 1 | |
189 | } | |
190 | as_func_ret_success () { | |
191 | return 0 | |
192 | } | |
193 | as_func_ret_failure () { | |
194 | return 1 | |
195 | } | |
ad6254c5 | 196 | |
7a197a62 AK |
197 | exitcode=0 |
198 | if as_func_success; then | |
199 | : | |
200 | else | |
201 | exitcode=1 | |
202 | echo as_func_success failed. | |
203 | fi | |
ad6254c5 | 204 | |
7a197a62 AK |
205 | if as_func_failure; then |
206 | exitcode=1 | |
207 | echo as_func_failure succeeded. | |
208 | fi | |
209 | ||
210 | if as_func_ret_success; then | |
211 | : | |
212 | else | |
213 | exitcode=1 | |
214 | echo as_func_ret_success failed. | |
215 | fi | |
216 | ||
217 | if as_func_ret_failure; then | |
218 | exitcode=1 | |
219 | echo as_func_ret_failure succeeded. | |
220 | fi | |
221 | ||
222 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
223 | : | |
224 | else | |
225 | exitcode=1 | |
226 | echo positional parameters were not saved. | |
227 | fi | |
228 | ||
229 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
230 | ||
231 | ( | |
232 | as_lineno_1=\$LINENO | |
233 | as_lineno_2=\$LINENO | |
234 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
235 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
236 | ") 2> /dev/null; then | |
237 | : | |
238 | else | |
239 | as_candidate_shells= | |
ad6254c5 | 240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25fbec5b | 241 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
ad6254c5 AK |
242 | do |
243 | IFS=$as_save_IFS | |
244 | test -z "$as_dir" && as_dir=. | |
7a197a62 | 245 | case $as_dir in |
ad6254c5 | 246 | /*) |
7a197a62 AK |
247 | for as_base in sh bash ksh sh5; do |
248 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
249 | done;; | |
250 | esac | |
251 | done | |
252 | IFS=$as_save_IFS | |
253 | ||
254 | ||
255 | for as_shell in $as_candidate_shells $SHELL; do | |
256 | # Try only shells that exist, to save several forks. | |
257 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
258 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
260 | emulate sh | |
261 | NULLCMD=: | |
ec6a6fbe | 262 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7a197a62 AK |
263 | # is contrary to our usage. Disable this feature. |
264 | alias -g '${1+"$@"}'='"$@"' | |
265 | setopt NO_GLOB_SUBST | |
266 | else | |
25fbec5b AK |
267 | case `(set -o) 2>/dev/null` in |
268 | *posix*) set -o posix ;; | |
269 | esac | |
270 | ||
7a197a62 | 271 | fi |
25fbec5b | 272 | |
7a197a62 AK |
273 | |
274 | : | |
275 | _ASEOF | |
276 | }; then | |
277 | CONFIG_SHELL=$as_shell | |
278 | as_have_required=yes | |
279 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
280 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
281 | emulate sh | |
282 | NULLCMD=: | |
ec6a6fbe | 283 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7a197a62 AK |
284 | # is contrary to our usage. Disable this feature. |
285 | alias -g '${1+"$@"}'='"$@"' | |
286 | setopt NO_GLOB_SUBST | |
287 | else | |
25fbec5b AK |
288 | case `(set -o) 2>/dev/null` in |
289 | *posix*) set -o posix ;; | |
290 | esac | |
291 | ||
7a197a62 | 292 | fi |
25fbec5b | 293 | |
7a197a62 AK |
294 | |
295 | : | |
296 | (as_func_return () { | |
297 | (exit $1) | |
298 | } | |
299 | as_func_success () { | |
300 | as_func_return 0 | |
301 | } | |
302 | as_func_failure () { | |
303 | as_func_return 1 | |
304 | } | |
305 | as_func_ret_success () { | |
306 | return 0 | |
307 | } | |
308 | as_func_ret_failure () { | |
309 | return 1 | |
310 | } | |
311 | ||
312 | exitcode=0 | |
313 | if as_func_success; then | |
314 | : | |
315 | else | |
316 | exitcode=1 | |
317 | echo as_func_success failed. | |
318 | fi | |
319 | ||
320 | if as_func_failure; then | |
321 | exitcode=1 | |
322 | echo as_func_failure succeeded. | |
323 | fi | |
324 | ||
325 | if as_func_ret_success; then | |
326 | : | |
327 | else | |
328 | exitcode=1 | |
329 | echo as_func_ret_success failed. | |
330 | fi | |
331 | ||
332 | if as_func_ret_failure; then | |
333 | exitcode=1 | |
334 | echo as_func_ret_failure succeeded. | |
335 | fi | |
336 | ||
337 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
338 | : | |
339 | else | |
340 | exitcode=1 | |
341 | echo positional parameters were not saved. | |
342 | fi | |
343 | ||
344 | test $exitcode = 0) || { (exit 1); exit 1; } | |
345 | ||
346 | ( | |
ad6254c5 AK |
347 | as_lineno_1=$LINENO |
348 | as_lineno_2=$LINENO | |
ad6254c5 | 349 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 AK |
350 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
351 | ||
352 | _ASEOF | |
353 | }; then | |
354 | break | |
355 | fi | |
356 | ||
357 | fi | |
358 | ||
359 | done | |
360 | ||
361 | if test "x$CONFIG_SHELL" != x; then | |
362 | for as_var in BASH_ENV ENV | |
ec6a6fbe AK |
363 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
364 | done | |
365 | export CONFIG_SHELL | |
366 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
7a197a62 AK |
367 | fi |
368 | ||
369 | ||
370 | if test $as_have_required = no; then | |
371 | echo This script requires a shell more modern than all the | |
372 | echo shells that I found on your system. Please install a | |
373 | echo modern shell, or manually run the script under such a | |
374 | echo shell if you do have one. | |
375 | { (exit 1); exit 1; } | |
376 | fi | |
377 | ||
378 | ||
379 | fi | |
380 | ||
381 | fi | |
382 | ||
383 | ||
384 | ||
385 | (eval "as_func_return () { | |
386 | (exit \$1) | |
387 | } | |
388 | as_func_success () { | |
389 | as_func_return 0 | |
390 | } | |
391 | as_func_failure () { | |
392 | as_func_return 1 | |
393 | } | |
394 | as_func_ret_success () { | |
395 | return 0 | |
396 | } | |
397 | as_func_ret_failure () { | |
398 | return 1 | |
399 | } | |
400 | ||
401 | exitcode=0 | |
402 | if as_func_success; then | |
403 | : | |
404 | else | |
405 | exitcode=1 | |
406 | echo as_func_success failed. | |
407 | fi | |
408 | ||
409 | if as_func_failure; then | |
410 | exitcode=1 | |
411 | echo as_func_failure succeeded. | |
412 | fi | |
413 | ||
414 | if as_func_ret_success; then | |
415 | : | |
416 | else | |
417 | exitcode=1 | |
418 | echo as_func_ret_success failed. | |
419 | fi | |
420 | ||
421 | if as_func_ret_failure; then | |
422 | exitcode=1 | |
423 | echo as_func_ret_failure succeeded. | |
424 | fi | |
425 | ||
426 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
427 | : | |
428 | else | |
429 | exitcode=1 | |
430 | echo positional parameters were not saved. | |
431 | fi | |
432 | ||
433 | test \$exitcode = 0") || { | |
434 | echo No shell found that supports shell functions. | |
ec6a6fbe AK |
435 | echo Please tell bug-autoconf@gnu.org about your system, |
436 | echo including any error possibly output before this message. | |
437 | echo This can help us improve future autoconf versions. | |
438 | echo Configuration will now proceed without shell functions. | |
7a197a62 AK |
439 | } |
440 | ||
441 | ||
442 | ||
443 | as_lineno_1=$LINENO | |
444 | as_lineno_2=$LINENO | |
445 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
446 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
ad6254c5 AK |
447 | |
448 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
449 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
450 | # line-number line after each line using $LINENO; the second 'sed' |
451 | # does the real work. The second script uses 'N' to pair each | |
452 | # line-number line with the line containing $LINENO, and appends | |
453 | # trailing '-' during substitution so that $LINENO is not a special | |
454 | # case at line end. | |
ad6254c5 | 455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
456 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
457 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
458 | sed -n ' | |
459 | p | |
460 | /[$]LINENO/= | |
461 | ' <$as_myself | | |
ad6254c5 | 462 | sed ' |
7a197a62 AK |
463 | s/[$]LINENO.*/&-/ |
464 | t lineno | |
465 | b | |
466 | :lineno | |
ad6254c5 | 467 | N |
7a197a62 AK |
468 | :loop |
469 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 470 | t loop |
7a197a62 | 471 | s/-\n.*// |
ad6254c5 | 472 | ' >$as_me.lineno && |
7a197a62 | 473 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 474 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
475 | { (exit 1); exit 1; }; } |
476 | ||
477 | # Don't try to exec as it changes $[0], causing all sort of problems | |
478 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
479 | # original and so on. Autoconf is especially sensitive to this). |
480 | . "./$as_me.lineno" | |
ad6254c5 AK |
481 | # Exit status is that of the last command. |
482 | exit | |
483 | } | |
795ca3e5 | 484 | |
ad6254c5 | 485 | |
7a197a62 AK |
486 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
487 | as_dirname=dirname | |
488 | else | |
489 | as_dirname=false | |
490 | fi | |
491 | ||
492 | ECHO_C= ECHO_N= ECHO_T= | |
493 | case `echo -n x` in | |
494 | -n*) | |
495 | case `echo 'x\c'` in | |
496 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
497 | *) ECHO_C='\c';; | |
498 | esac;; | |
499 | *) | |
500 | ECHO_N='-n';; | |
ad6254c5 | 501 | esac |
7a197a62 AK |
502 | if expr a : '\(a\)' >/dev/null 2>&1 && |
503 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
504 | as_expr=expr |
505 | else | |
506 | as_expr=false | |
507 | fi | |
508 | ||
509 | rm -f conf$$ conf$$.exe conf$$.file | |
7a197a62 AK |
510 | if test -d conf$$.dir; then |
511 | rm -f conf$$.dir/conf$$.file | |
512 | else | |
513 | rm -f conf$$.dir | |
ec6a6fbe AK |
514 | mkdir conf$$.dir 2>/dev/null |
515 | fi | |
516 | if (echo >conf$$.file) 2>/dev/null; then | |
517 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
518 | as_ln_s='ln -s' | |
519 | # ... but there are two gotchas: | |
520 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
521 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
522 | # In both cases, we have to default to `cp -p'. | |
523 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
524 | as_ln_s='cp -p' | |
525 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
526 | as_ln_s=ln | |
527 | else | |
ad6254c5 | 528 | as_ln_s='cp -p' |
ec6a6fbe | 529 | fi |
ad6254c5 AK |
530 | else |
531 | as_ln_s='cp -p' | |
532 | fi | |
7a197a62 AK |
533 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
534 | rmdir conf$$.dir 2>/dev/null | |
ad6254c5 AK |
535 | |
536 | if mkdir -p . 2>/dev/null; then | |
537 | as_mkdir_p=: | |
538 | else | |
8a2fc586 | 539 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
540 | as_mkdir_p=false |
541 | fi | |
542 | ||
25fbec5b AK |
543 | if test -x / >/dev/null 2>&1; then |
544 | as_test_x='test -x' | |
7a197a62 | 545 | else |
25fbec5b AK |
546 | if ls -dL / >/dev/null 2>&1; then |
547 | as_ls_L_option=L | |
548 | else | |
549 | as_ls_L_option= | |
550 | fi | |
551 | as_test_x=' | |
552 | eval sh -c '\'' | |
553 | if test -d "$1"; then | |
ec6a6fbe | 554 | test -d "$1/."; |
25fbec5b AK |
555 | else |
556 | case $1 in | |
ec6a6fbe | 557 | -*)set "./$1";; |
25fbec5b AK |
558 | esac; |
559 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
560 | ???[sx]*):;;*)false;;esac;fi | |
561 | '\'' sh | |
562 | ' | |
7a197a62 | 563 | fi |
25fbec5b | 564 | as_executable_p=$as_test_x |
ad6254c5 AK |
565 | |
566 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 567 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
568 | |
569 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 570 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
571 | |
572 | ||
ad6254c5 | 573 | |
7a197a62 | 574 | exec 7<&0 </dev/null 6>&1 |
ad6254c5 AK |
575 | |
576 | # Name of the host. | |
577 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
578 | # so uname gets run too. | |
579 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
580 | ||
ad6254c5 AK |
581 | # |
582 | # Initializations. | |
583 | # | |
795ca3e5 | 584 | ac_default_prefix=/usr/local |
7a197a62 | 585 | ac_clean_files= |
ad6254c5 | 586 | ac_config_libobj_dir=. |
7a197a62 | 587 | LIBOBJS= |
ad6254c5 AK |
588 | cross_compiling=no |
589 | subdirs= | |
590 | MFLAGS= | |
591 | MAKEFLAGS= | |
592 | SHELL=${CONFIG_SHELL-/bin/sh} | |
593 | ||
ad6254c5 AK |
594 | # Identity of this package. |
595 | PACKAGE_NAME= | |
596 | PACKAGE_TARNAME= | |
597 | PACKAGE_VERSION= | |
598 | PACKAGE_STRING= | |
599 | PACKAGE_BUGREPORT= | |
600 | ||
601 | ac_unique_file="lib/device/dev-cache.h" | |
602 | # Factoring default headers for most tests. | |
603 | ac_includes_default="\ | |
604 | #include <stdio.h> | |
25fbec5b | 605 | #ifdef HAVE_SYS_TYPES_H |
ad6254c5 AK |
606 | # include <sys/types.h> |
607 | #endif | |
25fbec5b | 608 | #ifdef HAVE_SYS_STAT_H |
ad6254c5 AK |
609 | # include <sys/stat.h> |
610 | #endif | |
25fbec5b | 611 | #ifdef STDC_HEADERS |
ad6254c5 AK |
612 | # include <stdlib.h> |
613 | # include <stddef.h> | |
614 | #else | |
25fbec5b | 615 | # ifdef HAVE_STDLIB_H |
ad6254c5 AK |
616 | # include <stdlib.h> |
617 | # endif | |
618 | #endif | |
25fbec5b AK |
619 | #ifdef HAVE_STRING_H |
620 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
ad6254c5 AK |
621 | # include <memory.h> |
622 | # endif | |
623 | # include <string.h> | |
624 | #endif | |
25fbec5b | 625 | #ifdef HAVE_STRINGS_H |
ad6254c5 AK |
626 | # include <strings.h> |
627 | #endif | |
25fbec5b | 628 | #ifdef HAVE_INTTYPES_H |
ad6254c5 | 629 | # include <inttypes.h> |
ad6254c5 | 630 | #endif |
25fbec5b | 631 | #ifdef HAVE_STDINT_H |
7a197a62 AK |
632 | # include <stdint.h> |
633 | #endif | |
25fbec5b | 634 | #ifdef HAVE_UNISTD_H |
ad6254c5 AK |
635 | # include <unistd.h> |
636 | #endif" | |
637 | ||
795ca3e5 | 638 | ac_default_prefix=/usr |
ec6a6fbe | 639 | ac_subst_vars='LTLIBOBJS |
68f2de6d | 640 | usrsbindir |
ec6a6fbe | 641 | usrlibdir |
a5f46f6a AK |
642 | udevdir |
643 | udev_prefix | |
ec6a6fbe AK |
644 | tmpdir |
645 | kernelvsn | |
646 | missingkernel | |
647 | kerneldir | |
648 | interface | |
23b059e7 | 649 | WRITE_INSTALL |
0878503f | 650 | UDEV_SYNC |
a5f46f6a | 651 | UDEV_RULES |
f7f0854e | 652 | UDEV_PC |
db724a44 | 653 | UDEV_LIBS |
54b362f9 | 654 | TESTING |
ec6a6fbe AK |
655 | STATIC_LINK |
656 | STATICDIR | |
657 | SNAPSHOTS | |
f7f0854e | 658 | SELINUX_PC |
e1b8a236 | 659 | SELINUX_LIBS |
539f4a77 | 660 | READLINE_LIBS |
f30875db | 661 | PTHREAD_LIBS |
ec6a6fbe AK |
662 | POOL |
663 | PKGCONFIG | |
8fea97b7 | 664 | REPLICATORS |
37ddf259 | 665 | OCF |
ec6a6fbe AK |
666 | MIRRORS |
667 | LVM_RELEASE_DATE | |
668 | LVM_RELEASE | |
669 | LVM_PATCHLEVEL | |
670 | LVM_MINOR | |
671 | LVM_MAJOR | |
bf456146 | 672 | LVM_LIBAPI |
ec6a6fbe | 673 | LVM_VERSION |
ec6a6fbe AK |
674 | LVM1_FALLBACK |
675 | LVM1 | |
676 | LOCALEDIR | |
677 | LIB_SUFFIX | |
678 | LDDEPS | |
679 | JOBS | |
680 | INTL_PACKAGE | |
681 | INTL | |
ec6a6fbe AK |
682 | HAVE_REALTIME |
683 | HAVE_LIBDL | |
ec6a6fbe AK |
684 | FSADM |
685 | DM_LIB_PATCHLEVEL | |
686 | DM_LIB_VERSION | |
687 | DM_IOCTLS | |
688 | DM_DEVICE_UID | |
689 | DM_DEVICE_MODE | |
690 | DM_DEVICE_GID | |
691 | DM_COMPAT | |
d1e8046f | 692 | DMEVENTD_PATH |
ec6a6fbe | 693 | DMEVENTD |
19a2c6e0 | 694 | DL_LIBS |
ec6a6fbe | 695 | DEVMAPPER |
b1f08e51 | 696 | DEFAULT_RUN_DIR |
3399ae32 | 697 | DEFAULT_LOCK_DIR |
fea55602 | 698 | DEFAULT_DATA_ALIGNMENT |
3399ae32 AK |
699 | DEFAULT_CACHE_SUBDIR |
700 | DEFAULT_BACKUP_SUBDIR | |
701 | DEFAULT_ARCHIVE_SUBDIR | |
702 | DEFAULT_SYS_DIR | |
ec6a6fbe AK |
703 | DEBUG |
704 | COPTIMISE_FLAG | |
e2997b73 | 705 | CONFDIR |
ec6a6fbe | 706 | CMDLIB |
c89bc357 | 707 | CLVMD_CMANAGERS |
ec6a6fbe AK |
708 | CLVMD |
709 | CLUSTER | |
710 | CLDWHOLEARCHIVE | |
711 | CLDNOWHOLEARCHIVE | |
712 | CLDFLAGS | |
713 | BUILD_DMEVENTD | |
66fd4529 | 714 | BUILD_CMIRRORD |
572fefeb | 715 | APPLIB |
ec6a6fbe AK |
716 | MODPROBE_CMD |
717 | MSGFMT | |
718 | LVM2CMD_LIB | |
572fefeb | 719 | LVM2APP_LIB |
54b362f9 AK |
720 | VALGRIND |
721 | RUBY19 | |
fd4728e1 | 722 | GENPNG |
ec6a6fbe AK |
723 | GENHTML |
724 | LCOV | |
90c80887 AK |
725 | SACKPT_LIBS |
726 | SACKPT_CFLAGS | |
a946372e AK |
727 | DLM_LIBS |
728 | DLM_CFLAGS | |
e2997b73 AK |
729 | CPG_LIBS |
730 | CPG_CFLAGS | |
731 | CONFDB_LIBS | |
732 | CONFDB_CFLAGS | |
a946372e AK |
733 | SALCK_LIBS |
734 | SALCK_CFLAGS | |
e2997b73 AK |
735 | QUORUM_LIBS |
736 | QUORUM_CFLAGS | |
a946372e AK |
737 | COROSYNC_LIBS |
738 | COROSYNC_CFLAGS | |
739 | CMAN_LIBS | |
740 | CMAN_CFLAGS | |
741 | GULM_LIBS | |
742 | GULM_CFLAGS | |
743 | CCS_LIBS | |
744 | CCS_CFLAGS | |
745 | PKGCONFIGINIT_LIBS | |
746 | PKGCONFIGINIT_CFLAGS | |
e2997b73 | 747 | PKG_CONFIG |
ec6a6fbe AK |
748 | POW_LIB |
749 | LIBOBJS | |
750 | ALLOCA | |
751 | CSCOPE_CMD | |
752 | CFLOW_CMD | |
753 | RANLIB | |
754 | MKDIR_P | |
755 | SET_MAKE | |
756 | LN_S | |
757 | INSTALL_DATA | |
758 | INSTALL_SCRIPT | |
759 | INSTALL_PROGRAM | |
760 | EGREP | |
761 | GREP | |
762 | CPP | |
763 | OBJEXT | |
764 | EXEEXT | |
765 | ac_ct_CC | |
766 | CPPFLAGS | |
767 | LDFLAGS | |
768 | CFLAGS | |
769 | CC | |
770 | AWK | |
771 | SED | |
772 | target_os | |
773 | target_vendor | |
774 | target_cpu | |
775 | target | |
776 | host_os | |
777 | host_vendor | |
778 | host_cpu | |
779 | host | |
780 | build_os | |
781 | build_vendor | |
782 | build_cpu | |
783 | build | |
784 | target_alias | |
785 | host_alias | |
786 | build_alias | |
787 | LIBS | |
788 | ECHO_T | |
789 | ECHO_N | |
790 | ECHO_C | |
791 | DEFS | |
792 | mandir | |
793 | localedir | |
794 | libdir | |
795 | psdir | |
796 | pdfdir | |
797 | dvidir | |
798 | htmldir | |
799 | infodir | |
800 | docdir | |
801 | oldincludedir | |
802 | includedir | |
803 | localstatedir | |
804 | sharedstatedir | |
805 | sysconfdir | |
806 | datadir | |
807 | datarootdir | |
808 | libexecdir | |
809 | sbindir | |
810 | bindir | |
811 | program_transform_name | |
812 | prefix | |
813 | exec_prefix | |
814 | PACKAGE_BUGREPORT | |
815 | PACKAGE_STRING | |
816 | PACKAGE_VERSION | |
817 | PACKAGE_TARNAME | |
818 | PACKAGE_NAME | |
819 | PATH_SEPARATOR | |
820 | SHELL' | |
ad6254c5 | 821 | ac_subst_files='' |
ec6a6fbe AK |
822 | ac_user_opts=' |
823 | enable_option_checking | |
824 | enable_static_link | |
825 | with_user | |
826 | with_group | |
827 | with_device_uid | |
828 | with_device_gid | |
829 | with_device_mode | |
830 | enable_lvm1_fallback | |
831 | with_lvm1 | |
832 | with_pool | |
833 | with_cluster | |
834 | with_snapshots | |
835 | with_mirrors | |
8fea97b7 | 836 | with_replicators |
ec6a6fbe AK |
837 | enable_readline |
838 | enable_realtime | |
37ddf259 | 839 | enable_ocf |
ec6a6fbe | 840 | with_clvmd |
8c4e8a18 | 841 | with_clvmd_pidfile |
66fd4529 AK |
842 | enable_cmirrord |
843 | with_cmirrord_pidfile | |
ec6a6fbe AK |
844 | enable_debug |
845 | with_optimisation | |
846 | enable_profiling | |
54b362f9 | 847 | enable_testing |
d1e8046f | 848 | enable_valgrind_pool |
ec6a6fbe | 849 | enable_devmapper |
a5f46f6a AK |
850 | enable_udev_sync |
851 | enable_udev_rules | |
ec6a6fbe | 852 | enable_compat |
95eaa683 | 853 | enable_units_compat |
ec6a6fbe AK |
854 | enable_ioctl |
855 | enable_o_direct | |
572fefeb | 856 | enable_applib |
ec6a6fbe AK |
857 | enable_cmdlib |
858 | enable_pkgconfig | |
23b059e7 | 859 | enable_write_install |
ec6a6fbe AK |
860 | enable_fsadm |
861 | enable_dmeventd | |
862 | enable_selinux | |
863 | enable_nls | |
864 | with_localedir | |
865 | with_confdir | |
866 | with_staticdir | |
867 | with_usrlibdir | |
868 | with_usrsbindir | |
a5f46f6a | 869 | with_udev_prefix |
78ce7acc | 870 | with_udevdir |
ec6a6fbe AK |
871 | with_dmeventd_pidfile |
872 | with_dmeventd_path | |
8bae0a1e | 873 | with_default_run_dir |
3399ae32 AK |
874 | with_default_system_dir |
875 | with_default_archive_subdir | |
876 | with_default_backup_subdir | |
877 | with_default_cache_subdir | |
878 | with_default_locking_dir | |
fea55602 | 879 | with_default_data_alignment |
ec6a6fbe AK |
880 | with_interface |
881 | ' | |
7a197a62 AK |
882 | ac_precious_vars='build_alias |
883 | host_alias | |
884 | target_alias | |
885 | CC | |
886 | CFLAGS | |
887 | LDFLAGS | |
25fbec5b | 888 | LIBS |
7a197a62 | 889 | CPPFLAGS |
e2997b73 AK |
890 | CPP |
891 | PKG_CONFIG | |
a946372e AK |
892 | PKGCONFIGINIT_CFLAGS |
893 | PKGCONFIGINIT_LIBS | |
894 | CCS_CFLAGS | |
895 | CCS_LIBS | |
896 | GULM_CFLAGS | |
897 | GULM_LIBS | |
898 | CMAN_CFLAGS | |
899 | CMAN_LIBS | |
900 | COROSYNC_CFLAGS | |
901 | COROSYNC_LIBS | |
e2997b73 AK |
902 | QUORUM_CFLAGS |
903 | QUORUM_LIBS | |
a946372e AK |
904 | SALCK_CFLAGS |
905 | SALCK_LIBS | |
e2997b73 AK |
906 | CONFDB_CFLAGS |
907 | CONFDB_LIBS | |
908 | CPG_CFLAGS | |
a946372e AK |
909 | CPG_LIBS |
910 | DLM_CFLAGS | |
90c80887 AK |
911 | DLM_LIBS |
912 | SACKPT_CFLAGS | |
913 | SACKPT_LIBS' | |
7a197a62 | 914 | |
795ca3e5 AK |
915 | |
916 | # Initialize some variables set by options. | |
ad6254c5 AK |
917 | ac_init_help= |
918 | ac_init_version=false | |
ec6a6fbe AK |
919 | ac_unrecognized_opts= |
920 | ac_unrecognized_sep= | |
795ca3e5 AK |
921 | # The variables have the same names as the options, with |
922 | # dashes changed to underlines. | |
ad6254c5 | 923 | cache_file=/dev/null |
795ca3e5 | 924 | exec_prefix=NONE |
795ca3e5 | 925 | no_create= |
795ca3e5 AK |
926 | no_recursion= |
927 | prefix=NONE | |
928 | program_prefix=NONE | |
929 | program_suffix=NONE | |
930 | program_transform_name=s,x,x, | |
931 | silent= | |
932 | site= | |
933 | srcdir= | |
795ca3e5 AK |
934 | verbose= |
935 | x_includes=NONE | |
936 | x_libraries=NONE | |
ad6254c5 AK |
937 | |
938 | # Installation directory options. | |
939 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
940 | # and all the variables that are supposed to be based on exec_prefix | |
941 | # by default will actually change. | |
942 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 943 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
944 | bindir='${exec_prefix}/bin' |
945 | sbindir='${exec_prefix}/sbin' | |
946 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
947 | datarootdir='${prefix}/share' |
948 | datadir='${datarootdir}' | |
795ca3e5 AK |
949 | sysconfdir='${prefix}/etc' |
950 | sharedstatedir='${prefix}/com' | |
951 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
952 | includedir='${prefix}/include' |
953 | oldincludedir='/usr/include' | |
7a197a62 AK |
954 | docdir='${datarootdir}/doc/${PACKAGE}' |
955 | infodir='${datarootdir}/info' | |
956 | htmldir='${docdir}' | |
957 | dvidir='${docdir}' | |
958 | pdfdir='${docdir}' | |
959 | psdir='${docdir}' | |
960 | libdir='${exec_prefix}/lib' | |
961 | localedir='${datarootdir}/locale' | |
962 | mandir='${datarootdir}/man' | |
795ca3e5 | 963 | |
795ca3e5 | 964 | ac_prev= |
7a197a62 | 965 | ac_dashdash= |
795ca3e5 AK |
966 | for ac_option |
967 | do | |
795ca3e5 AK |
968 | # If the previous option needs an argument, assign it. |
969 | if test -n "$ac_prev"; then | |
7a197a62 | 970 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
971 | ac_prev= |
972 | continue | |
973 | fi | |
974 | ||
7a197a62 AK |
975 | case $ac_option in |
976 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
977 | *) ac_optarg=yes ;; | |
978 | esac | |
795ca3e5 AK |
979 | |
980 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
981 | ||
7a197a62 AK |
982 | case $ac_dashdash$ac_option in |
983 | --) | |
984 | ac_dashdash=yes ;; | |
795ca3e5 AK |
985 | |
986 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
987 | ac_prev=bindir ;; | |
988 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 989 | bindir=$ac_optarg ;; |
795ca3e5 AK |
990 | |
991 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 992 | ac_prev=build_alias ;; |
795ca3e5 | 993 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 994 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
995 | |
996 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
997 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
998 | ac_prev=cache_file ;; | |
999 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1000 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
1001 | cache_file=$ac_optarg ;; |
1002 | ||
1003 | --config-cache | -C) | |
1004 | cache_file=config.cache ;; | |
795ca3e5 | 1005 | |
7a197a62 | 1006 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 1007 | ac_prev=datadir ;; |
7a197a62 | 1008 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 1009 | datadir=$ac_optarg ;; |
795ca3e5 | 1010 | |
7a197a62 AK |
1011 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1012 | | --dataroo | --dataro | --datar) | |
1013 | ac_prev=datarootdir ;; | |
1014 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1015 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1016 | datarootdir=$ac_optarg ;; | |
1017 | ||
795ca3e5 | 1018 | -disable-* | --disable-*) |
ec6a6fbe | 1019 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 1020 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1021 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1022 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 1023 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1024 | ac_useropt_orig=$ac_useropt |
1025 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1026 | case $ac_user_opts in | |
1027 | *" | |
1028 | "enable_$ac_useropt" | |
1029 | "*) ;; | |
1030 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1031 | ac_unrecognized_sep=', ';; | |
1032 | esac | |
1033 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
1034 | |
1035 | -docdir | --docdir | --docdi | --doc | --do) | |
1036 | ac_prev=docdir ;; | |
1037 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1038 | docdir=$ac_optarg ;; | |
1039 | ||
1040 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1041 | ac_prev=dvidir ;; | |
1042 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1043 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1044 | |
1045 | -enable-* | --enable-*) | |
ec6a6fbe | 1046 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1047 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1048 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1049 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 1050 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1051 | ac_useropt_orig=$ac_useropt |
1052 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1053 | case $ac_user_opts in | |
1054 | *" | |
1055 | "enable_$ac_useropt" | |
1056 | "*) ;; | |
1057 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1058 | ac_unrecognized_sep=', ';; | |
1059 | esac | |
1060 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1061 | |
1062 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1063 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1064 | | --exec | --exe | --ex) | |
1065 | ac_prev=exec_prefix ;; | |
1066 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1067 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1068 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1069 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1070 | |
1071 | -gas | --gas | --ga | --g) | |
1072 | # Obsolete; use --with-gas. | |
1073 | with_gas=yes ;; | |
1074 | ||
ad6254c5 AK |
1075 | -help | --help | --hel | --he | -h) |
1076 | ac_init_help=long ;; | |
1077 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1078 | ac_init_help=recursive ;; | |
1079 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1080 | ac_init_help=short ;; | |
795ca3e5 AK |
1081 | |
1082 | -host | --host | --hos | --ho) | |
ad6254c5 | 1083 | ac_prev=host_alias ;; |
795ca3e5 | 1084 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1085 | host_alias=$ac_optarg ;; |
795ca3e5 | 1086 | |
7a197a62 AK |
1087 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1088 | ac_prev=htmldir ;; | |
1089 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1090 | | --ht=*) | |
1091 | htmldir=$ac_optarg ;; | |
1092 | ||
795ca3e5 AK |
1093 | -includedir | --includedir | --includedi | --included | --include \ |
1094 | | --includ | --inclu | --incl | --inc) | |
1095 | ac_prev=includedir ;; | |
1096 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1097 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1098 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1099 | |
1100 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1101 | ac_prev=infodir ;; | |
1102 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1103 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1104 | |
1105 | -libdir | --libdir | --libdi | --libd) | |
1106 | ac_prev=libdir ;; | |
1107 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1108 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1109 | |
1110 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1111 | | --libexe | --libex | --libe) | |
1112 | ac_prev=libexecdir ;; | |
1113 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1114 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1115 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1116 | |
7a197a62 AK |
1117 | -localedir | --localedir | --localedi | --localed | --locale) |
1118 | ac_prev=localedir ;; | |
1119 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1120 | localedir=$ac_optarg ;; | |
1121 | ||
795ca3e5 | 1122 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1123 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1124 | ac_prev=localstatedir ;; |
1125 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1126 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1127 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1128 | |
1129 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1130 | ac_prev=mandir ;; | |
1131 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1132 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1133 | |
1134 | -nfp | --nfp | --nf) | |
1135 | # Obsolete; use --without-fp. | |
1136 | with_fp=no ;; | |
1137 | ||
1138 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1139 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1140 | no_create=yes ;; |
1141 | ||
1142 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1143 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1144 | no_recursion=yes ;; | |
1145 | ||
1146 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1147 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1148 | | --oldin | --oldi | --old | --ol | --o) | |
1149 | ac_prev=oldincludedir ;; | |
1150 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1151 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1152 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1153 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1154 | |
1155 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1156 | ac_prev=prefix ;; | |
1157 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1158 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1159 | |
1160 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1161 | | --program-pre | --program-pr | --program-p) | |
1162 | ac_prev=program_prefix ;; | |
1163 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1164 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1165 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1166 | |
1167 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1168 | | --program-suf | --program-su | --program-s) | |
1169 | ac_prev=program_suffix ;; | |
1170 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1171 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1172 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1173 | |
1174 | -program-transform-name | --program-transform-name \ | |
1175 | | --program-transform-nam | --program-transform-na \ | |
1176 | | --program-transform-n | --program-transform- \ | |
1177 | | --program-transform | --program-transfor \ | |
1178 | | --program-transfo | --program-transf \ | |
1179 | | --program-trans | --program-tran \ | |
1180 | | --progr-tra | --program-tr | --program-t) | |
1181 | ac_prev=program_transform_name ;; | |
1182 | -program-transform-name=* | --program-transform-name=* \ | |
1183 | | --program-transform-nam=* | --program-transform-na=* \ | |
1184 | | --program-transform-n=* | --program-transform-=* \ | |
1185 | | --program-transform=* | --program-transfor=* \ | |
1186 | | --program-transfo=* | --program-transf=* \ | |
1187 | | --program-trans=* | --program-tran=* \ | |
1188 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1189 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1190 | |
7a197a62 AK |
1191 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1192 | ac_prev=pdfdir ;; | |
1193 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1194 | pdfdir=$ac_optarg ;; | |
1195 | ||
1196 | -psdir | --psdir | --psdi | --psd | --ps) | |
1197 | ac_prev=psdir ;; | |
1198 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1199 | psdir=$ac_optarg ;; | |
1200 | ||
795ca3e5 AK |
1201 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1202 | | -silent | --silent | --silen | --sile | --sil) | |
1203 | silent=yes ;; | |
1204 | ||
1205 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1206 | ac_prev=sbindir ;; | |
1207 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1208 | | --sbi=* | --sb=*) | |
ad6254c5 | 1209 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1210 | |
1211 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1212 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1213 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1214 | | --sha | --sh) | |
1215 | ac_prev=sharedstatedir ;; | |
1216 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1217 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1218 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1219 | | --sha=* | --sh=*) | |
ad6254c5 | 1220 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1221 | |
1222 | -site | --site | --sit) | |
1223 | ac_prev=site ;; | |
1224 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1225 | site=$ac_optarg ;; |
795ca3e5 AK |
1226 | |
1227 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1228 | ac_prev=srcdir ;; | |
1229 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1230 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1231 | |
1232 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1233 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1234 | ac_prev=sysconfdir ;; | |
1235 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1236 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1237 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1238 | |
1239 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1240 | ac_prev=target_alias ;; |
795ca3e5 | 1241 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1242 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1243 | |
1244 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1245 | verbose=yes ;; | |
1246 | ||
ad6254c5 AK |
1247 | -version | --version | --versio | --versi | --vers | -V) |
1248 | ac_init_version=: ;; | |
795ca3e5 AK |
1249 | |
1250 | -with-* | --with-*) | |
ec6a6fbe | 1251 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1252 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1253 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1254 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1255 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1256 | ac_useropt_orig=$ac_useropt |
1257 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1258 | case $ac_user_opts in | |
1259 | *" | |
1260 | "with_$ac_useropt" | |
1261 | "*) ;; | |
1262 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1263 | ac_unrecognized_sep=', ';; | |
1264 | esac | |
1265 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1266 | |
1267 | -without-* | --without-*) | |
ec6a6fbe | 1268 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1269 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1270 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1271 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1272 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1273 | ac_useropt_orig=$ac_useropt |
1274 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1275 | case $ac_user_opts in | |
1276 | *" | |
1277 | "with_$ac_useropt" | |
1278 | "*) ;; | |
1279 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1280 | ac_unrecognized_sep=', ';; | |
1281 | esac | |
1282 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1283 | |
1284 | --x) | |
1285 | # Obsolete; use --with-x. | |
1286 | with_x=yes ;; | |
1287 | ||
1288 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1289 | | --x-incl | --x-inc | --x-in | --x-i) | |
1290 | ac_prev=x_includes ;; | |
1291 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1292 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1293 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1294 | |
1295 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1296 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1297 | ac_prev=x_libraries ;; | |
1298 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1299 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1300 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1301 | |
ec6a6fbe | 1302 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1303 | Try \`$0 --help' for more information." >&2 |
1304 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1305 | ;; |
1306 | ||
ad6254c5 AK |
1307 | *=*) |
1308 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1309 | # Reject names that are not valid shell variable names. | |
1310 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
ec6a6fbe | 1311 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1312 | { (exit 1); exit 1; }; } |
7a197a62 | 1313 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1314 | export $ac_envvar ;; |
1315 | ||
795ca3e5 | 1316 | *) |
ad6254c5 | 1317 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1318 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1319 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1320 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1321 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1322 | ;; |
1323 | ||
1324 | esac | |
1325 | done | |
1326 | ||
1327 | if test -n "$ac_prev"; then | |
ad6254c5 | 1328 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
ec6a6fbe | 1329 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1330 | { (exit 1); exit 1; }; } |
795ca3e5 | 1331 | fi |
795ca3e5 | 1332 | |
ec6a6fbe AK |
1333 | if test -n "$ac_unrecognized_opts"; then |
1334 | case $enable_option_checking in | |
1335 | no) ;; | |
1336 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1337 | { (exit 1); exit 1; }; } ;; | |
1338 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1339 | esac | |
1340 | fi | |
1341 | ||
1342 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1343 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1344 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1345 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1346 | libdir localedir mandir | |
795ca3e5 | 1347 | do |
7a197a62 | 1348 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1349 | # Remove trailing slashes. |
1350 | case $ac_val in | |
1351 | */ ) | |
1352 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1353 | eval $ac_var=\$ac_val;; | |
1354 | esac | |
1355 | # Be sure to have absolute directory names. | |
ad6254c5 | 1356 | case $ac_val in |
7a197a62 AK |
1357 | [\\/$]* | ?:[\\/]* ) continue;; |
1358 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1359 | esac |
ec6a6fbe | 1360 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1361 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1362 | done |
1363 | ||
ad6254c5 AK |
1364 | # There might be people who depend on the old broken behavior: `$host' |
1365 | # used to hold the argument of --host etc. | |
1366 | # FIXME: To remove some day. | |
1367 | build=$build_alias | |
1368 | host=$host_alias | |
1369 | target=$target_alias | |
1370 | ||
1371 | # FIXME: To remove some day. | |
1372 | if test "x$host_alias" != x; then | |
1373 | if test "x$build_alias" = x; then | |
1374 | cross_compiling=maybe | |
ec6a6fbe | 1375 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1376 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1377 | elif test "x$build_alias" != "x$host_alias"; then | |
1378 | cross_compiling=yes | |
1379 | fi | |
1380 | fi | |
8106cdd5 | 1381 | |
ad6254c5 AK |
1382 | ac_tool_prefix= |
1383 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1384 | ||
1385 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1386 | |
795ca3e5 | 1387 | |
7a197a62 AK |
1388 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1389 | ac_ls_di=`ls -di .` && | |
1390 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
ec6a6fbe | 1391 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
7a197a62 AK |
1392 | { (exit 1); exit 1; }; } |
1393 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
ec6a6fbe | 1394 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1395 | { (exit 1); exit 1; }; } |
1396 | ||
1397 | ||
795ca3e5 AK |
1398 | # Find the source files, if location was not specified. |
1399 | if test -z "$srcdir"; then | |
1400 | ac_srcdir_defaulted=yes | |
7a197a62 | 1401 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1402 | ac_confdir=`$as_dirname -- "$as_myself" || |
1403 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1404 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1405 | X"$as_myself" : 'X\(//\)$' \| \ | |
1406 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1407 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1408 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1409 | s//\1/ | |
1410 | q | |
1411 | } | |
1412 | /^X\(\/\/\)[^/].*/{ | |
1413 | s//\1/ | |
1414 | q | |
1415 | } | |
1416 | /^X\(\/\/\)$/{ | |
1417 | s//\1/ | |
1418 | q | |
1419 | } | |
1420 | /^X\(\/\).*/{ | |
1421 | s//\1/ | |
1422 | q | |
1423 | } | |
1424 | s/.*/./; q'` | |
795ca3e5 | 1425 | srcdir=$ac_confdir |
7a197a62 | 1426 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1427 | srcdir=.. |
1428 | fi | |
1429 | else | |
1430 | ac_srcdir_defaulted=no | |
1431 | fi | |
7a197a62 AK |
1432 | if test ! -r "$srcdir/$ac_unique_file"; then |
1433 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
ec6a6fbe | 1434 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1435 | { (exit 1); exit 1; }; } |
795ca3e5 | 1436 | fi |
7a197a62 AK |
1437 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1438 | ac_abs_confdir=`( | |
ec6a6fbe | 1439 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1440 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1441 | pwd)` |
1442 | # When building in place, set srcdir=. | |
1443 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1444 | srcdir=. | |
1445 | fi | |
1446 | # Remove unnecessary trailing slashes from srcdir. | |
1447 | # Double slashes in file names in object file debugging info | |
1448 | # mess up M-x gdb in Emacs. | |
1449 | case $srcdir in | |
1450 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1451 | esac | |
1452 | for ac_var in $ac_precious_vars; do | |
1453 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1454 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1455 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1456 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1457 | done | |
ad6254c5 AK |
1458 | |
1459 | # | |
1460 | # Report the --help message. | |
1461 | # | |
1462 | if test "$ac_init_help" = "long"; then | |
1463 | # Omit some internal or obsolete options to make the list less imposing. | |
1464 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1465 | cat <<_ACEOF | |
1466 | \`configure' configures this package to adapt to many kinds of systems. | |
1467 | ||
1468 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1469 | ||
1470 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1471 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1472 | ||
1473 | Defaults for the options are specified in brackets. | |
1474 | ||
1475 | Configuration: | |
1476 | -h, --help display this help and exit | |
1477 | --help=short display options specific to this package | |
1478 | --help=recursive display the short help of all the included packages | |
1479 | -V, --version display version information and exit | |
1480 | -q, --quiet, --silent do not print \`checking...' messages | |
1481 | --cache-file=FILE cache test results in FILE [disabled] | |
1482 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1483 | -n, --no-create do not create output files | |
1484 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1485 | ||
ad6254c5 AK |
1486 | Installation directories: |
1487 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1488 | [$ac_default_prefix] |
ad6254c5 | 1489 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1490 | [PREFIX] |
ad6254c5 AK |
1491 | |
1492 | By default, \`make install' will install all the files in | |
1493 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1494 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1495 | for instance \`--prefix=\$HOME'. | |
1496 | ||
1497 | For better control, use the options below. | |
1498 | ||
1499 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1500 | --bindir=DIR user executables [EPREFIX/bin] |
1501 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1502 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1503 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1504 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1505 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1506 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1507 | --includedir=DIR C header files [PREFIX/include] | |
1508 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1509 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1510 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1511 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1512 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1513 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1514 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1515 | --htmldir=DIR html documentation [DOCDIR] | |
1516 | --dvidir=DIR dvi documentation [DOCDIR] | |
1517 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1518 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1519 | _ACEOF |
1520 | ||
1521 | cat <<\_ACEOF | |
1522 | ||
1523 | System types: | |
1524 | --build=BUILD configure for building on BUILD [guessed] | |
1525 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1526 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1527 | _ACEOF | |
1528 | fi | |
1529 | ||
1530 | if test -n "$ac_init_help"; then | |
1531 | ||
1532 | cat <<\_ACEOF | |
1533 | ||
1534 | Optional Features: | |
ec6a6fbe | 1535 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1536 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1537 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
71082be4 ZK |
1538 | --enable-static_link use this to link the tools to their libraries |
1539 | statically (default is dynamic linking | |
1540 | --enable-lvm1_fallback use this to fall back and use LVM1 binaries if | |
ad6254c5 | 1541 | device-mapper is missing from the kernel |
71082be4 ZK |
1542 | --disable-readline disable readline support |
1543 | --enable-realtime enable realtime clock support | |
37ddf259 AK |
1544 | --enable-ocf enable Open Cluster Framework (OCF) compliant |
1545 | resource agents | |
71082be4 ZK |
1546 | --enable-cmirrord enable the cluster mirror log daemon |
1547 | --enable-debug enable debugging | |
1548 | --enable-profiling gather gcov profiling data | |
54b362f9 | 1549 | --enable-testing enable testing targets in the makefile |
d1e8046f | 1550 | --enable-valgrind-pool enable valgrind awareness of pools |
71082be4 ZK |
1551 | --disable-devmapper disable LVM2 device-mapper interaction |
1552 | --enable-udev_sync enable synchronisation with udev processing | |
1553 | --enable-udev_rules install rule files needed for udev synchronisation | |
1554 | --enable-compat enable support for old device-mapper versions | |
1555 | --enable-units-compat enable output compatibility with old versions that | |
1556 | that do not use KiB-style unit suffixes | |
1557 | --disable-driver disable calls to device-mapper in the kernel | |
1558 | --disable-o_direct disable O_DIRECT | |
1559 | --enable-applib build application library | |
1560 | --enable-cmdlib build shared command library | |
1561 | --enable-pkgconfig install pkgconfig support | |
1562 | --enable-write_install install user writable files | |
1563 | --disable-fsadm disable fsadm | |
1564 | --enable-dmeventd enable the device-mapper event daemon | |
1565 | --disable-selinux disable selinux support | |
1566 | --enable-nls enable Native Language Support | |
ad6254c5 AK |
1567 | |
1568 | Optional Packages: | |
1569 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1570 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
71082be4 ZK |
1571 | --with-user=USER set the owner of installed files [USER=] |
1572 | --with-group=GROUP set the group owner of installed files [GROUP=] | |
1573 | --with-device-uid=UID set the owner used for new device nodes [UID=0] | |
1574 | --with-device-gid=GID set the group used for new device nodes [GID=0] | |
1575 | --with-device-mode=MODE set the mode used for new device nodes [MODE=0600] | |
ad6254c5 | 1576 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
71082be4 | 1577 | [TYPE=internal] |
ad6254c5 | 1578 | --with-pool=TYPE GFS pool read-only support: internal/shared/none |
71082be4 ZK |
1579 | [TYPE=internal] |
1580 | --with-cluster=TYPE cluster LVM locking support: internal/shared/none | |
1581 | [TYPE=internal] | |
1582 | --with-snapshots=TYPE snapshot support: internal/shared/none | |
1583 | [TYPE=internal] | |
1584 | --with-mirrors=TYPE mirror support: internal/shared/none | |
1585 | [TYPE=internal] | |
1586 | --with-replicators=TYPE replicator support: internal/shared/none | |
1587 | [TYPE=none] | |
1588 | --with-clvmd=TYPE build cluster LVM Daemon | |
8c222979 | 1589 | The following cluster manager combinations are valid: |
a946372e AK |
1590 | * cman,gulm (RHEL4 or equivalent) |
1591 | * cman (RHEL5 or equivalent) | |
1592 | * cman,corosync,openais (or selection of them) | |
1091650a | 1593 | * singlenode (localhost only) |
a946372e AK |
1594 | * all (autodetect) |
1595 | * none (disable build) | |
71082be4 | 1596 | [TYPE=none] |
8c4e8a18 FDN |
1597 | --with-clvmd-pidfile=PATH |
1598 | clvmd pidfile [/var/run/clvmd.pid] | |
71082be4 ZK |
1599 | --with-cmirrord-pidfile=PATH |
1600 | cmirrord pidfile [/var/run/cmirrord.pid] | |
d0191583 | 1601 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
71082be4 ZK |
1602 | --with-localedir=DIR translation files in DIR [PREFIX/share/locale] |
1603 | --with-confdir=DIR configuration files in DIR [/etc] | |
1604 | --with-staticdir=DIR static binaries in DIR [EPREFIX/sbin] | |
1605 | --with-usrlibdir=DIR usrlib in DIR [PREFIX/lib] | |
1606 | --with-usrsbindir=DIR usrsbin executables in DIR [PREFIX/sbin] | |
1607 | --with-udev-prefix=UPREFIX | |
1608 | install udev rule files in UPREFIX [EPREFIX] | |
78ce7acc | 1609 | --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d] |
71082be4 ZK |
1610 | --with-dmeventd-pidfile=PATH |
1611 | dmeventd pidfile [/var/run/dmeventd.pid] | |
1612 | --with-dmeventd-path=PATH | |
1613 | dmeventd path [EPREFIX/sbin/dmeventd] | |
8bae0a1e | 1614 | --with-default-run-dir=DIR Default run directory [/var/run/lvm] |
71082be4 ZK |
1615 | --with-default-system-dir=DIR |
1616 | default LVM system directory [/etc/lvm] | |
1617 | --with-default-archive-subdir=SUBDIR | |
1618 | default metadata archive subdir [archive] | |
1619 | --with-default-backup-subdir=SUBDIR | |
1620 | default metadata backup subdir [backup] | |
1621 | --with-default-cache-subdir=SUBDIR | |
1622 | default metadata cache subdir [cache] | |
1623 | --with-default-locking-dir=DIR | |
1624 | default locking directory [/var/lock/lvm] | |
fea55602 DW |
1625 | --with-default-data-alignment=NUM |
1626 | set the default data alignment in MiB [1] | |
71082be4 | 1627 | --with-interface=IFACE choose kernel interface (ioctl) [ioctl] |
ad6254c5 AK |
1628 | |
1629 | Some influential environment variables: | |
1630 | CC C compiler command | |
1631 | CFLAGS C compiler flags | |
1632 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1633 | nonstandard directory <lib dir> | |
25fbec5b | 1634 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1635 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1636 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 | 1637 | CPP C preprocessor |
e2997b73 | 1638 | PKG_CONFIG path to pkg-config utility |
a946372e AK |
1639 | PKGCONFIGINIT_CFLAGS |
1640 | C compiler flags for PKGCONFIGINIT, overriding pkg-config | |
1641 | PKGCONFIGINIT_LIBS | |
1642 | linker flags for PKGCONFIGINIT, overriding pkg-config | |
1643 | CCS_CFLAGS C compiler flags for CCS, overriding pkg-config | |
1644 | CCS_LIBS linker flags for CCS, overriding pkg-config | |
1645 | GULM_CFLAGS C compiler flags for GULM, overriding pkg-config | |
1646 | GULM_LIBS linker flags for GULM, overriding pkg-config | |
1647 | CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config | |
1648 | CMAN_LIBS linker flags for CMAN, overriding pkg-config | |
1649 | COROSYNC_CFLAGS | |
1650 | C compiler flags for COROSYNC, overriding pkg-config | |
1651 | COROSYNC_LIBS | |
1652 | linker flags for COROSYNC, overriding pkg-config | |
e2997b73 AK |
1653 | QUORUM_CFLAGS |
1654 | C compiler flags for QUORUM, overriding pkg-config | |
1655 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
a946372e AK |
1656 | SALCK_CFLAGS |
1657 | C compiler flags for SALCK, overriding pkg-config | |
1658 | SALCK_LIBS linker flags for SALCK, overriding pkg-config | |
e2997b73 AK |
1659 | CONFDB_CFLAGS |
1660 | C compiler flags for CONFDB, overriding pkg-config | |
1661 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
1662 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1663 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
a946372e AK |
1664 | DLM_CFLAGS C compiler flags for DLM, overriding pkg-config |
1665 | DLM_LIBS linker flags for DLM, overriding pkg-config | |
90c80887 AK |
1666 | SACKPT_CFLAGS |
1667 | C compiler flags for SACKPT, overriding pkg-config | |
1668 | SACKPT_LIBS linker flags for SACKPT, overriding pkg-config | |
ad6254c5 AK |
1669 | |
1670 | Use these variables to override the choices made by `configure' or to help | |
1671 | it to find libraries and programs with nonstandard names/locations. | |
1672 | ||
1673 | _ACEOF | |
7a197a62 | 1674 | ac_status=$? |
ad6254c5 AK |
1675 | fi |
1676 | ||
1677 | if test "$ac_init_help" = "recursive"; then | |
1678 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1679 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1680 | test -d "$ac_dir" || |
1681 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1682 | continue | |
ad6254c5 AK |
1683 | ac_builddir=. |
1684 | ||
7a197a62 AK |
1685 | case "$ac_dir" in |
1686 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1687 | *) | |
ec6a6fbe | 1688 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1689 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1690 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1691 | case $ac_top_builddir_sub in |
1692 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1693 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1694 | esac ;; | |
1695 | esac | |
1696 | ac_abs_top_builddir=$ac_pwd | |
1697 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1698 | # for backward compatibility: | |
1699 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1700 | |
1701 | case $srcdir in | |
7a197a62 | 1702 | .) # We are building in place. |
ad6254c5 | 1703 | ac_srcdir=. |
7a197a62 AK |
1704 | ac_top_srcdir=$ac_top_builddir_sub |
1705 | ac_abs_top_srcdir=$ac_pwd ;; | |
1706 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1707 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1708 | ac_top_srcdir=$srcdir |
1709 | ac_abs_top_srcdir=$srcdir ;; | |
1710 | *) # Relative name. | |
1711 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1712 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1713 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1714 | esac |
7a197a62 AK |
1715 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1716 | ||
1717 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1718 | # Check for guested configure. | |
1719 | if test -f "$ac_srcdir/configure.gnu"; then | |
1720 | echo && | |
1721 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1722 | elif test -f "$ac_srcdir/configure"; then | |
1723 | echo && | |
1724 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1725 | else |
ec6a6fbe | 1726 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1727 | fi || ac_status=$? |
1728 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1729 | done |
1730 | fi | |
1731 | ||
7a197a62 | 1732 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1733 | if $ac_init_version; then |
1734 | cat <<\_ACEOF | |
7a197a62 | 1735 | configure |
ec6a6fbe | 1736 | generated by GNU Autoconf 2.63 |
ad6254c5 | 1737 | |
7a197a62 | 1738 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 1739 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
1740 | This configure script is free software; the Free Software Foundation |
1741 | gives unlimited permission to copy, distribute and modify it. | |
1742 | _ACEOF | |
7a197a62 | 1743 | exit |
ad6254c5 | 1744 | fi |
7a197a62 | 1745 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1746 | This file contains any messages produced by compilers while |
1747 | running configure, to aid debugging if configure makes a mistake. | |
1748 | ||
1749 | It was created by $as_me, which was | |
ec6a6fbe | 1750 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
1751 | |
1752 | $ $0 $@ | |
1753 | ||
1754 | _ACEOF | |
7a197a62 | 1755 | exec 5>>config.log |
ad6254c5 AK |
1756 | { |
1757 | cat <<_ASUNAME | |
1758 | ## --------- ## | |
1759 | ## Platform. ## | |
1760 | ## --------- ## | |
1761 | ||
1762 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1763 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1764 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1765 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1766 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1767 | ||
1768 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1769 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1770 | ||
1771 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1772 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1773 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1774 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1775 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1776 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1777 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1778 | ||
1779 | _ASUNAME | |
1780 | ||
1781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1782 | for as_dir in $PATH | |
1783 | do | |
1784 | IFS=$as_save_IFS | |
1785 | test -z "$as_dir" && as_dir=. | |
ec6a6fbe | 1786 | $as_echo "PATH: $as_dir" |
ad6254c5 | 1787 | done |
7a197a62 | 1788 | IFS=$as_save_IFS |
ad6254c5 AK |
1789 | |
1790 | } >&5 | |
1791 | ||
1792 | cat >&5 <<_ACEOF | |
1793 | ||
1794 | ||
1795 | ## ----------- ## | |
1796 | ## Core tests. ## | |
1797 | ## ----------- ## | |
1798 | ||
1799 | _ACEOF | |
1800 | ||
1801 | ||
1802 | # Keep a trace of the command line. | |
1803 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1804 | # Strip out --silent because we don't want to record it for future runs. | |
1805 | # Also quote any args containing shell meta-characters. | |
1806 | # Make two passes to allow for proper duplicate-argument suppression. | |
1807 | ac_configure_args= | |
1808 | ac_configure_args0= | |
1809 | ac_configure_args1= | |
ad6254c5 AK |
1810 | ac_must_keep_next=false |
1811 | for ac_pass in 1 2 | |
1812 | do | |
1813 | for ac_arg | |
1814 | do | |
1815 | case $ac_arg in | |
1816 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1817 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1818 | | -silent | --silent | --silen | --sile | --sil) | |
1819 | continue ;; | |
7a197a62 | 1820 | *\'*) |
ec6a6fbe | 1821 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1822 | esac |
1823 | case $ac_pass in | |
1824 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1825 | 2) | |
1826 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1827 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1828 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1829 | else |
8a2fc586 AK |
1830 | case $ac_arg in |
1831 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1832 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1833 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1834 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1835 | case "$ac_configure_args0 " in | |
1836 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1837 | esac | |
1838 | ;; | |
1839 | -* ) ac_must_keep_next=true ;; | |
1840 | esac | |
ad6254c5 | 1841 | fi |
7a197a62 | 1842 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1843 | ;; |
1844 | esac | |
1845 | done | |
1846 | done | |
1847 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1848 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1849 | ||
1850 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1851 | # config.log. We remove comments because anyway the quotes in there | |
1852 | # would cause problems or look ugly. | |
7a197a62 AK |
1853 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1854 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1855 | trap 'exit_status=$? |
1856 | # Save into config.log some information that might help in debugging. | |
1857 | { | |
1858 | echo | |
1859 | ||
1860 | cat <<\_ASBOX | |
1861 | ## ---------------- ## | |
1862 | ## Cache variables. ## | |
1863 | ## ---------------- ## | |
1864 | _ASBOX | |
1865 | echo | |
1866 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1867 | ( |
1868 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1869 | eval ac_val=\$$ac_var | |
1870 | case $ac_val in #( | |
1871 | *${as_nl}*) | |
1872 | case $ac_var in #( | |
ec6a6fbe AK |
1873 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1874 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
1875 | esac |
1876 | case $ac_var in #( | |
1877 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 1878 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
1879 | *) $as_unset $ac_var ;; |
1880 | esac ;; | |
1881 | esac | |
1882 | done | |
ad6254c5 | 1883 | (set) 2>&1 | |
7a197a62 AK |
1884 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1885 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1886 | sed -n \ |
7a197a62 AK |
1887 | "s/'\''/'\''\\\\'\'''\''/g; |
1888 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1889 | ;; #( | |
ad6254c5 | 1890 | *) |
7a197a62 | 1891 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1892 | ;; |
7a197a62 AK |
1893 | esac | |
1894 | sort | |
1895 | ) | |
ad6254c5 AK |
1896 | echo |
1897 | ||
1898 | cat <<\_ASBOX | |
1899 | ## ----------------- ## | |
1900 | ## Output variables. ## | |
1901 | ## ----------------- ## | |
1902 | _ASBOX | |
1903 | echo | |
1904 | for ac_var in $ac_subst_vars | |
1905 | do | |
7a197a62 AK |
1906 | eval ac_val=\$$ac_var |
1907 | case $ac_val in | |
ec6a6fbe | 1908 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1909 | esac |
ec6a6fbe | 1910 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1911 | done | sort |
1912 | echo | |
1913 | ||
1914 | if test -n "$ac_subst_files"; then | |
1915 | cat <<\_ASBOX | |
7a197a62 AK |
1916 | ## ------------------- ## |
1917 | ## File substitutions. ## | |
1918 | ## ------------------- ## | |
ad6254c5 AK |
1919 | _ASBOX |
1920 | echo | |
1921 | for ac_var in $ac_subst_files | |
1922 | do | |
7a197a62 AK |
1923 | eval ac_val=\$$ac_var |
1924 | case $ac_val in | |
ec6a6fbe | 1925 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1926 | esac |
ec6a6fbe | 1927 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1928 | done | sort |
1929 | echo | |
1930 | fi | |
1931 | ||
1932 | if test -s confdefs.h; then | |
1933 | cat <<\_ASBOX | |
1934 | ## ----------- ## | |
1935 | ## confdefs.h. ## | |
1936 | ## ----------- ## | |
1937 | _ASBOX | |
1938 | echo | |
7a197a62 | 1939 | cat confdefs.h |
ad6254c5 AK |
1940 | echo |
1941 | fi | |
1942 | test "$ac_signal" != 0 && | |
ec6a6fbe AK |
1943 | $as_echo "$as_me: caught signal $ac_signal" |
1944 | $as_echo "$as_me: exit $exit_status" | |
ad6254c5 | 1945 | } >&5 |
7a197a62 AK |
1946 | rm -f core *.core core.conftest.* && |
1947 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1948 | exit $exit_status |
7a197a62 | 1949 | ' 0 |
ad6254c5 AK |
1950 | for ac_signal in 1 2 13 15; do |
1951 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1952 | done | |
1953 | ac_signal=0 | |
1954 | ||
1955 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1956 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1957 | |
1958 | # Predefined preprocessor variables. | |
1959 | ||
1960 | cat >>confdefs.h <<_ACEOF | |
1961 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1962 | _ACEOF | |
1963 | ||
1964 | ||
1965 | cat >>confdefs.h <<_ACEOF | |
1966 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1967 | _ACEOF | |
1968 | ||
1969 | ||
1970 | cat >>confdefs.h <<_ACEOF | |
1971 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1972 | _ACEOF | |
8106cdd5 | 1973 | |
ad6254c5 AK |
1974 | |
1975 | cat >>confdefs.h <<_ACEOF | |
1976 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1977 | _ACEOF | |
1978 | ||
1979 | ||
1980 | cat >>confdefs.h <<_ACEOF | |
1981 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1982 | _ACEOF | |
1983 | ||
1984 | ||
1985 | # Let the site file select an alternate cache file if it wants to. | |
ec6a6fbe AK |
1986 | # Prefer an explicitly selected file to automatically selected ones. |
1987 | ac_site_file1=NONE | |
1988 | ac_site_file2=NONE | |
7a197a62 | 1989 | if test -n "$CONFIG_SITE"; then |
ec6a6fbe | 1990 | ac_site_file1=$CONFIG_SITE |
7a197a62 | 1991 | elif test "x$prefix" != xNONE; then |
ec6a6fbe AK |
1992 | ac_site_file1=$prefix/share/config.site |
1993 | ac_site_file2=$prefix/etc/config.site | |
7a197a62 | 1994 | else |
ec6a6fbe AK |
1995 | ac_site_file1=$ac_default_prefix/share/config.site |
1996 | ac_site_file2=$ac_default_prefix/etc/config.site | |
795ca3e5 | 1997 | fi |
ec6a6fbe | 1998 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7a197a62 | 1999 | do |
ec6a6fbe | 2000 | test "x$ac_site_file" = xNONE && continue |
795ca3e5 | 2001 | if test -r "$ac_site_file"; then |
ec6a6fbe AK |
2002 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
2003 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 2004 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
2005 | . "$ac_site_file" |
2006 | fi | |
2007 | done | |
2008 | ||
2009 | if test -r "$cache_file"; then | |
ad6254c5 AK |
2010 | # Some versions of bash will fail to source /dev/null (special |
2011 | # files actually), so we avoid doing that. | |
2012 | if test -f "$cache_file"; then | |
ec6a6fbe AK |
2013 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
2014 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 2015 | case $cache_file in |
7a197a62 AK |
2016 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2017 | *) . "./$cache_file";; | |
ad6254c5 AK |
2018 | esac |
2019 | fi | |
795ca3e5 | 2020 | else |
ec6a6fbe AK |
2021 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
2022 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
2023 | >$cache_file |
2024 | fi | |
2025 | ||
2026 | # Check that the precious variables saved in the cache have kept the same | |
2027 | # value. | |
2028 | ac_cache_corrupted=false | |
7a197a62 | 2029 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
2030 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2031 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
2032 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2033 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
2034 | case $ac_old_set,$ac_new_set in |
2035 | set,) | |
ec6a6fbe AK |
2036 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2037 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
2038 | ac_cache_corrupted=: ;; |
2039 | ,set) | |
ec6a6fbe AK |
2040 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
2041 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
2042 | ac_cache_corrupted=: ;; |
2043 | ,);; | |
2044 | *) | |
2045 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ec6a6fbe AK |
2046 | # differences in whitespace do not lead to failure. |
2047 | ac_old_val_w=`echo x $ac_old_val` | |
2048 | ac_new_val_w=`echo x $ac_new_val` | |
2049 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2050 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
2051 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2052 | ac_cache_corrupted=: | |
2053 | else | |
2054 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2055 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2056 | eval $ac_var=\$ac_old_val | |
2057 | fi | |
2058 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
2059 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2060 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
2061 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
ad6254c5 AK |
2062 | fi;; |
2063 | esac | |
2064 | # Pass precious variables to config.status. | |
2065 | if test "$ac_new_set" = set; then | |
2066 | case $ac_new_val in | |
ec6a6fbe | 2067 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
2068 | *) ac_arg=$ac_var=$ac_new_val ;; |
2069 | esac | |
2070 | case " $ac_configure_args " in | |
2071 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2072 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
2073 | esac | |
2074 | fi | |
2075 | done | |
2076 | if $ac_cache_corrupted; then | |
ec6a6fbe AK |
2077 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2078 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2079 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2080 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2081 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2082 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 2083 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
2084 | fi |
2085 | ||
ad6254c5 AK |
2086 | |
2087 | ||
2088 | ||
2089 | ||
2090 | ||
2091 | ||
2092 | ||
2093 | ||
2094 | ||
2095 | ||
2096 | ||
2097 | ||
2098 | ||
2099 | ||
2100 | ||
2101 | ||
7a197a62 AK |
2102 | ac_ext=c |
2103 | ac_cpp='$CPP $CPPFLAGS' | |
2104 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2105 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2106 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 2107 | |
795ca3e5 AK |
2108 | |
2109 | ||
7a197a62 | 2110 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
2111 | |
2112 | ||
80992638 | 2113 | ################################################################################ |
795ca3e5 | 2114 | ac_aux_dir= |
7a197a62 AK |
2115 | for ac_dir in autoconf "$srcdir"/autoconf; do |
2116 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
2117 | ac_aux_dir=$ac_dir |
2118 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2119 | break | |
7a197a62 | 2120 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
2121 | ac_aux_dir=$ac_dir |
2122 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2123 | break | |
7a197a62 | 2124 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
2125 | ac_aux_dir=$ac_dir |
2126 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2127 | break | |
795ca3e5 AK |
2128 | fi |
2129 | done | |
2130 | if test -z "$ac_aux_dir"; then | |
ec6a6fbe AK |
2131 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
2132 | $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 2133 | { (exit 1); exit 1; }; } |
795ca3e5 | 2134 | fi |
7a197a62 AK |
2135 | |
2136 | # These three variables are undocumented and unsupported, | |
2137 | # and are intended to be withdrawn in a future Autoconf release. | |
2138 | # They can cause serious problems if a builder's source tree is in a directory | |
2139 | # whose full name contains unusual characters. | |
2140 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2141 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2142 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2143 | ||
8ce0cbda AK |
2144 | |
2145 | ||
ad6254c5 | 2146 | ################################################################################ |
8ce0cbda | 2147 | # Make sure we can run config.sub. |
7a197a62 | 2148 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
ec6a6fbe AK |
2149 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2150 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
2151 | { (exit 1); exit 1; }; } |
2152 | ||
ec6a6fbe AK |
2153 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2154 | $as_echo_n "checking build system type... " >&6; } | |
ad6254c5 | 2155 | if test "${ac_cv_build+set}" = set; then |
ec6a6fbe | 2156 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2157 | else |
7a197a62 AK |
2158 | ac_build_alias=$build_alias |
2159 | test "x$ac_build_alias" = x && | |
2160 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2161 | test "x$ac_build_alias" = x && | |
ec6a6fbe AK |
2162 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2163 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 2164 | { (exit 1); exit 1; }; } |
7a197a62 | 2165 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
ec6a6fbe AK |
2166 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2167 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
2168 | { (exit 1); exit 1; }; } |
2169 | ||
2170 | fi | |
ec6a6fbe AK |
2171 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2172 | $as_echo "$ac_cv_build" >&6; } | |
7a197a62 AK |
2173 | case $ac_cv_build in |
2174 | *-*-*) ;; | |
ec6a6fbe AK |
2175 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2176 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
2177 | { (exit 1); exit 1; }; };; |
2178 | esac | |
ad6254c5 | 2179 | build=$ac_cv_build |
7a197a62 AK |
2180 | ac_save_IFS=$IFS; IFS='-' |
2181 | set x $ac_cv_build | |
2182 | shift | |
2183 | build_cpu=$1 | |
2184 | build_vendor=$2 | |
2185 | shift; shift | |
2186 | # Remember, the first character of IFS is used to create $*, | |
2187 | # except with old shells: | |
2188 | build_os=$* | |
2189 | IFS=$ac_save_IFS | |
2190 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2191 | |
2192 | ||
ec6a6fbe AK |
2193 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
2194 | $as_echo_n "checking host system type... " >&6; } | |
ad6254c5 | 2195 | if test "${ac_cv_host+set}" = set; then |
ec6a6fbe | 2196 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2197 | else |
7a197a62 AK |
2198 | if test "x$host_alias" = x; then |
2199 | ac_cv_host=$ac_cv_build | |
2200 | else | |
2201 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
ec6a6fbe AK |
2202 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2203 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 2204 | { (exit 1); exit 1; }; } |
7a197a62 | 2205 | fi |
ad6254c5 AK |
2206 | |
2207 | fi | |
ec6a6fbe AK |
2208 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2209 | $as_echo "$ac_cv_host" >&6; } | |
7a197a62 AK |
2210 | case $ac_cv_host in |
2211 | *-*-*) ;; | |
ec6a6fbe AK |
2212 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2213 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
2214 | { (exit 1); exit 1; }; };; |
2215 | esac | |
ad6254c5 | 2216 | host=$ac_cv_host |
7a197a62 AK |
2217 | ac_save_IFS=$IFS; IFS='-' |
2218 | set x $ac_cv_host | |
2219 | shift | |
2220 | host_cpu=$1 | |
2221 | host_vendor=$2 | |
2222 | shift; shift | |
2223 | # Remember, the first character of IFS is used to create $*, | |
2224 | # except with old shells: | |
2225 | host_os=$* | |
2226 | IFS=$ac_save_IFS | |
2227 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2228 | |
2229 | ||
ec6a6fbe AK |
2230 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
2231 | $as_echo_n "checking target system type... " >&6; } | |
ad6254c5 | 2232 | if test "${ac_cv_target+set}" = set; then |
ec6a6fbe | 2233 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2234 | else |
7a197a62 AK |
2235 | if test "x$target_alias" = x; then |
2236 | ac_cv_target=$ac_cv_host | |
2237 | else | |
2238 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
ec6a6fbe AK |
2239 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
2240 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 2241 | { (exit 1); exit 1; }; } |
7a197a62 | 2242 | fi |
8ce0cbda | 2243 | |
ad6254c5 | 2244 | fi |
ec6a6fbe AK |
2245 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2246 | $as_echo "$ac_cv_target" >&6; } | |
7a197a62 AK |
2247 | case $ac_cv_target in |
2248 | *-*-*) ;; | |
ec6a6fbe AK |
2249 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
2250 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
2251 | { (exit 1); exit 1; }; };; |
2252 | esac | |
ad6254c5 | 2253 | target=$ac_cv_target |
7a197a62 AK |
2254 | ac_save_IFS=$IFS; IFS='-' |
2255 | set x $ac_cv_target | |
2256 | shift | |
2257 | target_cpu=$1 | |
2258 | target_vendor=$2 | |
2259 | shift; shift | |
2260 | # Remember, the first character of IFS is used to create $*, | |
2261 | # except with old shells: | |
2262 | target_os=$* | |
2263 | IFS=$ac_save_IFS | |
2264 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 2265 | |
8ce0cbda | 2266 | |
ad6254c5 AK |
2267 | # The aliases save the names the user supplied, while $host etc. |
2268 | # will get canonicalized. | |
2269 | test -n "$target_alias" && | |
8ce0cbda AK |
2270 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2271 | NONENONEs,x,x, && | |
2272 | program_prefix=${target_alias}- | |
2273 | ||
8ce0cbda AK |
2274 | case "$host_os" in |
2275 | linux*) | |
7f54ef36 | 2276 | CFLAGS="$CFLAGS" |
8ce0cbda AK |
2277 | COPTIMISE_FLAG="-O2" |
2278 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2279 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2280 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2281 | LDDEPS="$LDDEPS .export.sym" | |
2282 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 2283 | LIB_SUFFIX=so |
8ce0cbda AK |
2284 | DEVMAPPER=yes |
2285 | ODIRECT=yes | |
d0191583 | 2286 | DM_IOCTLS=yes |
8ce0cbda AK |
2287 | SELINUX=yes |
2288 | CLUSTER=internal | |
93bd259b | 2289 | FSADM=yes |
d0191583 | 2290 | ;; |
8ce0cbda AK |
2291 | darwin*) |
2292 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2293 | COPTIMISE_FLAG="-O2" | |
2294 | CLDFLAGS="$CLDFLAGS" | |
2295 | CLDWHOLEARCHIVE="-all_load" | |
2296 | CLDNOWHOLEARCHIVE= | |
d0191583 | 2297 | LIB_SUFFIX=dylib |
a653923f | 2298 | DEVMAPPER=yes |
8ce0cbda | 2299 | ODIRECT=no |
d0191583 | 2300 | DM_IOCTLS=no |
8ce0cbda AK |
2301 | SELINUX=no |
2302 | CLUSTER=none | |
d0191583 JM |
2303 | FSADM=no |
2304 | ;; | |
8ce0cbda AK |
2305 | esac |
2306 | ||
80992638 | 2307 | ################################################################################ |
ec6a6fbe AK |
2308 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
2309 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5951ef33 | 2310 | if test "${ac_cv_path_SED+set}" = set; then |
ec6a6fbe | 2311 | $as_echo_n "(cached) " >&6 |
5951ef33 AK |
2312 | else |
2313 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2314 | for ac_i in 1 2 3 4 5 6 7; do | |
2315 | ac_script="$ac_script$as_nl$ac_script" | |
2316 | done | |
ec6a6fbe | 2317 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
5951ef33 | 2318 | $as_unset ac_script || ac_script= |
ec6a6fbe | 2319 | if test -z "$SED"; then |
5951ef33 | 2320 | ac_path_SED_found=false |
ec6a6fbe AK |
2321 | # Loop through the user's path and test for each of PROGNAME-LIST |
2322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5951ef33 AK |
2323 | for as_dir in $PATH |
2324 | do | |
2325 | IFS=$as_save_IFS | |
2326 | test -z "$as_dir" && as_dir=. | |
2327 | for ac_prog in sed gsed; do | |
ec6a6fbe AK |
2328 | for ac_exec_ext in '' $ac_executable_extensions; do |
2329 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2330 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2331 | # Check for GNU ac_path_SED and select it if it is found. | |
5951ef33 AK |
2332 | # Check for GNU $ac_path_SED |
2333 | case `"$ac_path_SED" --version 2>&1` in | |
2334 | *GNU*) | |
2335 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2336 | *) | |
2337 | ac_count=0 | |
ec6a6fbe | 2338 | $as_echo_n 0123456789 >"conftest.in" |
5951ef33 AK |
2339 | while : |
2340 | do | |
2341 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2342 | mv "conftest.tmp" "conftest.in" | |
2343 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 2344 | $as_echo '' >> "conftest.nl" |
5951ef33 AK |
2345 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
2346 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2347 | ac_count=`expr $ac_count + 1` | |
2348 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2349 | # Best one so far, save it but keep looking for a better one | |
2350 | ac_cv_path_SED="$ac_path_SED" | |
2351 | ac_path_SED_max=$ac_count | |
2352 | fi | |
2353 | # 10*(2^10) chars as input seems more than enough | |
2354 | test $ac_count -gt 10 && break | |
2355 | done | |
2356 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2357 | esac | |
2358 | ||
ec6a6fbe AK |
2359 | $ac_path_SED_found && break 3 |
2360 | done | |
5951ef33 AK |
2361 | done |
2362 | done | |
5951ef33 | 2363 | IFS=$as_save_IFS |
ec6a6fbe AK |
2364 | if test -z "$ac_cv_path_SED"; then |
2365 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
2366 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
5951ef33 | 2367 | { (exit 1); exit 1; }; } |
ec6a6fbe | 2368 | fi |
5951ef33 AK |
2369 | else |
2370 | ac_cv_path_SED=$SED | |
2371 | fi | |
2372 | ||
2373 | fi | |
ec6a6fbe AK |
2374 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
2375 | $as_echo "$ac_cv_path_SED" >&6; } | |
5951ef33 AK |
2376 | SED="$ac_cv_path_SED" |
2377 | rm -f conftest.sed | |
2378 | ||
ad6254c5 | 2379 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2380 | do |
ad6254c5 | 2381 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2382 | set dummy $ac_prog; ac_word=$2 |
ec6a6fbe AK |
2383 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2384 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2385 | if test "${ac_cv_prog_AWK+set}" = set; then |
ec6a6fbe | 2386 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2387 | else |
2388 | if test -n "$AWK"; then | |
2389 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2390 | else | |
ad6254c5 AK |
2391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2392 | for as_dir in $PATH | |
2393 | do | |
2394 | IFS=$as_save_IFS | |
2395 | test -z "$as_dir" && as_dir=. | |
2396 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2397 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2398 | ac_cv_prog_AWK="$ac_prog" |
ec6a6fbe | 2399 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2400 | break 2 |
2401 | fi | |
2402 | done | |
2403 | done | |
7a197a62 | 2404 | IFS=$as_save_IFS |
ad6254c5 | 2405 | |
795ca3e5 AK |
2406 | fi |
2407 | fi | |
ad6254c5 | 2408 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2409 | if test -n "$AWK"; then |
ec6a6fbe AK |
2410 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2411 | $as_echo "$AWK" >&6; } | |
795ca3e5 | 2412 | else |
ec6a6fbe AK |
2413 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2414 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2415 | fi |
2416 | ||
7a197a62 | 2417 | |
ad6254c5 AK |
2418 | test -n "$AWK" && break |
2419 | done | |
2420 | ||
2421 | ac_ext=c | |
2422 | ac_cpp='$CPP $CPPFLAGS' | |
2423 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2424 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2425 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2426 | if test -n "$ac_tool_prefix"; then | |
2427 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2428 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
ec6a6fbe AK |
2429 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2430 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2431 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2432 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2433 | else |
2434 | if test -n "$CC"; then | |
2435 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2436 | else | |
2437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2438 | for as_dir in $PATH | |
2439 | do | |
2440 | IFS=$as_save_IFS | |
2441 | test -z "$as_dir" && as_dir=. | |
2442 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2443 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2444 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
ec6a6fbe | 2445 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2446 | break 2 |
2447 | fi | |
2448 | done | |
8106cdd5 | 2449 | done |
7a197a62 | 2450 | IFS=$as_save_IFS |
8106cdd5 | 2451 | |
ad6254c5 AK |
2452 | fi |
2453 | fi | |
2454 | CC=$ac_cv_prog_CC | |
2455 | if test -n "$CC"; then | |
ec6a6fbe AK |
2456 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2457 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2458 | else |
ec6a6fbe AK |
2459 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2460 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2461 | fi |
2462 | ||
7a197a62 | 2463 | |
ad6254c5 AK |
2464 | fi |
2465 | if test -z "$ac_cv_prog_CC"; then | |
2466 | ac_ct_CC=$CC | |
2467 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2468 | set dummy gcc; ac_word=$2 |
ec6a6fbe AK |
2469 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2470 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2471 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2472 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2473 | else |
2474 | if test -n "$ac_ct_CC"; then | |
2475 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2476 | else | |
2477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2478 | for as_dir in $PATH | |
2479 | do | |
2480 | IFS=$as_save_IFS | |
2481 | test -z "$as_dir" && as_dir=. | |
2482 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2483 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2484 | ac_cv_prog_ac_ct_CC="gcc" |
ec6a6fbe | 2485 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2486 | break 2 |
2487 | fi | |
2488 | done | |
2489 | done | |
7a197a62 | 2490 | IFS=$as_save_IFS |
ad6254c5 AK |
2491 | |
2492 | fi | |
2493 | fi | |
2494 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2495 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2496 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2497 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2498 | else |
ec6a6fbe AK |
2499 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2500 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2501 | fi |
2502 | ||
7a197a62 AK |
2503 | if test "x$ac_ct_CC" = x; then |
2504 | CC="" | |
2505 | else | |
2506 | case $cross_compiling:$ac_tool_warned in | |
2507 | yes:) | |
ec6a6fbe AK |
2508 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2509 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2510 | ac_tool_warned=yes ;; |
2511 | esac | |
2512 | CC=$ac_ct_CC | |
2513 | fi | |
ad6254c5 AK |
2514 | else |
2515 | CC="$ac_cv_prog_CC" | |
2516 | fi | |
2517 | ||
2518 | if test -z "$CC"; then | |
7a197a62 AK |
2519 | if test -n "$ac_tool_prefix"; then |
2520 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2521 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
ec6a6fbe AK |
2522 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2523 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2524 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2525 | $as_echo_n "(cached) " >&6 |
8106cdd5 AK |
2526 | else |
2527 | if test -n "$CC"; then | |
2528 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2529 | else | |
ad6254c5 AK |
2530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2531 | for as_dir in $PATH | |
2532 | do | |
2533 | IFS=$as_save_IFS | |
2534 | test -z "$as_dir" && as_dir=. | |
2535 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2536 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2537 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
ec6a6fbe | 2538 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2539 | break 2 |
2540 | fi | |
2541 | done | |
2542 | done | |
7a197a62 | 2543 | IFS=$as_save_IFS |
ad6254c5 | 2544 | |
8106cdd5 AK |
2545 | fi |
2546 | fi | |
ad6254c5 | 2547 | CC=$ac_cv_prog_CC |
8106cdd5 | 2548 | if test -n "$CC"; then |
ec6a6fbe AK |
2549 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2550 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2551 | else |
ec6a6fbe AK |
2552 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2553 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2554 | fi |
2555 | ||
8106cdd5 | 2556 | |
7a197a62 | 2557 | fi |
ad6254c5 | 2558 | fi |
795ca3e5 AK |
2559 | if test -z "$CC"; then |
2560 | # Extract the first word of "cc", so it can be a program name with args. | |
2561 | set dummy cc; ac_word=$2 | |
ec6a6fbe AK |
2562 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2563 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2564 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2565 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2566 | else |
2567 | if test -n "$CC"; then | |
2568 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2569 | else | |
795ca3e5 | 2570 | ac_prog_rejected=no |
ad6254c5 AK |
2571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2572 | for as_dir in $PATH | |
2573 | do | |
2574 | IFS=$as_save_IFS | |
2575 | test -z "$as_dir" && as_dir=. | |
2576 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2577 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2578 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2579 | ac_prog_rejected=yes | |
2580 | continue | |
2581 | fi | |
2582 | ac_cv_prog_CC="cc" | |
ec6a6fbe | 2583 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2584 | break 2 |
2585 | fi | |
2586 | done | |
2587 | done | |
7a197a62 | 2588 | IFS=$as_save_IFS |
ad6254c5 | 2589 | |
795ca3e5 AK |
2590 | if test $ac_prog_rejected = yes; then |
2591 | # We found a bogon in the path, so make sure we never use it. | |
2592 | set dummy $ac_cv_prog_CC | |
2593 | shift | |
ad6254c5 | 2594 | if test $# != 0; then |
795ca3e5 AK |
2595 | # We chose a different compiler from the bogus one. |
2596 | # However, it has the same basename, so the bogon will be chosen | |
2597 | # first if we set CC to just the basename; use the full file name. | |
2598 | shift | |
ad6254c5 | 2599 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2600 | fi |
2601 | fi | |
2602 | fi | |
2603 | fi | |
ad6254c5 | 2604 | CC=$ac_cv_prog_CC |
795ca3e5 | 2605 | if test -n "$CC"; then |
ec6a6fbe AK |
2606 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2607 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2608 | else |
ec6a6fbe AK |
2609 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2610 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2611 | fi |
2612 | ||
7a197a62 | 2613 | |
ad6254c5 AK |
2614 | fi |
2615 | if test -z "$CC"; then | |
2616 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2617 | for ac_prog in cl.exe |
ad6254c5 AK |
2618 | do |
2619 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2620 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2621 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2622 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2623 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2624 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2625 | else |
2626 | if test -n "$CC"; then | |
2627 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2628 | else | |
ad6254c5 AK |
2629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2630 | for as_dir in $PATH | |
2631 | do | |
2632 | IFS=$as_save_IFS | |
2633 | test -z "$as_dir" && as_dir=. | |
2634 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2635 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2636 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
ec6a6fbe | 2637 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2638 | break 2 |
2639 | fi | |
2640 | done | |
2641 | done | |
7a197a62 | 2642 | IFS=$as_save_IFS |
ad6254c5 | 2643 | |
795ca3e5 AK |
2644 | fi |
2645 | fi | |
ad6254c5 | 2646 | CC=$ac_cv_prog_CC |
795ca3e5 | 2647 | if test -n "$CC"; then |
ec6a6fbe AK |
2648 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2649 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2650 | else |
ec6a6fbe AK |
2651 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2652 | $as_echo "no" >&6; } | |
795ca3e5 | 2653 | fi |
ad6254c5 | 2654 | |
7a197a62 | 2655 | |
ad6254c5 AK |
2656 | test -n "$CC" && break |
2657 | done | |
2658 | fi | |
2659 | if test -z "$CC"; then | |
2660 | ac_ct_CC=$CC | |
7a197a62 | 2661 | for ac_prog in cl.exe |
ad6254c5 AK |
2662 | do |
2663 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2664 | set dummy $ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2665 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2666 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2667 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2668 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2669 | else |
2670 | if test -n "$ac_ct_CC"; then | |
2671 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2672 | else | |
2673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2674 | for as_dir in $PATH | |
2675 | do | |
2676 | IFS=$as_save_IFS | |
2677 | test -z "$as_dir" && as_dir=. | |
2678 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2679 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2680 | ac_cv_prog_ac_ct_CC="$ac_prog" |
ec6a6fbe | 2681 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2682 | break 2 |
795ca3e5 | 2683 | fi |
ad6254c5 AK |
2684 | done |
2685 | done | |
7a197a62 | 2686 | IFS=$as_save_IFS |
ad6254c5 AK |
2687 | |
2688 | fi | |
2689 | fi | |
2690 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2691 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2692 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2693 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2694 | else |
ec6a6fbe AK |
2695 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2696 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2697 | fi |
2698 | ||
7a197a62 | 2699 | |
ad6254c5 AK |
2700 | test -n "$ac_ct_CC" && break |
2701 | done | |
795ca3e5 | 2702 | |
7a197a62 AK |
2703 | if test "x$ac_ct_CC" = x; then |
2704 | CC="" | |
2705 | else | |
2706 | case $cross_compiling:$ac_tool_warned in | |
2707 | yes:) | |
ec6a6fbe AK |
2708 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2709 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2710 | ac_tool_warned=yes ;; |
2711 | esac | |
2712 | CC=$ac_ct_CC | |
2713 | fi | |
ad6254c5 AK |
2714 | fi |
2715 | ||
2716 | fi | |
2717 | ||
2718 | ||
ec6a6fbe AK |
2719 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2720 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2721 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
ad6254c5 | 2722 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2723 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2724 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2725 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2726 | |
2727 | # Provide some information about the compiler. | |
ec6a6fbe AK |
2728 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2729 | set X $ac_compile | |
2730 | ac_compiler=$2 | |
7a197a62 AK |
2731 | { (ac_try="$ac_compiler --version >&5" |
2732 | case "(($ac_try" in | |
2733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2734 | *) ac_try_echo=$ac_try;; | |
2735 | esac | |
ec6a6fbe AK |
2736 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2737 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2738 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2739 | ac_status=$? |
ec6a6fbe | 2740 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2741 | (exit $ac_status); } |
7a197a62 AK |
2742 | { (ac_try="$ac_compiler -v >&5" |
2743 | case "(($ac_try" in | |
2744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2745 | *) ac_try_echo=$ac_try;; | |
2746 | esac | |
ec6a6fbe AK |
2747 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2748 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2749 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2750 | ac_status=$? |
ec6a6fbe | 2751 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2752 | (exit $ac_status); } |
7a197a62 AK |
2753 | { (ac_try="$ac_compiler -V >&5" |
2754 | case "(($ac_try" in | |
2755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2756 | *) ac_try_echo=$ac_try;; | |
2757 | esac | |
ec6a6fbe AK |
2758 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2759 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2760 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2761 | ac_status=$? |
ec6a6fbe | 2762 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2763 | (exit $ac_status); } |
2764 | ||
2765 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2766 | /* confdefs.h. */ |
2767 | _ACEOF | |
2768 | cat confdefs.h >>conftest.$ac_ext | |
2769 | cat >>conftest.$ac_ext <<_ACEOF | |
2770 | /* end confdefs.h. */ | |
2771 | ||
2772 | int | |
2773 | main () | |
2774 | { | |
2775 | ||
2776 | ; | |
2777 | return 0; | |
2778 | } | |
2779 | _ACEOF | |
2780 | ac_clean_files_save=$ac_clean_files | |
ec6a6fbe | 2781 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
ad6254c5 AK |
2782 | # Try to create an executable without -o first, disregard a.out. |
2783 | # It will help us diagnose broken compilers, and finding out an intuition | |
2784 | # of exeext. | |
ec6a6fbe AK |
2785 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2786 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2787 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2788 | ||
2789 | # The possible output files: | |
2790 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2791 | ||
7a197a62 AK |
2792 | ac_rmfiles= |
2793 | for ac_file in $ac_files | |
2794 | do | |
2795 | case $ac_file in | |
ec6a6fbe | 2796 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7a197a62 AK |
2797 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2798 | esac | |
2799 | done | |
2800 | rm -f $ac_rmfiles | |
2801 | ||
2802 | if { (ac_try="$ac_link_default" | |
2803 | case "(($ac_try" in | |
2804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2805 | *) ac_try_echo=$ac_try;; | |
2806 | esac | |
ec6a6fbe AK |
2807 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2808 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2809 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2810 | ac_status=$? |
ec6a6fbe | 2811 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2812 | (exit $ac_status); }; then |
7a197a62 AK |
2813 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2814 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2815 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2816 | # so that the user can short-circuit this test for compilers unknown to | |
2817 | # Autoconf. | |
25fbec5b | 2818 | for ac_file in $ac_files '' |
ad6254c5 AK |
2819 | do |
2820 | test -f "$ac_file" || continue | |
2821 | case $ac_file in | |
ec6a6fbe | 2822 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
8a2fc586 | 2823 | ;; |
ad6254c5 | 2824 | [ab].out ) |
8a2fc586 AK |
2825 | # We found the default executable, but exeext='' is most |
2826 | # certainly right. | |
2827 | break;; | |
ad6254c5 | 2828 | *.* ) |
7a197a62 AK |
2829 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2830 | then :; else | |
2831 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2832 | fi | |
2833 | # We set ac_cv_exeext here because the later test for it is not | |
2834 | # safe: cross compilers may not add the suffix if given an `-o' | |
2835 | # argument, so we may need to know it at that point already. | |
2836 | # Even if this section looks crufty: it has the advantage of | |
2837 | # actually working. | |
8a2fc586 | 2838 | break;; |
ad6254c5 | 2839 | * ) |
8a2fc586 | 2840 | break;; |
ad6254c5 AK |
2841 | esac |
2842 | done | |
7a197a62 AK |
2843 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2844 | ||
ad6254c5 | 2845 | else |
25fbec5b AK |
2846 | ac_file='' |
2847 | fi | |
2848 | ||
ec6a6fbe AK |
2849 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2850 | $as_echo "$ac_file" >&6; } | |
25fbec5b | 2851 | if test -z "$ac_file"; then |
ec6a6fbe | 2852 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2853 | sed 's/^/| /' conftest.$ac_ext >&5 |
2854 | ||
ec6a6fbe AK |
2855 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2856 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2857 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
ad6254c5 | 2858 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2859 | $as_echo "$as_me: error: C compiler cannot create executables |
ad6254c5 | 2860 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2861 | { (exit 77); exit 77; }; }; } |
ad6254c5 AK |
2862 | fi |
2863 | ||
2864 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2865 | |
7a197a62 | 2866 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2867 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2868 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2869 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
ad6254c5 AK |
2870 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2871 | # If not cross compiling, check that we can run a simple program. | |
2872 | if test "$cross_compiling" != yes; then | |
2873 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2874 | { (case "(($ac_try" in |
2875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2876 | *) ac_try_echo=$ac_try;; | |
2877 | esac | |
ec6a6fbe AK |
2878 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2879 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2880 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2881 | ac_status=$? |
ec6a6fbe | 2882 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2883 | (exit $ac_status); }; }; then |
2884 | cross_compiling=no | |
795ca3e5 | 2885 | else |
ad6254c5 AK |
2886 | if test "$cross_compiling" = maybe; then |
2887 | cross_compiling=yes | |
2888 | else | |
ec6a6fbe AK |
2889 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2890 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2891 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
ad6254c5 AK |
2892 | If you meant to cross compile, use \`--host'. |
2893 | See \`config.log' for more details." >&5 | |
ec6a6fbe | 2894 | $as_echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2895 | If you meant to cross compile, use \`--host'. |
2896 | See \`config.log' for more details." >&2;} | |
ec6a6fbe | 2897 | { (exit 1); exit 1; }; }; } |
ad6254c5 | 2898 | fi |
795ca3e5 | 2899 | fi |
80992638 | 2900 | fi |
ec6a6fbe AK |
2901 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2902 | $as_echo "yes" >&6; } | |
ad6254c5 | 2903 | |
ec6a6fbe | 2904 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2905 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2906 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2907 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2908 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2909 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2910 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2911 | $as_echo "$cross_compiling" >&6; } | |
7a197a62 | 2912 | |
ec6a6fbe AK |
2913 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2914 | $as_echo_n "checking for suffix of executables... " >&6; } | |
7a197a62 AK |
2915 | if { (ac_try="$ac_link" |
2916 | case "(($ac_try" in | |
2917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2918 | *) ac_try_echo=$ac_try;; | |
2919 | esac | |
ec6a6fbe AK |
2920 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2921 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2922 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2923 | ac_status=$? |
ec6a6fbe | 2924 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2925 | (exit $ac_status); }; then |
2926 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2927 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2928 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2929 | # `rm'. | |
2930 | for ac_file in conftest.exe conftest conftest.*; do | |
2931 | test -f "$ac_file" || continue | |
2932 | case $ac_file in | |
ec6a6fbe | 2933 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
ad6254c5 | 2934 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2935 | break;; |
ad6254c5 AK |
2936 | * ) break;; |
2937 | esac | |
2938 | done | |
80992638 | 2939 | else |
ec6a6fbe AK |
2940 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2941 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2942 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
ad6254c5 | 2943 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2944 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2945 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2946 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2947 | fi |
2948 | ||
2949 | rm -f conftest$ac_cv_exeext | |
ec6a6fbe AK |
2950 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2951 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2952 | |
2953 | rm -f conftest.$ac_ext | |
2954 | EXEEXT=$ac_cv_exeext | |
2955 | ac_exeext=$EXEEXT | |
ec6a6fbe AK |
2956 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2957 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ad6254c5 | 2958 | if test "${ac_cv_objext+set}" = set; then |
ec6a6fbe | 2959 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2960 | else |
ad6254c5 | 2961 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2962 | /* confdefs.h. */ |
2963 | _ACEOF | |
2964 | cat confdefs.h >>conftest.$ac_ext | |
2965 | cat >>conftest.$ac_ext <<_ACEOF | |
2966 | /* end confdefs.h. */ | |
2967 | ||
2968 | int | |
2969 | main () | |
2970 | { | |
2971 | ||
2972 | ; | |
2973 | return 0; | |
2974 | } | |
2975 | _ACEOF | |
2976 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2977 | if { (ac_try="$ac_compile" |
2978 | case "(($ac_try" in | |
2979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2980 | *) ac_try_echo=$ac_try;; | |
2981 | esac | |
ec6a6fbe AK |
2982 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2983 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2984 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2985 | ac_status=$? |
ec6a6fbe | 2986 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2987 | (exit $ac_status); }; then |
7a197a62 AK |
2988 | for ac_file in conftest.o conftest.obj conftest.*; do |
2989 | test -f "$ac_file" || continue; | |
ad6254c5 | 2990 | case $ac_file in |
ec6a6fbe | 2991 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
ad6254c5 AK |
2992 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2993 | break;; | |
2994 | esac | |
2995 | done | |
2996 | else | |
ec6a6fbe | 2997 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2998 | sed 's/^/| /' conftest.$ac_ext >&5 |
2999 | ||
ec6a6fbe AK |
3000 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3001 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3002 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
ad6254c5 | 3003 | See \`config.log' for more details." >&5 |
ec6a6fbe | 3004 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 3005 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 3006 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
3007 | fi |
3008 | ||
3009 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3010 | fi | |
ec6a6fbe AK |
3011 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3012 | $as_echo "$ac_cv_objext" >&6; } | |
ad6254c5 AK |
3013 | OBJEXT=$ac_cv_objext |
3014 | ac_objext=$OBJEXT | |
ec6a6fbe AK |
3015 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3016 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
ad6254c5 | 3017 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
ec6a6fbe | 3018 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
3019 | else |
3020 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3021 | /* confdefs.h. */ |
3022 | _ACEOF | |
3023 | cat confdefs.h >>conftest.$ac_ext | |
3024 | cat >>conftest.$ac_ext <<_ACEOF | |
3025 | /* end confdefs.h. */ | |
3026 | ||
3027 | int | |
3028 | main () | |
3029 | { | |
3030 | #ifndef __GNUC__ | |
3031 | choke me | |
3032 | #endif | |
80992638 | 3033 | |
ad6254c5 AK |
3034 | ; |
3035 | return 0; | |
3036 | } | |
3037 | _ACEOF | |
3038 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3039 | if { (ac_try="$ac_compile" |
3040 | case "(($ac_try" in | |
3041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3042 | *) ac_try_echo=$ac_try;; | |
3043 | esac | |
ec6a6fbe AK |
3044 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3045 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3046 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3047 | ac_status=$? |
8a2fc586 AK |
3048 | grep -v '^ *+' conftest.er1 >conftest.err |
3049 | rm -f conftest.er1 | |
3050 | cat conftest.err >&5 | |
ec6a6fbe | 3051 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3052 | (exit $ac_status); } && { |
3053 | test -z "$ac_c_werror_flag" || | |
3054 | test ! -s conftest.err | |
3055 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 3056 | ac_compiler_gnu=yes |
80992638 | 3057 | else |
ec6a6fbe | 3058 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3059 | sed 's/^/| /' conftest.$ac_ext >&5 |
3060 | ||
7a197a62 | 3061 | ac_compiler_gnu=no |
8106cdd5 | 3062 | fi |
7a197a62 AK |
3063 | |
3064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 3065 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 3066 | |
ad6254c5 | 3067 | fi |
ec6a6fbe AK |
3068 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3069 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3070 | if test $ac_compiler_gnu = yes; then | |
3071 | GCC=yes | |
3072 | else | |
3073 | GCC= | |
3074 | fi | |
ad6254c5 AK |
3075 | ac_test_CFLAGS=${CFLAGS+set} |
3076 | ac_save_CFLAGS=$CFLAGS | |
ec6a6fbe AK |
3077 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3078 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
ad6254c5 | 3079 | if test "${ac_cv_prog_cc_g+set}" = set; then |
ec6a6fbe | 3080 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 3081 | else |
7a197a62 AK |
3082 | ac_save_c_werror_flag=$ac_c_werror_flag |
3083 | ac_c_werror_flag=yes | |
3084 | ac_cv_prog_cc_g=no | |
3085 | CFLAGS="-g" | |
3086 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3087 | /* confdefs.h. */ |
3088 | _ACEOF | |
3089 | cat confdefs.h >>conftest.$ac_ext | |
3090 | cat >>conftest.$ac_ext <<_ACEOF | |
3091 | /* end confdefs.h. */ | |
3092 | ||
3093 | int | |
3094 | main () | |
3095 | { | |
3096 | ||
3097 | ; | |
3098 | return 0; | |
3099 | } | |
3100 | _ACEOF | |
3101 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3102 | if { (ac_try="$ac_compile" |
3103 | case "(($ac_try" in | |
3104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3105 | *) ac_try_echo=$ac_try;; | |
3106 | esac | |
ec6a6fbe AK |
3107 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3108 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3109 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3110 | ac_status=$? |
8a2fc586 AK |
3111 | grep -v '^ *+' conftest.er1 >conftest.err |
3112 | rm -f conftest.er1 | |
3113 | cat conftest.err >&5 | |
ec6a6fbe | 3114 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3115 | (exit $ac_status); } && { |
3116 | test -z "$ac_c_werror_flag" || | |
3117 | test ! -s conftest.err | |
3118 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3119 | ac_cv_prog_cc_g=yes |
3120 | else | |
ec6a6fbe | 3121 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3122 | sed 's/^/| /' conftest.$ac_ext >&5 |
3123 | ||
3124 | CFLAGS="" | |
3125 | cat >conftest.$ac_ext <<_ACEOF | |
3126 | /* confdefs.h. */ | |
3127 | _ACEOF | |
3128 | cat confdefs.h >>conftest.$ac_ext | |
3129 | cat >>conftest.$ac_ext <<_ACEOF | |
3130 | /* end confdefs.h. */ | |
3131 | ||
3132 | int | |
3133 | main () | |
3134 | { | |
3135 | ||
3136 | ; | |
3137 | return 0; | |
3138 | } | |
3139 | _ACEOF | |
3140 | rm -f conftest.$ac_objext | |
3141 | if { (ac_try="$ac_compile" | |
3142 | case "(($ac_try" in | |
3143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3144 | *) ac_try_echo=$ac_try;; | |
3145 | esac | |
ec6a6fbe AK |
3146 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3147 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3148 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 3149 | ac_status=$? |
7a197a62 AK |
3150 | grep -v '^ *+' conftest.er1 >conftest.err |
3151 | rm -f conftest.er1 | |
3152 | cat conftest.err >&5 | |
ec6a6fbe | 3153 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3154 | (exit $ac_status); } && { |
3155 | test -z "$ac_c_werror_flag" || | |
3156 | test ! -s conftest.err | |
3157 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3158 | : |
3159 | else | |
ec6a6fbe | 3160 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3161 | sed 's/^/| /' conftest.$ac_ext >&5 |
3162 | ||
3163 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3164 | CFLAGS="-g" | |
3165 | cat >conftest.$ac_ext <<_ACEOF | |
3166 | /* confdefs.h. */ | |
3167 | _ACEOF | |
3168 | cat confdefs.h >>conftest.$ac_ext | |
3169 | cat >>conftest.$ac_ext <<_ACEOF | |
3170 | /* end confdefs.h. */ | |
3171 | ||
3172 | int | |
3173 | main () | |
3174 | { | |
3175 | ||
3176 | ; | |
3177 | return 0; | |
3178 | } | |
3179 | _ACEOF | |
3180 | rm -f conftest.$ac_objext | |
3181 | if { (ac_try="$ac_compile" | |
3182 | case "(($ac_try" in | |
3183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3184 | *) ac_try_echo=$ac_try;; | |
3185 | esac | |
ec6a6fbe AK |
3186 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3187 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3188 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3189 | ac_status=$? |
7a197a62 AK |
3190 | grep -v '^ *+' conftest.er1 >conftest.err |
3191 | rm -f conftest.er1 | |
3192 | cat conftest.err >&5 | |
ec6a6fbe | 3193 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3194 | (exit $ac_status); } && { |
3195 | test -z "$ac_c_werror_flag" || | |
3196 | test ! -s conftest.err | |
3197 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
3198 | ac_cv_prog_cc_g=yes |
3199 | else | |
ec6a6fbe | 3200 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3201 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 3202 | |
7a197a62 AK |
3203 | |
3204 | fi | |
3205 | ||
3206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3207 | fi | |
3208 | ||
3209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 3210 | fi |
7a197a62 AK |
3211 | |
3212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3213 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 3214 | fi |
ec6a6fbe AK |
3215 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3216 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 3217 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 3218 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
3219 | elif test $ac_cv_prog_cc_g = yes; then |
3220 | if test "$GCC" = yes; then | |
3221 | CFLAGS="-g -O2" | |
3222 | else | |
3223 | CFLAGS="-g" | |
3224 | fi | |
3225 | else | |
3226 | if test "$GCC" = yes; then | |
3227 | CFLAGS="-O2" | |
3228 | else | |
3229 | CFLAGS= | |
3230 | fi | |
3231 | fi | |
ec6a6fbe AK |
3232 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3233 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7a197a62 | 3234 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
ec6a6fbe | 3235 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3236 | else |
7a197a62 | 3237 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
3238 | ac_save_CC=$CC |
3239 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3240 | /* confdefs.h. */ |
3241 | _ACEOF | |
3242 | cat confdefs.h >>conftest.$ac_ext | |
3243 | cat >>conftest.$ac_ext <<_ACEOF | |
3244 | /* end confdefs.h. */ | |
3245 | #include <stdarg.h> | |
3246 | #include <stdio.h> | |
3247 | #include <sys/types.h> | |
3248 | #include <sys/stat.h> | |
3249 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3250 | struct buf { int x; }; | |
3251 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3252 | static char *e (p, i) | |
3253 | char **p; | |
3254 | int i; | |
3255 | { | |
3256 | return p[i]; | |
3257 | } | |
3258 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3259 | { | |
3260 | char *s; | |
3261 | va_list v; | |
3262 | va_start (v,p); | |
3263 | s = g (p, va_arg (v,int)); | |
3264 | va_end (v); | |
3265 | return s; | |
3266 | } | |
8a2fc586 AK |
3267 | |
3268 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3269 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3270 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 3271 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
3272 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3273 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 3274 | that's true only with -std. */ |
8a2fc586 AK |
3275 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3276 | ||
7a197a62 AK |
3277 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3278 | inside strings and character constants. */ | |
3279 | #define FOO(x) 'x' | |
3280 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3281 | ||
ad6254c5 AK |
3282 | int test (int i, double x); |
3283 | struct s1 {int (*f) (int a);}; | |
3284 | struct s2 {int (*f) (double a);}; | |
3285 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3286 | int argc; | |
3287 | char **argv; | |
3288 | int | |
3289 | main () | |
3290 | { | |
3291 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3292 | ; | |
3293 | return 0; | |
3294 | } | |
3295 | _ACEOF | |
7a197a62 AK |
3296 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3297 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
3298 | do |
3299 | CC="$ac_save_CC $ac_arg" | |
3300 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3301 | if { (ac_try="$ac_compile" |
3302 | case "(($ac_try" in | |
3303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3304 | *) ac_try_echo=$ac_try;; | |
3305 | esac | |
ec6a6fbe AK |
3306 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3307 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3308 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3309 | ac_status=$? |
8a2fc586 AK |
3310 | grep -v '^ *+' conftest.er1 >conftest.err |
3311 | rm -f conftest.er1 | |
3312 | cat conftest.err >&5 | |
ec6a6fbe | 3313 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3314 | (exit $ac_status); } && { |
3315 | test -z "$ac_c_werror_flag" || | |
3316 | test ! -s conftest.err | |
3317 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 3318 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 3319 | else |
ec6a6fbe | 3320 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3321 | sed 's/^/| /' conftest.$ac_ext >&5 |
3322 | ||
7a197a62 | 3323 | |
ad6254c5 | 3324 | fi |
7a197a62 AK |
3325 | |
3326 | rm -f core conftest.err conftest.$ac_objext | |
3327 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 3328 | done |
7a197a62 | 3329 | rm -f conftest.$ac_ext |
ad6254c5 AK |
3330 | CC=$ac_save_CC |
3331 | ||
3332 | fi | |
7a197a62 AK |
3333 | # AC_CACHE_VAL |
3334 | case "x$ac_cv_prog_cc_c89" in | |
3335 | x) | |
ec6a6fbe AK |
3336 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3337 | $as_echo "none needed" >&6; } ;; | |
7a197a62 | 3338 | xno) |
ec6a6fbe AK |
3339 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3340 | $as_echo "unsupported" >&6; } ;; | |
ad6254c5 | 3341 | *) |
7a197a62 | 3342 | CC="$CC $ac_cv_prog_cc_c89" |
ec6a6fbe AK |
3343 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3344 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
3345 | esac |
3346 | ||
ad6254c5 | 3347 | |
ad6254c5 AK |
3348 | ac_ext=c |
3349 | ac_cpp='$CPP $CPPFLAGS' | |
3350 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3351 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3352 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 3353 | |
d0191583 JM |
3354 | |
3355 | ||
3356 | ac_ext=c | |
3357 | ac_cpp='$CPP $CPPFLAGS' | |
3358 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3359 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3360 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ec6a6fbe AK |
3361 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3362 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d0191583 JM |
3363 | # On Suns, sometimes $CPP names a directory. |
3364 | if test -n "$CPP" && test -d "$CPP"; then | |
3365 | CPP= | |
3366 | fi | |
3367 | if test -z "$CPP"; then | |
3368 | if test "${ac_cv_prog_CPP+set}" = set; then | |
ec6a6fbe | 3369 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3370 | else |
d0191583 JM |
3371 | # Double quotes because CPP needs to be expanded |
3372 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3373 | do | |
3374 | ac_preproc_ok=false | |
3375 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 3376 | do |
d0191583 JM |
3377 | # Use a header file that comes with gcc, so configuring glibc |
3378 | # with a fresh cross-compiler works. | |
3379 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3380 | # <limits.h> exists even on freestanding compilers. | |
3381 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3382 | # not just through cpp. "Syntax error" is here to catch this case. | |
3383 | cat >conftest.$ac_ext <<_ACEOF | |
3384 | /* confdefs.h. */ | |
3385 | _ACEOF | |
3386 | cat confdefs.h >>conftest.$ac_ext | |
3387 | cat >>conftest.$ac_ext <<_ACEOF | |
3388 | /* end confdefs.h. */ | |
3389 | #ifdef __STDC__ | |
3390 | # include <limits.h> | |
3391 | #else | |
3392 | # include <assert.h> | |
3393 | #endif | |
3394 | Syntax error | |
3395 | _ACEOF | |
3396 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3397 | case "(($ac_try" in | |
3398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3399 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 3400 | esac |
ec6a6fbe AK |
3401 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3402 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3403 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3404 | ac_status=$? | |
3405 | grep -v '^ *+' conftest.er1 >conftest.err | |
3406 | rm -f conftest.er1 | |
3407 | cat conftest.err >&5 | |
ec6a6fbe | 3408 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3409 | (exit $ac_status); } >/dev/null && { |
3410 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3411 | test ! -s conftest.err | |
3412 | }; then | |
3413 | : | |
3414 | else | |
ec6a6fbe | 3415 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3416 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3417 | |
d0191583 JM |
3418 | # Broken: fails on valid input. |
3419 | continue | |
795ca3e5 | 3420 | fi |
795ca3e5 | 3421 | |
d0191583 | 3422 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3423 | |
d0191583 JM |
3424 | # OK, works on sane cases. Now check whether nonexistent headers |
3425 | # can be detected and how. | |
3426 | cat >conftest.$ac_ext <<_ACEOF | |
3427 | /* confdefs.h. */ | |
3428 | _ACEOF | |
3429 | cat confdefs.h >>conftest.$ac_ext | |
3430 | cat >>conftest.$ac_ext <<_ACEOF | |
3431 | /* end confdefs.h. */ | |
3432 | #include <ac_nonexistent.h> | |
3433 | _ACEOF | |
3434 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3435 | case "(($ac_try" in | |
3436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3437 | *) ac_try_echo=$ac_try;; | |
3438 | esac | |
ec6a6fbe AK |
3439 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3440 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3441 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3442 | ac_status=$? | |
3443 | grep -v '^ *+' conftest.er1 >conftest.err | |
3444 | rm -f conftest.er1 | |
3445 | cat conftest.err >&5 | |
ec6a6fbe | 3446 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3447 | (exit $ac_status); } >/dev/null && { |
3448 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3449 | test ! -s conftest.err | |
3450 | }; then | |
3451 | # Broken: success on invalid input. | |
3452 | continue | |
3453 | else | |
ec6a6fbe | 3454 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3455 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3456 | |
d0191583 JM |
3457 | # Passes both tests. |
3458 | ac_preproc_ok=: | |
3459 | break | |
3460 | fi | |
795ca3e5 | 3461 | |
d0191583 JM |
3462 | rm -f conftest.err conftest.$ac_ext |
3463 | ||
3464 | done | |
3465 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3466 | rm -f conftest.err conftest.$ac_ext | |
3467 | if $ac_preproc_ok; then | |
3468 | break | |
795ca3e5 AK |
3469 | fi |
3470 | ||
d0191583 JM |
3471 | done |
3472 | ac_cv_prog_CPP=$CPP | |
3473 | ||
3474 | fi | |
3475 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3476 | else |
d0191583 JM |
3477 | ac_cv_prog_CPP=$CPP |
3478 | fi | |
ec6a6fbe AK |
3479 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3480 | $as_echo "$CPP" >&6; } | |
d0191583 JM |
3481 | ac_preproc_ok=false |
3482 | for ac_c_preproc_warn_flag in '' yes | |
3483 | do | |
3484 | # Use a header file that comes with gcc, so configuring glibc | |
3485 | # with a fresh cross-compiler works. | |
3486 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3487 | # <limits.h> exists even on freestanding compilers. | |
3488 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3489 | # not just through cpp. "Syntax error" is here to catch this case. | |
3490 | cat >conftest.$ac_ext <<_ACEOF | |
3491 | /* confdefs.h. */ | |
ad6254c5 | 3492 | _ACEOF |
d0191583 JM |
3493 | cat confdefs.h >>conftest.$ac_ext |
3494 | cat >>conftest.$ac_ext <<_ACEOF | |
3495 | /* end confdefs.h. */ | |
3496 | #ifdef __STDC__ | |
3497 | # include <limits.h> | |
3498 | #else | |
3499 | # include <assert.h> | |
3500 | #endif | |
3501 | Syntax error | |
3502 | _ACEOF | |
3503 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3504 | case "(($ac_try" in | |
3505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3506 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3507 | esac |
ec6a6fbe AK |
3508 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3509 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3510 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3511 | ac_status=$? | |
3512 | grep -v '^ *+' conftest.er1 >conftest.err | |
3513 | rm -f conftest.er1 | |
3514 | cat conftest.err >&5 | |
ec6a6fbe | 3515 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3516 | (exit $ac_status); } >/dev/null && { |
3517 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3518 | test ! -s conftest.err | |
3519 | }; then | |
3520 | : | |
795ca3e5 | 3521 | else |
ec6a6fbe | 3522 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3523 | sed 's/^/| /' conftest.$ac_ext >&5 |
3524 | ||
3525 | # Broken: fails on valid input. | |
3526 | continue | |
795ca3e5 AK |
3527 | fi |
3528 | ||
d0191583 JM |
3529 | rm -f conftest.err conftest.$ac_ext |
3530 | ||
3531 | # OK, works on sane cases. Now check whether nonexistent headers | |
3532 | # can be detected and how. | |
3533 | cat >conftest.$ac_ext <<_ACEOF | |
3534 | /* confdefs.h. */ | |
3535 | _ACEOF | |
3536 | cat confdefs.h >>conftest.$ac_ext | |
3537 | cat >>conftest.$ac_ext <<_ACEOF | |
3538 | /* end confdefs.h. */ | |
3539 | #include <ac_nonexistent.h> | |
3540 | _ACEOF | |
3541 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3542 | case "(($ac_try" in | |
3543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3544 | *) ac_try_echo=$ac_try;; | |
3545 | esac | |
ec6a6fbe AK |
3546 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3547 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3548 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3549 | ac_status=$? | |
3550 | grep -v '^ *+' conftest.er1 >conftest.err | |
3551 | rm -f conftest.er1 | |
3552 | cat conftest.err >&5 | |
ec6a6fbe | 3553 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3554 | (exit $ac_status); } >/dev/null && { |
3555 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3556 | test ! -s conftest.err | |
3557 | }; then | |
3558 | # Broken: success on invalid input. | |
3559 | continue | |
795ca3e5 | 3560 | else |
ec6a6fbe | 3561 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3562 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3563 | |
d0191583 JM |
3564 | # Passes both tests. |
3565 | ac_preproc_ok=: | |
3566 | break | |
795ca3e5 | 3567 | fi |
d0191583 JM |
3568 | |
3569 | rm -f conftest.err conftest.$ac_ext | |
3570 | ||
3571 | done | |
3572 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3573 | rm -f conftest.err conftest.$ac_ext | |
3574 | if $ac_preproc_ok; then | |
3575 | : | |
8106cdd5 | 3576 | else |
ec6a6fbe AK |
3577 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3578 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3579 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
d0191583 | 3580 | See \`config.log' for more details." >&5 |
ec6a6fbe | 3581 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3582 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 3583 | { (exit 1); exit 1; }; }; } |
8106cdd5 AK |
3584 | fi |
3585 | ||
d0191583 JM |
3586 | ac_ext=c |
3587 | ac_cpp='$CPP $CPPFLAGS' | |
3588 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3589 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3590 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3591 | ||
7a197a62 | 3592 | |
ec6a6fbe AK |
3593 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3594 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5556819a | 3595 | if test "${ac_cv_path_GREP+set}" = set; then |
ec6a6fbe | 3596 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3597 | else |
ec6a6fbe | 3598 | if test -z "$GREP"; then |
d0191583 | 3599 | ac_path_GREP_found=false |
ec6a6fbe AK |
3600 | # Loop through the user's path and test for each of PROGNAME-LIST |
3601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3602 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3603 | do |
3604 | IFS=$as_save_IFS | |
3605 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3606 | for ac_prog in grep ggrep; do |
ec6a6fbe AK |
3607 | for ac_exec_ext in '' $ac_executable_extensions; do |
3608 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3609 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3610 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3611 | # Check for GNU $ac_path_GREP |
3612 | case `"$ac_path_GREP" --version 2>&1` in | |
3613 | *GNU*) | |
3614 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3615 | *) | |
3616 | ac_count=0 | |
ec6a6fbe | 3617 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3618 | while : |
3619 | do | |
3620 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3621 | mv "conftest.tmp" "conftest.in" | |
3622 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3623 | $as_echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3624 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3625 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3626 | ac_count=`expr $ac_count + 1` | |
3627 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3628 | # Best one so far, save it but keep looking for a better one | |
3629 | ac_cv_path_GREP="$ac_path_GREP" | |
3630 | ac_path_GREP_max=$ac_count | |
3631 | fi | |
3632 | # 10*(2^10) chars as input seems more than enough | |
3633 | test $ac_count -gt 10 && break | |
3634 | done | |
3635 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3636 | esac | |
3637 | ||
ec6a6fbe AK |
3638 | $ac_path_GREP_found && break 3 |
3639 | done | |
d0191583 | 3640 | done |
ad6254c5 | 3641 | done |
7a197a62 | 3642 | IFS=$as_save_IFS |
ec6a6fbe AK |
3643 | if test -z "$ac_cv_path_GREP"; then |
3644 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3645 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3646 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3647 | fi |
80992638 | 3648 | else |
d0191583 | 3649 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3650 | fi |
8106cdd5 | 3651 | |
80992638 | 3652 | fi |
ec6a6fbe AK |
3653 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3654 | $as_echo "$ac_cv_path_GREP" >&6; } | |
d0191583 | 3655 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3656 | |
d0191583 | 3657 | |
ec6a6fbe AK |
3658 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3659 | $as_echo_n "checking for egrep... " >&6; } | |
d0191583 | 3660 | if test "${ac_cv_path_EGREP+set}" = set; then |
ec6a6fbe | 3661 | $as_echo_n "(cached) " >&6 |
8a2fc586 | 3662 | else |
d0191583 JM |
3663 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3664 | then ac_cv_path_EGREP="$GREP -E" | |
3665 | else | |
ec6a6fbe | 3666 | if test -z "$EGREP"; then |
d0191583 | 3667 | ac_path_EGREP_found=false |
ec6a6fbe AK |
3668 | # Loop through the user's path and test for each of PROGNAME-LIST |
3669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3670 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3671 | do |
3672 | IFS=$as_save_IFS | |
3673 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3674 | for ac_prog in egrep; do |
ec6a6fbe AK |
3675 | for ac_exec_ext in '' $ac_executable_extensions; do |
3676 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3677 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3678 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3679 | # Check for GNU $ac_path_EGREP |
3680 | case `"$ac_path_EGREP" --version 2>&1` in | |
3681 | *GNU*) | |
3682 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3683 | *) | |
3684 | ac_count=0 | |
ec6a6fbe | 3685 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3686 | while : |
3687 | do | |
3688 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3689 | mv "conftest.tmp" "conftest.in" | |
3690 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3691 | $as_echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3692 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3693 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3694 | ac_count=`expr $ac_count + 1` | |
3695 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3696 | # Best one so far, save it but keep looking for a better one | |
3697 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3698 | ac_path_EGREP_max=$ac_count | |
3699 | fi | |
3700 | # 10*(2^10) chars as input seems more than enough | |
3701 | test $ac_count -gt 10 && break | |
3702 | done | |
3703 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3704 | esac |
8a2fc586 | 3705 | |
ec6a6fbe AK |
3706 | $ac_path_EGREP_found && break 3 |
3707 | done | |
d0191583 | 3708 | done |
8a2fc586 | 3709 | done |
7a197a62 | 3710 | IFS=$as_save_IFS |
ec6a6fbe AK |
3711 | if test -z "$ac_cv_path_EGREP"; then |
3712 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3713 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3714 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3715 | fi |
d0191583 JM |
3716 | else |
3717 | ac_cv_path_EGREP=$EGREP | |
3718 | fi | |
ad6254c5 | 3719 | |
d0191583 JM |
3720 | fi |
3721 | fi | |
ec6a6fbe AK |
3722 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3723 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3724 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3725 | |
3726 | ||
d0191583 | 3727 | if test $ac_cv_c_compiler_gnu = yes; then |
ec6a6fbe AK |
3728 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3729 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
d0191583 | 3730 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
ec6a6fbe | 3731 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 3732 | else |
d0191583 | 3733 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3734 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3735 | /* confdefs.h. */ |
3736 | _ACEOF | |
3737 | cat confdefs.h >>conftest.$ac_ext | |
3738 | cat >>conftest.$ac_ext <<_ACEOF | |
3739 | /* end confdefs.h. */ | |
d0191583 JM |
3740 | #include <sgtty.h> |
3741 | Autoconf TIOCGETP | |
ad6254c5 | 3742 | _ACEOF |
d0191583 JM |
3743 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3744 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3745 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3746 | else |
d0191583 | 3747 | ac_cv_prog_gcc_traditional=no |
80992638 | 3748 | fi |
d0191583 | 3749 | rm -f conftest* |
ad6254c5 | 3750 | |
8106cdd5 | 3751 | |
d0191583 JM |
3752 | if test $ac_cv_prog_gcc_traditional = no; then |
3753 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3754 | /* confdefs.h. */ |
3755 | _ACEOF | |
3756 | cat confdefs.h >>conftest.$ac_ext | |
3757 | cat >>conftest.$ac_ext <<_ACEOF | |
3758 | /* end confdefs.h. */ | |
d0191583 JM |
3759 | #include <termio.h> |
3760 | Autoconf TCGETA | |
ad6254c5 | 3761 | _ACEOF |
d0191583 JM |
3762 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3763 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3764 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3765 | fi |
d0191583 | 3766 | rm -f conftest* |
795ca3e5 | 3767 | |
d0191583 | 3768 | fi |
795ca3e5 | 3769 | fi |
ec6a6fbe AK |
3770 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3771 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3772 | if test $ac_cv_prog_gcc_traditional = yes; then |
3773 | CC="$CC -traditional" | |
3774 | fi | |
795ca3e5 AK |
3775 | fi |
3776 | ||
d0191583 JM |
3777 | # Find a good install program. We prefer a C program (faster), |
3778 | # so one script is as good as another. But avoid the broken or | |
3779 | # incompatible versions: | |
3780 | # SysV /etc/install, /usr/sbin/install | |
3781 | # SunOS /usr/etc/install | |
3782 | # IRIX /sbin/install | |
3783 | # AIX /bin/install | |
3784 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3785 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3786 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3787 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3788 | # OS/2's system install, which has a completely different semantic | |
3789 | # ./install, which can be erroneously created by make from ./install.sh. | |
ec6a6fbe AK |
3790 | # Reject install programs that cannot install multiple files. |
3791 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3792 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d0191583 JM |
3793 | if test -z "$INSTALL"; then |
3794 | if test "${ac_cv_path_install+set}" = set; then | |
ec6a6fbe | 3795 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3796 | else |
d0191583 JM |
3797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3798 | for as_dir in $PATH | |
3799 | do | |
3800 | IFS=$as_save_IFS | |
3801 | test -z "$as_dir" && as_dir=. | |
3802 | # Account for people who put trailing slashes in PATH elements. | |
3803 | case $as_dir/ in | |
3804 | ./ | .// | /cC/* | \ | |
3805 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3806 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3807 | /usr/ucb/* ) ;; | |
3808 | *) | |
3809 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3810 | # Don't use installbsd from OSF since it installs stuff as root | |
3811 | # by default. | |
3812 | for ac_prog in ginstall scoinst install; do | |
3813 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3814 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3815 | if test $ac_prog = install && | |
3816 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3817 | # AIX install. It has an incompatible calling convention. | |
3818 | : | |
3819 | elif test $ac_prog = install && | |
3820 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3821 | # program-specific install script used by HP pwplus--don't use. | |
3822 | : | |
3823 | else | |
ec6a6fbe AK |
3824 | rm -rf conftest.one conftest.two conftest.dir |
3825 | echo one > conftest.one | |
3826 | echo two > conftest.two | |
3827 | mkdir conftest.dir | |
3828 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3829 | test -s conftest.one && test -s conftest.two && | |
3830 | test -s conftest.dir/conftest.one && | |
3831 | test -s conftest.dir/conftest.two | |
3832 | then | |
3833 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3834 | break 3 | |
3835 | fi | |
d0191583 JM |
3836 | fi |
3837 | fi | |
3838 | done | |
3839 | done | |
3840 | ;; | |
3841 | esac | |
ec6a6fbe | 3842 | |
d0191583 JM |
3843 | done |
3844 | IFS=$as_save_IFS | |
80992638 | 3845 | |
ec6a6fbe | 3846 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
3847 | |
3848 | fi | |
3849 | if test "${ac_cv_path_install+set}" = set; then | |
3850 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3851 | else |
d0191583 JM |
3852 | # As a last resort, use the slow shell script. Don't cache a |
3853 | # value for INSTALL within a source directory, because that will | |
3854 | # break other packages using the cache if that directory is | |
3855 | # removed, or if the value is a relative name. | |
3856 | INSTALL=$ac_install_sh | |
7a197a62 | 3857 | fi |
d0191583 | 3858 | fi |
ec6a6fbe AK |
3859 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3860 | $as_echo "$INSTALL" >&6; } | |
ad6254c5 | 3861 | |
d0191583 JM |
3862 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3863 | # It thinks the first close brace ends the variable substitution. | |
3864 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3865 | |
d0191583 | 3866 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3867 | |
d0191583 JM |
3868 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3869 | ||
ec6a6fbe AK |
3870 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3871 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d0191583 JM |
3872 | LN_S=$as_ln_s |
3873 | if test "$LN_S" = "ln -s"; then | |
ec6a6fbe AK |
3874 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3875 | $as_echo "yes" >&6; } | |
d0191583 | 3876 | else |
ec6a6fbe AK |
3877 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3878 | $as_echo "no, using $LN_S" >&6; } | |
795ca3e5 | 3879 | fi |
d0191583 | 3880 | |
ec6a6fbe AK |
3881 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3882 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3883 | set x ${MAKE-make} | |
3884 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3885 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 3886 | $as_echo_n "(cached) " >&6 |
7a197a62 | 3887 | else |
d0191583 JM |
3888 | cat >conftest.make <<\_ACEOF |
3889 | SHELL = /bin/sh | |
3890 | all: | |
3891 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3892 | _ACEOF | |
3893 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3894 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3895 | *@@@%%%=?*=@@@%%%*) | |
3896 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3897 | *) | |
3898 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3899 | esac | |
3900 | rm -f conftest.make | |
ad6254c5 | 3901 | fi |
d0191583 | 3902 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
ec6a6fbe AK |
3903 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3904 | $as_echo "yes" >&6; } | |
d0191583 JM |
3905 | SET_MAKE= |
3906 | else | |
ec6a6fbe AK |
3907 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3908 | $as_echo "no" >&6; } | |
d0191583 | 3909 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3910 | fi |
8106cdd5 | 3911 | |
ec6a6fbe AK |
3912 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3913 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
5556819a AK |
3914 | if test -z "$MKDIR_P"; then |
3915 | if test "${ac_cv_path_mkdir+set}" = set; then | |
ec6a6fbe | 3916 | $as_echo_n "(cached) " >&6 |
5556819a AK |
3917 | else |
3918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3919 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3920 | do | |
3921 | IFS=$as_save_IFS | |
3922 | test -z "$as_dir" && as_dir=. | |
3923 | for ac_prog in mkdir gmkdir; do | |
3924 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3925 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3926 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3927 | 'mkdir (GNU coreutils) '* | \ | |
3928 | 'mkdir (coreutils) '* | \ | |
3929 | 'mkdir (fileutils) '4.1*) | |
3930 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3931 | break 3;; | |
3932 | esac | |
3933 | done | |
3934 | done | |
3935 | done | |
3936 | IFS=$as_save_IFS | |
3937 | ||
3938 | fi | |
3939 | ||
3940 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3941 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3942 | else | |
3943 | # As a last resort, use the slow shell script. Don't cache a | |
3944 | # value for MKDIR_P within a source directory, because that will | |
3945 | # break other packages using the cache if that directory is | |
3946 | # removed, or if the value is a relative name. | |
3947 | test -d ./--version && rmdir ./--version | |
3948 | MKDIR_P="$ac_install_sh -d" | |
3949 | fi | |
3950 | fi | |
ec6a6fbe AK |
3951 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
3952 | $as_echo "$MKDIR_P" >&6; } | |
5556819a | 3953 | |
d0191583 JM |
3954 | if test -n "$ac_tool_prefix"; then |
3955 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3956 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
ec6a6fbe AK |
3957 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3958 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3959 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
ec6a6fbe | 3960 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3961 | else |
3962 | if test -n "$RANLIB"; then | |
3963 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3964 | else | |
3965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3966 | for as_dir in $PATH | |
3967 | do | |
3968 | IFS=$as_save_IFS | |
3969 | test -z "$as_dir" && as_dir=. | |
3970 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3971 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3972 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
ec6a6fbe | 3973 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3974 | break 2 |
3975 | fi | |
3976 | done | |
3977 | done | |
3978 | IFS=$as_save_IFS | |
8106cdd5 | 3979 | |
795ca3e5 | 3980 | fi |
d0191583 JM |
3981 | fi |
3982 | RANLIB=$ac_cv_prog_RANLIB | |
3983 | if test -n "$RANLIB"; then | |
ec6a6fbe AK |
3984 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3985 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 3986 | else |
ec6a6fbe AK |
3987 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3988 | $as_echo "no" >&6; } | |
d0191583 JM |
3989 | fi |
3990 | ||
8106cdd5 | 3991 | |
ad6254c5 | 3992 | fi |
d0191583 JM |
3993 | if test -z "$ac_cv_prog_RANLIB"; then |
3994 | ac_ct_RANLIB=$RANLIB | |
3995 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3996 | set dummy ranlib; ac_word=$2 | |
ec6a6fbe AK |
3997 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3998 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3999 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
ec6a6fbe | 4000 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4001 | else |
d0191583 JM |
4002 | if test -n "$ac_ct_RANLIB"; then |
4003 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4004 | else | |
4005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4006 | for as_dir in $PATH | |
8106cdd5 | 4007 | do |
d0191583 JM |
4008 | IFS=$as_save_IFS |
4009 | test -z "$as_dir" && as_dir=. | |
4010 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4011 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4012 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
ec6a6fbe | 4013 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4014 | break 2 |
4015 | fi | |
4016 | done | |
4017 | done | |
4018 | IFS=$as_save_IFS | |
4019 | ||
4020 | fi | |
4021 | fi | |
4022 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4023 | if test -n "$ac_ct_RANLIB"; then | |
ec6a6fbe AK |
4024 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
4025 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 4026 | else |
ec6a6fbe AK |
4027 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4028 | $as_echo "no" >&6; } | |
d0191583 | 4029 | fi |
ad6254c5 | 4030 | |
d0191583 JM |
4031 | if test "x$ac_ct_RANLIB" = x; then |
4032 | RANLIB=":" | |
4033 | else | |
4034 | case $cross_compiling:$ac_tool_warned in | |
4035 | yes:) | |
ec6a6fbe AK |
4036 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
4037 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0191583 JM |
4038 | ac_tool_warned=yes ;; |
4039 | esac | |
4040 | RANLIB=$ac_ct_RANLIB | |
4041 | fi | |
4042 | else | |
4043 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 4044 | fi |
7a197a62 | 4045 | |
d0191583 JM |
4046 | # Extract the first word of "cflow", so it can be a program name with args. |
4047 | set dummy cflow; ac_word=$2 | |
ec6a6fbe AK |
4048 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4049 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 4050 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
ec6a6fbe | 4051 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4052 | else |
4053 | case $CFLOW_CMD in | |
4054 | [\\/]* | ?:[\\/]*) | |
4055 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
4056 | ;; | |
4057 | *) | |
4058 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4059 | for as_dir in $PATH | |
4060 | do | |
4061 | IFS=$as_save_IFS | |
4062 | test -z "$as_dir" && as_dir=. | |
4063 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4064 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4065 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4066 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4067 | break 2 |
4068 | fi | |
4069 | done | |
4070 | done | |
4071 | IFS=$as_save_IFS | |
ad6254c5 | 4072 | |
d0191583 | 4073 | ;; |
7a197a62 | 4074 | esac |
d0191583 JM |
4075 | fi |
4076 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
4077 | if test -n "$CFLOW_CMD"; then | |
ec6a6fbe AK |
4078 | { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
4079 | $as_echo "$CFLOW_CMD" >&6; } | |
80992638 | 4080 | else |
ec6a6fbe AK |
4081 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4082 | $as_echo "no" >&6; } | |
795ca3e5 | 4083 | fi |
7a197a62 | 4084 | |
ad6254c5 | 4085 | |
d0191583 JM |
4086 | # Extract the first word of "cscope", so it can be a program name with args. |
4087 | set dummy cscope; ac_word=$2 | |
ec6a6fbe AK |
4088 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4089 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 4090 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
ec6a6fbe | 4091 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4092 | else |
4093 | case $CSCOPE_CMD in | |
4094 | [\\/]* | ?:[\\/]*) | |
4095 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
4096 | ;; | |
4097 | *) | |
4098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4099 | for as_dir in $PATH | |
4100 | do | |
4101 | IFS=$as_save_IFS | |
4102 | test -z "$as_dir" && as_dir=. | |
4103 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4104 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4105 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4106 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4107 | break 2 |
4108 | fi | |
795ca3e5 | 4109 | done |
d0191583 JM |
4110 | done |
4111 | IFS=$as_save_IFS | |
795ca3e5 | 4112 | |
d0191583 JM |
4113 | ;; |
4114 | esac | |
ad6254c5 | 4115 | fi |
d0191583 JM |
4116 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
4117 | if test -n "$CSCOPE_CMD"; then | |
ec6a6fbe AK |
4118 | { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
4119 | $as_echo "$CSCOPE_CMD" >&6; } | |
795ca3e5 | 4120 | else |
ec6a6fbe AK |
4121 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4122 | $as_echo "no" >&6; } | |
795ca3e5 | 4123 | fi |
ad6254c5 | 4124 | |
7a197a62 | 4125 | |
ad6254c5 | 4126 | |
d0191583 JM |
4127 | ################################################################################ |
4128 | ||
4129 | ||
4130 | ||
4131 | ||
4132 | ||
4133 | ac_header_dirent=no | |
4134 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
ec6a6fbe AK |
4135 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
4136 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
4137 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
d0191583 | 4138 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4139 | $as_echo_n "(cached) " >&6 |
d0191583 | 4140 | else |
ad6254c5 | 4141 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4142 | /* confdefs.h. */ |
4143 | _ACEOF | |
4144 | cat confdefs.h >>conftest.$ac_ext | |
4145 | cat >>conftest.$ac_ext <<_ACEOF | |
4146 | /* end confdefs.h. */ | |
d0191583 JM |
4147 | #include <sys/types.h> |
4148 | #include <$ac_hdr> | |
4149 | ||
4150 | int | |
4151 | main () | |
4152 | { | |
4153 | if ((DIR *) 0) | |
4154 | return 0; | |
4155 | ; | |
4156 | return 0; | |
4157 | } | |
ad6254c5 | 4158 | _ACEOF |
d0191583 JM |
4159 | rm -f conftest.$ac_objext |
4160 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
4161 | case "(($ac_try" in |
4162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4163 | *) ac_try_echo=$ac_try;; | |
4164 | esac | |
ec6a6fbe AK |
4165 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4166 | $as_echo "$ac_try_echo") >&5 | |
d0191583 | 4167 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
4168 | ac_status=$? |
4169 | grep -v '^ *+' conftest.er1 >conftest.err | |
4170 | rm -f conftest.er1 | |
4171 | cat conftest.err >&5 | |
ec6a6fbe | 4172 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4173 | (exit $ac_status); } && { |
4174 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 4175 | test ! -s conftest.err |
d0191583 JM |
4176 | } && test -s conftest.$ac_objext; then |
4177 | eval "$as_ac_Header=yes" | |
ad6254c5 | 4178 | else |
ec6a6fbe | 4179 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4180 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4181 | |
d0191583 | 4182 | eval "$as_ac_Header=no" |
795ca3e5 | 4183 | fi |
7a197a62 | 4184 | |
d0191583 | 4185 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 4186 | fi |
ec6a6fbe AK |
4187 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4188 | $as_echo "$as_val"'` | |
4189 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4190 | $as_echo "$ac_res" >&6; } | |
4191 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4192 | $as_echo "$as_val"'` | |
4193 | if test "x$as_val" = x""yes; then | |
d0191583 | 4194 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4195 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 4196 | _ACEOF |
795ca3e5 | 4197 | |
d0191583 JM |
4198 | ac_header_dirent=$ac_hdr; break |
4199 | fi | |
ad6254c5 | 4200 | |
d0191583 JM |
4201 | done |
4202 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4203 | if test $ac_header_dirent = dirent.h; then | |
ec6a6fbe AK |
4204 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4205 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4206 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4207 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4208 | else |
d0191583 JM |
4209 | ac_func_search_save_LIBS=$LIBS |
4210 | cat >conftest.$ac_ext <<_ACEOF | |
4211 | /* confdefs.h. */ | |
4212 | _ACEOF | |
4213 | cat confdefs.h >>conftest.$ac_ext | |
4214 | cat >>conftest.$ac_ext <<_ACEOF | |
4215 | /* end confdefs.h. */ | |
ad6254c5 | 4216 | |
d0191583 JM |
4217 | /* Override any GCC internal prototype to avoid an error. |
4218 | Use char because int might match the return type of a GCC | |
4219 | builtin and then its argument prototype would still apply. */ | |
4220 | #ifdef __cplusplus | |
4221 | extern "C" | |
4222 | #endif | |
4223 | char opendir (); | |
4224 | int | |
4225 | main () | |
4226 | { | |
4227 | return opendir (); | |
4228 | ; | |
4229 | return 0; | |
4230 | } | |
4231 | _ACEOF | |
4232 | for ac_lib in '' dir; do | |
4233 | if test -z "$ac_lib"; then | |
4234 | ac_res="none required" | |
4235 | else | |
4236 | ac_res=-l$ac_lib | |
4237 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4238 | fi | |
4239 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4240 | if { (ac_try="$ac_link" | |
4241 | case "(($ac_try" in | |
4242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4243 | *) ac_try_echo=$ac_try;; | |
4244 | esac | |
ec6a6fbe AK |
4245 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4246 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4247 | (eval "$ac_link") 2>conftest.er1 |
4248 | ac_status=$? | |
4249 | grep -v '^ *+' conftest.er1 >conftest.err | |
4250 | rm -f conftest.er1 | |
4251 | cat conftest.err >&5 | |
ec6a6fbe | 4252 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4253 | (exit $ac_status); } && { |
4254 | test -z "$ac_c_werror_flag" || | |
4255 | test ! -s conftest.err | |
ec6a6fbe AK |
4256 | } && test -s conftest$ac_exeext && { |
4257 | test "$cross_compiling" = yes || | |
4258 | $as_test_x conftest$ac_exeext | |
4259 | }; then | |
d0191583 JM |
4260 | ac_cv_search_opendir=$ac_res |
4261 | else | |
ec6a6fbe | 4262 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4263 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 4264 | |
ad6254c5 | 4265 | |
795ca3e5 | 4266 | fi |
ad6254c5 | 4267 | |
ec6a6fbe | 4268 | rm -rf conftest.dSYM |
d0191583 JM |
4269 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4270 | conftest$ac_exeext | |
4271 | if test "${ac_cv_search_opendir+set}" = set; then | |
4272 | break | |
7a197a62 | 4273 | fi |
d0191583 JM |
4274 | done |
4275 | if test "${ac_cv_search_opendir+set}" = set; then | |
4276 | : | |
7a197a62 | 4277 | else |
d0191583 | 4278 | ac_cv_search_opendir=no |
7a197a62 | 4279 | fi |
d0191583 JM |
4280 | rm conftest.$ac_ext |
4281 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 4282 | fi |
ec6a6fbe AK |
4283 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4284 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4285 | ac_res=$ac_cv_search_opendir |
4286 | if test "$ac_res" != no; then | |
4287 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4288 | |
d0191583 | 4289 | fi |
7a197a62 | 4290 | |
7a197a62 | 4291 | else |
ec6a6fbe AK |
4292 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4293 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4294 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4295 | $as_echo_n "(cached) " >&6 |
7a197a62 | 4296 | else |
d0191583 JM |
4297 | ac_func_search_save_LIBS=$LIBS |
4298 | cat >conftest.$ac_ext <<_ACEOF | |
4299 | /* confdefs.h. */ | |
4300 | _ACEOF | |
4301 | cat confdefs.h >>conftest.$ac_ext | |
4302 | cat >>conftest.$ac_ext <<_ACEOF | |
4303 | /* end confdefs.h. */ | |
7a197a62 | 4304 | |
d0191583 JM |
4305 | /* Override any GCC internal prototype to avoid an error. |
4306 | Use char because int might match the return type of a GCC | |
4307 | builtin and then its argument prototype would still apply. */ | |
4308 | #ifdef __cplusplus | |
4309 | extern "C" | |
4310 | #endif | |
4311 | char opendir (); | |
4312 | int | |
4313 | main () | |
4314 | { | |
4315 | return opendir (); | |
4316 | ; | |
4317 | return 0; | |
4318 | } | |
4319 | _ACEOF | |
4320 | for ac_lib in '' x; do | |
4321 | if test -z "$ac_lib"; then | |
4322 | ac_res="none required" | |
4323 | else | |
4324 | ac_res=-l$ac_lib | |
4325 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4326 | fi | |
4327 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4328 | if { (ac_try="$ac_link" | |
4329 | case "(($ac_try" in | |
4330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4331 | *) ac_try_echo=$ac_try;; | |
4332 | esac | |
ec6a6fbe AK |
4333 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4334 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4335 | (eval "$ac_link") 2>conftest.er1 |
4336 | ac_status=$? | |
4337 | grep -v '^ *+' conftest.er1 >conftest.err | |
4338 | rm -f conftest.er1 | |
4339 | cat conftest.err >&5 | |
ec6a6fbe | 4340 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4341 | (exit $ac_status); } && { |
4342 | test -z "$ac_c_werror_flag" || | |
4343 | test ! -s conftest.err | |
ec6a6fbe AK |
4344 | } && test -s conftest$ac_exeext && { |
4345 | test "$cross_compiling" = yes || | |
4346 | $as_test_x conftest$ac_exeext | |
4347 | }; then | |
d0191583 JM |
4348 | ac_cv_search_opendir=$ac_res |
4349 | else | |
ec6a6fbe | 4350 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4351 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
4352 | |
4353 | ||
4354 | fi | |
4355 | ||
ec6a6fbe | 4356 | rm -rf conftest.dSYM |
d0191583 JM |
4357 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4358 | conftest$ac_exeext | |
4359 | if test "${ac_cv_search_opendir+set}" = set; then | |
4360 | break | |
7a197a62 | 4361 | fi |
d0191583 JM |
4362 | done |
4363 | if test "${ac_cv_search_opendir+set}" = set; then | |
4364 | : | |
7a197a62 | 4365 | else |
d0191583 | 4366 | ac_cv_search_opendir=no |
7a197a62 | 4367 | fi |
d0191583 JM |
4368 | rm conftest.$ac_ext |
4369 | LIBS=$ac_func_search_save_LIBS | |
4370 | fi | |
ec6a6fbe AK |
4371 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4372 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4373 | ac_res=$ac_cv_search_opendir |
4374 | if test "$ac_res" != no; then | |
4375 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4376 | |
7a197a62 | 4377 | fi |
7a197a62 | 4378 | |
d0191583 | 4379 | fi |
7a197a62 | 4380 | |
ec6a6fbe AK |
4381 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4382 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7a197a62 | 4383 | if test "${ac_cv_header_stdc+set}" = set; then |
ec6a6fbe | 4384 | $as_echo_n "(cached) " >&6 |
7a197a62 AK |
4385 | else |
4386 | cat >conftest.$ac_ext <<_ACEOF | |
4387 | /* confdefs.h. */ | |
4388 | _ACEOF | |
4389 | cat confdefs.h >>conftest.$ac_ext | |
4390 | cat >>conftest.$ac_ext <<_ACEOF | |
4391 | /* end confdefs.h. */ | |
4392 | #include <stdlib.h> | |
4393 | #include <stdarg.h> | |
4394 | #include <string.h> | |
4395 | #include <float.h> | |
4396 | ||
4397 | int | |
4398 | main () | |
4399 | { | |
4400 | ||
4401 | ; | |
4402 | return 0; | |
4403 | } | |
4404 | _ACEOF | |
4405 | rm -f conftest.$ac_objext | |
4406 | if { (ac_try="$ac_compile" | |
4407 | case "(($ac_try" in | |
4408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4409 | *) ac_try_echo=$ac_try;; | |
4410 | esac | |
ec6a6fbe AK |
4411 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4412 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 AK |
4413 | (eval "$ac_compile") 2>conftest.er1 |
4414 | ac_status=$? | |
4415 | grep -v '^ *+' conftest.er1 >conftest.err | |
4416 | rm -f conftest.er1 | |
4417 | cat conftest.err >&5 | |
ec6a6fbe | 4418 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4419 | (exit $ac_status); } && { |
4420 | test -z "$ac_c_werror_flag" || | |
4421 | test ! -s conftest.err | |
4422 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4423 | ac_cv_header_stdc=yes |
4424 | else | |
ec6a6fbe | 4425 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4426 | sed 's/^/| /' conftest.$ac_ext >&5 |
4427 | ||
4428 | ac_cv_header_stdc=no | |
4429 | fi | |
4430 | ||
4431 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4432 | ||
4433 | if test $ac_cv_header_stdc = yes; then | |
4434 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4435 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4436 | /* confdefs.h. */ |
4437 | _ACEOF | |
4438 | cat confdefs.h >>conftest.$ac_ext | |
4439 | cat >>conftest.$ac_ext <<_ACEOF | |
4440 | /* end confdefs.h. */ | |
4441 | #include <string.h> | |
8106cdd5 | 4442 | |
ad6254c5 AK |
4443 | _ACEOF |
4444 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4445 | $EGREP "memchr" >/dev/null 2>&1; then | |
4446 | : | |
4447 | else | |
4448 | ac_cv_header_stdc=no | |
80992638 | 4449 | fi |
ad6254c5 | 4450 | rm -f conftest* |
795ca3e5 AK |
4451 | |
4452 | fi | |
4453 | ||
ad6254c5 AK |
4454 | if test $ac_cv_header_stdc = yes; then |
4455 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4456 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4457 | /* confdefs.h. */ |
4458 | _ACEOF | |
4459 | cat confdefs.h >>conftest.$ac_ext | |
4460 | cat >>conftest.$ac_ext <<_ACEOF | |
4461 | /* end confdefs.h. */ | |
80992638 | 4462 | #include <stdlib.h> |
ad6254c5 AK |
4463 | |
4464 | _ACEOF | |
80992638 | 4465 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4466 | $EGREP "free" >/dev/null 2>&1; then |
4467 | : | |
795ca3e5 | 4468 | else |
ad6254c5 | 4469 | ac_cv_header_stdc=no |
795ca3e5 | 4470 | fi |
80992638 | 4471 | rm -f conftest* |
8106cdd5 | 4472 | |
795ca3e5 AK |
4473 | fi |
4474 | ||
ad6254c5 AK |
4475 | if test $ac_cv_header_stdc = yes; then |
4476 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4477 | if test "$cross_compiling" = yes; then | |
4478 | : | |
795ca3e5 | 4479 | else |
ad6254c5 | 4480 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4481 | /* confdefs.h. */ |
4482 | _ACEOF | |
4483 | cat confdefs.h >>conftest.$ac_ext | |
4484 | cat >>conftest.$ac_ext <<_ACEOF | |
4485 | /* end confdefs.h. */ | |
4486 | #include <ctype.h> | |
7a197a62 | 4487 | #include <stdlib.h> |
ad6254c5 AK |
4488 | #if ((' ' & 0x0FF) == 0x020) |
4489 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4490 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4491 | #else | |
4492 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4493 | (('a' <= (c) && (c) <= 'i') \ |
4494 | || ('j' <= (c) && (c) <= 'r') \ | |
4495 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4496 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4497 | #endif |
ad6254c5 AK |
4498 | |
4499 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4500 | int | |
4501 | main () | |
4502 | { | |
4503 | int i; | |
4504 | for (i = 0; i < 256; i++) | |
4505 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4506 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4507 | return 2; |
4508 | return 0; | |
ad6254c5 AK |
4509 | } |
4510 | _ACEOF | |
4511 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4512 | if { (ac_try="$ac_link" |
4513 | case "(($ac_try" in | |
4514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4515 | *) ac_try_echo=$ac_try;; | |
4516 | esac | |
ec6a6fbe AK |
4517 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4518 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4519 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4520 | ac_status=$? |
ec6a6fbe | 4521 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4522 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4523 | { (case "(($ac_try" in |
4524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4525 | *) ac_try_echo=$ac_try;; | |
4526 | esac | |
ec6a6fbe AK |
4527 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4528 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4529 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4530 | ac_status=$? |
ec6a6fbe | 4531 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4532 | (exit $ac_status); }; }; then |
4533 | : | |
795ca3e5 | 4534 | else |
ec6a6fbe AK |
4535 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4536 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4537 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4538 | |
ad6254c5 AK |
4539 | ( exit $ac_status ) |
4540 | ac_cv_header_stdc=no | |
80992638 | 4541 | fi |
ec6a6fbe | 4542 | rm -rf conftest.dSYM |
7a197a62 | 4543 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4544 | fi |
7a197a62 AK |
4545 | |
4546 | ||
ad6254c5 AK |
4547 | fi |
4548 | fi | |
ec6a6fbe AK |
4549 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4550 | $as_echo "$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4551 | if test $ac_cv_header_stdc = yes; then |
4552 | ||
4553 | cat >>confdefs.h <<\_ACEOF | |
4554 | #define STDC_HEADERS 1 | |
4555 | _ACEOF | |
795ca3e5 AK |
4556 | |
4557 | fi | |
4558 | ||
d911ec67 | 4559 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
ad6254c5 | 4560 | |
ad6254c5 | 4561 | |
7a197a62 | 4562 | |
8106cdd5 | 4563 | |
795ca3e5 | 4564 | |
795ca3e5 | 4565 | |
d911ec67 AK |
4566 | |
4567 | ||
4568 | ||
4569 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4570 | inttypes.h stdint.h unistd.h | |
4571 | do | |
4572 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4573 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4574 | $as_echo_n "checking for $ac_header... " >&6; } | |
4575 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ec6a6fbe | 4576 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 4577 | else |
ad6254c5 | 4578 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4579 | /* confdefs.h. */ |
4580 | _ACEOF | |
4581 | cat confdefs.h >>conftest.$ac_ext | |
4582 | cat >>conftest.$ac_ext <<_ACEOF | |
4583 | /* end confdefs.h. */ | |
d911ec67 | 4584 | $ac_includes_default |
ad6254c5 | 4585 | |
d911ec67 | 4586 | #include <$ac_header> |
ad6254c5 AK |
4587 | _ACEOF |
4588 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4589 | if { (ac_try="$ac_compile" |
4590 | case "(($ac_try" in | |
4591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4592 | *) ac_try_echo=$ac_try;; | |
4593 | esac | |
ec6a6fbe AK |
4594 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4595 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4596 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4597 | ac_status=$? |
8a2fc586 AK |
4598 | grep -v '^ *+' conftest.er1 >conftest.err |
4599 | rm -f conftest.er1 | |
4600 | cat conftest.err >&5 | |
ec6a6fbe | 4601 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4602 | (exit $ac_status); } && { |
4603 | test -z "$ac_c_werror_flag" || | |
4604 | test ! -s conftest.err | |
4605 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 4606 | eval "$as_ac_Header=yes" |
795ca3e5 | 4607 | else |
ec6a6fbe | 4608 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4609 | sed 's/^/| /' conftest.$ac_ext >&5 |
4610 | ||
d911ec67 | 4611 | eval "$as_ac_Header=no" |
795ca3e5 | 4612 | fi |
7a197a62 AK |
4613 | |
4614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4615 | fi |
d911ec67 AK |
4616 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4617 | $as_echo "$as_val"'` | |
4618 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4619 | $as_echo "$ac_res" >&6; } | |
4620 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4621 | $as_echo "$as_val"'` | |
4622 | if test "x$as_val" = x""yes; then | |
4623 | cat >>confdefs.h <<_ACEOF | |
4624 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ad6254c5 | 4625 | _ACEOF |
b896caa1 | 4626 | |
8106cdd5 | 4627 | fi |
b896caa1 | 4628 | |
d911ec67 | 4629 | done |
d0191583 JM |
4630 | |
4631 | ||
d911ec67 AK |
4632 | { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
4633 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | |
4634 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then | |
ec6a6fbe | 4635 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4636 | else |
4637 | cat >conftest.$ac_ext <<_ACEOF | |
4638 | /* confdefs.h. */ | |
4639 | _ACEOF | |
4640 | cat confdefs.h >>conftest.$ac_ext | |
4641 | cat >>conftest.$ac_ext <<_ACEOF | |
4642 | /* end confdefs.h. */ | |
d911ec67 AK |
4643 | #include <sys/types.h> |
4644 | int | |
4645 | main () | |
4646 | { | |
4647 | return makedev(0, 0); | |
4648 | ; | |
4649 | return 0; | |
4650 | } | |
d0191583 | 4651 | _ACEOF |
d911ec67 AK |
4652 | rm -f conftest.$ac_objext conftest$ac_exeext |
4653 | if { (ac_try="$ac_link" | |
d0191583 JM |
4654 | case "(($ac_try" in |
4655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4656 | *) ac_try_echo=$ac_try;; | |
4657 | esac | |
ec6a6fbe AK |
4658 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4659 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 | 4660 | (eval "$ac_link") 2>conftest.er1 |
d0191583 JM |
4661 | ac_status=$? |
4662 | grep -v '^ *+' conftest.er1 >conftest.err | |
4663 | rm -f conftest.er1 | |
4664 | cat conftest.err >&5 | |
ec6a6fbe | 4665 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4666 | (exit $ac_status); } && { |
4667 | test -z "$ac_c_werror_flag" || | |
4668 | test ! -s conftest.err | |
d911ec67 AK |
4669 | } && test -s conftest$ac_exeext && { |
4670 | test "$cross_compiling" = yes || | |
4671 | $as_test_x conftest$ac_exeext | |
4672 | }; then | |
4673 | ac_cv_header_sys_types_h_makedev=yes | |
d0191583 | 4674 | else |
ec6a6fbe | 4675 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4676 | sed 's/^/| /' conftest.$ac_ext >&5 |
4677 | ||
d911ec67 | 4678 | ac_cv_header_sys_types_h_makedev=no |
d0191583 JM |
4679 | fi |
4680 | ||
d911ec67 AK |
4681 | rm -rf conftest.dSYM |
4682 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4683 | conftest$ac_exeext conftest.$ac_ext | |
d0191583 JM |
4684 | |
4685 | fi | |
d911ec67 AK |
4686 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
4687 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | |
d0191583 | 4688 | |
d911ec67 AK |
4689 | if test $ac_cv_header_sys_types_h_makedev = no; then |
4690 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then | |
4691 | { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 | |
4692 | $as_echo_n "checking for sys/mkdev.h... " >&6; } | |
4693 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then | |
ec6a6fbe | 4694 | $as_echo_n "(cached) " >&6 |
d0191583 | 4695 | fi |
d911ec67 AK |
4696 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
4697 | $as_echo "$ac_cv_header_sys_mkdev_h" >&6; } | |
ad6254c5 | 4698 | else |
d0191583 | 4699 | # Is the header compilable? |
d911ec67 AK |
4700 | { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
4701 | $as_echo_n "checking sys/mkdev.h usability... " >&6; } | |
d0191583 | 4702 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4703 | /* confdefs.h. */ |
4704 | _ACEOF | |
4705 | cat confdefs.h >>conftest.$ac_ext | |
4706 | cat >>conftest.$ac_ext <<_ACEOF | |
4707 | /* end confdefs.h. */ | |
4708 | $ac_includes_default | |
d911ec67 | 4709 | #include <sys/mkdev.h> |
ad6254c5 AK |
4710 | _ACEOF |
4711 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4712 | if { (ac_try="$ac_compile" |
4713 | case "(($ac_try" in | |
4714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4715 | *) ac_try_echo=$ac_try;; | |
4716 | esac | |
ec6a6fbe AK |
4717 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4718 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4719 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4720 | ac_status=$? |
8a2fc586 AK |
4721 | grep -v '^ *+' conftest.er1 >conftest.err |
4722 | rm -f conftest.er1 | |
4723 | cat conftest.err >&5 | |
ec6a6fbe | 4724 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4725 | (exit $ac_status); } && { |
4726 | test -z "$ac_c_werror_flag" || | |
4727 | test ! -s conftest.err | |
4728 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4729 | ac_header_compiler=yes |
ad6254c5 | 4730 | else |
ec6a6fbe | 4731 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4732 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4733 | |
d0191583 | 4734 | ac_header_compiler=no |
ad6254c5 | 4735 | fi |
7a197a62 AK |
4736 | |
4737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4738 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4739 | $as_echo "$ac_header_compiler" >&6; } | |
d0191583 JM |
4740 | |
4741 | # Is the header present? | |
d911ec67 AK |
4742 | { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
4743 | $as_echo_n "checking sys/mkdev.h presence... " >&6; } | |
d0191583 JM |
4744 | cat >conftest.$ac_ext <<_ACEOF |
4745 | /* confdefs.h. */ | |
4746 | _ACEOF | |
4747 | cat confdefs.h >>conftest.$ac_ext | |
4748 | cat >>conftest.$ac_ext <<_ACEOF | |
4749 | /* end confdefs.h. */ | |
d911ec67 | 4750 | #include <sys/mkdev.h> |
d0191583 JM |
4751 | _ACEOF |
4752 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4753 | case "(($ac_try" in | |
4754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4755 | *) ac_try_echo=$ac_try;; | |
4756 | esac | |
ec6a6fbe AK |
4757 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4758 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4759 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4760 | ac_status=$? | |
4761 | grep -v '^ *+' conftest.er1 >conftest.err | |
4762 | rm -f conftest.er1 | |
4763 | cat conftest.err >&5 | |
ec6a6fbe | 4764 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4765 | (exit $ac_status); } >/dev/null && { |
4766 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4767 | test ! -s conftest.err | |
4768 | }; then | |
4769 | ac_header_preproc=yes | |
4770 | else | |
ec6a6fbe | 4771 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4772 | sed 's/^/| /' conftest.$ac_ext >&5 |
4773 | ||
4774 | ac_header_preproc=no | |
4775 | fi | |
4776 | ||
4777 | rm -f conftest.err conftest.$ac_ext | |
ec6a6fbe AK |
4778 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4779 | $as_echo "$ac_header_preproc" >&6; } | |
d0191583 JM |
4780 | |
4781 | # So? What about this header? | |
4782 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4783 | yes:no: ) | |
d911ec67 AK |
4784 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4785 | $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4786 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 | |
4787 | $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4788 | ac_header_preproc=yes |
4789 | ;; | |
4790 | no:yes:* ) | |
d911ec67 AK |
4791 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
4792 | $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} | |
4793 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 | |
4794 | $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} | |
4795 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 | |
4796 | $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} | |
4797 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4798 | $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4799 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 | |
4800 | $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} | |
4801 | { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 | |
4802 | $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4803 | |
4804 | ;; | |
4805 | esac | |
d911ec67 AK |
4806 | { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
4807 | $as_echo_n "checking for sys/mkdev.h... " >&6; } | |
4808 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then | |
ec6a6fbe | 4809 | $as_echo_n "(cached) " >&6 |
d0191583 | 4810 | else |
d911ec67 | 4811 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
a38df97f | 4812 | fi |
d911ec67 AK |
4813 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
4814 | $as_echo "$ac_cv_header_sys_mkdev_h" >&6; } | |
d0191583 JM |
4815 | |
4816 | fi | |
d911ec67 AK |
4817 | if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then |
4818 | ||
4819 | cat >>confdefs.h <<\_ACEOF | |
4820 | #define MAJOR_IN_MKDEV 1 | |
ad6254c5 | 4821 | _ACEOF |
a38df97f | 4822 | |
80992638 AK |
4823 | fi |
4824 | ||
80992638 | 4825 | |
5a52dca9 | 4826 | |
d911ec67 AK |
4827 | if test $ac_cv_header_sys_mkdev_h = no; then |
4828 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then | |
4829 | { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 | |
4830 | $as_echo_n "checking for sys/sysmacros.h... " >&6; } | |
4831 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then | |
ec6a6fbe | 4832 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4833 | fi |
d911ec67 AK |
4834 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
4835 | $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; } | |
ad6254c5 AK |
4836 | else |
4837 | # Is the header compilable? | |
d911ec67 AK |
4838 | { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
4839 | $as_echo_n "checking sys/sysmacros.h usability... " >&6; } | |
ad6254c5 | 4840 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4841 | /* confdefs.h. */ |
4842 | _ACEOF | |
4843 | cat confdefs.h >>conftest.$ac_ext | |
4844 | cat >>conftest.$ac_ext <<_ACEOF | |
4845 | /* end confdefs.h. */ | |
4846 | $ac_includes_default | |
d911ec67 | 4847 | #include <sys/sysmacros.h> |
ad6254c5 AK |
4848 | _ACEOF |
4849 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4850 | if { (ac_try="$ac_compile" |
4851 | case "(($ac_try" in | |
4852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4853 | *) ac_try_echo=$ac_try;; | |
4854 | esac | |
ec6a6fbe AK |
4855 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4856 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4857 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4858 | ac_status=$? |
8a2fc586 AK |
4859 | grep -v '^ *+' conftest.er1 >conftest.err |
4860 | rm -f conftest.er1 | |
4861 | cat conftest.err >&5 | |
ec6a6fbe | 4862 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4863 | (exit $ac_status); } && { |
4864 | test -z "$ac_c_werror_flag" || | |
4865 | test ! -s conftest.err | |
4866 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4867 | ac_header_compiler=yes |
4868 | else | |
ec6a6fbe | 4869 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4870 | sed 's/^/| /' conftest.$ac_ext >&5 |
4871 | ||
4872 | ac_header_compiler=no | |
4873 | fi | |
4874 | ||
4875 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4876 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4877 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4878 | |
4879 | # Is the header present? | |
d911ec67 AK |
4880 | { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
4881 | $as_echo_n "checking sys/sysmacros.h presence... " >&6; } | |
ad6254c5 | 4882 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4883 | /* confdefs.h. */ |
4884 | _ACEOF | |
4885 | cat confdefs.h >>conftest.$ac_ext | |
4886 | cat >>conftest.$ac_ext <<_ACEOF | |
4887 | /* end confdefs.h. */ | |
d911ec67 | 4888 | #include <sys/sysmacros.h> |
ad6254c5 | 4889 | _ACEOF |
7a197a62 AK |
4890 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4891 | case "(($ac_try" in | |
4892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4893 | *) ac_try_echo=$ac_try;; | |
4894 | esac | |
ec6a6fbe AK |
4895 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4896 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4897 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4898 | ac_status=$? |
4899 | grep -v '^ *+' conftest.er1 >conftest.err | |
4900 | rm -f conftest.er1 | |
4901 | cat conftest.err >&5 | |
ec6a6fbe | 4902 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4903 | (exit $ac_status); } >/dev/null && { |
4904 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4905 | test ! -s conftest.err | |
4906 | }; then | |
ad6254c5 AK |
4907 | ac_header_preproc=yes |
4908 | else | |
ec6a6fbe | 4909 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4910 | sed 's/^/| /' conftest.$ac_ext >&5 |
4911 | ||
4912 | ac_header_preproc=no | |
4913 | fi | |
7a197a62 | 4914 | |
ad6254c5 | 4915 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
4916 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4917 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4918 | |
4919 | # So? What about this header? | |
8a2fc586 AK |
4920 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4921 | yes:no: ) | |
d911ec67 AK |
4922 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
4923 | $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4924 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 | |
4925 | $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4926 | ac_header_preproc=yes |
ad6254c5 | 4927 | ;; |
8a2fc586 | 4928 | no:yes:* ) |
d911ec67 AK |
4929 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
4930 | $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} | |
4931 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 | |
4932 | $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} | |
4933 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 | |
4934 | $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} | |
4935 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4936 | $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4937 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 | |
4938 | $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} | |
4939 | { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 | |
4940 | $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4941 | |
ad6254c5 AK |
4942 | ;; |
4943 | esac | |
d911ec67 AK |
4944 | { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
4945 | $as_echo_n "checking for sys/sysmacros.h... " >&6; } | |
4946 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then | |
ec6a6fbe | 4947 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4948 | else |
d911ec67 | 4949 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
b896caa1 | 4950 | fi |
d911ec67 AK |
4951 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
4952 | $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; } | |
ad6254c5 AK |
4953 | |
4954 | fi | |
d911ec67 AK |
4955 | if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then |
4956 | ||
4957 | cat >>confdefs.h <<\_ACEOF | |
4958 | #define MAJOR_IN_SYSMACROS 1 | |
ad6254c5 | 4959 | _ACEOF |
b896caa1 | 4960 | |
80992638 AK |
4961 | fi |
4962 | ||
d8ac0fbc | 4963 | |
d911ec67 AK |
4964 | fi |
4965 | fi | |
d8ac0fbc | 4966 | |
d911ec67 AK |
4967 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4968 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4969 | if test "${ac_cv_header_stdc+set}" = set; then | |
ec6a6fbe | 4970 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4971 | else |
d911ec67 | 4972 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4973 | /* confdefs.h. */ |
4974 | _ACEOF | |
4975 | cat confdefs.h >>conftest.$ac_ext | |
4976 | cat >>conftest.$ac_ext <<_ACEOF | |
4977 | /* end confdefs.h. */ | |
d911ec67 AK |
4978 | #include <stdlib.h> |
4979 | #include <stdarg.h> | |
4980 | #include <string.h> | |
4981 | #include <float.h> | |
4982 | ||
4983 | int | |
4984 | main () | |
4985 | { | |
4986 | ||
4987 | ; | |
4988 | return 0; | |
4989 | } | |
ad6254c5 AK |
4990 | _ACEOF |
4991 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4992 | if { (ac_try="$ac_compile" |
4993 | case "(($ac_try" in | |
4994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4995 | *) ac_try_echo=$ac_try;; | |
4996 | esac | |
ec6a6fbe AK |
4997 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4998 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4999 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5000 | ac_status=$? |
8a2fc586 AK |
5001 | grep -v '^ *+' conftest.er1 >conftest.err |
5002 | rm -f conftest.er1 | |
5003 | cat conftest.err >&5 | |
ec6a6fbe | 5004 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5005 | (exit $ac_status); } && { |
5006 | test -z "$ac_c_werror_flag" || | |
5007 | test ! -s conftest.err | |
5008 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 5009 | ac_cv_header_stdc=yes |
ad6254c5 | 5010 | else |
ec6a6fbe | 5011 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5012 | sed 's/^/| /' conftest.$ac_ext >&5 |
5013 | ||
d911ec67 | 5014 | ac_cv_header_stdc=no |
ad6254c5 | 5015 | fi |
7a197a62 AK |
5016 | |
5017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 5018 | |
d911ec67 AK |
5019 | if test $ac_cv_header_stdc = yes; then |
5020 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5021 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5022 | /* confdefs.h. */ |
5023 | _ACEOF | |
5024 | cat confdefs.h >>conftest.$ac_ext | |
5025 | cat >>conftest.$ac_ext <<_ACEOF | |
5026 | /* end confdefs.h. */ | |
d911ec67 AK |
5027 | #include <string.h> |
5028 | ||
ad6254c5 | 5029 | _ACEOF |
d911ec67 AK |
5030 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5031 | $EGREP "memchr" >/dev/null 2>&1; then | |
5032 | : | |
5033 | else | |
5034 | ac_cv_header_stdc=no | |
5035 | fi | |
5036 | rm -f conftest* | |
5037 | ||
5038 | fi | |
5039 | ||
5040 | if test $ac_cv_header_stdc = yes; then | |
5041 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5042 | cat >conftest.$ac_ext <<_ACEOF | |
5043 | /* confdefs.h. */ | |
5044 | _ACEOF | |
5045 | cat confdefs.h >>conftest.$ac_ext | |
5046 | cat >>conftest.$ac_ext <<_ACEOF | |
5047 | /* end confdefs.h. */ | |
5048 | #include <stdlib.h> | |
5049 | ||
5050 | _ACEOF | |
5051 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5052 | $EGREP "free" >/dev/null 2>&1; then | |
5053 | : | |
5054 | else | |
5055 | ac_cv_header_stdc=no | |
5056 | fi | |
5057 | rm -f conftest* | |
5058 | ||
5059 | fi | |
5060 | ||
5061 | if test $ac_cv_header_stdc = yes; then | |
5062 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5063 | if test "$cross_compiling" = yes; then | |
5064 | : | |
5065 | else | |
5066 | cat >conftest.$ac_ext <<_ACEOF | |
5067 | /* confdefs.h. */ | |
5068 | _ACEOF | |
5069 | cat confdefs.h >>conftest.$ac_ext | |
5070 | cat >>conftest.$ac_ext <<_ACEOF | |
5071 | /* end confdefs.h. */ | |
5072 | #include <ctype.h> | |
5073 | #include <stdlib.h> | |
5074 | #if ((' ' & 0x0FF) == 0x020) | |
5075 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5076 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5077 | #else | |
5078 | # define ISLOWER(c) \ | |
5079 | (('a' <= (c) && (c) <= 'i') \ | |
5080 | || ('j' <= (c) && (c) <= 'r') \ | |
5081 | || ('s' <= (c) && (c) <= 'z')) | |
5082 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5083 | #endif | |
5084 | ||
5085 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5086 | int | |
5087 | main () | |
5088 | { | |
5089 | int i; | |
5090 | for (i = 0; i < 256; i++) | |
5091 | if (XOR (islower (i), ISLOWER (i)) | |
5092 | || toupper (i) != TOUPPER (i)) | |
5093 | return 2; | |
5094 | return 0; | |
5095 | } | |
5096 | _ACEOF | |
5097 | rm -f conftest$ac_exeext | |
5098 | if { (ac_try="$ac_link" | |
7a197a62 AK |
5099 | case "(($ac_try" in |
5100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5101 | *) ac_try_echo=$ac_try;; | |
5102 | esac | |
ec6a6fbe AK |
5103 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5104 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 AK |
5105 | (eval "$ac_link") 2>&5 |
5106 | ac_status=$? | |
5107 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5108 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5109 | { (case "(($ac_try" in | |
5110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5111 | *) ac_try_echo=$ac_try;; | |
5112 | esac | |
5113 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5114 | $as_echo "$ac_try_echo") >&5 | |
5115 | (eval "$ac_try") 2>&5 | |
5116 | ac_status=$? | |
5117 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5118 | (exit $ac_status); }; }; then | |
5119 | : | |
5120 | else | |
5121 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
5122 | $as_echo "$as_me: failed program was:" >&5 | |
5123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5124 | ||
5125 | ( exit $ac_status ) | |
5126 | ac_cv_header_stdc=no | |
5127 | fi | |
5128 | rm -rf conftest.dSYM | |
5129 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5130 | fi | |
5131 | ||
5132 | ||
5133 | fi | |
5134 | fi | |
5135 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
5136 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5137 | if test $ac_cv_header_stdc = yes; then | |
5138 | ||
5139 | cat >>confdefs.h <<\_ACEOF | |
5140 | #define STDC_HEADERS 1 | |
5141 | _ACEOF | |
5142 | ||
5143 | fi | |
5144 | ||
5145 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 | |
5146 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
5147 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
5148 | $as_echo_n "(cached) " >&6 | |
5149 | else | |
5150 | cat >conftest.$ac_ext <<_ACEOF | |
5151 | /* confdefs.h. */ | |
5152 | _ACEOF | |
5153 | cat confdefs.h >>conftest.$ac_ext | |
5154 | cat >>conftest.$ac_ext <<_ACEOF | |
5155 | /* end confdefs.h. */ | |
5156 | #include <sys/types.h> | |
5157 | #include <sys/wait.h> | |
5158 | #ifndef WEXITSTATUS | |
5159 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | |
5160 | #endif | |
5161 | #ifndef WIFEXITED | |
5162 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
5163 | #endif | |
5164 | ||
5165 | int | |
5166 | main () | |
5167 | { | |
5168 | int s; | |
5169 | wait (&s); | |
5170 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
5171 | ; | |
5172 | return 0; | |
5173 | } | |
5174 | _ACEOF | |
5175 | rm -f conftest.$ac_objext | |
5176 | if { (ac_try="$ac_compile" | |
5177 | case "(($ac_try" in | |
5178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5179 | *) ac_try_echo=$ac_try;; | |
5180 | esac | |
5181 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5182 | $as_echo "$ac_try_echo") >&5 | |
5183 | (eval "$ac_compile") 2>conftest.er1 | |
ad6254c5 AK |
5184 | ac_status=$? |
5185 | grep -v '^ *+' conftest.er1 >conftest.err | |
5186 | rm -f conftest.er1 | |
5187 | cat conftest.err >&5 | |
ec6a6fbe | 5188 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d911ec67 AK |
5189 | (exit $ac_status); } && { |
5190 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 5191 | test ! -s conftest.err |
d911ec67 AK |
5192 | } && test -s conftest.$ac_objext; then |
5193 | ac_cv_header_sys_wait_h=yes | |
ad6254c5 | 5194 | else |
ec6a6fbe | 5195 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5196 | sed 's/^/| /' conftest.$ac_ext >&5 |
5197 | ||
d911ec67 | 5198 | ac_cv_header_sys_wait_h=no |
ad6254c5 | 5199 | fi |
7a197a62 | 5200 | |
d911ec67 AK |
5201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5202 | fi | |
5203 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 | |
5204 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
5205 | if test $ac_cv_header_sys_wait_h = yes; then | |
5206 | ||
5207 | cat >>confdefs.h <<\_ACEOF | |
5208 | #define HAVE_SYS_WAIT_H 1 | |
5209 | _ACEOF | |
5210 | ||
5211 | fi | |
5212 | ||
5213 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
5214 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
5215 | if test "${ac_cv_header_time+set}" = set; then | |
5216 | $as_echo_n "(cached) " >&6 | |
5217 | else | |
5218 | cat >conftest.$ac_ext <<_ACEOF | |
5219 | /* confdefs.h. */ | |
5220 | _ACEOF | |
5221 | cat confdefs.h >>conftest.$ac_ext | |
5222 | cat >>conftest.$ac_ext <<_ACEOF | |
5223 | /* end confdefs.h. */ | |
5224 | #include <sys/types.h> | |
5225 | #include <sys/time.h> | |
5226 | #include <time.h> | |
5227 | ||
5228 | int | |
5229 | main () | |
5230 | { | |
5231 | if ((struct tm *) 0) | |
5232 | return 0; | |
5233 | ; | |
5234 | return 0; | |
5235 | } | |
5236 | _ACEOF | |
5237 | rm -f conftest.$ac_objext | |
5238 | if { (ac_try="$ac_compile" | |
5239 | case "(($ac_try" in | |
5240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5241 | *) ac_try_echo=$ac_try;; | |
5242 | esac | |
5243 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5244 | $as_echo "$ac_try_echo") >&5 | |
5245 | (eval "$ac_compile") 2>conftest.er1 | |
5246 | ac_status=$? | |
5247 | grep -v '^ *+' conftest.er1 >conftest.err | |
5248 | rm -f conftest.er1 | |
5249 | cat conftest.err >&5 | |
5250 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5251 | (exit $ac_status); } && { | |
5252 | test -z "$ac_c_werror_flag" || | |
5253 | test ! -s conftest.err | |
5254 | } && test -s conftest.$ac_objext; then | |
5255 | ac_cv_header_time=yes | |
5256 | else | |
5257 | $as_echo "$as_me: failed program was:" >&5 | |
5258 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5259 | ||
5260 | ac_cv_header_time=no | |
5261 | fi | |
5262 | ||
5263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5264 | fi | |
5265 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | |
5266 | $as_echo "$ac_cv_header_time" >&6; } | |
5267 | if test $ac_cv_header_time = yes; then | |
5268 | ||
5269 | cat >>confdefs.h <<\_ACEOF | |
5270 | #define TIME_WITH_SYS_TIME 1 | |
5271 | _ACEOF | |
5272 | ||
5273 | fi | |
5274 | ||
5275 | ||
5276 | ||
5277 | ||
5278 | ||
5279 | ||
5280 | ||
5281 | ||
5282 | ||
5283 | ||
5284 | ||
5285 | ||
5286 | ||
5287 | ||
5288 | ||
5289 | ||
5290 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
5291 | langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \ | |
5292 | sys/wait.h time.h | |
5293 | do | |
5294 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5295 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5296 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5297 | $as_echo_n "checking for $ac_header... " >&6; } | |
5298 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5299 | $as_echo_n "(cached) " >&6 | |
5300 | fi | |
5301 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5302 | $as_echo "$as_val"'` | |
5303 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5304 | $as_echo "$ac_res" >&6; } | |
5305 | else | |
5306 | # Is the header compilable? | |
5307 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5308 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5309 | cat >conftest.$ac_ext <<_ACEOF | |
5310 | /* confdefs.h. */ | |
5311 | _ACEOF | |
5312 | cat confdefs.h >>conftest.$ac_ext | |
5313 | cat >>conftest.$ac_ext <<_ACEOF | |
5314 | /* end confdefs.h. */ | |
5315 | $ac_includes_default | |
5316 | #include <$ac_header> | |
5317 | _ACEOF | |
5318 | rm -f conftest.$ac_objext | |
5319 | if { (ac_try="$ac_compile" | |
5320 | case "(($ac_try" in | |
5321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5322 | *) ac_try_echo=$ac_try;; | |
5323 | esac | |
5324 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5325 | $as_echo "$ac_try_echo") >&5 | |
5326 | (eval "$ac_compile") 2>conftest.er1 | |
5327 | ac_status=$? | |
5328 | grep -v '^ *+' conftest.er1 >conftest.err | |
5329 | rm -f conftest.er1 | |
5330 | cat conftest.err >&5 | |
5331 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5332 | (exit $ac_status); } && { | |
5333 | test -z "$ac_c_werror_flag" || | |
5334 | test ! -s conftest.err | |
5335 | } && test -s conftest.$ac_objext; then | |
5336 | ac_header_compiler=yes | |
5337 | else | |
5338 | $as_echo "$as_me: failed program was:" >&5 | |
5339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5340 | ||
5341 | ac_header_compiler=no | |
5342 | fi | |
5343 | ||
5344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5345 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5346 | $as_echo "$ac_header_compiler" >&6; } | |
5347 | ||
5348 | # Is the header present? | |
5349 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5350 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5351 | cat >conftest.$ac_ext <<_ACEOF | |
5352 | /* confdefs.h. */ | |
5353 | _ACEOF | |
5354 | cat confdefs.h >>conftest.$ac_ext | |
5355 | cat >>conftest.$ac_ext <<_ACEOF | |
5356 | /* end confdefs.h. */ | |
5357 | #include <$ac_header> | |
5358 | _ACEOF | |
5359 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5360 | case "(($ac_try" in | |
5361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5362 | *) ac_try_echo=$ac_try;; | |
5363 | esac | |
5364 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5365 | $as_echo "$ac_try_echo") >&5 | |
5366 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5367 | ac_status=$? | |
5368 | grep -v '^ *+' conftest.er1 >conftest.err | |
5369 | rm -f conftest.er1 | |
5370 | cat conftest.err >&5 | |
5371 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5372 | (exit $ac_status); } >/dev/null && { | |
5373 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5374 | test ! -s conftest.err | |
5375 | }; then | |
5376 | ac_header_preproc=yes | |
5377 | else | |
5378 | $as_echo "$as_me: failed program was:" >&5 | |
5379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5380 | ||
5381 | ac_header_preproc=no | |
5382 | fi | |
5383 | ||
5384 | rm -f conftest.err conftest.$ac_ext | |
5385 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5386 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5387 | |
5388 | # So? What about this header? | |
8a2fc586 AK |
5389 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5390 | yes:no: ) | |
ec6a6fbe AK |
5391 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5392 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5393 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5394 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5395 | ac_header_preproc=yes |
ad6254c5 | 5396 | ;; |
8a2fc586 | 5397 | no:yes:* ) |
ec6a6fbe AK |
5398 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5399 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5400 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5401 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5402 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5403 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5404 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5405 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5406 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5407 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5408 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5409 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5410 | |
ad6254c5 AK |
5411 | ;; |
5412 | esac | |
d911ec67 AK |
5413 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5414 | $as_echo_n "checking for $ac_header... " >&6; } | |
5415 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5416 | $as_echo_n "(cached) " >&6 | |
5417 | else | |
5418 | eval "$as_ac_Header=\$ac_header_preproc" | |
5419 | fi | |
5420 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5421 | $as_echo "$as_val"'` | |
5422 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5423 | $as_echo "$ac_res" >&6; } | |
5424 | ||
5425 | fi | |
5426 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5427 | $as_echo "$as_val"'` | |
5428 | if test "x$as_val" = x""yes; then | |
5429 | cat >>confdefs.h <<_ACEOF | |
5430 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5431 | _ACEOF | |
5432 | ||
5433 | else | |
5434 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5435 | $as_echo "$as_me: error: bailing out" >&2;} | |
5436 | { (exit 1); exit 1; }; } | |
5437 | fi | |
5438 | ||
5439 | done | |
5440 | ||
5441 | ||
5442 | case "$host_os" in | |
5443 | linux*) | |
5444 | ||
5445 | ||
5446 | ||
5447 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
5448 | do | |
5449 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5450 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5451 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5452 | $as_echo_n "checking for $ac_header... " >&6; } | |
5453 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5454 | $as_echo_n "(cached) " >&6 | |
5455 | fi | |
5456 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5457 | $as_echo "$as_val"'` | |
5458 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5459 | $as_echo "$ac_res" >&6; } | |
5460 | else | |
5461 | # Is the header compilable? | |
5462 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5463 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5464 | cat >conftest.$ac_ext <<_ACEOF | |
5465 | /* confdefs.h. */ | |
5466 | _ACEOF | |
5467 | cat confdefs.h >>conftest.$ac_ext | |
5468 | cat >>conftest.$ac_ext <<_ACEOF | |
5469 | /* end confdefs.h. */ | |
5470 | $ac_includes_default | |
5471 | #include <$ac_header> | |
5472 | _ACEOF | |
5473 | rm -f conftest.$ac_objext | |
5474 | if { (ac_try="$ac_compile" | |
5475 | case "(($ac_try" in | |
5476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5477 | *) ac_try_echo=$ac_try;; | |
5478 | esac | |
5479 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5480 | $as_echo "$ac_try_echo") >&5 | |
5481 | (eval "$ac_compile") 2>conftest.er1 | |
5482 | ac_status=$? | |
5483 | grep -v '^ *+' conftest.er1 >conftest.err | |
5484 | rm -f conftest.er1 | |
5485 | cat conftest.err >&5 | |
5486 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5487 | (exit $ac_status); } && { | |
5488 | test -z "$ac_c_werror_flag" || | |
5489 | test ! -s conftest.err | |
5490 | } && test -s conftest.$ac_objext; then | |
5491 | ac_header_compiler=yes | |
5492 | else | |
5493 | $as_echo "$as_me: failed program was:" >&5 | |
5494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5495 | ||
5496 | ac_header_compiler=no | |
5497 | fi | |
5498 | ||
5499 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5500 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5501 | $as_echo "$ac_header_compiler" >&6; } | |
5502 | ||
5503 | # Is the header present? | |
5504 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5505 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5506 | cat >conftest.$ac_ext <<_ACEOF | |
5507 | /* confdefs.h. */ | |
5508 | _ACEOF | |
5509 | cat confdefs.h >>conftest.$ac_ext | |
5510 | cat >>conftest.$ac_ext <<_ACEOF | |
5511 | /* end confdefs.h. */ | |
5512 | #include <$ac_header> | |
5513 | _ACEOF | |
5514 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5515 | case "(($ac_try" in | |
5516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5517 | *) ac_try_echo=$ac_try;; | |
5518 | esac | |
5519 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5520 | $as_echo "$ac_try_echo") >&5 | |
5521 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5522 | ac_status=$? | |
5523 | grep -v '^ *+' conftest.er1 >conftest.err | |
5524 | rm -f conftest.er1 | |
5525 | cat conftest.err >&5 | |
5526 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5527 | (exit $ac_status); } >/dev/null && { | |
5528 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5529 | test ! -s conftest.err | |
5530 | }; then | |
5531 | ac_header_preproc=yes | |
5532 | else | |
5533 | $as_echo "$as_me: failed program was:" >&5 | |
5534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5535 | ||
5536 | ac_header_preproc=no | |
5537 | fi | |
5538 | ||
5539 | rm -f conftest.err conftest.$ac_ext | |
5540 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5541 | $as_echo "$ac_header_preproc" >&6; } | |
5542 | ||
5543 | # So? What about this header? | |
5544 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5545 | yes:no: ) | |
5546 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5547 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5548 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5549 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5550 | ac_header_preproc=yes | |
5551 | ;; | |
5552 | no:yes:* ) | |
5553 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5554 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5555 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5556 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5557 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5558 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5559 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5560 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5561 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5562 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5563 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5564 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5565 | ||
5566 | ;; | |
5567 | esac | |
5568 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5569 | $as_echo_n "checking for $ac_header... " >&6; } | |
5570 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5571 | $as_echo_n "(cached) " >&6 | |
5572 | else | |
5573 | eval "$as_ac_Header=\$ac_header_preproc" | |
5574 | fi | |
5575 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5576 | $as_echo "$as_val"'` | |
5577 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5578 | $as_echo "$ac_res" >&6; } | |
5579 | ||
5580 | fi | |
5581 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5582 | $as_echo "$as_val"'` | |
5583 | if test "x$as_val" = x""yes; then | |
5584 | cat >>confdefs.h <<_ACEOF | |
5585 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5586 | _ACEOF | |
5587 | ||
5588 | else | |
5589 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5590 | $as_echo "$as_me: error: bailing out" >&2;} | |
5591 | { (exit 1); exit 1; }; } | |
5592 | fi | |
5593 | ||
5594 | done | |
5595 | ;; | |
5596 | darwin*) | |
5597 | ||
5598 | ||
5599 | for ac_header in machine/endian.h sys/disk.h | |
5600 | do | |
5601 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5602 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5603 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5604 | $as_echo_n "checking for $ac_header... " >&6; } | |
5605 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5606 | $as_echo_n "(cached) " >&6 | |
5607 | fi | |
5608 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5609 | $as_echo "$as_val"'` | |
5610 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5611 | $as_echo "$ac_res" >&6; } | |
5612 | else | |
5613 | # Is the header compilable? | |
5614 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5615 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5616 | cat >conftest.$ac_ext <<_ACEOF | |
5617 | /* confdefs.h. */ | |
5618 | _ACEOF | |
5619 | cat confdefs.h >>conftest.$ac_ext | |
5620 | cat >>conftest.$ac_ext <<_ACEOF | |
5621 | /* end confdefs.h. */ | |
5622 | $ac_includes_default | |
5623 | #include <$ac_header> | |
5624 | _ACEOF | |
5625 | rm -f conftest.$ac_objext | |
5626 | if { (ac_try="$ac_compile" | |
5627 | case "(($ac_try" in | |
5628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5629 | *) ac_try_echo=$ac_try;; | |
5630 | esac | |
5631 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5632 | $as_echo "$ac_try_echo") >&5 | |
5633 | (eval "$ac_compile") 2>conftest.er1 | |
5634 | ac_status=$? | |
5635 | grep -v '^ *+' conftest.er1 >conftest.err | |
5636 | rm -f conftest.er1 | |
5637 | cat conftest.err >&5 | |
5638 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5639 | (exit $ac_status); } && { | |
5640 | test -z "$ac_c_werror_flag" || | |
5641 | test ! -s conftest.err | |
5642 | } && test -s conftest.$ac_objext; then | |
5643 | ac_header_compiler=yes | |
5644 | else | |
5645 | $as_echo "$as_me: failed program was:" >&5 | |
5646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5647 | ||
5648 | ac_header_compiler=no | |
5649 | fi | |
5650 | ||
5651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5652 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5653 | $as_echo "$ac_header_compiler" >&6; } | |
5654 | ||
5655 | # Is the header present? | |
5656 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5657 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5658 | cat >conftest.$ac_ext <<_ACEOF | |
5659 | /* confdefs.h. */ | |
5660 | _ACEOF | |
5661 | cat confdefs.h >>conftest.$ac_ext | |
5662 | cat >>conftest.$ac_ext <<_ACEOF | |
5663 | /* end confdefs.h. */ | |
5664 | #include <$ac_header> | |
5665 | _ACEOF | |
5666 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5667 | case "(($ac_try" in | |
5668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5669 | *) ac_try_echo=$ac_try;; | |
5670 | esac | |
5671 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5672 | $as_echo "$ac_try_echo") >&5 | |
5673 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5674 | ac_status=$? | |
5675 | grep -v '^ *+' conftest.er1 >conftest.err | |
5676 | rm -f conftest.er1 | |
5677 | cat conftest.err >&5 | |
5678 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5679 | (exit $ac_status); } >/dev/null && { | |
5680 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5681 | test ! -s conftest.err | |
5682 | }; then | |
5683 | ac_header_preproc=yes | |
5684 | else | |
5685 | $as_echo "$as_me: failed program was:" >&5 | |
5686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5687 | ||
5688 | ac_header_preproc=no | |
5689 | fi | |
5690 | ||
5691 | rm -f conftest.err conftest.$ac_ext | |
5692 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5693 | $as_echo "$ac_header_preproc" >&6; } | |
5694 | ||
5695 | # So? What about this header? | |
5696 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5697 | yes:no: ) | |
5698 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5699 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5700 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5701 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5702 | ac_header_preproc=yes | |
5703 | ;; | |
5704 | no:yes:* ) | |
5705 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5706 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5707 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5708 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5709 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5710 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5711 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5712 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5713 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5714 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5715 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5716 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5717 | ||
5718 | ;; | |
5719 | esac | |
5720 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5721 | $as_echo_n "checking for $ac_header... " >&6; } | |
5722 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5723 | $as_echo_n "(cached) " >&6 | |
5724 | else | |
5725 | eval "$as_ac_Header=\$ac_header_preproc" | |
5726 | fi | |
5727 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5728 | $as_echo "$as_val"'` | |
5729 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5730 | $as_echo "$ac_res" >&6; } | |
5731 | ||
5732 | fi | |
5733 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5734 | $as_echo "$as_val"'` | |
5735 | if test "x$as_val" = x""yes; then | |
5736 | cat >>confdefs.h <<_ACEOF | |
5737 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5738 | _ACEOF | |
5739 | ||
5740 | else | |
5741 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5742 | $as_echo "$as_me: error: bailing out" >&2;} | |
5743 | { (exit 1); exit 1; }; } | |
5744 | fi | |
5745 | ||
5746 | done | |
5747 | ;; | |
5748 | esac | |
5749 | ||
5750 | ||
5751 | ||
5752 | ||
5753 | ||
5754 | ||
5755 | ||
5756 | ||
5757 | ||
5758 | ||
5759 | ||
5760 | ||
5761 | ||
5762 | ||
5763 | ||
5764 | ||
5765 | ||
5766 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
5767 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
5768 | sys/types.h unistd.h | |
5769 | do | |
5770 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5771 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5772 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5773 | $as_echo_n "checking for $ac_header... " >&6; } | |
5774 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5775 | $as_echo_n "(cached) " >&6 | |
5776 | fi | |
5777 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5778 | $as_echo "$as_val"'` | |
5779 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5780 | $as_echo "$ac_res" >&6; } | |
5781 | else | |
5782 | # Is the header compilable? | |
5783 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5784 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5785 | cat >conftest.$ac_ext <<_ACEOF | |
5786 | /* confdefs.h. */ | |
5787 | _ACEOF | |
5788 | cat confdefs.h >>conftest.$ac_ext | |
5789 | cat >>conftest.$ac_ext <<_ACEOF | |
5790 | /* end confdefs.h. */ | |
5791 | $ac_includes_default | |
5792 | #include <$ac_header> | |
5793 | _ACEOF | |
5794 | rm -f conftest.$ac_objext | |
5795 | if { (ac_try="$ac_compile" | |
5796 | case "(($ac_try" in | |
5797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5798 | *) ac_try_echo=$ac_try;; | |
5799 | esac | |
5800 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5801 | $as_echo "$ac_try_echo") >&5 | |
5802 | (eval "$ac_compile") 2>conftest.er1 | |
5803 | ac_status=$? | |
5804 | grep -v '^ *+' conftest.er1 >conftest.err | |
5805 | rm -f conftest.er1 | |
5806 | cat conftest.err >&5 | |
5807 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5808 | (exit $ac_status); } && { | |
5809 | test -z "$ac_c_werror_flag" || | |
5810 | test ! -s conftest.err | |
5811 | } && test -s conftest.$ac_objext; then | |
5812 | ac_header_compiler=yes | |
5813 | else | |
5814 | $as_echo "$as_me: failed program was:" >&5 | |
5815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5816 | ||
5817 | ac_header_compiler=no | |
5818 | fi | |
5819 | ||
5820 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5821 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5822 | $as_echo "$ac_header_compiler" >&6; } | |
5823 | ||
5824 | # Is the header present? | |
5825 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5826 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5827 | cat >conftest.$ac_ext <<_ACEOF | |
5828 | /* confdefs.h. */ | |
5829 | _ACEOF | |
5830 | cat confdefs.h >>conftest.$ac_ext | |
5831 | cat >>conftest.$ac_ext <<_ACEOF | |
5832 | /* end confdefs.h. */ | |
5833 | #include <$ac_header> | |
5834 | _ACEOF | |
5835 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5836 | case "(($ac_try" in | |
5837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5838 | *) ac_try_echo=$ac_try;; | |
5839 | esac | |
5840 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5841 | $as_echo "$ac_try_echo") >&5 | |
5842 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5843 | ac_status=$? | |
5844 | grep -v '^ *+' conftest.er1 >conftest.err | |
5845 | rm -f conftest.er1 | |
5846 | cat conftest.err >&5 | |
5847 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5848 | (exit $ac_status); } >/dev/null && { | |
5849 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5850 | test ! -s conftest.err | |
5851 | }; then | |
5852 | ac_header_preproc=yes | |
5853 | else | |
5854 | $as_echo "$as_me: failed program was:" >&5 | |
5855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5856 | ||
5857 | ac_header_preproc=no | |
5858 | fi | |
5859 | ||
5860 | rm -f conftest.err conftest.$ac_ext | |
5861 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5862 | $as_echo "$ac_header_preproc" >&6; } | |
5863 | ||
5864 | # So? What about this header? | |
5865 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5866 | yes:no: ) | |
5867 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5868 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5869 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5870 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5871 | ac_header_preproc=yes | |
5872 | ;; | |
5873 | no:yes:* ) | |
5874 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5875 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5876 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5877 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5878 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5879 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5880 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5881 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5882 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5883 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5884 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5885 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5886 | ||
5887 | ;; | |
5888 | esac | |
5889 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5890 | $as_echo_n "checking for $ac_header... " >&6; } | |
5891 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5892 | $as_echo_n "(cached) " >&6 | |
5893 | else | |
5894 | eval "$as_ac_Header=\$ac_header_preproc" | |
5895 | fi | |
5896 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5897 | $as_echo "$as_val"'` | |
5898 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5899 | $as_echo "$ac_res" >&6; } | |
5900 | ||
5901 | fi | |
5902 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
5903 | $as_echo "$as_val"'` | |
5904 | if test "x$as_val" = x""yes; then | |
5905 | cat >>confdefs.h <<_ACEOF | |
5906 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5907 | _ACEOF | |
5908 | ||
5909 | else | |
5910 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
5911 | $as_echo "$as_me: error: bailing out" >&2;} | |
5912 | { (exit 1); exit 1; }; } | |
5913 | fi | |
5914 | ||
5915 | done | |
5916 | ||
5917 | ||
5918 | ||
5919 | for ac_header in termios.h sys/statvfs.h | |
5920 | do | |
5921 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5922 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5923 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5924 | $as_echo_n "checking for $ac_header... " >&6; } | |
5925 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5926 | $as_echo_n "(cached) " >&6 | |
5927 | fi | |
5928 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
5929 | $as_echo "$as_val"'` | |
5930 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5931 | $as_echo "$ac_res" >&6; } | |
5932 | else | |
5933 | # Is the header compilable? | |
5934 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5935 | $as_echo_n "checking $ac_header usability... " >&6; } | |
5936 | cat >conftest.$ac_ext <<_ACEOF | |
5937 | /* confdefs.h. */ | |
5938 | _ACEOF | |
5939 | cat confdefs.h >>conftest.$ac_ext | |
5940 | cat >>conftest.$ac_ext <<_ACEOF | |
5941 | /* end confdefs.h. */ | |
5942 | $ac_includes_default | |
5943 | #include <$ac_header> | |
5944 | _ACEOF | |
5945 | rm -f conftest.$ac_objext | |
5946 | if { (ac_try="$ac_compile" | |
5947 | case "(($ac_try" in | |
5948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5949 | *) ac_try_echo=$ac_try;; | |
5950 | esac | |
5951 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5952 | $as_echo "$ac_try_echo") >&5 | |
5953 | (eval "$ac_compile") 2>conftest.er1 | |
5954 | ac_status=$? | |
5955 | grep -v '^ *+' conftest.er1 >conftest.err | |
5956 | rm -f conftest.er1 | |
5957 | cat conftest.err >&5 | |
5958 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5959 | (exit $ac_status); } && { | |
5960 | test -z "$ac_c_werror_flag" || | |
5961 | test ! -s conftest.err | |
5962 | } && test -s conftest.$ac_objext; then | |
5963 | ac_header_compiler=yes | |
5964 | else | |
5965 | $as_echo "$as_me: failed program was:" >&5 | |
5966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5967 | ||
5968 | ac_header_compiler=no | |
5969 | fi | |
5970 | ||
5971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5972 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5973 | $as_echo "$ac_header_compiler" >&6; } | |
5974 | ||
5975 | # Is the header present? | |
5976 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5977 | $as_echo_n "checking $ac_header presence... " >&6; } | |
5978 | cat >conftest.$ac_ext <<_ACEOF | |
5979 | /* confdefs.h. */ | |
5980 | _ACEOF | |
5981 | cat confdefs.h >>conftest.$ac_ext | |
5982 | cat >>conftest.$ac_ext <<_ACEOF | |
5983 | /* end confdefs.h. */ | |
5984 | #include <$ac_header> | |
5985 | _ACEOF | |
5986 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5987 | case "(($ac_try" in | |
5988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5989 | *) ac_try_echo=$ac_try;; | |
5990 | esac | |
5991 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5992 | $as_echo "$ac_try_echo") >&5 | |
5993 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5994 | ac_status=$? | |
5995 | grep -v '^ *+' conftest.er1 >conftest.err | |
5996 | rm -f conftest.er1 | |
5997 | cat conftest.err >&5 | |
5998 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5999 | (exit $ac_status); } >/dev/null && { | |
6000 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6001 | test ! -s conftest.err | |
6002 | }; then | |
6003 | ac_header_preproc=yes | |
6004 | else | |
6005 | $as_echo "$as_me: failed program was:" >&5 | |
6006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6007 | ||
6008 | ac_header_preproc=no | |
6009 | fi | |
6010 | ||
6011 | rm -f conftest.err conftest.$ac_ext | |
6012 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6013 | $as_echo "$ac_header_preproc" >&6; } | |
6014 | ||
6015 | # So? What about this header? | |
6016 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6017 | yes:no: ) | |
6018 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6019 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6020 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6021 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6022 | ac_header_preproc=yes | |
6023 | ;; | |
6024 | no:yes:* ) | |
6025 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6026 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6027 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6028 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6029 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6030 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6031 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6032 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6033 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6034 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6035 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6036 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6037 | ||
6038 | ;; | |
6039 | esac | |
6040 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6041 | $as_echo_n "checking for $ac_header... " >&6; } | |
6042 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6043 | $as_echo_n "(cached) " >&6 | |
6044 | else | |
6045 | eval "$as_ac_Header=\$ac_header_preproc" | |
6046 | fi | |
6047 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
6048 | $as_echo "$as_val"'` | |
6049 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6050 | $as_echo "$ac_res" >&6; } | |
6051 | ||
6052 | fi | |
6053 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
6054 | $as_echo "$as_val"'` | |
6055 | if test "x$as_val" = x""yes; then | |
6056 | cat >>confdefs.h <<_ACEOF | |
6057 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6058 | _ACEOF | |
6059 | ||
6060 | fi | |
6061 | ||
6062 | done | |
6063 | ||
6064 | ||
6065 | ################################################################################ | |
6066 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
6067 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
6068 | if test "${ac_cv_c_const+set}" = set; then | |
6069 | $as_echo_n "(cached) " >&6 | |
6070 | else | |
6071 | cat >conftest.$ac_ext <<_ACEOF | |
6072 | /* confdefs.h. */ | |
6073 | _ACEOF | |
6074 | cat confdefs.h >>conftest.$ac_ext | |
6075 | cat >>conftest.$ac_ext <<_ACEOF | |
6076 | /* end confdefs.h. */ | |
6077 | ||
6078 | int | |
6079 | main () | |
6080 | { | |
6081 | /* FIXME: Include the comments suggested by Paul. */ | |
6082 | #ifndef __cplusplus | |
6083 | /* Ultrix mips cc rejects this. */ | |
6084 | typedef int charset[2]; | |
6085 | const charset cs; | |
6086 | /* SunOS 4.1.1 cc rejects this. */ | |
6087 | char const *const *pcpcc; | |
6088 | char **ppc; | |
6089 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
6090 | struct point {int x, y;}; | |
6091 | static struct point const zero = {0,0}; | |
6092 | /* AIX XL C 1.02.0.0 rejects this. | |
6093 | It does not let you subtract one const X* pointer from another in | |
6094 | an arm of an if-expression whose if-part is not a constant | |
6095 | expression */ | |
6096 | const char *g = "string"; | |
6097 | pcpcc = &g + (g ? g-g : 0); | |
6098 | /* HPUX 7.0 cc rejects these. */ | |
6099 | ++pcpcc; | |
6100 | ppc = (char**) pcpcc; | |
6101 | pcpcc = (char const *const *) ppc; | |
6102 | { /* SCO 3.2v4 cc rejects this. */ | |
6103 | char *t; | |
6104 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
6105 | ||
6106 | *t++ = 0; | |
6107 | if (s) return 0; | |
6108 | } | |
6109 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
6110 | int x[] = {25, 17}; | |
6111 | const int *foo = &x[0]; | |
6112 | ++foo; | |
6113 | } | |
6114 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
6115 | typedef const int *iptr; | |
6116 | iptr p = 0; | |
6117 | ++p; | |
6118 | } | |
6119 | { /* AIX XL C 1.02.0.0 rejects this saying | |
6120 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
6121 | struct s { int j; const int *ap[3]; }; | |
6122 | struct s *b; b->j = 5; | |
6123 | } | |
6124 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
6125 | const int foo = 10; | |
6126 | if (!foo) return 0; | |
6127 | } | |
6128 | return !cs[0] && !zero.x; | |
6129 | #endif | |
6130 | ||
6131 | ; | |
6132 | return 0; | |
6133 | } | |
6134 | _ACEOF | |
6135 | rm -f conftest.$ac_objext | |
6136 | if { (ac_try="$ac_compile" | |
6137 | case "(($ac_try" in | |
6138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6139 | *) ac_try_echo=$ac_try;; | |
6140 | esac | |
6141 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6142 | $as_echo "$ac_try_echo") >&5 | |
6143 | (eval "$ac_compile") 2>conftest.er1 | |
6144 | ac_status=$? | |
6145 | grep -v '^ *+' conftest.er1 >conftest.err | |
6146 | rm -f conftest.er1 | |
6147 | cat conftest.err >&5 | |
6148 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6149 | (exit $ac_status); } && { | |
6150 | test -z "$ac_c_werror_flag" || | |
6151 | test ! -s conftest.err | |
6152 | } && test -s conftest.$ac_objext; then | |
6153 | ac_cv_c_const=yes | |
6154 | else | |
6155 | $as_echo "$as_me: failed program was:" >&5 | |
6156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6157 | ||
6158 | ac_cv_c_const=no | |
6159 | fi | |
6160 | ||
6161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6162 | fi | |
6163 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
6164 | $as_echo "$ac_cv_c_const" >&6; } | |
6165 | if test $ac_cv_c_const = no; then | |
6166 | ||
6167 | cat >>confdefs.h <<\_ACEOF | |
6168 | #define const /**/ | |
6169 | _ACEOF | |
6170 | ||
6171 | fi | |
6172 | ||
6173 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 | |
6174 | $as_echo_n "checking for inline... " >&6; } | |
6175 | if test "${ac_cv_c_inline+set}" = set; then | |
6176 | $as_echo_n "(cached) " >&6 | |
6177 | else | |
6178 | ac_cv_c_inline=no | |
6179 | for ac_kw in inline __inline__ __inline; do | |
6180 | cat >conftest.$ac_ext <<_ACEOF | |
6181 | /* confdefs.h. */ | |
6182 | _ACEOF | |
6183 | cat confdefs.h >>conftest.$ac_ext | |
6184 | cat >>conftest.$ac_ext <<_ACEOF | |
6185 | /* end confdefs.h. */ | |
6186 | #ifndef __cplusplus | |
6187 | typedef int foo_t; | |
6188 | static $ac_kw foo_t static_foo () {return 0; } | |
6189 | $ac_kw foo_t foo () {return 0; } | |
6190 | #endif | |
6191 | ||
6192 | _ACEOF | |
6193 | rm -f conftest.$ac_objext | |
6194 | if { (ac_try="$ac_compile" | |
6195 | case "(($ac_try" in | |
6196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6197 | *) ac_try_echo=$ac_try;; | |
6198 | esac | |
6199 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6200 | $as_echo "$ac_try_echo") >&5 | |
6201 | (eval "$ac_compile") 2>conftest.er1 | |
6202 | ac_status=$? | |
6203 | grep -v '^ *+' conftest.er1 >conftest.err | |
6204 | rm -f conftest.er1 | |
6205 | cat conftest.err >&5 | |
6206 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6207 | (exit $ac_status); } && { | |
6208 | test -z "$ac_c_werror_flag" || | |
6209 | test ! -s conftest.err | |
6210 | } && test -s conftest.$ac_objext; then | |
6211 | ac_cv_c_inline=$ac_kw | |
6212 | else | |
6213 | $as_echo "$as_me: failed program was:" >&5 | |
6214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6215 | ||
6216 | ||
6217 | fi | |
6218 | ||
6219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6220 | test "$ac_cv_c_inline" != no && break | |
6221 | done | |
6222 | ||
6223 | fi | |
6224 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
6225 | $as_echo "$ac_cv_c_inline" >&6; } | |
6226 | ||
6227 | ||
6228 | case $ac_cv_c_inline in | |
6229 | inline | yes) ;; | |
6230 | *) | |
6231 | case $ac_cv_c_inline in | |
6232 | no) ac_val=;; | |
6233 | *) ac_val=$ac_cv_c_inline;; | |
6234 | esac | |
6235 | cat >>confdefs.h <<_ACEOF | |
6236 | #ifndef __cplusplus | |
6237 | #define inline $ac_val | |
6238 | #endif | |
6239 | _ACEOF | |
6240 | ;; | |
6241 | esac | |
6242 | ||
6243 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 | |
6244 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
6245 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then | |
6246 | $as_echo_n "(cached) " >&6 | |
6247 | else | |
6248 | cat >conftest.$ac_ext <<_ACEOF | |
6249 | /* confdefs.h. */ | |
6250 | _ACEOF | |
6251 | cat confdefs.h >>conftest.$ac_ext | |
6252 | cat >>conftest.$ac_ext <<_ACEOF | |
6253 | /* end confdefs.h. */ | |
6254 | $ac_includes_default | |
6255 | int | |
6256 | main () | |
6257 | { | |
6258 | static struct stat ac_aggr; | |
6259 | if (ac_aggr.st_rdev) | |
6260 | return 0; | |
6261 | ; | |
6262 | return 0; | |
6263 | } | |
6264 | _ACEOF | |
6265 | rm -f conftest.$ac_objext | |
6266 | if { (ac_try="$ac_compile" | |
6267 | case "(($ac_try" in | |
6268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6269 | *) ac_try_echo=$ac_try;; | |
6270 | esac | |
6271 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6272 | $as_echo "$ac_try_echo") >&5 | |
6273 | (eval "$ac_compile") 2>conftest.er1 | |
6274 | ac_status=$? | |
6275 | grep -v '^ *+' conftest.er1 >conftest.err | |
6276 | rm -f conftest.er1 | |
6277 | cat conftest.err >&5 | |
6278 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6279 | (exit $ac_status); } && { | |
6280 | test -z "$ac_c_werror_flag" || | |
6281 | test ! -s conftest.err | |
6282 | } && test -s conftest.$ac_objext; then | |
6283 | ac_cv_member_struct_stat_st_rdev=yes | |
6284 | else | |
6285 | $as_echo "$as_me: failed program was:" >&5 | |
6286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6287 | ||
6288 | cat >conftest.$ac_ext <<_ACEOF | |
6289 | /* confdefs.h. */ | |
6290 | _ACEOF | |
6291 | cat confdefs.h >>conftest.$ac_ext | |
6292 | cat >>conftest.$ac_ext <<_ACEOF | |
6293 | /* end confdefs.h. */ | |
6294 | $ac_includes_default | |
6295 | int | |
6296 | main () | |
6297 | { | |
6298 | static struct stat ac_aggr; | |
6299 | if (sizeof ac_aggr.st_rdev) | |
6300 | return 0; | |
6301 | ; | |
6302 | return 0; | |
6303 | } | |
6304 | _ACEOF | |
6305 | rm -f conftest.$ac_objext | |
6306 | if { (ac_try="$ac_compile" | |
6307 | case "(($ac_try" in | |
6308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6309 | *) ac_try_echo=$ac_try;; | |
6310 | esac | |
6311 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6312 | $as_echo "$ac_try_echo") >&5 | |
6313 | (eval "$ac_compile") 2>conftest.er1 | |
6314 | ac_status=$? | |
6315 | grep -v '^ *+' conftest.er1 >conftest.err | |
6316 | rm -f conftest.er1 | |
6317 | cat conftest.err >&5 | |
6318 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6319 | (exit $ac_status); } && { | |
6320 | test -z "$ac_c_werror_flag" || | |
6321 | test ! -s conftest.err | |
6322 | } && test -s conftest.$ac_objext; then | |
6323 | ac_cv_member_struct_stat_st_rdev=yes | |
6324 | else | |
6325 | $as_echo "$as_me: failed program was:" >&5 | |
6326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6327 | ||
6328 | ac_cv_member_struct_stat_st_rdev=no | |
6329 | fi | |
6330 | ||
6331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6332 | fi | |
6333 | ||
6334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6335 | fi | |
6336 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
6337 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
6338 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
6339 | ||
6340 | cat >>confdefs.h <<_ACEOF | |
6341 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
6342 | _ACEOF | |
6343 | ||
6344 | ||
6345 | fi | |
6346 | ||
6347 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 | |
6348 | $as_echo_n "checking for off_t... " >&6; } | |
6349 | if test "${ac_cv_type_off_t+set}" = set; then | |
6350 | $as_echo_n "(cached) " >&6 | |
6351 | else | |
6352 | ac_cv_type_off_t=no | |
6353 | cat >conftest.$ac_ext <<_ACEOF | |
6354 | /* confdefs.h. */ | |
6355 | _ACEOF | |
6356 | cat confdefs.h >>conftest.$ac_ext | |
6357 | cat >>conftest.$ac_ext <<_ACEOF | |
6358 | /* end confdefs.h. */ | |
6359 | $ac_includes_default | |
6360 | int | |
6361 | main () | |
6362 | { | |
6363 | if (sizeof (off_t)) | |
6364 | return 0; | |
6365 | ; | |
6366 | return 0; | |
6367 | } | |
6368 | _ACEOF | |
6369 | rm -f conftest.$ac_objext | |
6370 | if { (ac_try="$ac_compile" | |
6371 | case "(($ac_try" in | |
6372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6373 | *) ac_try_echo=$ac_try;; | |
6374 | esac | |
6375 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6376 | $as_echo "$ac_try_echo") >&5 | |
6377 | (eval "$ac_compile") 2>conftest.er1 | |
6378 | ac_status=$? | |
6379 | grep -v '^ *+' conftest.er1 >conftest.err | |
6380 | rm -f conftest.er1 | |
6381 | cat conftest.err >&5 | |
6382 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6383 | (exit $ac_status); } && { | |
6384 | test -z "$ac_c_werror_flag" || | |
6385 | test ! -s conftest.err | |
6386 | } && test -s conftest.$ac_objext; then | |
6387 | cat >conftest.$ac_ext <<_ACEOF | |
6388 | /* confdefs.h. */ | |
6389 | _ACEOF | |
6390 | cat confdefs.h >>conftest.$ac_ext | |
6391 | cat >>conftest.$ac_ext <<_ACEOF | |
6392 | /* end confdefs.h. */ | |
6393 | $ac_includes_default | |
6394 | int | |
6395 | main () | |
6396 | { | |
6397 | if (sizeof ((off_t))) | |
6398 | return 0; | |
6399 | ; | |
6400 | return 0; | |
6401 | } | |
6402 | _ACEOF | |
6403 | rm -f conftest.$ac_objext | |
6404 | if { (ac_try="$ac_compile" | |
6405 | case "(($ac_try" in | |
6406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6407 | *) ac_try_echo=$ac_try;; | |
6408 | esac | |
6409 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6410 | $as_echo "$ac_try_echo") >&5 | |
6411 | (eval "$ac_compile") 2>conftest.er1 | |
6412 | ac_status=$? | |
6413 | grep -v '^ *+' conftest.er1 >conftest.err | |
6414 | rm -f conftest.er1 | |
6415 | cat conftest.err >&5 | |
6416 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6417 | (exit $ac_status); } && { | |
6418 | test -z "$ac_c_werror_flag" || | |
6419 | test ! -s conftest.err | |
6420 | } && test -s conftest.$ac_objext; then | |
6421 | : | |
6422 | else | |
6423 | $as_echo "$as_me: failed program was:" >&5 | |
6424 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6425 | ||
6426 | ac_cv_type_off_t=yes | |
6427 | fi | |
6428 | ||
6429 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6430 | else | |
6431 | $as_echo "$as_me: failed program was:" >&5 | |
6432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6433 | ||
6434 | ||
6435 | fi | |
6436 | ||
6437 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6438 | fi | |
6439 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
6440 | $as_echo "$ac_cv_type_off_t" >&6; } | |
6441 | if test "x$ac_cv_type_off_t" = x""yes; then | |
6442 | : | |
6443 | else | |
6444 | ||
6445 | cat >>confdefs.h <<_ACEOF | |
6446 | #define off_t long int | |
6447 | _ACEOF | |
6448 | ||
6449 | fi | |
6450 | ||
6451 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 | |
6452 | $as_echo_n "checking for pid_t... " >&6; } | |
6453 | if test "${ac_cv_type_pid_t+set}" = set; then | |
6454 | $as_echo_n "(cached) " >&6 | |
6455 | else | |
6456 | ac_cv_type_pid_t=no | |
6457 | cat >conftest.$ac_ext <<_ACEOF | |
6458 | /* confdefs.h. */ | |
6459 | _ACEOF | |
6460 | cat confdefs.h >>conftest.$ac_ext | |
6461 | cat >>conftest.$ac_ext <<_ACEOF | |
6462 | /* end confdefs.h. */ | |
6463 | $ac_includes_default | |
6464 | int | |
6465 | main () | |
6466 | { | |
6467 | if (sizeof (pid_t)) | |
6468 | return 0; | |
6469 | ; | |
6470 | return 0; | |
6471 | } | |
6472 | _ACEOF | |
6473 | rm -f conftest.$ac_objext | |
6474 | if { (ac_try="$ac_compile" | |
6475 | case "(($ac_try" in | |
6476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6477 | *) ac_try_echo=$ac_try;; | |
6478 | esac | |
6479 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6480 | $as_echo "$ac_try_echo") >&5 | |
6481 | (eval "$ac_compile") 2>conftest.er1 | |
6482 | ac_status=$? | |
6483 | grep -v '^ *+' conftest.er1 >conftest.err | |
6484 | rm -f conftest.er1 | |
6485 | cat conftest.err >&5 | |
6486 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6487 | (exit $ac_status); } && { | |
6488 | test -z "$ac_c_werror_flag" || | |
6489 | test ! -s conftest.err | |
6490 | } && test -s conftest.$ac_objext; then | |
6491 | cat >conftest.$ac_ext <<_ACEOF | |
6492 | /* confdefs.h. */ | |
6493 | _ACEOF | |
6494 | cat confdefs.h >>conftest.$ac_ext | |
6495 | cat >>conftest.$ac_ext <<_ACEOF | |
6496 | /* end confdefs.h. */ | |
6497 | $ac_includes_default | |
6498 | int | |
6499 | main () | |
6500 | { | |
6501 | if (sizeof ((pid_t))) | |
6502 | return 0; | |
6503 | ; | |
6504 | return 0; | |
6505 | } | |
6506 | _ACEOF | |
6507 | rm -f conftest.$ac_objext | |
6508 | if { (ac_try="$ac_compile" | |
6509 | case "(($ac_try" in | |
6510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6511 | *) ac_try_echo=$ac_try;; | |
6512 | esac | |
6513 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6514 | $as_echo "$ac_try_echo") >&5 | |
6515 | (eval "$ac_compile") 2>conftest.er1 | |
6516 | ac_status=$? | |
6517 | grep -v '^ *+' conftest.er1 >conftest.err | |
6518 | rm -f conftest.er1 | |
6519 | cat conftest.err >&5 | |
6520 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6521 | (exit $ac_status); } && { | |
6522 | test -z "$ac_c_werror_flag" || | |
6523 | test ! -s conftest.err | |
6524 | } && test -s conftest.$ac_objext; then | |
6525 | : | |
6526 | else | |
6527 | $as_echo "$as_me: failed program was:" >&5 | |
6528 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6529 | ||
6530 | ac_cv_type_pid_t=yes | |
6531 | fi | |
6532 | ||
6533 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6534 | else | |
6535 | $as_echo "$as_me: failed program was:" >&5 | |
6536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6537 | ||
6538 | ||
6539 | fi | |
6540 | ||
6541 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6542 | fi | |
6543 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
6544 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
6545 | if test "x$ac_cv_type_pid_t" = x""yes; then | |
6546 | : | |
6547 | else | |
6548 | ||
6549 | cat >>confdefs.h <<_ACEOF | |
6550 | #define pid_t int | |
6551 | _ACEOF | |
6552 | ||
6553 | fi | |
6554 | ||
6555 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | |
6556 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
6557 | if test "${ac_cv_type_signal+set}" = set; then | |
6558 | $as_echo_n "(cached) " >&6 | |
6559 | else | |
6560 | cat >conftest.$ac_ext <<_ACEOF | |
6561 | /* confdefs.h. */ | |
6562 | _ACEOF | |
6563 | cat confdefs.h >>conftest.$ac_ext | |
6564 | cat >>conftest.$ac_ext <<_ACEOF | |
6565 | /* end confdefs.h. */ | |
6566 | #include <sys/types.h> | |
6567 | #include <signal.h> | |
6568 | ||
6569 | int | |
6570 | main () | |
6571 | { | |
6572 | return *(signal (0, 0)) (0) == 1; | |
6573 | ; | |
6574 | return 0; | |
6575 | } | |
6576 | _ACEOF | |
6577 | rm -f conftest.$ac_objext | |
6578 | if { (ac_try="$ac_compile" | |
6579 | case "(($ac_try" in | |
6580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6581 | *) ac_try_echo=$ac_try;; | |
6582 | esac | |
6583 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6584 | $as_echo "$ac_try_echo") >&5 | |
6585 | (eval "$ac_compile") 2>conftest.er1 | |
6586 | ac_status=$? | |
6587 | grep -v '^ *+' conftest.er1 >conftest.err | |
6588 | rm -f conftest.er1 | |
6589 | cat conftest.err >&5 | |
6590 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6591 | (exit $ac_status); } && { | |
6592 | test -z "$ac_c_werror_flag" || | |
6593 | test ! -s conftest.err | |
6594 | } && test -s conftest.$ac_objext; then | |
6595 | ac_cv_type_signal=int | |
6596 | else | |
6597 | $as_echo "$as_me: failed program was:" >&5 | |
6598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6599 | ||
6600 | ac_cv_type_signal=void | |
6601 | fi | |
6602 | ||
6603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6604 | fi | |
6605 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | |
6606 | $as_echo "$ac_cv_type_signal" >&6; } | |
6607 | ||
6608 | cat >>confdefs.h <<_ACEOF | |
6609 | #define RETSIGTYPE $ac_cv_type_signal | |
6610 | _ACEOF | |
6611 | ||
6612 | ||
6613 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 | |
6614 | $as_echo_n "checking for size_t... " >&6; } | |
6615 | if test "${ac_cv_type_size_t+set}" = set; then | |
6616 | $as_echo_n "(cached) " >&6 | |
6617 | else | |
6618 | ac_cv_type_size_t=no | |
6619 | cat >conftest.$ac_ext <<_ACEOF | |
6620 | /* confdefs.h. */ | |
6621 | _ACEOF | |
6622 | cat confdefs.h >>conftest.$ac_ext | |
6623 | cat >>conftest.$ac_ext <<_ACEOF | |
6624 | /* end confdefs.h. */ | |
6625 | $ac_includes_default | |
6626 | int | |
6627 | main () | |
6628 | { | |
6629 | if (sizeof (size_t)) | |
6630 | return 0; | |
6631 | ; | |
6632 | return 0; | |
6633 | } | |
6634 | _ACEOF | |
6635 | rm -f conftest.$ac_objext | |
6636 | if { (ac_try="$ac_compile" | |
6637 | case "(($ac_try" in | |
6638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6639 | *) ac_try_echo=$ac_try;; | |
6640 | esac | |
6641 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6642 | $as_echo "$ac_try_echo") >&5 | |
6643 | (eval "$ac_compile") 2>conftest.er1 | |
6644 | ac_status=$? | |
6645 | grep -v '^ *+' conftest.er1 >conftest.err | |
6646 | rm -f conftest.er1 | |
6647 | cat conftest.err >&5 | |
6648 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6649 | (exit $ac_status); } && { | |
6650 | test -z "$ac_c_werror_flag" || | |
6651 | test ! -s conftest.err | |
6652 | } && test -s conftest.$ac_objext; then | |
6653 | cat >conftest.$ac_ext <<_ACEOF | |
6654 | /* confdefs.h. */ | |
6655 | _ACEOF | |
6656 | cat confdefs.h >>conftest.$ac_ext | |
6657 | cat >>conftest.$ac_ext <<_ACEOF | |
6658 | /* end confdefs.h. */ | |
6659 | $ac_includes_default | |
6660 | int | |
6661 | main () | |
6662 | { | |
6663 | if (sizeof ((size_t))) | |
6664 | return 0; | |
6665 | ; | |
6666 | return 0; | |
6667 | } | |
6668 | _ACEOF | |
6669 | rm -f conftest.$ac_objext | |
6670 | if { (ac_try="$ac_compile" | |
6671 | case "(($ac_try" in | |
6672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6673 | *) ac_try_echo=$ac_try;; | |
6674 | esac | |
6675 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6676 | $as_echo "$ac_try_echo") >&5 | |
6677 | (eval "$ac_compile") 2>conftest.er1 | |
6678 | ac_status=$? | |
6679 | grep -v '^ *+' conftest.er1 >conftest.err | |
6680 | rm -f conftest.er1 | |
6681 | cat conftest.err >&5 | |
6682 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6683 | (exit $ac_status); } && { | |
6684 | test -z "$ac_c_werror_flag" || | |
6685 | test ! -s conftest.err | |
6686 | } && test -s conftest.$ac_objext; then | |
6687 | : | |
ad6254c5 | 6688 | else |
d911ec67 AK |
6689 | $as_echo "$as_me: failed program was:" >&5 |
6690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 6691 | |
d911ec67 | 6692 | ac_cv_type_size_t=yes |
ad6254c5 | 6693 | fi |
4922197a | 6694 | |
d911ec67 | 6695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4922197a | 6696 | else |
d911ec67 AK |
6697 | $as_echo "$as_me: failed program was:" >&5 |
6698 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d0191583 JM |
6699 | |
6700 | ||
d911ec67 | 6701 | fi |
d0191583 | 6702 | |
d911ec67 AK |
6703 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6704 | fi | |
6705 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
6706 | $as_echo "$ac_cv_type_size_t" >&6; } | |
6707 | if test "x$ac_cv_type_size_t" = x""yes; then | |
6708 | : | |
6709 | else | |
d0191583 | 6710 | |
d911ec67 AK |
6711 | cat >>confdefs.h <<_ACEOF |
6712 | #define size_t unsigned int | |
6713 | _ACEOF | |
d0191583 | 6714 | |
d911ec67 | 6715 | fi |
d0191583 | 6716 | |
d911ec67 AK |
6717 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
6718 | $as_echo_n "checking for mode_t... " >&6; } | |
6719 | if test "${ac_cv_type_mode_t+set}" = set; then | |
ec6a6fbe | 6720 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 6721 | else |
d911ec67 | 6722 | ac_cv_type_mode_t=no |
ad6254c5 | 6723 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6724 | /* confdefs.h. */ |
6725 | _ACEOF | |
6726 | cat confdefs.h >>conftest.$ac_ext | |
6727 | cat >>conftest.$ac_ext <<_ACEOF | |
6728 | /* end confdefs.h. */ | |
6729 | $ac_includes_default | |
d911ec67 AK |
6730 | int |
6731 | main () | |
6732 | { | |
6733 | if (sizeof (mode_t)) | |
6734 | return 0; | |
6735 | ; | |
6736 | return 0; | |
6737 | } | |
ad6254c5 AK |
6738 | _ACEOF |
6739 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6740 | if { (ac_try="$ac_compile" |
6741 | case "(($ac_try" in | |
6742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6743 | *) ac_try_echo=$ac_try;; | |
6744 | esac | |
ec6a6fbe AK |
6745 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6746 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6747 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6748 | ac_status=$? |
8a2fc586 AK |
6749 | grep -v '^ *+' conftest.er1 >conftest.err |
6750 | rm -f conftest.er1 | |
6751 | cat conftest.err >&5 | |
ec6a6fbe | 6752 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6753 | (exit $ac_status); } && { |
6754 | test -z "$ac_c_werror_flag" || | |
6755 | test ! -s conftest.err | |
6756 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 6757 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6758 | /* confdefs.h. */ |
6759 | _ACEOF | |
6760 | cat confdefs.h >>conftest.$ac_ext | |
6761 | cat >>conftest.$ac_ext <<_ACEOF | |
6762 | /* end confdefs.h. */ | |
d911ec67 AK |
6763 | $ac_includes_default |
6764 | int | |
6765 | main () | |
6766 | { | |
6767 | if (sizeof ((mode_t))) | |
6768 | return 0; | |
6769 | ; | |
6770 | return 0; | |
6771 | } | |
ad6254c5 | 6772 | _ACEOF |
d911ec67 AK |
6773 | rm -f conftest.$ac_objext |
6774 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
6775 | case "(($ac_try" in |
6776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6777 | *) ac_try_echo=$ac_try;; | |
6778 | esac | |
ec6a6fbe AK |
6779 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6780 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 | 6781 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
6782 | ac_status=$? |
6783 | grep -v '^ *+' conftest.er1 >conftest.err | |
6784 | rm -f conftest.er1 | |
6785 | cat conftest.err >&5 | |
ec6a6fbe | 6786 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d911ec67 AK |
6787 | (exit $ac_status); } && { |
6788 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 6789 | test ! -s conftest.err |
d911ec67 AK |
6790 | } && test -s conftest.$ac_objext; then |
6791 | : | |
ad6254c5 | 6792 | else |
ec6a6fbe | 6793 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6794 | sed 's/^/| /' conftest.$ac_ext >&5 |
6795 | ||
d911ec67 | 6796 | ac_cv_type_mode_t=yes |
ad6254c5 | 6797 | fi |
7a197a62 | 6798 | |
d911ec67 AK |
6799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6800 | else | |
6801 | $as_echo "$as_me: failed program was:" >&5 | |
6802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 6803 | |
7a197a62 | 6804 | |
80992638 AK |
6805 | fi |
6806 | ||
d911ec67 | 6807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6808 | fi |
d911ec67 AK |
6809 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
6810 | $as_echo "$ac_cv_type_mode_t" >&6; } | |
6811 | if test "x$ac_cv_type_mode_t" = x""yes; then | |
6812 | : | |
795ca3e5 | 6813 | else |
80992638 | 6814 | |
d911ec67 AK |
6815 | cat >>confdefs.h <<_ACEOF |
6816 | #define mode_t int | |
6817 | _ACEOF | |
ad6254c5 | 6818 | |
d911ec67 | 6819 | fi |
795ca3e5 | 6820 | |
d0191583 | 6821 | |
d911ec67 AK |
6822 | { $as_echo "$as_me:$LINENO: checking for int8_t" >&5 |
6823 | $as_echo_n "checking for int8_t... " >&6; } | |
6824 | if test "${ac_cv_c_int8_t+set}" = set; then | |
ec6a6fbe | 6825 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 6826 | else |
d911ec67 AK |
6827 | ac_cv_c_int8_t=no |
6828 | for ac_type in 'int8_t' 'int' 'long int' \ | |
6829 | 'long long int' 'short int' 'signed char'; do | |
6830 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6831 | /* confdefs.h. */ |
6832 | _ACEOF | |
6833 | cat confdefs.h >>conftest.$ac_ext | |
6834 | cat >>conftest.$ac_ext <<_ACEOF | |
6835 | /* end confdefs.h. */ | |
6836 | $ac_includes_default | |
d911ec67 AK |
6837 | int |
6838 | main () | |
6839 | { | |
6840 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))]; | |
6841 | test_array [0] = 0 | |
6842 | ||
6843 | ; | |
6844 | return 0; | |
6845 | } | |
ad6254c5 AK |
6846 | _ACEOF |
6847 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6848 | if { (ac_try="$ac_compile" |
6849 | case "(($ac_try" in | |
6850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6851 | *) ac_try_echo=$ac_try;; | |
6852 | esac | |
ec6a6fbe AK |
6853 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6854 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6855 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6856 | ac_status=$? |
8a2fc586 AK |
6857 | grep -v '^ *+' conftest.er1 >conftest.err |
6858 | rm -f conftest.er1 | |
6859 | cat conftest.err >&5 | |
ec6a6fbe | 6860 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6861 | (exit $ac_status); } && { |
6862 | test -z "$ac_c_werror_flag" || | |
6863 | test ! -s conftest.err | |
6864 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 6865 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6866 | /* confdefs.h. */ |
6867 | _ACEOF | |
6868 | cat confdefs.h >>conftest.$ac_ext | |
6869 | cat >>conftest.$ac_ext <<_ACEOF | |
6870 | /* end confdefs.h. */ | |
d911ec67 AK |
6871 | $ac_includes_default |
6872 | int | |
6873 | main () | |
6874 | { | |
6875 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1) | |
6876 | < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))]; | |
6877 | test_array [0] = 0 | |
6878 | ||
6879 | ; | |
6880 | return 0; | |
6881 | } | |
ad6254c5 | 6882 | _ACEOF |
d911ec67 AK |
6883 | rm -f conftest.$ac_objext |
6884 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
6885 | case "(($ac_try" in |
6886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6887 | *) ac_try_echo=$ac_try;; | |
6888 | esac | |
ec6a6fbe AK |
6889 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6890 | $as_echo "$ac_try_echo") >&5 | |
d911ec67 | 6891 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
6892 | ac_status=$? |
6893 | grep -v '^ *+' conftest.er1 >conftest.err | |
6894 | rm -f conftest.er1 | |
6895 | cat conftest.err >&5 | |
ec6a6fbe | 6896 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d911ec67 AK |
6897 | (exit $ac_status); } && { |
6898 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 6899 | test ! -s conftest.err |
d911ec67 AK |
6900 | } && test -s conftest.$ac_objext; then |
6901 | : | |
ad6254c5 | 6902 | else |
ec6a6fbe | 6903 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6904 | sed 's/^/| /' conftest.$ac_ext >&5 |
6905 | ||
d911ec67 AK |
6906 | case $ac_type in |
6907 | int8_t) ac_cv_c_int8_t=yes ;; | |
6908 | *) ac_cv_c_int8_t=$ac_type ;; | |
6909 | esac | |
ad6254c5 | 6910 | |
d911ec67 | 6911 | fi |
7a197a62 | 6912 | |
d911ec67 | 6913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 6914 | else |
d911ec67 AK |
6915 | $as_echo "$as_me: failed program was:" >&5 |
6916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6917 | ||
b896caa1 | 6918 | |
ad6254c5 | 6919 | fi |
ad6254c5 | 6920 | |
d911ec67 AK |
6921 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6922 | test "$ac_cv_c_int8_t" != no && break | |
6923 | done | |
80992638 | 6924 | fi |
d911ec67 AK |
6925 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5 |
6926 | $as_echo "$ac_cv_c_int8_t" >&6; } | |
6927 | case $ac_cv_c_int8_t in #( | |
6928 | no|yes) ;; #( | |
6929 | *) | |
80992638 | 6930 | |
d911ec67 AK |
6931 | cat >>confdefs.h <<_ACEOF |
6932 | #define int8_t $ac_cv_c_int8_t | |
6933 | _ACEOF | |
6934 | ;; | |
6935 | esac | |
d0191583 | 6936 | |
d3c8211f | 6937 | |
d911ec67 AK |
6938 | { $as_echo "$as_me:$LINENO: checking for int16_t" >&5 |
6939 | $as_echo_n "checking for int16_t... " >&6; } | |
6940 | if test "${ac_cv_c_int16_t+set}" = set; then | |
ec6a6fbe | 6941 | $as_echo_n "(cached) " >&6 |
d3c8211f | 6942 | else |
d911ec67 AK |
6943 | ac_cv_c_int16_t=no |
6944 | for ac_type in 'int16_t' 'int' 'long int' \ | |
6945 | 'long long int' 'short int' 'signed char'; do | |
6946 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6947 | /* confdefs.h. */ |
6948 | _ACEOF | |
6949 | cat confdefs.h >>conftest.$ac_ext | |
6950 | cat >>conftest.$ac_ext <<_ACEOF | |
6951 | /* end confdefs.h. */ | |
d911ec67 | 6952 | $ac_includes_default |
ad6254c5 AK |
6953 | int |
6954 | main () | |
6955 | { | |
d911ec67 AK |
6956 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
6957 | test_array [0] = 0 | |
ad6254c5 AK |
6958 | |
6959 | ; | |
6960 | return 0; | |
6961 | } | |
6962 | _ACEOF | |
6963 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6964 | if { (ac_try="$ac_compile" |
6965 | case "(($ac_try" in | |
6966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6967 | *) ac_try_echo=$ac_try;; | |
6968 | esac | |
ec6a6fbe AK |
6969 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6970 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6971 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6972 | ac_status=$? |
8a2fc586 AK |
6973 | grep -v '^ *+' conftest.er1 >conftest.err |
6974 | rm -f conftest.er1 | |
6975 | cat conftest.err >&5 | |
ec6a6fbe | 6976 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6977 | (exit $ac_status); } && { |
6978 | test -z "$ac_c_werror_flag" || | |
6979 | test ! -s conftest.err | |
6980 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 6981 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6982 | /* confdefs.h. */ |
6983 | _ACEOF | |
6984 | cat confdefs.h >>conftest.$ac_ext | |
6985 | cat >>conftest.$ac_ext <<_ACEOF | |
6986 | /* end confdefs.h. */ | |
d911ec67 AK |
6987 | $ac_includes_default |
6988 | int | |
6989 | main () | |
6990 | { | |
6991 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1) | |
6992 | < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))]; | |
6993 | test_array [0] = 0 | |
80992638 | 6994 | |
d911ec67 AK |
6995 | ; |
6996 | return 0; | |
6997 | } | |
ad6254c5 AK |
6998 | _ACEOF |
6999 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7000 | if { (ac_try="$ac_compile" |
7001 | case "(($ac_try" in | |
7002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7003 | *) ac_try_echo=$ac_try;; | |
7004 | esac | |
ec6a6fbe AK |
7005 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7006 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7007 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7008 | ac_status=$? |
8a2fc586 AK |
7009 | grep -v '^ *+' conftest.er1 >conftest.err |
7010 | rm -f conftest.er1 | |
7011 | cat conftest.err >&5 | |
ec6a6fbe | 7012 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7013 | (exit $ac_status); } && { |
7014 | test -z "$ac_c_werror_flag" || | |
7015 | test ! -s conftest.err | |
7016 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 7017 | : |
ad6254c5 | 7018 | else |
ec6a6fbe | 7019 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 7020 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 7021 | |
d911ec67 AK |
7022 | case $ac_type in |
7023 | int16_t) ac_cv_c_int16_t=yes ;; | |
7024 | *) ac_cv_c_int16_t=$ac_type ;; | |
7025 | esac | |
7a197a62 | 7026 | |
8ce0cbda | 7027 | fi |
7a197a62 AK |
7028 | |
7029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7030 | else |
7031 | $as_echo "$as_me: failed program was:" >&5 | |
7032 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8ce0cbda | 7033 | |
8a2fc586 | 7034 | |
d911ec67 | 7035 | fi |
8a2fc586 | 7036 | |
d911ec67 AK |
7037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7038 | test "$ac_cv_c_int16_t" != no && break | |
7039 | done | |
7040 | fi | |
7041 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5 | |
7042 | $as_echo "$ac_cv_c_int16_t" >&6; } | |
7043 | case $ac_cv_c_int16_t in #( | |
7044 | no|yes) ;; #( | |
8a2fc586 | 7045 | *) |
d911ec67 AK |
7046 | |
7047 | cat >>confdefs.h <<_ACEOF | |
7048 | #define int16_t $ac_cv_c_int16_t | |
c1c065a3 | 7049 | _ACEOF |
d911ec67 AK |
7050 | ;; |
7051 | esac | |
d0191583 | 7052 | |
d911ec67 AK |
7053 | |
7054 | { $as_echo "$as_me:$LINENO: checking for int32_t" >&5 | |
7055 | $as_echo_n "checking for int32_t... " >&6; } | |
7056 | if test "${ac_cv_c_int32_t+set}" = set; then | |
ec6a6fbe | 7057 | $as_echo_n "(cached) " >&6 |
d0191583 | 7058 | else |
d911ec67 AK |
7059 | ac_cv_c_int32_t=no |
7060 | for ac_type in 'int32_t' 'int' 'long int' \ | |
7061 | 'long long int' 'short int' 'signed char'; do | |
7062 | cat >conftest.$ac_ext <<_ACEOF | |
d0191583 JM |
7063 | /* confdefs.h. */ |
7064 | _ACEOF | |
7065 | cat confdefs.h >>conftest.$ac_ext | |
7066 | cat >>conftest.$ac_ext <<_ACEOF | |
7067 | /* end confdefs.h. */ | |
7068 | $ac_includes_default | |
7069 | int | |
7070 | main () | |
7071 | { | |
d911ec67 AK |
7072 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
7073 | test_array [0] = 0 | |
7074 | ||
d0191583 JM |
7075 | ; |
7076 | return 0; | |
7077 | } | |
7078 | _ACEOF | |
7079 | rm -f conftest.$ac_objext | |
7080 | if { (ac_try="$ac_compile" | |
7081 | case "(($ac_try" in | |
7082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7083 | *) ac_try_echo=$ac_try;; | |
7084 | esac | |
ec6a6fbe AK |
7085 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7086 | $as_echo "$ac_try_echo") >&5 | |
7087 | (eval "$ac_compile") 2>conftest.er1 | |
7088 | ac_status=$? | |
7089 | grep -v '^ *+' conftest.er1 >conftest.err | |
7090 | rm -f conftest.er1 | |
7091 | cat conftest.err >&5 | |
7092 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7093 | (exit $ac_status); } && { | |
7094 | test -z "$ac_c_werror_flag" || | |
7095 | test ! -s conftest.err | |
7096 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 7097 | cat >conftest.$ac_ext <<_ACEOF |
ec6a6fbe AK |
7098 | /* confdefs.h. */ |
7099 | _ACEOF | |
7100 | cat confdefs.h >>conftest.$ac_ext | |
7101 | cat >>conftest.$ac_ext <<_ACEOF | |
7102 | /* end confdefs.h. */ | |
7103 | $ac_includes_default | |
7104 | int | |
7105 | main () | |
7106 | { | |
d911ec67 AK |
7107 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
7108 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; | |
7109 | test_array [0] = 0 | |
7110 | ||
ec6a6fbe AK |
7111 | ; |
7112 | return 0; | |
7113 | } | |
7114 | _ACEOF | |
7115 | rm -f conftest.$ac_objext | |
7116 | if { (ac_try="$ac_compile" | |
7117 | case "(($ac_try" in | |
7118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7119 | *) ac_try_echo=$ac_try;; | |
7120 | esac | |
7121 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7122 | $as_echo "$ac_try_echo") >&5 | |
7123 | (eval "$ac_compile") 2>conftest.er1 | |
7124 | ac_status=$? | |
7125 | grep -v '^ *+' conftest.er1 >conftest.err | |
7126 | rm -f conftest.er1 | |
7127 | cat conftest.err >&5 | |
7128 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7129 | (exit $ac_status); } && { | |
7130 | test -z "$ac_c_werror_flag" || | |
7131 | test ! -s conftest.err | |
7132 | } && test -s conftest.$ac_objext; then | |
d911ec67 | 7133 | : |
ec6a6fbe AK |
7134 | else |
7135 | $as_echo "$as_me: failed program was:" >&5 | |
7136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7137 | ||
d911ec67 AK |
7138 | case $ac_type in |
7139 | int32_t) ac_cv_c_int32_t=yes ;; | |
7140 | *) ac_cv_c_int32_t=$ac_type ;; | |
7141 | esac | |
7142 | ||
ec6a6fbe AK |
7143 | fi |
7144 | ||
7145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7146 | else |
7147 | $as_echo "$as_me: failed program was:" >&5 | |
7148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7149 | ||
7150 | ||
ec6a6fbe AK |
7151 | fi |
7152 | ||
7153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7154 | test "$ac_cv_c_int32_t" != no && break |
7155 | done | |
ec6a6fbe | 7156 | fi |
d911ec67 AK |
7157 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
7158 | $as_echo "$ac_cv_c_int32_t" >&6; } | |
7159 | case $ac_cv_c_int32_t in #( | |
7160 | no|yes) ;; #( | |
7161 | *) | |
ec6a6fbe AK |
7162 | |
7163 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7164 | #define int32_t $ac_cv_c_int32_t |
ec6a6fbe | 7165 | _ACEOF |
d911ec67 AK |
7166 | ;; |
7167 | esac | |
ec6a6fbe AK |
7168 | |
7169 | ||
d911ec67 AK |
7170 | { $as_echo "$as_me:$LINENO: checking for int64_t" >&5 |
7171 | $as_echo_n "checking for int64_t... " >&6; } | |
7172 | if test "${ac_cv_c_int64_t+set}" = set; then | |
ec6a6fbe AK |
7173 | $as_echo_n "(cached) " >&6 |
7174 | else | |
d911ec67 AK |
7175 | ac_cv_c_int64_t=no |
7176 | for ac_type in 'int64_t' 'int' 'long int' \ | |
7177 | 'long long int' 'short int' 'signed char'; do | |
7178 | cat >conftest.$ac_ext <<_ACEOF | |
ec6a6fbe AK |
7179 | /* confdefs.h. */ |
7180 | _ACEOF | |
7181 | cat confdefs.h >>conftest.$ac_ext | |
7182 | cat >>conftest.$ac_ext <<_ACEOF | |
7183 | /* end confdefs.h. */ | |
7184 | $ac_includes_default | |
7185 | int | |
7186 | main () | |
7187 | { | |
d911ec67 AK |
7188 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))]; |
7189 | test_array [0] = 0 | |
7190 | ||
ec6a6fbe AK |
7191 | ; |
7192 | return 0; | |
7193 | } | |
7194 | _ACEOF | |
7195 | rm -f conftest.$ac_objext | |
7196 | if { (ac_try="$ac_compile" | |
7197 | case "(($ac_try" in | |
7198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7199 | *) ac_try_echo=$ac_try;; | |
7200 | esac | |
7201 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7202 | $as_echo "$ac_try_echo") >&5 | |
7203 | (eval "$ac_compile") 2>conftest.er1 | |
7204 | ac_status=$? | |
7205 | grep -v '^ *+' conftest.er1 >conftest.err | |
7206 | rm -f conftest.er1 | |
7207 | cat conftest.err >&5 | |
7208 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7209 | (exit $ac_status); } && { | |
7210 | test -z "$ac_c_werror_flag" || | |
7211 | test ! -s conftest.err | |
7212 | } && test -s conftest.$ac_objext; then | |
7213 | cat >conftest.$ac_ext <<_ACEOF | |
7214 | /* confdefs.h. */ | |
7215 | _ACEOF | |
7216 | cat confdefs.h >>conftest.$ac_ext | |
7217 | cat >>conftest.$ac_ext <<_ACEOF | |
7218 | /* end confdefs.h. */ | |
7219 | $ac_includes_default | |
7220 | int | |
7221 | main () | |
7222 | { | |
d911ec67 AK |
7223 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1) |
7224 | < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))]; | |
7225 | test_array [0] = 0 | |
7226 | ||
ec6a6fbe AK |
7227 | ; |
7228 | return 0; | |
7229 | } | |
7230 | _ACEOF | |
7231 | rm -f conftest.$ac_objext | |
7232 | if { (ac_try="$ac_compile" | |
7233 | case "(($ac_try" in | |
7234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7235 | *) ac_try_echo=$ac_try;; | |
7236 | esac | |
7237 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7238 | $as_echo "$ac_try_echo") >&5 | |
7239 | (eval "$ac_compile") 2>conftest.er1 | |
7240 | ac_status=$? | |
7241 | grep -v '^ *+' conftest.er1 >conftest.err | |
7242 | rm -f conftest.er1 | |
7243 | cat conftest.err >&5 | |
7244 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7245 | (exit $ac_status); } && { | |
7246 | test -z "$ac_c_werror_flag" || | |
7247 | test ! -s conftest.err | |
7248 | } && test -s conftest.$ac_objext; then | |
7249 | : | |
7250 | else | |
7251 | $as_echo "$as_me: failed program was:" >&5 | |
7252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7253 | ||
d911ec67 AK |
7254 | case $ac_type in |
7255 | int64_t) ac_cv_c_int64_t=yes ;; | |
7256 | *) ac_cv_c_int64_t=$ac_type ;; | |
7257 | esac | |
7258 | ||
ec6a6fbe AK |
7259 | fi |
7260 | ||
7261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7262 | else | |
7263 | $as_echo "$as_me: failed program was:" >&5 | |
7264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7265 | ||
7266 | ||
7267 | fi | |
7268 | ||
7269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7270 | test "$ac_cv_c_int64_t" != no && break |
7271 | done | |
ec6a6fbe | 7272 | fi |
d911ec67 AK |
7273 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5 |
7274 | $as_echo "$ac_cv_c_int64_t" >&6; } | |
7275 | case $ac_cv_c_int64_t in #( | |
7276 | no|yes) ;; #( | |
7277 | *) | |
ec6a6fbe AK |
7278 | |
7279 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7280 | #define int64_t $ac_cv_c_int64_t |
ec6a6fbe | 7281 | _ACEOF |
d911ec67 AK |
7282 | ;; |
7283 | esac | |
ec6a6fbe | 7284 | |
d911ec67 AK |
7285 | { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5 |
7286 | $as_echo_n "checking for ssize_t... " >&6; } | |
7287 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
ec6a6fbe AK |
7288 | $as_echo_n "(cached) " >&6 |
7289 | else | |
d911ec67 | 7290 | ac_cv_type_ssize_t=no |
ec6a6fbe AK |
7291 | cat >conftest.$ac_ext <<_ACEOF |
7292 | /* confdefs.h. */ | |
7293 | _ACEOF | |
7294 | cat confdefs.h >>conftest.$ac_ext | |
7295 | cat >>conftest.$ac_ext <<_ACEOF | |
7296 | /* end confdefs.h. */ | |
7297 | $ac_includes_default | |
7298 | int | |
7299 | main () | |
7300 | { | |
d911ec67 | 7301 | if (sizeof (ssize_t)) |
ec6a6fbe AK |
7302 | return 0; |
7303 | ; | |
7304 | return 0; | |
7305 | } | |
7306 | _ACEOF | |
7307 | rm -f conftest.$ac_objext | |
7308 | if { (ac_try="$ac_compile" | |
7309 | case "(($ac_try" in | |
7310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7311 | *) ac_try_echo=$ac_try;; | |
7312 | esac | |
7313 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
7314 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
7315 | (eval "$ac_compile") 2>conftest.er1 |
7316 | ac_status=$? | |
7317 | grep -v '^ *+' conftest.er1 >conftest.err | |
7318 | rm -f conftest.er1 | |
7319 | cat conftest.err >&5 | |
ec6a6fbe | 7320 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
7321 | (exit $ac_status); } && { |
7322 | test -z "$ac_c_werror_flag" || | |
7323 | test ! -s conftest.err | |
7324 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 7325 | cat >conftest.$ac_ext <<_ACEOF |
d0191583 JM |
7326 | /* confdefs.h. */ |
7327 | _ACEOF | |
7328 | cat confdefs.h >>conftest.$ac_ext | |
7329 | cat >>conftest.$ac_ext <<_ACEOF | |
7330 | /* end confdefs.h. */ | |
7331 | $ac_includes_default | |
7332 | int | |
7333 | main () | |
7334 | { | |
d911ec67 | 7335 | if (sizeof ((ssize_t))) |
ec6a6fbe | 7336 | return 0; |
d0191583 JM |
7337 | ; |
7338 | return 0; | |
7339 | } | |
7340 | _ACEOF | |
7341 | rm -f conftest.$ac_objext | |
7342 | if { (ac_try="$ac_compile" | |
7343 | case "(($ac_try" in | |
7344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7345 | *) ac_try_echo=$ac_try;; | |
7346 | esac | |
ec6a6fbe AK |
7347 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7348 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
7349 | (eval "$ac_compile") 2>conftest.er1 |
7350 | ac_status=$? | |
7351 | grep -v '^ *+' conftest.er1 >conftest.err | |
7352 | rm -f conftest.er1 | |
7353 | cat conftest.err >&5 | |
ec6a6fbe | 7354 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
7355 | (exit $ac_status); } && { |
7356 | test -z "$ac_c_werror_flag" || | |
7357 | test ! -s conftest.err | |
7358 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 7359 | : |
d0191583 | 7360 | else |
ec6a6fbe | 7361 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
7362 | sed 's/^/| /' conftest.$ac_ext >&5 |
7363 | ||
d911ec67 | 7364 | ac_cv_type_ssize_t=yes |
d0191583 JM |
7365 | fi |
7366 | ||
7367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7368 | else |
7369 | $as_echo "$as_me: failed program was:" >&5 | |
7370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7371 | ||
7372 | ||
d0191583 JM |
7373 | fi |
7374 | ||
7375 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7376 | fi | |
d911ec67 AK |
7377 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
7378 | $as_echo "$ac_cv_type_ssize_t" >&6; } | |
7379 | if test "x$ac_cv_type_ssize_t" = x""yes; then | |
ec6a6fbe AK |
7380 | : |
7381 | else | |
d0191583 JM |
7382 | |
7383 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7384 | #define ssize_t int |
d0191583 JM |
7385 | _ACEOF |
7386 | ||
d0191583 | 7387 | fi |
8ce0cbda | 7388 | |
d911ec67 AK |
7389 | { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
7390 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
7391 | if test "${ac_cv_type_uid_t+set}" = set; then | |
ec6a6fbe | 7392 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7393 | else |
b145d876 ZK |
7394 | cat >conftest.$ac_ext <<_ACEOF |
7395 | /* confdefs.h. */ | |
7396 | _ACEOF | |
7397 | cat confdefs.h >>conftest.$ac_ext | |
7398 | cat >>conftest.$ac_ext <<_ACEOF | |
7399 | /* end confdefs.h. */ | |
ec6a6fbe | 7400 | #include <sys/types.h> |
ec6a6fbe | 7401 | |
ad6254c5 | 7402 | _ACEOF |
d911ec67 AK |
7403 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7404 | $EGREP "uid_t" >/dev/null 2>&1; then | |
7405 | ac_cv_type_uid_t=yes | |
b145d876 | 7406 | else |
d911ec67 | 7407 | ac_cv_type_uid_t=no |
ad6254c5 | 7408 | fi |
d911ec67 | 7409 | rm -f conftest* |
b145d876 | 7410 | |
b145d876 | 7411 | fi |
d911ec67 AK |
7412 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
7413 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
7414 | if test $ac_cv_type_uid_t = no; then | |
80992638 | 7415 | |
d911ec67 AK |
7416 | cat >>confdefs.h <<\_ACEOF |
7417 | #define uid_t int | |
ad6254c5 | 7418 | _ACEOF |
199e490e | 7419 | |
b896caa1 | 7420 | |
d911ec67 AK |
7421 | cat >>confdefs.h <<\_ACEOF |
7422 | #define gid_t int | |
7423 | _ACEOF | |
7424 | ||
7425 | fi | |
7426 | ||
7427 | ||
7428 | { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5 | |
7429 | $as_echo_n "checking for uint8_t... " >&6; } | |
7430 | if test "${ac_cv_c_uint8_t+set}" = set; then | |
ec6a6fbe | 7431 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7432 | else |
d911ec67 AK |
7433 | ac_cv_c_uint8_t=no |
7434 | for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \ | |
7435 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7436 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
7437 | /* confdefs.h. */ |
7438 | _ACEOF | |
7439 | cat confdefs.h >>conftest.$ac_ext | |
7440 | cat >>conftest.$ac_ext <<_ACEOF | |
7441 | /* end confdefs.h. */ | |
7442 | $ac_includes_default | |
7443 | int | |
7444 | main () | |
7445 | { | |
d911ec67 AK |
7446 | static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)]; |
7447 | test_array [0] = 0 | |
7448 | ||
ad6254c5 AK |
7449 | ; |
7450 | return 0; | |
7451 | } | |
7452 | _ACEOF | |
7453 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7454 | if { (ac_try="$ac_compile" |
7455 | case "(($ac_try" in | |
7456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7457 | *) ac_try_echo=$ac_try;; | |
7458 | esac | |
ec6a6fbe AK |
7459 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7460 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7461 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7462 | ac_status=$? |
8a2fc586 AK |
7463 | grep -v '^ *+' conftest.er1 >conftest.err |
7464 | rm -f conftest.er1 | |
7465 | cat conftest.err >&5 | |
ec6a6fbe | 7466 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7467 | (exit $ac_status); } && { |
7468 | test -z "$ac_c_werror_flag" || | |
7469 | test ! -s conftest.err | |
7470 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7471 | case $ac_type in |
7472 | uint8_t) ac_cv_c_uint8_t=yes ;; | |
7473 | *) ac_cv_c_uint8_t=$ac_type ;; | |
7474 | esac | |
7475 | ||
7476 | else | |
7477 | $as_echo "$as_me: failed program was:" >&5 | |
7478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7479 | ||
7480 | ||
7481 | fi | |
7482 | ||
7483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7484 | test "$ac_cv_c_uint8_t" != no && break | |
7485 | done | |
7486 | fi | |
7487 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5 | |
7488 | $as_echo "$ac_cv_c_uint8_t" >&6; } | |
7489 | case $ac_cv_c_uint8_t in #( | |
7490 | no|yes) ;; #( | |
7491 | *) | |
7492 | ||
7493 | cat >>confdefs.h <<\_ACEOF | |
7494 | #define _UINT8_T 1 | |
7495 | _ACEOF | |
7496 | ||
7497 | ||
7498 | cat >>confdefs.h <<_ACEOF | |
7499 | #define uint8_t $ac_cv_c_uint8_t | |
7500 | _ACEOF | |
7501 | ;; | |
7502 | esac | |
7503 | ||
7504 | ||
7505 | { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5 | |
7506 | $as_echo_n "checking for uint16_t... " >&6; } | |
7507 | if test "${ac_cv_c_uint16_t+set}" = set; then | |
7508 | $as_echo_n "(cached) " >&6 | |
7509 | else | |
7510 | ac_cv_c_uint16_t=no | |
7511 | for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ | |
7512 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7513 | cat >conftest.$ac_ext <<_ACEOF | |
d0191583 JM |
7514 | /* confdefs.h. */ |
7515 | _ACEOF | |
7516 | cat confdefs.h >>conftest.$ac_ext | |
7517 | cat >>conftest.$ac_ext <<_ACEOF | |
7518 | /* end confdefs.h. */ | |
ec6a6fbe | 7519 | $ac_includes_default |
d0191583 JM |
7520 | int |
7521 | main () | |
7522 | { | |
d911ec67 AK |
7523 | static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; |
7524 | test_array [0] = 0 | |
7525 | ||
d0191583 JM |
7526 | ; |
7527 | return 0; | |
7528 | } | |
7529 | _ACEOF | |
7530 | rm -f conftest.$ac_objext | |
7531 | if { (ac_try="$ac_compile" | |
7532 | case "(($ac_try" in | |
7533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7534 | *) ac_try_echo=$ac_try;; | |
7535 | esac | |
ec6a6fbe AK |
7536 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7537 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
7538 | (eval "$ac_compile") 2>conftest.er1 |
7539 | ac_status=$? | |
7540 | grep -v '^ *+' conftest.er1 >conftest.err | |
7541 | rm -f conftest.er1 | |
7542 | cat conftest.err >&5 | |
ec6a6fbe | 7543 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
7544 | (exit $ac_status); } && { |
7545 | test -z "$ac_c_werror_flag" || | |
7546 | test ! -s conftest.err | |
7547 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7548 | case $ac_type in |
7549 | uint16_t) ac_cv_c_uint16_t=yes ;; | |
7550 | *) ac_cv_c_uint16_t=$ac_type ;; | |
7551 | esac | |
ec6a6fbe | 7552 | |
ec6a6fbe AK |
7553 | else |
7554 | $as_echo "$as_me: failed program was:" >&5 | |
7555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7556 | ||
7557 | ||
d0191583 JM |
7558 | fi |
7559 | ||
7560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7561 | test "$ac_cv_c_uint16_t" != no && break |
7562 | done | |
d0191583 | 7563 | fi |
d911ec67 AK |
7564 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
7565 | $as_echo "$ac_cv_c_uint16_t" >&6; } | |
7566 | case $ac_cv_c_uint16_t in #( | |
7567 | no|yes) ;; #( | |
7568 | *) | |
7569 | ||
d0191583 JM |
7570 | |
7571 | cat >>confdefs.h <<_ACEOF | |
d911ec67 | 7572 | #define uint16_t $ac_cv_c_uint16_t |
d0191583 | 7573 | _ACEOF |
d911ec67 AK |
7574 | ;; |
7575 | esac | |
d0191583 JM |
7576 | |
7577 | ||
d911ec67 AK |
7578 | { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5 |
7579 | $as_echo_n "checking for uint32_t... " >&6; } | |
7580 | if test "${ac_cv_c_uint32_t+set}" = set; then | |
ec6a6fbe | 7581 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 7582 | else |
d911ec67 AK |
7583 | ac_cv_c_uint32_t=no |
7584 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ | |
7585 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7586 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
7587 | /* confdefs.h. */ |
7588 | _ACEOF | |
7589 | cat confdefs.h >>conftest.$ac_ext | |
7590 | cat >>conftest.$ac_ext <<_ACEOF | |
7591 | /* end confdefs.h. */ | |
7592 | $ac_includes_default | |
7593 | int | |
7594 | main () | |
7595 | { | |
d911ec67 AK |
7596 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
7597 | test_array [0] = 0 | |
7598 | ||
ad6254c5 AK |
7599 | ; |
7600 | return 0; | |
7601 | } | |
7602 | _ACEOF | |
7603 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7604 | if { (ac_try="$ac_compile" |
7605 | case "(($ac_try" in | |
7606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7607 | *) ac_try_echo=$ac_try;; | |
7608 | esac | |
ec6a6fbe AK |
7609 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7610 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7611 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7612 | ac_status=$? |
8a2fc586 AK |
7613 | grep -v '^ *+' conftest.er1 >conftest.err |
7614 | rm -f conftest.er1 | |
7615 | cat conftest.err >&5 | |
ec6a6fbe | 7616 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7617 | (exit $ac_status); } && { |
7618 | test -z "$ac_c_werror_flag" || | |
7619 | test ! -s conftest.err | |
7620 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7621 | case $ac_type in |
7622 | uint32_t) ac_cv_c_uint32_t=yes ;; | |
7623 | *) ac_cv_c_uint32_t=$ac_type ;; | |
7624 | esac | |
7625 | ||
7626 | else | |
7627 | $as_echo "$as_me: failed program was:" >&5 | |
7628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7629 | ||
7630 | ||
7631 | fi | |
7632 | ||
7633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7634 | test "$ac_cv_c_uint32_t" != no && break | |
7635 | done | |
7636 | fi | |
7637 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 | |
7638 | $as_echo "$ac_cv_c_uint32_t" >&6; } | |
7639 | case $ac_cv_c_uint32_t in #( | |
7640 | no|yes) ;; #( | |
7641 | *) | |
7642 | ||
7643 | cat >>confdefs.h <<\_ACEOF | |
7644 | #define _UINT32_T 1 | |
7645 | _ACEOF | |
7646 | ||
7647 | ||
7648 | cat >>confdefs.h <<_ACEOF | |
7649 | #define uint32_t $ac_cv_c_uint32_t | |
7650 | _ACEOF | |
7651 | ;; | |
7652 | esac | |
7653 | ||
7654 | ||
7655 | { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5 | |
7656 | $as_echo_n "checking for uint64_t... " >&6; } | |
7657 | if test "${ac_cv_c_uint64_t+set}" = set; then | |
7658 | $as_echo_n "(cached) " >&6 | |
7659 | else | |
7660 | ac_cv_c_uint64_t=no | |
7661 | for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \ | |
7662 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
7663 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
7664 | /* confdefs.h. */ |
7665 | _ACEOF | |
7666 | cat confdefs.h >>conftest.$ac_ext | |
7667 | cat >>conftest.$ac_ext <<_ACEOF | |
7668 | /* end confdefs.h. */ | |
7669 | $ac_includes_default | |
7670 | int | |
7671 | main () | |
7672 | { | |
d911ec67 AK |
7673 | static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)]; |
7674 | test_array [0] = 0 | |
7675 | ||
ad6254c5 AK |
7676 | ; |
7677 | return 0; | |
7678 | } | |
7679 | _ACEOF | |
7680 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7681 | if { (ac_try="$ac_compile" |
7682 | case "(($ac_try" in | |
7683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7684 | *) ac_try_echo=$ac_try;; | |
7685 | esac | |
ec6a6fbe AK |
7686 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7687 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7688 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7689 | ac_status=$? |
8a2fc586 AK |
7690 | grep -v '^ *+' conftest.er1 >conftest.err |
7691 | rm -f conftest.er1 | |
7692 | cat conftest.err >&5 | |
ec6a6fbe | 7693 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7694 | (exit $ac_status); } && { |
7695 | test -z "$ac_c_werror_flag" || | |
7696 | test ! -s conftest.err | |
7697 | } && test -s conftest.$ac_objext; then | |
d911ec67 AK |
7698 | case $ac_type in |
7699 | uint64_t) ac_cv_c_uint64_t=yes ;; | |
7700 | *) ac_cv_c_uint64_t=$ac_type ;; | |
7701 | esac | |
ec6a6fbe | 7702 | |
fddafd51 | 7703 | else |
ec6a6fbe | 7704 | $as_echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
7705 | sed 's/^/| /' conftest.$ac_ext >&5 |
7706 | ||
ec6a6fbe | 7707 | |
80992638 | 7708 | fi |
7a197a62 AK |
7709 | |
7710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d911ec67 AK |
7711 | test "$ac_cv_c_uint64_t" != no && break |
7712 | done | |
ad6254c5 | 7713 | fi |
d911ec67 AK |
7714 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5 |
7715 | $as_echo "$ac_cv_c_uint64_t" >&6; } | |
7716 | case $ac_cv_c_uint64_t in #( | |
7717 | no|yes) ;; #( | |
7718 | *) | |
80992638 | 7719 | |
d911ec67 AK |
7720 | cat >>confdefs.h <<\_ACEOF |
7721 | #define _UINT64_T 1 | |
ad6254c5 AK |
7722 | _ACEOF |
7723 | ||
d911ec67 AK |
7724 | |
7725 | cat >>confdefs.h <<_ACEOF | |
7726 | #define uint64_t $ac_cv_c_uint64_t | |
7727 | _ACEOF | |
7728 | ;; | |
7729 | esac | |
ad6254c5 | 7730 | |
ec6a6fbe AK |
7731 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
7732 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
ad6254c5 | 7733 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 7734 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7735 | else |
7736 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7737 | /* confdefs.h. */ |
7738 | _ACEOF | |
7739 | cat confdefs.h >>conftest.$ac_ext | |
7740 | cat >>conftest.$ac_ext <<_ACEOF | |
7741 | /* end confdefs.h. */ | |
7742 | $ac_includes_default | |
7743 | int | |
7744 | main () | |
7745 | { | |
7746 | static struct stat ac_aggr; | |
7747 | if (ac_aggr.st_rdev) | |
7748 | return 0; | |
7749 | ; | |
7750 | return 0; | |
7751 | } | |
7752 | _ACEOF | |
7753 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7754 | if { (ac_try="$ac_compile" |
7755 | case "(($ac_try" in | |
7756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7757 | *) ac_try_echo=$ac_try;; | |
7758 | esac | |
ec6a6fbe AK |
7759 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7760 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7761 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7762 | ac_status=$? |
8a2fc586 AK |
7763 | grep -v '^ *+' conftest.er1 >conftest.err |
7764 | rm -f conftest.er1 | |
7765 | cat conftest.err >&5 | |
ec6a6fbe | 7766 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7767 | (exit $ac_status); } && { |
7768 | test -z "$ac_c_werror_flag" || | |
7769 | test ! -s conftest.err | |
7770 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7771 | ac_cv_member_struct_stat_st_rdev=yes |
7772 | else | |
ec6a6fbe | 7773 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7774 | sed 's/^/| /' conftest.$ac_ext >&5 |
7775 | ||
7a197a62 | 7776 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7777 | /* confdefs.h. */ |
7778 | _ACEOF | |
7779 | cat confdefs.h >>conftest.$ac_ext | |
7780 | cat >>conftest.$ac_ext <<_ACEOF | |
7781 | /* end confdefs.h. */ | |
7782 | $ac_includes_default | |
7783 | int | |
7784 | main () | |
7785 | { | |
7786 | static struct stat ac_aggr; | |
7787 | if (sizeof ac_aggr.st_rdev) | |
7788 | return 0; | |
7789 | ; | |
7790 | return 0; | |
7791 | } | |
7792 | _ACEOF | |
7793 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7794 | if { (ac_try="$ac_compile" |
7795 | case "(($ac_try" in | |
7796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7797 | *) ac_try_echo=$ac_try;; | |
7798 | esac | |
ec6a6fbe AK |
7799 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7800 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7801 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7802 | ac_status=$? |
8a2fc586 AK |
7803 | grep -v '^ *+' conftest.er1 >conftest.err |
7804 | rm -f conftest.er1 | |
7805 | cat conftest.err >&5 | |
ec6a6fbe | 7806 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7807 | (exit $ac_status); } && { |
7808 | test -z "$ac_c_werror_flag" || | |
7809 | test ! -s conftest.err | |
7810 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7811 | ac_cv_member_struct_stat_st_rdev=yes |
7812 | else | |
ec6a6fbe | 7813 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7814 | sed 's/^/| /' conftest.$ac_ext >&5 |
7815 | ||
7a197a62 | 7816 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 7817 | fi |
7a197a62 AK |
7818 | |
7819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 7820 | fi |
7a197a62 AK |
7821 | |
7822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 7823 | fi |
ec6a6fbe AK |
7824 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
7825 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
7826 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
ad6254c5 AK |
7827 | |
7828 | cat >>confdefs.h <<_ACEOF | |
7829 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
7830 | _ACEOF | |
7831 | ||
7832 | ||
ad6254c5 AK |
7833 | fi |
7834 | ||
ec6a6fbe AK |
7835 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
7836 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
ad6254c5 | 7837 | if test "${ac_cv_struct_tm+set}" = set; then |
ec6a6fbe | 7838 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7839 | else |
7840 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7841 | /* confdefs.h. */ |
7842 | _ACEOF | |
7843 | cat confdefs.h >>conftest.$ac_ext | |
7844 | cat >>conftest.$ac_ext <<_ACEOF | |
7845 | /* end confdefs.h. */ | |
7846 | #include <sys/types.h> | |
7847 | #include <time.h> | |
7848 | ||
7849 | int | |
7850 | main () | |
7851 | { | |
25fbec5b AK |
7852 | struct tm tm; |
7853 | int *p = &tm.tm_sec; | |
ec6a6fbe | 7854 | return !p; |
ad6254c5 AK |
7855 | ; |
7856 | return 0; | |
7857 | } | |
7858 | _ACEOF | |
7859 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7860 | if { (ac_try="$ac_compile" |
7861 | case "(($ac_try" in | |
7862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7863 | *) ac_try_echo=$ac_try;; | |
7864 | esac | |
ec6a6fbe AK |
7865 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7866 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7867 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7868 | ac_status=$? |
8a2fc586 AK |
7869 | grep -v '^ *+' conftest.er1 >conftest.err |
7870 | rm -f conftest.er1 | |
7871 | cat conftest.err >&5 | |
ec6a6fbe | 7872 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7873 | (exit $ac_status); } && { |
7874 | test -z "$ac_c_werror_flag" || | |
7875 | test ! -s conftest.err | |
d911ec67 AK |
7876 | } && test -s conftest.$ac_objext; then |
7877 | ac_cv_struct_tm=time.h | |
7878 | else | |
7879 | $as_echo "$as_me: failed program was:" >&5 | |
7880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7881 | ||
7882 | ac_cv_struct_tm=sys/time.h | |
7883 | fi | |
7884 | ||
7885 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7886 | fi | |
7887 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | |
7888 | $as_echo "$ac_cv_struct_tm" >&6; } | |
7889 | if test $ac_cv_struct_tm = sys/time.h; then | |
7890 | ||
7891 | cat >>confdefs.h <<\_ACEOF | |
7892 | #define TM_IN_SYS_TIME 1 | |
7893 | _ACEOF | |
7894 | ||
7895 | fi | |
7896 | ||
7897 | ||
7898 | ################################################################################ | |
d911ec67 | 7899 | |
ad6254c5 | 7900 | |
809fae91 | 7901 | |
795ca3e5 | 7902 | |
ad6254c5 AK |
7903 | |
7904 | ||
7905 | ||
7906 | ||
7907 | ||
7908 | ||
7909 | ||
7910 | ||
7911 | ||
7912 | ||
7913 | ||
7914 | ||
7915 | ||
7916 | ||
d0191583 JM |
7917 | |
7918 | ||
7919 | ||
d911ec67 AK |
7920 | |
7921 | ||
7922 | ||
37ddf259 | 7923 | for ac_func in ftruncate gethostname getpagesize \ |
d911ec67 AK |
7924 | gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \ |
7925 | strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \ | |
7926 | strstr strtol strtoul uname | |
ad6254c5 | 7927 | do |
ec6a6fbe AK |
7928 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7929 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7930 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 7931 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7932 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 7933 | else |
ad6254c5 | 7934 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7935 | /* confdefs.h. */ |
7936 | _ACEOF | |
7937 | cat confdefs.h >>conftest.$ac_ext | |
7938 | cat >>conftest.$ac_ext <<_ACEOF | |
7939 | /* end confdefs.h. */ | |
8a2fc586 AK |
7940 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7941 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7942 | #define $ac_func innocuous_$ac_func | |
7943 | ||
ad6254c5 AK |
7944 | /* System header to define __stub macros and hopefully few prototypes, |
7945 | which can conflict with char $ac_func (); below. | |
7946 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7947 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7948 | |
ad6254c5 AK |
7949 | #ifdef __STDC__ |
7950 | # include <limits.h> | |
7951 | #else | |
7952 | # include <assert.h> | |
7953 | #endif | |
8a2fc586 AK |
7954 | |
7955 | #undef $ac_func | |
7956 | ||
7a197a62 AK |
7957 | /* Override any GCC internal prototype to avoid an error. |
7958 | Use char because int might match the return type of a GCC | |
7959 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
7960 | #ifdef __cplusplus |
7961 | extern "C" | |
ad6254c5 | 7962 | #endif |
ad6254c5 AK |
7963 | char $ac_func (); |
7964 | /* The GNU C library defines this for functions which it implements | |
7965 | to always fail with ENOSYS. Some functions are actually named | |
7966 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7967 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 7968 | choke me |
ad6254c5 AK |
7969 | #endif |
7970 | ||
7971 | int | |
7972 | main () | |
7973 | { | |
7a197a62 | 7974 | return $ac_func (); |
ad6254c5 AK |
7975 | ; |
7976 | return 0; | |
7977 | } | |
7978 | _ACEOF | |
7979 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7980 | if { (ac_try="$ac_link" |
7981 | case "(($ac_try" in | |
7982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7983 | *) ac_try_echo=$ac_try;; | |
7984 | esac | |
ec6a6fbe AK |
7985 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7986 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7987 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7988 | ac_status=$? |
8a2fc586 AK |
7989 | grep -v '^ *+' conftest.er1 >conftest.err |
7990 | rm -f conftest.er1 | |
7991 | cat conftest.err >&5 | |
ec6a6fbe | 7992 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7993 | (exit $ac_status); } && { |
7994 | test -z "$ac_c_werror_flag" || | |
7995 | test ! -s conftest.err | |
ec6a6fbe AK |
7996 | } && test -s conftest$ac_exeext && { |
7997 | test "$cross_compiling" = yes || | |
7998 | $as_test_x conftest$ac_exeext | |
7999 | }; then | |
fc54be10 AK |
8000 | eval "$as_ac_var=yes" |
8001 | else | |
ec6a6fbe | 8002 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
8003 | sed 's/^/| /' conftest.$ac_ext >&5 |
8004 | ||
8005 | eval "$as_ac_var=no" | |
8006 | fi | |
8007 | ||
ec6a6fbe | 8008 | rm -rf conftest.dSYM |
25fbec5b | 8009 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
8010 | conftest$ac_exeext conftest.$ac_ext |
8011 | fi | |
ec6a6fbe AK |
8012 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8013 | $as_echo "$as_val"'` | |
8014 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8015 | $as_echo "$ac_res" >&6; } | |
8016 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8017 | $as_echo "$as_val"'` | |
8018 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8019 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8020 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8021 | _ACEOF |
8022 | ||
8023 | else | |
ec6a6fbe AK |
8024 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
8025 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
8026 | { (exit 1); exit 1; }; } |
8027 | fi | |
8028 | done | |
795ca3e5 | 8029 | |
a0f9708e AK |
8030 | |
8031 | for ac_func in siginterrupt | |
8032 | do | |
8033 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
8034 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8035 | $as_echo_n "checking for $ac_func... " >&6; } | |
8036 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
8037 | $as_echo_n "(cached) " >&6 | |
8038 | else | |
8039 | cat >conftest.$ac_ext <<_ACEOF | |
8040 | /* confdefs.h. */ | |
8041 | _ACEOF | |
8042 | cat confdefs.h >>conftest.$ac_ext | |
8043 | cat >>conftest.$ac_ext <<_ACEOF | |
8044 | /* end confdefs.h. */ | |
8045 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8046 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8047 | #define $ac_func innocuous_$ac_func | |
8048 | ||
8049 | /* System header to define __stub macros and hopefully few prototypes, | |
8050 | which can conflict with char $ac_func (); below. | |
8051 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8052 | <limits.h> exists even on freestanding compilers. */ | |
8053 | ||
8054 | #ifdef __STDC__ | |
8055 | # include <limits.h> | |
8056 | #else | |
8057 | # include <assert.h> | |
8058 | #endif | |
8059 | ||
8060 | #undef $ac_func | |
8061 | ||
8062 | /* Override any GCC internal prototype to avoid an error. | |
8063 | Use char because int might match the return type of a GCC | |
8064 | builtin and then its argument prototype would still apply. */ | |
8065 | #ifdef __cplusplus | |
8066 | extern "C" | |
8067 | #endif | |
8068 | char $ac_func (); | |
8069 | /* The GNU C library defines this for functions which it implements | |
8070 | to always fail with ENOSYS. Some functions are actually named | |
8071 | something starting with __ and the normal name is an alias. */ | |
8072 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8073 | choke me | |
8074 | #endif | |
8075 | ||
8076 | int | |
8077 | main () | |
8078 | { | |
8079 | return $ac_func (); | |
8080 | ; | |
8081 | return 0; | |
8082 | } | |
8083 | _ACEOF | |
8084 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8085 | if { (ac_try="$ac_link" | |
8086 | case "(($ac_try" in | |
8087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8088 | *) ac_try_echo=$ac_try;; | |
8089 | esac | |
8090 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8091 | $as_echo "$ac_try_echo") >&5 | |
8092 | (eval "$ac_link") 2>conftest.er1 | |
8093 | ac_status=$? | |
8094 | grep -v '^ *+' conftest.er1 >conftest.err | |
8095 | rm -f conftest.er1 | |
8096 | cat conftest.err >&5 | |
8097 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8098 | (exit $ac_status); } && { | |
8099 | test -z "$ac_c_werror_flag" || | |
8100 | test ! -s conftest.err | |
8101 | } && test -s conftest$ac_exeext && { | |
8102 | test "$cross_compiling" = yes || | |
8103 | $as_test_x conftest$ac_exeext | |
8104 | }; then | |
8105 | eval "$as_ac_var=yes" | |
8106 | else | |
8107 | $as_echo "$as_me: failed program was:" >&5 | |
8108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8109 | ||
8110 | eval "$as_ac_var=no" | |
8111 | fi | |
8112 | ||
8113 | rm -rf conftest.dSYM | |
8114 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
8115 | conftest$ac_exeext conftest.$ac_ext | |
8116 | fi | |
8117 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
8118 | $as_echo "$as_val"'` | |
8119 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8120 | $as_echo "$ac_res" >&6; } | |
8121 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8122 | $as_echo "$as_val"'` | |
8123 | if test "x$as_val" = x""yes; then | |
8124 | cat >>confdefs.h <<_ACEOF | |
8125 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8126 | _ACEOF | |
8127 | ||
8128 | fi | |
8129 | done | |
8130 | ||
ad6254c5 AK |
8131 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
8132 | # for constant arguments. Useless! | |
ec6a6fbe AK |
8133 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
8134 | $as_echo_n "checking for working alloca.h... " >&6; } | |
ad6254c5 | 8135 | if test "${ac_cv_working_alloca_h+set}" = set; then |
ec6a6fbe | 8136 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8137 | else |
8138 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8139 | /* confdefs.h. */ |
8140 | _ACEOF | |
8141 | cat confdefs.h >>conftest.$ac_ext | |
8142 | cat >>conftest.$ac_ext <<_ACEOF | |
8143 | /* end confdefs.h. */ | |
8144 | #include <alloca.h> | |
8145 | int | |
8146 | main () | |
8147 | { | |
8148 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 8149 | if (p) return 0; |
ad6254c5 AK |
8150 | ; |
8151 | return 0; | |
8152 | } | |
8153 | _ACEOF | |
8154 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8155 | if { (ac_try="$ac_link" |
8156 | case "(($ac_try" in | |
8157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8158 | *) ac_try_echo=$ac_try;; | |
8159 | esac | |
ec6a6fbe AK |
8160 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8161 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8162 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8163 | ac_status=$? |
8a2fc586 AK |
8164 | grep -v '^ *+' conftest.er1 >conftest.err |
8165 | rm -f conftest.er1 | |
8166 | cat conftest.err >&5 | |
ec6a6fbe | 8167 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8168 | (exit $ac_status); } && { |
8169 | test -z "$ac_c_werror_flag" || | |
8170 | test ! -s conftest.err | |
ec6a6fbe AK |
8171 | } && test -s conftest$ac_exeext && { |
8172 | test "$cross_compiling" = yes || | |
8173 | $as_test_x conftest$ac_exeext | |
8174 | }; then | |
ad6254c5 AK |
8175 | ac_cv_working_alloca_h=yes |
8176 | else | |
ec6a6fbe | 8177 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 8178 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 8179 | |
7a197a62 | 8180 | ac_cv_working_alloca_h=no |
ad6254c5 | 8181 | fi |
7a197a62 | 8182 | |
ec6a6fbe | 8183 | rm -rf conftest.dSYM |
25fbec5b | 8184 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8185 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8186 | fi |
ec6a6fbe AK |
8187 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
8188 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
8189 | if test $ac_cv_working_alloca_h = yes; then |
8190 | ||
8191 | cat >>confdefs.h <<\_ACEOF | |
8192 | #define HAVE_ALLOCA_H 1 | |
8193 | _ACEOF | |
8194 | ||
8195 | fi | |
8196 | ||
ec6a6fbe AK |
8197 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
8198 | $as_echo_n "checking for alloca... " >&6; } | |
ad6254c5 | 8199 | if test "${ac_cv_func_alloca_works+set}" = set; then |
ec6a6fbe | 8200 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8201 | else |
8202 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8203 | /* confdefs.h. */ |
8204 | _ACEOF | |
8205 | cat confdefs.h >>conftest.$ac_ext | |
8206 | cat >>conftest.$ac_ext <<_ACEOF | |
8207 | /* end confdefs.h. */ | |
8208 | #ifdef __GNUC__ | |
8209 | # define alloca __builtin_alloca | |
8210 | #else | |
8211 | # ifdef _MSC_VER | |
8212 | # include <malloc.h> | |
8213 | # define alloca _alloca | |
8214 | # else | |
25fbec5b | 8215 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
8216 | # include <alloca.h> |
8217 | # else | |
8218 | # ifdef _AIX | |
8219 | #pragma alloca | |
8220 | # else | |
8221 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
8222 | char *alloca (); | |
8223 | # endif | |
8224 | # endif | |
8225 | # endif | |
8226 | # endif | |
8227 | #endif | |
8228 | ||
8229 | int | |
8230 | main () | |
8231 | { | |
8232 | char *p = (char *) alloca (1); | |
7a197a62 | 8233 | if (p) return 0; |
ad6254c5 AK |
8234 | ; |
8235 | return 0; | |
8236 | } | |
8237 | _ACEOF | |
8238 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8239 | if { (ac_try="$ac_link" |
8240 | case "(($ac_try" in | |
8241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8242 | *) ac_try_echo=$ac_try;; | |
8243 | esac | |
ec6a6fbe AK |
8244 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8245 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8246 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8247 | ac_status=$? |
8a2fc586 AK |
8248 | grep -v '^ *+' conftest.er1 >conftest.err |
8249 | rm -f conftest.er1 | |
8250 | cat conftest.err >&5 | |
ec6a6fbe | 8251 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8252 | (exit $ac_status); } && { |
8253 | test -z "$ac_c_werror_flag" || | |
8254 | test ! -s conftest.err | |
ec6a6fbe AK |
8255 | } && test -s conftest$ac_exeext && { |
8256 | test "$cross_compiling" = yes || | |
8257 | $as_test_x conftest$ac_exeext | |
8258 | }; then | |
ad6254c5 AK |
8259 | ac_cv_func_alloca_works=yes |
8260 | else | |
ec6a6fbe | 8261 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8262 | sed 's/^/| /' conftest.$ac_ext >&5 |
8263 | ||
7a197a62 | 8264 | ac_cv_func_alloca_works=no |
ad6254c5 | 8265 | fi |
7a197a62 | 8266 | |
ec6a6fbe | 8267 | rm -rf conftest.dSYM |
25fbec5b | 8268 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8269 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8270 | fi |
ec6a6fbe AK |
8271 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
8272 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
8273 | |
8274 | if test $ac_cv_func_alloca_works = yes; then | |
8275 | ||
8276 | cat >>confdefs.h <<\_ACEOF | |
8277 | #define HAVE_ALLOCA 1 | |
8278 | _ACEOF | |
8279 | ||
8280 | else | |
8281 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
8282 | # that cause trouble. Some versions do not even contain alloca or | |
8283 | # contain a buggy version. If you still want to use their alloca, | |
8284 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
8285 | ||
7a197a62 | 8286 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
8287 | |
8288 | cat >>confdefs.h <<\_ACEOF | |
8289 | #define C_ALLOCA 1 | |
8290 | _ACEOF | |
8291 | ||
8292 | ||
ec6a6fbe AK |
8293 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
8294 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
ad6254c5 | 8295 | if test "${ac_cv_os_cray+set}" = set; then |
ec6a6fbe | 8296 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8297 | else |
8298 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8299 | /* confdefs.h. */ |
8300 | _ACEOF | |
8301 | cat confdefs.h >>conftest.$ac_ext | |
8302 | cat >>conftest.$ac_ext <<_ACEOF | |
8303 | /* end confdefs.h. */ | |
7a197a62 | 8304 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
8305 | webecray |
8306 | #else | |
8307 | wenotbecray | |
8308 | #endif | |
8309 | ||
8310 | _ACEOF | |
795ca3e5 | 8311 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
8312 | $EGREP "webecray" >/dev/null 2>&1; then |
8313 | ac_cv_os_cray=yes | |
8314 | else | |
8315 | ac_cv_os_cray=no | |
795ca3e5 AK |
8316 | fi |
8317 | rm -f conftest* | |
8318 | ||
795ca3e5 | 8319 | fi |
ec6a6fbe AK |
8320 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
8321 | $as_echo "$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
8322 | if test $ac_cv_os_cray = yes; then |
8323 | for ac_func in _getb67 GETB67 getb67; do | |
ec6a6fbe AK |
8324 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8325 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8326 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8327 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8328 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8329 | else |
8330 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8331 | /* confdefs.h. */ |
8332 | _ACEOF | |
8333 | cat confdefs.h >>conftest.$ac_ext | |
8334 | cat >>conftest.$ac_ext <<_ACEOF | |
8335 | /* end confdefs.h. */ | |
8a2fc586 AK |
8336 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8337 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8338 | #define $ac_func innocuous_$ac_func | |
8339 | ||
ad6254c5 AK |
8340 | /* System header to define __stub macros and hopefully few prototypes, |
8341 | which can conflict with char $ac_func (); below. | |
8342 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8343 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8344 | |
ad6254c5 AK |
8345 | #ifdef __STDC__ |
8346 | # include <limits.h> | |
8347 | #else | |
8348 | # include <assert.h> | |
8349 | #endif | |
8a2fc586 AK |
8350 | |
8351 | #undef $ac_func | |
8352 | ||
7a197a62 AK |
8353 | /* Override any GCC internal prototype to avoid an error. |
8354 | Use char because int might match the return type of a GCC | |
8355 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8356 | #ifdef __cplusplus |
8357 | extern "C" | |
ad6254c5 | 8358 | #endif |
ad6254c5 AK |
8359 | char $ac_func (); |
8360 | /* The GNU C library defines this for functions which it implements | |
8361 | to always fail with ENOSYS. Some functions are actually named | |
8362 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8363 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8364 | choke me |
ad6254c5 AK |
8365 | #endif |
8366 | ||
8367 | int | |
8368 | main () | |
8369 | { | |
7a197a62 | 8370 | return $ac_func (); |
ad6254c5 AK |
8371 | ; |
8372 | return 0; | |
8373 | } | |
8374 | _ACEOF | |
8375 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8376 | if { (ac_try="$ac_link" |
8377 | case "(($ac_try" in | |
8378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8379 | *) ac_try_echo=$ac_try;; | |
8380 | esac | |
ec6a6fbe AK |
8381 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8382 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8383 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8384 | ac_status=$? |
8a2fc586 AK |
8385 | grep -v '^ *+' conftest.er1 >conftest.err |
8386 | rm -f conftest.er1 | |
8387 | cat conftest.err >&5 | |
ec6a6fbe | 8388 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8389 | (exit $ac_status); } && { |
8390 | test -z "$ac_c_werror_flag" || | |
8391 | test ! -s conftest.err | |
ec6a6fbe AK |
8392 | } && test -s conftest$ac_exeext && { |
8393 | test "$cross_compiling" = yes || | |
8394 | $as_test_x conftest$ac_exeext | |
8395 | }; then | |
ad6254c5 AK |
8396 | eval "$as_ac_var=yes" |
8397 | else | |
ec6a6fbe | 8398 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8399 | sed 's/^/| /' conftest.$ac_ext >&5 |
8400 | ||
7a197a62 | 8401 | eval "$as_ac_var=no" |
ad6254c5 | 8402 | fi |
7a197a62 | 8403 | |
ec6a6fbe | 8404 | rm -rf conftest.dSYM |
25fbec5b | 8405 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8406 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8407 | fi |
ec6a6fbe AK |
8408 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8409 | $as_echo "$as_val"'` | |
8410 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8411 | $as_echo "$ac_res" >&6; } | |
8412 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8413 | $as_echo "$as_val"'` | |
8414 | if test "x$as_val" = x""yes; then | |
80992638 | 8415 | |
ad6254c5 AK |
8416 | cat >>confdefs.h <<_ACEOF |
8417 | #define CRAY_STACKSEG_END $ac_func | |
8418 | _ACEOF | |
8419 | ||
8420 | break | |
8421 | fi | |
8422 | ||
8423 | done | |
8424 | fi | |
8425 | ||
ec6a6fbe AK |
8426 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
8427 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
ad6254c5 | 8428 | if test "${ac_cv_c_stack_direction+set}" = set; then |
ec6a6fbe | 8429 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8430 | else |
8431 | if test "$cross_compiling" = yes; then | |
8432 | ac_cv_c_stack_direction=0 | |
8433 | else | |
8434 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8435 | /* confdefs.h. */ |
8436 | _ACEOF | |
8437 | cat confdefs.h >>conftest.$ac_ext | |
8438 | cat >>conftest.$ac_ext <<_ACEOF | |
8439 | /* end confdefs.h. */ | |
7a197a62 | 8440 | $ac_includes_default |
ad6254c5 AK |
8441 | int |
8442 | find_stack_direction () | |
8443 | { | |
8444 | static char *addr = 0; | |
8445 | auto char dummy; | |
8446 | if (addr == 0) | |
8447 | { | |
8448 | addr = &dummy; | |
8449 | return find_stack_direction (); | |
8450 | } | |
8451 | else | |
8452 | return (&dummy > addr) ? 1 : -1; | |
8453 | } | |
8454 | ||
8455 | int | |
8456 | main () | |
8457 | { | |
7a197a62 | 8458 | return find_stack_direction () < 0; |
ad6254c5 AK |
8459 | } |
8460 | _ACEOF | |
8461 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8462 | if { (ac_try="$ac_link" |
8463 | case "(($ac_try" in | |
8464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8465 | *) ac_try_echo=$ac_try;; | |
8466 | esac | |
ec6a6fbe AK |
8467 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8468 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8469 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8470 | ac_status=$? |
ec6a6fbe | 8471 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8472 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8473 | { (case "(($ac_try" in |
8474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8475 | *) ac_try_echo=$ac_try;; | |
8476 | esac | |
ec6a6fbe AK |
8477 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8478 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8479 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8480 | ac_status=$? |
ec6a6fbe | 8481 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8482 | (exit $ac_status); }; }; then |
8483 | ac_cv_c_stack_direction=1 | |
8484 | else | |
ec6a6fbe AK |
8485 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8486 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8487 | sed 's/^/| /' conftest.$ac_ext >&5 |
8488 | ||
8489 | ( exit $ac_status ) | |
8490 | ac_cv_c_stack_direction=-1 | |
8491 | fi | |
ec6a6fbe | 8492 | rm -rf conftest.dSYM |
7a197a62 | 8493 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8494 | fi |
7a197a62 AK |
8495 | |
8496 | ||
ad6254c5 | 8497 | fi |
ec6a6fbe AK |
8498 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
8499 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 | 8500 | |
d911ec67 AK |
8501 | cat >>confdefs.h <<_ACEOF |
8502 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
8503 | _ACEOF | |
8504 | ||
8505 | ||
8506 | fi | |
8507 | ||
8508 | { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5 | |
8509 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
8510 | if test "${ac_cv_func_closedir_void+set}" = set; then | |
8511 | $as_echo_n "(cached) " >&6 | |
8512 | else | |
8513 | if test "$cross_compiling" = yes; then | |
8514 | ac_cv_func_closedir_void=yes | |
8515 | else | |
8516 | cat >conftest.$ac_ext <<_ACEOF | |
8517 | /* confdefs.h. */ | |
8518 | _ACEOF | |
8519 | cat confdefs.h >>conftest.$ac_ext | |
8520 | cat >>conftest.$ac_ext <<_ACEOF | |
8521 | /* end confdefs.h. */ | |
8522 | $ac_includes_default | |
8523 | #include <$ac_header_dirent> | |
8524 | #ifndef __cplusplus | |
8525 | int closedir (); | |
8526 | #endif | |
8527 | ||
8528 | int | |
8529 | main () | |
8530 | { | |
8531 | return closedir (opendir (".")) != 0; | |
8532 | ; | |
8533 | return 0; | |
8534 | } | |
8535 | _ACEOF | |
8536 | rm -f conftest$ac_exeext | |
8537 | if { (ac_try="$ac_link" | |
8538 | case "(($ac_try" in | |
8539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8540 | *) ac_try_echo=$ac_try;; | |
8541 | esac | |
8542 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8543 | $as_echo "$ac_try_echo") >&5 | |
8544 | (eval "$ac_link") 2>&5 | |
8545 | ac_status=$? | |
8546 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8547 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8548 | { (case "(($ac_try" in | |
8549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8550 | *) ac_try_echo=$ac_try;; | |
8551 | esac | |
8552 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8553 | $as_echo "$ac_try_echo") >&5 | |
8554 | (eval "$ac_try") 2>&5 | |
8555 | ac_status=$? | |
8556 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8557 | (exit $ac_status); }; }; then | |
8558 | ac_cv_func_closedir_void=no | |
8559 | else | |
8560 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
8561 | $as_echo "$as_me: failed program was:" >&5 | |
8562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8563 | ||
8564 | ( exit $ac_status ) | |
8565 | ac_cv_func_closedir_void=yes | |
8566 | fi | |
8567 | rm -rf conftest.dSYM | |
8568 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8569 | fi | |
8570 | ||
8571 | ||
8572 | fi | |
8573 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 | |
8574 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
8575 | if test $ac_cv_func_closedir_void = yes; then | |
8576 | ||
8577 | cat >>confdefs.h <<\_ACEOF | |
8578 | #define CLOSEDIR_VOID 1 | |
8579 | _ACEOF | |
8580 | ||
8581 | fi | |
8582 | ||
8583 | ||
8584 | for ac_header in unistd.h | |
8585 | do | |
8586 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8587 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8588 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8589 | $as_echo_n "checking for $ac_header... " >&6; } | |
8590 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8591 | $as_echo_n "(cached) " >&6 | |
8592 | fi | |
8593 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8594 | $as_echo "$as_val"'` | |
8595 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8596 | $as_echo "$ac_res" >&6; } | |
8597 | else | |
8598 | # Is the header compilable? | |
8599 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8600 | $as_echo_n "checking $ac_header usability... " >&6; } | |
8601 | cat >conftest.$ac_ext <<_ACEOF | |
8602 | /* confdefs.h. */ | |
8603 | _ACEOF | |
8604 | cat confdefs.h >>conftest.$ac_ext | |
8605 | cat >>conftest.$ac_ext <<_ACEOF | |
8606 | /* end confdefs.h. */ | |
8607 | $ac_includes_default | |
8608 | #include <$ac_header> | |
8609 | _ACEOF | |
8610 | rm -f conftest.$ac_objext | |
8611 | if { (ac_try="$ac_compile" | |
8612 | case "(($ac_try" in | |
8613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8614 | *) ac_try_echo=$ac_try;; | |
8615 | esac | |
8616 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8617 | $as_echo "$ac_try_echo") >&5 | |
8618 | (eval "$ac_compile") 2>conftest.er1 | |
8619 | ac_status=$? | |
8620 | grep -v '^ *+' conftest.er1 >conftest.err | |
8621 | rm -f conftest.er1 | |
8622 | cat conftest.err >&5 | |
8623 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8624 | (exit $ac_status); } && { | |
8625 | test -z "$ac_c_werror_flag" || | |
8626 | test ! -s conftest.err | |
8627 | } && test -s conftest.$ac_objext; then | |
8628 | ac_header_compiler=yes | |
8629 | else | |
8630 | $as_echo "$as_me: failed program was:" >&5 | |
8631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8632 | ||
8633 | ac_header_compiler=no | |
8634 | fi | |
8635 | ||
8636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8637 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8638 | $as_echo "$ac_header_compiler" >&6; } | |
8639 | ||
8640 | # Is the header present? | |
8641 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8642 | $as_echo_n "checking $ac_header presence... " >&6; } | |
8643 | cat >conftest.$ac_ext <<_ACEOF | |
8644 | /* confdefs.h. */ | |
8645 | _ACEOF | |
8646 | cat confdefs.h >>conftest.$ac_ext | |
8647 | cat >>conftest.$ac_ext <<_ACEOF | |
8648 | /* end confdefs.h. */ | |
8649 | #include <$ac_header> | |
8650 | _ACEOF | |
8651 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
8652 | case "(($ac_try" in | |
8653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8654 | *) ac_try_echo=$ac_try;; | |
8655 | esac | |
8656 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
8657 | $as_echo "$ac_try_echo") >&5 | |
8658 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
8659 | ac_status=$? | |
8660 | grep -v '^ *+' conftest.er1 >conftest.err | |
8661 | rm -f conftest.er1 | |
8662 | cat conftest.err >&5 | |
8663 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8664 | (exit $ac_status); } >/dev/null && { | |
8665 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8666 | test ! -s conftest.err | |
8667 | }; then | |
8668 | ac_header_preproc=yes | |
8669 | else | |
8670 | $as_echo "$as_me: failed program was:" >&5 | |
8671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8672 | ||
8673 | ac_header_preproc=no | |
8674 | fi | |
8675 | ||
8676 | rm -f conftest.err conftest.$ac_ext | |
8677 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8678 | $as_echo "$ac_header_preproc" >&6; } | |
8679 | ||
8680 | # So? What about this header? | |
8681 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8682 | yes:no: ) | |
8683 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8684 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8685 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8686 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8687 | ac_header_preproc=yes | |
8688 | ;; | |
8689 | no:yes:* ) | |
8690 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8691 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8692 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8693 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8694 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8695 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8696 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8697 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8698 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8699 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8700 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8701 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8702 | ||
8703 | ;; | |
8704 | esac | |
8705 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8706 | $as_echo_n "checking for $ac_header... " >&6; } | |
8707 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8708 | $as_echo_n "(cached) " >&6 | |
8709 | else | |
8710 | eval "$as_ac_Header=\$ac_header_preproc" | |
8711 | fi | |
8712 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
8713 | $as_echo "$as_val"'` | |
8714 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8715 | $as_echo "$ac_res" >&6; } | |
8716 | ||
8717 | fi | |
8718 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
8719 | $as_echo "$as_val"'` | |
8720 | if test "x$as_val" = x""yes; then | |
8721 | cat >>confdefs.h <<_ACEOF | |
8722 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ad6254c5 AK |
8723 | _ACEOF |
8724 | ||
ad6254c5 AK |
8725 | fi |
8726 | ||
d911ec67 AK |
8727 | done |
8728 | ||
8729 | { $as_echo "$as_me:$LINENO: checking for working chown" >&5 | |
8730 | $as_echo_n "checking for working chown... " >&6; } | |
8731 | if test "${ac_cv_func_chown_works+set}" = set; then | |
ec6a6fbe | 8732 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8733 | else |
8734 | if test "$cross_compiling" = yes; then | |
d911ec67 | 8735 | ac_cv_func_chown_works=no |
ad6254c5 AK |
8736 | else |
8737 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8738 | /* confdefs.h. */ |
8739 | _ACEOF | |
8740 | cat confdefs.h >>conftest.$ac_ext | |
8741 | cat >>conftest.$ac_ext <<_ACEOF | |
8742 | /* end confdefs.h. */ | |
8743 | $ac_includes_default | |
d911ec67 | 8744 | #include <fcntl.h> |
ad6254c5 AK |
8745 | |
8746 | int | |
8747 | main () | |
8748 | { | |
d911ec67 AK |
8749 | char *f = "conftest.chown"; |
8750 | struct stat before, after; | |
8751 | ||
8752 | if (creat (f, 0600) < 0) | |
8753 | return 1; | |
8754 | if (stat (f, &before) < 0) | |
8755 | return 1; | |
8756 | if (chown (f, (uid_t) -1, (gid_t) -1) == -1) | |
8757 | return 1; | |
8758 | if (stat (f, &after) < 0) | |
8759 | return 1; | |
8760 | return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); | |
8761 | ||
ad6254c5 AK |
8762 | ; |
8763 | return 0; | |
8764 | } | |
8765 | _ACEOF | |
8766 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8767 | if { (ac_try="$ac_link" |
8768 | case "(($ac_try" in | |
8769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8770 | *) ac_try_echo=$ac_try;; | |
8771 | esac | |
ec6a6fbe AK |
8772 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8773 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8774 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8775 | ac_status=$? |
ec6a6fbe | 8776 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8777 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8778 | { (case "(($ac_try" in |
8779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8780 | *) ac_try_echo=$ac_try;; | |
8781 | esac | |
ec6a6fbe AK |
8782 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8783 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8784 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8785 | ac_status=$? |
ec6a6fbe | 8786 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8787 | (exit $ac_status); }; }; then |
d911ec67 | 8788 | ac_cv_func_chown_works=yes |
ad6254c5 | 8789 | else |
ec6a6fbe AK |
8790 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8791 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8792 | sed 's/^/| /' conftest.$ac_ext >&5 |
8793 | ||
8794 | ( exit $ac_status ) | |
d911ec67 | 8795 | ac_cv_func_chown_works=no |
ad6254c5 | 8796 | fi |
ec6a6fbe | 8797 | rm -rf conftest.dSYM |
7a197a62 | 8798 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8799 | fi |
7a197a62 AK |
8800 | |
8801 | ||
d911ec67 AK |
8802 | rm -f conftest.chown |
8803 | ||
ad6254c5 | 8804 | fi |
d911ec67 AK |
8805 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5 |
8806 | $as_echo "$ac_cv_func_chown_works" >&6; } | |
8807 | if test $ac_cv_func_chown_works = yes; then | |
ad6254c5 AK |
8808 | |
8809 | cat >>confdefs.h <<\_ACEOF | |
d911ec67 | 8810 | #define HAVE_CHOWN 1 |
ad6254c5 AK |
8811 | _ACEOF |
8812 | ||
8813 | fi | |
8814 | ||
8815 | ||
7a197a62 | 8816 | for ac_header in vfork.h |
ad6254c5 | 8817 | do |
ec6a6fbe | 8818 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 8819 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
8820 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8821 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8822 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8823 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8824 | fi |
ec6a6fbe AK |
8825 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8826 | $as_echo "$as_val"'` | |
8827 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8828 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8829 | else |
8830 | # Is the header compilable? | |
ec6a6fbe AK |
8831 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8832 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 8833 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8834 | /* confdefs.h. */ |
8835 | _ACEOF | |
8836 | cat confdefs.h >>conftest.$ac_ext | |
8837 | cat >>conftest.$ac_ext <<_ACEOF | |
8838 | /* end confdefs.h. */ | |
8839 | $ac_includes_default | |
8840 | #include <$ac_header> | |
8841 | _ACEOF | |
8842 | rm -f conftest.$ac_objext | |
7a197a62 AK |
8843 | if { (ac_try="$ac_compile" |
8844 | case "(($ac_try" in | |
8845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8846 | *) ac_try_echo=$ac_try;; | |
8847 | esac | |
ec6a6fbe AK |
8848 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8849 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8850 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 8851 | ac_status=$? |
8a2fc586 AK |
8852 | grep -v '^ *+' conftest.er1 >conftest.err |
8853 | rm -f conftest.er1 | |
8854 | cat conftest.err >&5 | |
ec6a6fbe | 8855 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8856 | (exit $ac_status); } && { |
8857 | test -z "$ac_c_werror_flag" || | |
8858 | test ! -s conftest.err | |
8859 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
8860 | ac_header_compiler=yes |
8861 | else | |
ec6a6fbe | 8862 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8863 | sed 's/^/| /' conftest.$ac_ext >&5 |
8864 | ||
7a197a62 | 8865 | ac_header_compiler=no |
ad6254c5 | 8866 | fi |
7a197a62 AK |
8867 | |
8868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
8869 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8870 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
8871 | |
8872 | # Is the header present? | |
ec6a6fbe AK |
8873 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8874 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 8875 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8876 | /* confdefs.h. */ |
8877 | _ACEOF | |
8878 | cat confdefs.h >>conftest.$ac_ext | |
8879 | cat >>conftest.$ac_ext <<_ACEOF | |
8880 | /* end confdefs.h. */ | |
8881 | #include <$ac_header> | |
8882 | _ACEOF | |
7a197a62 AK |
8883 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8884 | case "(($ac_try" in | |
8885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8886 | *) ac_try_echo=$ac_try;; | |
8887 | esac | |
ec6a6fbe AK |
8888 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8889 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8890 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
8891 | ac_status=$? |
8892 | grep -v '^ *+' conftest.er1 >conftest.err | |
8893 | rm -f conftest.er1 | |
8894 | cat conftest.err >&5 | |
ec6a6fbe | 8895 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8896 | (exit $ac_status); } >/dev/null && { |
8897 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8898 | test ! -s conftest.err | |
8899 | }; then | |
ad6254c5 AK |
8900 | ac_header_preproc=yes |
8901 | else | |
ec6a6fbe | 8902 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8903 | sed 's/^/| /' conftest.$ac_ext >&5 |
8904 | ||
8905 | ac_header_preproc=no | |
8906 | fi | |
7a197a62 | 8907 | |
ad6254c5 | 8908 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
8909 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8910 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
8911 | |
8912 | # So? What about this header? | |
8a2fc586 AK |
8913 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8914 | yes:no: ) | |
ec6a6fbe AK |
8915 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8916 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8917 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8918 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 8919 | ac_header_preproc=yes |
ad6254c5 | 8920 | ;; |
8a2fc586 | 8921 | no:yes:* ) |
ec6a6fbe AK |
8922 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8923 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8924 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8925 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8926 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8927 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8928 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8929 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8930 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8931 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8932 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8933 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 8934 | |
ad6254c5 AK |
8935 | ;; |
8936 | esac | |
ec6a6fbe AK |
8937 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8938 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8939 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8940 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8941 | else |
8a2fc586 | 8942 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 8943 | fi |
ec6a6fbe AK |
8944 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8945 | $as_echo "$as_val"'` | |
8946 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8947 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 8948 | |
795ca3e5 | 8949 | fi |
ec6a6fbe AK |
8950 | as_val=`eval 'as_val=${'$as_ac_Header'} |
8951 | $as_echo "$as_val"'` | |
8952 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8953 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8954 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
8955 | _ACEOF |
8956 | ||
8957 | fi | |
8958 | ||
8959 | done | |
795ca3e5 | 8960 | |
ad6254c5 AK |
8961 | |
8962 | ||
8963 | for ac_func in fork vfork | |
8964 | do | |
ec6a6fbe AK |
8965 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8966 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8967 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8968 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8969 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 8970 | else |
ad6254c5 | 8971 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8972 | /* confdefs.h. */ |
8973 | _ACEOF | |
8974 | cat confdefs.h >>conftest.$ac_ext | |
8975 | cat >>conftest.$ac_ext <<_ACEOF | |
8976 | /* end confdefs.h. */ | |
8a2fc586 AK |
8977 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8978 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8979 | #define $ac_func innocuous_$ac_func | |
8980 | ||
ad6254c5 AK |
8981 | /* System header to define __stub macros and hopefully few prototypes, |
8982 | which can conflict with char $ac_func (); below. | |
8983 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8984 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8985 | |
ad6254c5 AK |
8986 | #ifdef __STDC__ |
8987 | # include <limits.h> | |
8988 | #else | |
8989 | # include <assert.h> | |
795ca3e5 | 8990 | #endif |
8a2fc586 AK |
8991 | |
8992 | #undef $ac_func | |
8993 | ||
7a197a62 AK |
8994 | /* Override any GCC internal prototype to avoid an error. |
8995 | Use char because int might match the return type of a GCC | |
8996 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 8997 | #ifdef __cplusplus |
ad6254c5 | 8998 | extern "C" |
ad6254c5 | 8999 | #endif |
ad6254c5 AK |
9000 | char $ac_func (); |
9001 | /* The GNU C library defines this for functions which it implements | |
9002 | to always fail with ENOSYS. Some functions are actually named | |
9003 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 9004 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 9005 | choke me |
795ca3e5 AK |
9006 | #endif |
9007 | ||
ad6254c5 AK |
9008 | int |
9009 | main () | |
9010 | { | |
7a197a62 | 9011 | return $ac_func (); |
ad6254c5 AK |
9012 | ; |
9013 | return 0; | |
9014 | } | |
9015 | _ACEOF | |
9016 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
9017 | if { (ac_try="$ac_link" |
9018 | case "(($ac_try" in | |
9019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9020 | *) ac_try_echo=$ac_try;; | |
9021 | esac | |
ec6a6fbe AK |
9022 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9023 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9024 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 9025 | ac_status=$? |
8a2fc586 AK |
9026 | grep -v '^ *+' conftest.er1 >conftest.err |
9027 | rm -f conftest.er1 | |
9028 | cat conftest.err >&5 | |
ec6a6fbe | 9029 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9030 | (exit $ac_status); } && { |
9031 | test -z "$ac_c_werror_flag" || | |
9032 | test ! -s conftest.err | |
ec6a6fbe AK |
9033 | } && test -s conftest$ac_exeext && { |
9034 | test "$cross_compiling" = yes || | |
9035 | $as_test_x conftest$ac_exeext | |
9036 | }; then | |
ad6254c5 | 9037 | eval "$as_ac_var=yes" |
795ca3e5 | 9038 | else |
ec6a6fbe | 9039 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9040 | sed 's/^/| /' conftest.$ac_ext >&5 |
9041 | ||
7a197a62 | 9042 | eval "$as_ac_var=no" |
795ca3e5 | 9043 | fi |
7a197a62 | 9044 | |
ec6a6fbe | 9045 | rm -rf conftest.dSYM |
25fbec5b | 9046 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 9047 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 9048 | fi |
ec6a6fbe AK |
9049 | ac_res=`eval 'as_val=${'$as_ac_var'} |
9050 | $as_echo "$as_val"'` | |
9051 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9052 | $as_echo "$ac_res" >&6; } | |
9053 | as_val=`eval 'as_val=${'$as_ac_var'} | |
9054 | $as_echo "$as_val"'` | |
9055 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 9056 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9057 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
9058 | _ACEOF |
9059 | ||
9060 | fi | |
9061 | done | |
9062 | ||
9063 | if test "x$ac_cv_func_fork" = xyes; then | |
ec6a6fbe AK |
9064 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
9065 | $as_echo_n "checking for working fork... " >&6; } | |
ad6254c5 | 9066 | if test "${ac_cv_func_fork_works+set}" = set; then |
ec6a6fbe | 9067 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9068 | else |
9069 | if test "$cross_compiling" = yes; then | |
9070 | ac_cv_func_fork_works=cross | |
9071 | else | |
9072 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
9073 | /* confdefs.h. */ |
9074 | _ACEOF | |
9075 | cat confdefs.h >>conftest.$ac_ext | |
9076 | cat >>conftest.$ac_ext <<_ACEOF | |
9077 | /* end confdefs.h. */ | |
9078 | $ac_includes_default | |
9079 | int | |
9080 | main () | |
9081 | { | |
9082 | ||
9083 | /* By Ruediger Kuhlmann. */ | |
9084 | return fork () < 0; | |
9085 | ||
9086 | ; | |
9087 | return 0; | |
9088 | } | |
ad6254c5 AK |
9089 | _ACEOF |
9090 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9091 | if { (ac_try="$ac_link" |
9092 | case "(($ac_try" in | |
9093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9094 | *) ac_try_echo=$ac_try;; | |
9095 | esac | |
ec6a6fbe AK |
9096 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9097 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9098 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9099 | ac_status=$? |
ec6a6fbe | 9100 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9101 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9102 | { (case "(($ac_try" in |
9103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9104 | *) ac_try_echo=$ac_try;; | |
9105 | esac | |
ec6a6fbe AK |
9106 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9107 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9108 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9109 | ac_status=$? |
ec6a6fbe | 9110 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9111 | (exit $ac_status); }; }; then |
9112 | ac_cv_func_fork_works=yes | |
9113 | else | |
ec6a6fbe AK |
9114 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9115 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9116 | sed 's/^/| /' conftest.$ac_ext >&5 |
9117 | ||
9118 | ( exit $ac_status ) | |
9119 | ac_cv_func_fork_works=no | |
9120 | fi | |
ec6a6fbe | 9121 | rm -rf conftest.dSYM |
7a197a62 | 9122 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9123 | fi |
7a197a62 AK |
9124 | |
9125 | ||
ad6254c5 | 9126 | fi |
ec6a6fbe AK |
9127 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
9128 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
9129 | |
9130 | else | |
9131 | ac_cv_func_fork_works=$ac_cv_func_fork | |
9132 | fi | |
9133 | if test "x$ac_cv_func_fork_works" = xcross; then | |
9134 | case $host in | |
9135 | *-*-amigaos* | *-*-msdosdjgpp*) | |
9136 | # Override, as these systems have only a dummy fork() stub | |
9137 | ac_cv_func_fork_works=no | |
9138 | ;; | |
9139 | *) | |
9140 | ac_cv_func_fork_works=yes | |
9141 | ;; | |
9142 | esac | |
ec6a6fbe AK |
9143 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
9144 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
9145 | fi |
9146 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
9147 | if test "x$ac_cv_func_vfork" = xyes; then | |
ec6a6fbe AK |
9148 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
9149 | $as_echo_n "checking for working vfork... " >&6; } | |
ad6254c5 | 9150 | if test "${ac_cv_func_vfork_works+set}" = set; then |
ec6a6fbe | 9151 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9152 | else |
9153 | if test "$cross_compiling" = yes; then | |
9154 | ac_cv_func_vfork_works=cross | |
9155 | else | |
9156 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9157 | /* confdefs.h. */ |
9158 | _ACEOF | |
9159 | cat confdefs.h >>conftest.$ac_ext | |
9160 | cat >>conftest.$ac_ext <<_ACEOF | |
9161 | /* end confdefs.h. */ | |
9162 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 9163 | $ac_includes_default |
ad6254c5 | 9164 | #include <sys/wait.h> |
25fbec5b | 9165 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
9166 | # include <vfork.h> |
9167 | #endif | |
9168 | /* On some sparc systems, changes by the child to local and incoming | |
9169 | argument registers are propagated back to the parent. The compiler | |
9170 | is told about this with #include <vfork.h>, but some compilers | |
9171 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
9172 | static variable whose address is put into a register that is | |
9173 | clobbered by the vfork. */ | |
9174 | static void | |
9175 | #ifdef __cplusplus | |
9176 | sparc_address_test (int arg) | |
9177 | # else | |
9178 | sparc_address_test (arg) int arg; | |
9179 | #endif | |
9180 | { | |
9181 | static pid_t child; | |
9182 | if (!child) { | |
9183 | child = vfork (); | |
9184 | if (child < 0) { | |
9185 | perror ("vfork"); | |
9186 | _exit(2); | |
9187 | } | |
9188 | if (!child) { | |
9189 | arg = getpid(); | |
9190 | write(-1, "", 0); | |
9191 | _exit (arg); | |
9192 | } | |
9193 | } | |
9194 | } | |
9195 | ||
9196 | int | |
9197 | main () | |
9198 | { | |
9199 | pid_t parent = getpid (); | |
9200 | pid_t child; | |
9201 | ||
9202 | sparc_address_test (0); | |
9203 | ||
9204 | child = vfork (); | |
9205 | ||
9206 | if (child == 0) { | |
9207 | /* Here is another test for sparc vfork register problems. This | |
9208 | test uses lots of local variables, at least as many local | |
9209 | variables as main has allocated so far including compiler | |
9210 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
9211 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
9212 | reuse the register of parent for one of the local variables, | |
9213 | since it will think that parent can't possibly be used any more | |
9214 | in this routine. Assigning to the local variable will thus | |
9215 | munge parent in the parent process. */ | |
9216 | pid_t | |
9217 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
9218 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
9219 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
9220 | use the same hardware register for all 8 local variables. */ | |
9221 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
9222 | || p != p5 || p != p6 || p != p7) | |
9223 | _exit(1); | |
9224 | ||
9225 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
9226 | from child file descriptors. If the child closes a descriptor | |
9227 | before it execs or exits, this munges the parent's descriptor | |
9228 | as well. Test for this by closing stdout in the child. */ | |
9229 | _exit(close(fileno(stdout)) != 0); | |
9230 | } else { | |
9231 | int status; | |
9232 | struct stat st; | |
9233 | ||
9234 | while (wait(&status) != child) | |
9235 | ; | |
7a197a62 | 9236 | return ( |
ad6254c5 AK |
9237 | /* Was there some problem with vforking? */ |
9238 | child < 0 | |
9239 | ||
9240 | /* Did the child fail? (This shouldn't happen.) */ | |
9241 | || status | |
9242 | ||
9243 | /* Did the vfork/compiler bug occur? */ | |
9244 | || parent != getpid() | |
9245 | ||
9246 | /* Did the file descriptor bug occur? */ | |
9247 | || fstat(fileno(stdout), &st) != 0 | |
9248 | ); | |
9249 | } | |
9250 | } | |
9251 | _ACEOF | |
9252 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9253 | if { (ac_try="$ac_link" |
9254 | case "(($ac_try" in | |
9255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9256 | *) ac_try_echo=$ac_try;; | |
9257 | esac | |
ec6a6fbe AK |
9258 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9259 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9260 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9261 | ac_status=$? |
ec6a6fbe | 9262 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9263 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9264 | { (case "(($ac_try" in |
9265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9266 | *) ac_try_echo=$ac_try;; | |
9267 | esac | |
ec6a6fbe AK |
9268 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9269 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9270 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9271 | ac_status=$? |
ec6a6fbe | 9272 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9273 | (exit $ac_status); }; }; then |
9274 | ac_cv_func_vfork_works=yes | |
9275 | else | |
ec6a6fbe AK |
9276 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9277 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9278 | sed 's/^/| /' conftest.$ac_ext >&5 |
9279 | ||
9280 | ( exit $ac_status ) | |
9281 | ac_cv_func_vfork_works=no | |
9282 | fi | |
ec6a6fbe | 9283 | rm -rf conftest.dSYM |
7a197a62 | 9284 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9285 | fi |
7a197a62 AK |
9286 | |
9287 | ||
ad6254c5 | 9288 | fi |
ec6a6fbe AK |
9289 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
9290 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
9291 | |
9292 | fi; | |
9293 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 9294 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ec6a6fbe AK |
9295 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
9296 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
9297 | fi |
9298 | ||
9299 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
9300 | ||
9301 | cat >>confdefs.h <<\_ACEOF | |
9302 | #define HAVE_WORKING_VFORK 1 | |
9303 | _ACEOF | |
9304 | ||
9305 | else | |
9306 | ||
9307 | cat >>confdefs.h <<\_ACEOF | |
9308 | #define vfork fork | |
9309 | _ACEOF | |
9310 | ||
9311 | fi | |
9312 | if test "x$ac_cv_func_fork_works" = xyes; then | |
9313 | ||
9314 | cat >>confdefs.h <<\_ACEOF | |
9315 | #define HAVE_WORKING_FORK 1 | |
9316 | _ACEOF | |
9317 | ||
9318 | fi | |
9319 | ||
ec6a6fbe AK |
9320 | { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
9321 | $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } | |
ad6254c5 | 9322 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
ec6a6fbe | 9323 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9324 | else |
9325 | rm -f conftest.sym conftest.file | |
9326 | echo >conftest.file | |
9327 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
9328 | if test "$cross_compiling" = yes; then | |
9329 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
9330 | else | |
9331 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9332 | /* confdefs.h. */ |
9333 | _ACEOF | |
9334 | cat confdefs.h >>conftest.$ac_ext | |
9335 | cat >>conftest.$ac_ext <<_ACEOF | |
9336 | /* end confdefs.h. */ | |
9337 | $ac_includes_default | |
9338 | int | |
9339 | main () | |
9340 | { | |
9341 | struct stat sbuf; | |
9342 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
9343 | That is better in the sense that it means we will not |
9344 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 9345 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
9346 | ; |
9347 | return 0; | |
9348 | } | |
9349 | _ACEOF | |
9350 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9351 | if { (ac_try="$ac_link" |
9352 | case "(($ac_try" in | |
9353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9354 | *) ac_try_echo=$ac_try;; | |
9355 | esac | |
ec6a6fbe AK |
9356 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9357 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9358 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9359 | ac_status=$? |
ec6a6fbe | 9360 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9361 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9362 | { (case "(($ac_try" in |
9363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9364 | *) ac_try_echo=$ac_try;; | |
9365 | esac | |
ec6a6fbe AK |
9366 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9367 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9368 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9369 | ac_status=$? |
ec6a6fbe | 9370 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9371 | (exit $ac_status); }; }; then |
9372 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
9373 | else | |
ec6a6fbe AK |
9374 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9375 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9376 | sed 's/^/| /' conftest.$ac_ext >&5 |
9377 | ||
9378 | ( exit $ac_status ) | |
9379 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
9380 | fi | |
ec6a6fbe | 9381 | rm -rf conftest.dSYM |
7a197a62 | 9382 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9383 | fi |
7a197a62 AK |
9384 | |
9385 | ||
ad6254c5 AK |
9386 | else |
9387 | # If the `ln -s' command failed, then we probably don't even | |
9388 | # have an lstat function. | |
9389 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
9390 | fi | |
9391 | rm -f conftest.sym conftest.file | |
9392 | ||
9393 | fi | |
ec6a6fbe AK |
9394 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
9395 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
9396 | |
9397 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
9398 | ||
9399 | cat >>confdefs.h <<_ACEOF | |
9400 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
9401 | _ACEOF | |
9402 | ||
9403 | ||
9404 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 9405 | case " $LIBOBJS " in |
8a2fc586 | 9406 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
9407 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
9408 | ;; | |
8a2fc586 AK |
9409 | esac |
9410 | ||
ad6254c5 AK |
9411 | fi |
9412 | ||
ec6a6fbe AK |
9413 | { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
9414 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
ad6254c5 | 9415 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
ec6a6fbe | 9416 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9417 | else |
9418 | if test "$cross_compiling" = yes; then | |
9419 | ac_cv_func_lstat_empty_string_bug=yes | |
9420 | else | |
9421 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9422 | /* confdefs.h. */ |
9423 | _ACEOF | |
9424 | cat confdefs.h >>conftest.$ac_ext | |
9425 | cat >>conftest.$ac_ext <<_ACEOF | |
9426 | /* end confdefs.h. */ | |
9427 | $ac_includes_default | |
9428 | int | |
9429 | main () | |
9430 | { | |
9431 | struct stat sbuf; | |
7a197a62 | 9432 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
9433 | ; |
9434 | return 0; | |
9435 | } | |
9436 | _ACEOF | |
9437 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9438 | if { (ac_try="$ac_link" |
9439 | case "(($ac_try" in | |
9440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9441 | *) ac_try_echo=$ac_try;; | |
9442 | esac | |
ec6a6fbe AK |
9443 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9444 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9445 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9446 | ac_status=$? |
ec6a6fbe | 9447 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9448 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9449 | { (case "(($ac_try" in |
9450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9451 | *) ac_try_echo=$ac_try;; | |
9452 | esac | |
ec6a6fbe AK |
9453 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9454 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9455 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9456 | ac_status=$? |
ec6a6fbe | 9457 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9458 | (exit $ac_status); }; }; then |
7a197a62 | 9459 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 9460 | else |
ec6a6fbe AK |
9461 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9462 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9463 | sed 's/^/| /' conftest.$ac_ext >&5 |
9464 | ||
9465 | ( exit $ac_status ) | |
7a197a62 | 9466 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 9467 | fi |
ec6a6fbe | 9468 | rm -rf conftest.dSYM |
7a197a62 | 9469 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9470 | fi |
7a197a62 AK |
9471 | |
9472 | ||
ad6254c5 | 9473 | fi |
ec6a6fbe AK |
9474 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
9475 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 9476 | if test $ac_cv_func_lstat_empty_string_bug = yes; 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 | |
9484 | cat >>confdefs.h <<_ACEOF | |
9485 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
9486 | _ACEOF | |
9487 | ||
9488 | fi | |
9489 | ||
9490 | ||
9491 | for ac_header in stdlib.h | |
9492 | do | |
ec6a6fbe | 9493 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9494 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
9495 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9496 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9497 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9498 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9499 | fi |
ec6a6fbe AK |
9500 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9501 | $as_echo "$as_val"'` | |
9502 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9503 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9504 | else |
9505 | # Is the header compilable? | |
ec6a6fbe AK |
9506 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9507 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 9508 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9509 | /* confdefs.h. */ |
9510 | _ACEOF | |
9511 | cat confdefs.h >>conftest.$ac_ext | |
9512 | cat >>conftest.$ac_ext <<_ACEOF | |
9513 | /* end confdefs.h. */ | |
9514 | $ac_includes_default | |
9515 | #include <$ac_header> | |
9516 | _ACEOF | |
9517 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9518 | if { (ac_try="$ac_compile" |
9519 | case "(($ac_try" in | |
9520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9521 | *) ac_try_echo=$ac_try;; | |
9522 | esac | |
ec6a6fbe AK |
9523 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9524 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9525 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9526 | ac_status=$? |
8a2fc586 AK |
9527 | grep -v '^ *+' conftest.er1 >conftest.err |
9528 | rm -f conftest.er1 | |
9529 | cat conftest.err >&5 | |
ec6a6fbe | 9530 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9531 | (exit $ac_status); } && { |
9532 | test -z "$ac_c_werror_flag" || | |
9533 | test ! -s conftest.err | |
9534 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9535 | ac_header_compiler=yes |
9536 | else | |
ec6a6fbe | 9537 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9538 | sed 's/^/| /' conftest.$ac_ext >&5 |
9539 | ||
7a197a62 | 9540 | ac_header_compiler=no |
ad6254c5 | 9541 | fi |
7a197a62 AK |
9542 | |
9543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
9544 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9545 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9546 | |
9547 | # Is the header present? | |
ec6a6fbe AK |
9548 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9549 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 9550 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9551 | /* confdefs.h. */ |
9552 | _ACEOF | |
9553 | cat confdefs.h >>conftest.$ac_ext | |
9554 | cat >>conftest.$ac_ext <<_ACEOF | |
9555 | /* end confdefs.h. */ | |
9556 | #include <$ac_header> | |
9557 | _ACEOF | |
7a197a62 AK |
9558 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9559 | case "(($ac_try" in | |
9560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9561 | *) ac_try_echo=$ac_try;; | |
9562 | esac | |
ec6a6fbe AK |
9563 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9564 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9565 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9566 | ac_status=$? |
9567 | grep -v '^ *+' conftest.er1 >conftest.err | |
9568 | rm -f conftest.er1 | |
9569 | cat conftest.err >&5 | |
ec6a6fbe | 9570 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9571 | (exit $ac_status); } >/dev/null && { |
9572 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9573 | test ! -s conftest.err | |
9574 | }; then | |
ad6254c5 AK |
9575 | ac_header_preproc=yes |
9576 | else | |
ec6a6fbe | 9577 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9578 | sed 's/^/| /' conftest.$ac_ext >&5 |
9579 | ||
9580 | ac_header_preproc=no | |
9581 | fi | |
7a197a62 | 9582 | |
ad6254c5 | 9583 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
9584 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9585 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9586 | |
9587 | # So? What about this header? | |
8a2fc586 AK |
9588 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9589 | yes:no: ) | |
ec6a6fbe AK |
9590 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9591 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9592 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9593 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9594 | ac_header_preproc=yes |
ad6254c5 | 9595 | ;; |
8a2fc586 | 9596 | no:yes:* ) |
ec6a6fbe AK |
9597 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9598 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9599 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9600 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9601 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9602 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9603 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9604 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9605 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9606 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9607 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9608 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9609 | |
ad6254c5 AK |
9610 | ;; |
9611 | esac | |
ec6a6fbe AK |
9612 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9613 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9614 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9615 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9616 | else |
8a2fc586 | 9617 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9618 | fi |
ec6a6fbe AK |
9619 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9620 | $as_echo "$as_val"'` | |
9621 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9622 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9623 | |
9624 | fi | |
ec6a6fbe AK |
9625 | as_val=`eval 'as_val=${'$as_ac_Header'} |
9626 | $as_echo "$as_val"'` | |
9627 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 9628 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9629 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
9630 | _ACEOF |
9631 | ||
9632 | fi | |
9633 | ||
9634 | done | |
9635 | ||
ec6a6fbe AK |
9636 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
9637 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
ad6254c5 | 9638 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
ec6a6fbe | 9639 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9640 | else |
9641 | if test "$cross_compiling" = yes; then | |
9642 | ac_cv_func_malloc_0_nonnull=no | |
9643 | else | |
9644 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9645 | /* confdefs.h. */ |
9646 | _ACEOF | |
9647 | cat confdefs.h >>conftest.$ac_ext | |
9648 | cat >>conftest.$ac_ext <<_ACEOF | |
9649 | /* end confdefs.h. */ | |
25fbec5b | 9650 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
9651 | # include <stdlib.h> |
9652 | #else | |
9653 | char *malloc (); | |
9654 | #endif | |
9655 | ||
9656 | int | |
9657 | main () | |
9658 | { | |
7a197a62 | 9659 | return ! malloc (0); |
ad6254c5 AK |
9660 | ; |
9661 | return 0; | |
9662 | } | |
9663 | _ACEOF | |
9664 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9665 | if { (ac_try="$ac_link" |
9666 | case "(($ac_try" in | |
9667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9668 | *) ac_try_echo=$ac_try;; | |
9669 | esac | |
ec6a6fbe AK |
9670 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9671 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9672 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9673 | ac_status=$? |
ec6a6fbe | 9674 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9675 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9676 | { (case "(($ac_try" in |
9677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9678 | *) ac_try_echo=$ac_try;; | |
9679 | esac | |
ec6a6fbe AK |
9680 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9681 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9682 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9683 | ac_status=$? |
ec6a6fbe | 9684 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9685 | (exit $ac_status); }; }; then |
9686 | ac_cv_func_malloc_0_nonnull=yes | |
9687 | else | |
ec6a6fbe AK |
9688 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9689 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9690 | sed 's/^/| /' conftest.$ac_ext >&5 |
9691 | ||
9692 | ( exit $ac_status ) | |
9693 | ac_cv_func_malloc_0_nonnull=no | |
9694 | fi | |
ec6a6fbe | 9695 | rm -rf conftest.dSYM |
7a197a62 | 9696 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9697 | fi |
7a197a62 AK |
9698 | |
9699 | ||
ad6254c5 | 9700 | fi |
ec6a6fbe AK |
9701 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
9702 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
9703 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
9704 | ||
9705 | cat >>confdefs.h <<\_ACEOF | |
9706 | #define HAVE_MALLOC 1 | |
9707 | _ACEOF | |
9708 | ||
9709 | else | |
9710 | cat >>confdefs.h <<\_ACEOF | |
9711 | #define HAVE_MALLOC 0 | |
9712 | _ACEOF | |
9713 | ||
7a197a62 | 9714 | case " $LIBOBJS " in |
8a2fc586 | 9715 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
9716 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
9717 | ;; | |
8a2fc586 AK |
9718 | esac |
9719 | ||
ad6254c5 AK |
9720 | |
9721 | cat >>confdefs.h <<\_ACEOF | |
9722 | #define malloc rpl_malloc | |
9723 | _ACEOF | |
9724 | ||
9725 | fi | |
9726 | ||
9727 | ||
9728 | ||
ec6a6fbe AK |
9729 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
9730 | $as_echo_n "checking for working memcmp... " >&6; } | |
ad6254c5 | 9731 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
ec6a6fbe | 9732 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9733 | else |
9734 | if test "$cross_compiling" = yes; then | |
9735 | ac_cv_func_memcmp_working=no | |
9736 | else | |
9737 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9738 | /* confdefs.h. */ |
9739 | _ACEOF | |
9740 | cat confdefs.h >>conftest.$ac_ext | |
9741 | cat >>conftest.$ac_ext <<_ACEOF | |
9742 | /* end confdefs.h. */ | |
8a2fc586 | 9743 | $ac_includes_default |
ad6254c5 AK |
9744 | int |
9745 | main () | |
9746 | { | |
9747 | ||
9748 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 9749 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 9750 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 9751 | return 1; |
ad6254c5 AK |
9752 | |
9753 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
9754 | or more and with at least one buffer not starting on a 4-byte boundary. | |
9755 | William Lewis provided this test program. */ | |
9756 | { | |
9757 | char foo[21]; | |
9758 | char bar[21]; | |
9759 | int i; | |
9760 | for (i = 0; i < 4; i++) | |
9761 | { | |
8a2fc586 AK |
9762 | char *a = foo + i; |
9763 | char *b = bar + i; | |
9764 | strcpy (a, "--------01111111"); | |
9765 | strcpy (b, "--------10000000"); | |
9766 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 9767 | return 1; |
ad6254c5 | 9768 | } |
7a197a62 | 9769 | return 0; |
ad6254c5 AK |
9770 | } |
9771 | ||
9772 | ; | |
9773 | return 0; | |
9774 | } | |
9775 | _ACEOF | |
9776 | rm -f conftest$ac_exeext | |
7a197a62 AK |
9777 | if { (ac_try="$ac_link" |
9778 | case "(($ac_try" in | |
9779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9780 | *) ac_try_echo=$ac_try;; | |
9781 | esac | |
ec6a6fbe AK |
9782 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9783 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9784 | (eval "$ac_link") 2>&5 |
ad6254c5 | 9785 | ac_status=$? |
ec6a6fbe | 9786 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 9787 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
9788 | { (case "(($ac_try" in |
9789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9790 | *) ac_try_echo=$ac_try;; | |
9791 | esac | |
ec6a6fbe AK |
9792 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9793 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9794 | (eval "$ac_try") 2>&5 |
ad6254c5 | 9795 | ac_status=$? |
ec6a6fbe | 9796 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
9797 | (exit $ac_status); }; }; then |
9798 | ac_cv_func_memcmp_working=yes | |
9799 | else | |
ec6a6fbe AK |
9800 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
9801 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
9802 | sed 's/^/| /' conftest.$ac_ext >&5 |
9803 | ||
9804 | ( exit $ac_status ) | |
9805 | ac_cv_func_memcmp_working=no | |
9806 | fi | |
ec6a6fbe | 9807 | rm -rf conftest.dSYM |
7a197a62 | 9808 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 9809 | fi |
7a197a62 AK |
9810 | |
9811 | ||
ad6254c5 | 9812 | fi |
ec6a6fbe AK |
9813 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
9814 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 9815 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 9816 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
9817 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
9818 | ;; | |
8a2fc586 AK |
9819 | esac |
9820 | ||
ad6254c5 AK |
9821 | |
9822 | ||
9823 | ||
9824 | for ac_header in stdlib.h unistd.h | |
9825 | do | |
ec6a6fbe | 9826 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 9827 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
9828 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9829 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9830 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9831 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9832 | fi |
ec6a6fbe AK |
9833 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9834 | $as_echo "$as_val"'` | |
9835 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9836 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9837 | else |
9838 | # Is the header compilable? | |
ec6a6fbe AK |
9839 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9840 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 9841 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9842 | /* confdefs.h. */ |
9843 | _ACEOF | |
9844 | cat confdefs.h >>conftest.$ac_ext | |
9845 | cat >>conftest.$ac_ext <<_ACEOF | |
9846 | /* end confdefs.h. */ | |
9847 | $ac_includes_default | |
9848 | #include <$ac_header> | |
9849 | _ACEOF | |
9850 | rm -f conftest.$ac_objext | |
7a197a62 AK |
9851 | if { (ac_try="$ac_compile" |
9852 | case "(($ac_try" in | |
9853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9854 | *) ac_try_echo=$ac_try;; | |
9855 | esac | |
ec6a6fbe AK |
9856 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9857 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9858 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 9859 | ac_status=$? |
8a2fc586 AK |
9860 | grep -v '^ *+' conftest.er1 >conftest.err |
9861 | rm -f conftest.er1 | |
9862 | cat conftest.err >&5 | |
ec6a6fbe | 9863 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9864 | (exit $ac_status); } && { |
9865 | test -z "$ac_c_werror_flag" || | |
9866 | test ! -s conftest.err | |
9867 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
9868 | ac_header_compiler=yes |
9869 | else | |
ec6a6fbe | 9870 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9871 | sed 's/^/| /' conftest.$ac_ext >&5 |
9872 | ||
7a197a62 | 9873 | ac_header_compiler=no |
ad6254c5 | 9874 | fi |
7a197a62 AK |
9875 | |
9876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
9877 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9878 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
9879 | |
9880 | # Is the header present? | |
ec6a6fbe AK |
9881 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9882 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 9883 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
9884 | /* confdefs.h. */ |
9885 | _ACEOF | |
9886 | cat confdefs.h >>conftest.$ac_ext | |
9887 | cat >>conftest.$ac_ext <<_ACEOF | |
9888 | /* end confdefs.h. */ | |
9889 | #include <$ac_header> | |
9890 | _ACEOF | |
7a197a62 AK |
9891 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9892 | case "(($ac_try" in | |
9893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9894 | *) ac_try_echo=$ac_try;; | |
9895 | esac | |
ec6a6fbe AK |
9896 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9897 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 9898 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
9899 | ac_status=$? |
9900 | grep -v '^ *+' conftest.er1 >conftest.err | |
9901 | rm -f conftest.er1 | |
9902 | cat conftest.err >&5 | |
ec6a6fbe | 9903 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
9904 | (exit $ac_status); } >/dev/null && { |
9905 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9906 | test ! -s conftest.err | |
9907 | }; then | |
ad6254c5 AK |
9908 | ac_header_preproc=yes |
9909 | else | |
ec6a6fbe | 9910 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
9911 | sed 's/^/| /' conftest.$ac_ext >&5 |
9912 | ||
9913 | ac_header_preproc=no | |
9914 | fi | |
7a197a62 | 9915 | |
ad6254c5 | 9916 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
9917 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9918 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
9919 | |
9920 | # So? What about this header? | |
8a2fc586 AK |
9921 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9922 | yes:no: ) | |
ec6a6fbe AK |
9923 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9924 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9925 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9926 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 9927 | ac_header_preproc=yes |
ad6254c5 | 9928 | ;; |
8a2fc586 | 9929 | no:yes:* ) |
ec6a6fbe AK |
9930 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9931 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9932 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9933 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9934 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9935 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9936 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9937 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9938 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9939 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9940 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9941 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 9942 | |
ad6254c5 AK |
9943 | ;; |
9944 | esac | |
ec6a6fbe AK |
9945 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9946 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 9947 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9948 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9949 | else |
8a2fc586 | 9950 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 9951 | fi |
ec6a6fbe AK |
9952 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9953 | $as_echo "$as_val"'` | |
9954 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9955 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
9956 | |
9957 | fi | |
ec6a6fbe AK |
9958 | as_val=`eval 'as_val=${'$as_ac_Header'} |
9959 | $as_echo "$as_val"'` | |
9960 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 9961 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9962 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
9963 | _ACEOF |
9964 | ||
9965 | fi | |
9966 | ||
9967 | done | |
9968 | ||
9969 | ||
9970 | for ac_func in getpagesize | |
9971 | do | |
ec6a6fbe AK |
9972 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9973 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9974 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 9975 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 9976 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
9977 | else |
9978 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
9979 | /* confdefs.h. */ |
9980 | _ACEOF | |
9981 | cat confdefs.h >>conftest.$ac_ext | |
9982 | cat >>conftest.$ac_ext <<_ACEOF | |
9983 | /* end confdefs.h. */ | |
8a2fc586 AK |
9984 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9985 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9986 | #define $ac_func innocuous_$ac_func | |
9987 | ||
ad6254c5 AK |
9988 | /* System header to define __stub macros and hopefully few prototypes, |
9989 | which can conflict with char $ac_func (); below. | |
9990 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9991 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 9992 | |
ad6254c5 AK |
9993 | #ifdef __STDC__ |
9994 | # include <limits.h> | |
9995 | #else | |
9996 | # include <assert.h> | |
9997 | #endif | |
8a2fc586 AK |
9998 | |
9999 | #undef $ac_func | |
10000 | ||
7a197a62 AK |
10001 | /* Override any GCC internal prototype to avoid an error. |
10002 | Use char because int might match the return type of a GCC | |
10003 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10004 | #ifdef __cplusplus |
10005 | extern "C" | |
ad6254c5 | 10006 | #endif |
ad6254c5 AK |
10007 | char $ac_func (); |
10008 | /* The GNU C library defines this for functions which it implements | |
10009 | to always fail with ENOSYS. Some functions are actually named | |
10010 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10011 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 10012 | choke me |
ad6254c5 AK |
10013 | #endif |
10014 | ||
10015 | int | |
10016 | main () | |
10017 | { | |
7a197a62 | 10018 | return $ac_func (); |
ad6254c5 AK |
10019 | ; |
10020 | return 0; | |
10021 | } | |
10022 | _ACEOF | |
10023 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10024 | if { (ac_try="$ac_link" |
10025 | case "(($ac_try" in | |
10026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10027 | *) ac_try_echo=$ac_try;; | |
10028 | esac | |
ec6a6fbe AK |
10029 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10030 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10031 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10032 | ac_status=$? |
8a2fc586 AK |
10033 | grep -v '^ *+' conftest.er1 >conftest.err |
10034 | rm -f conftest.er1 | |
10035 | cat conftest.err >&5 | |
ec6a6fbe | 10036 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10037 | (exit $ac_status); } && { |
10038 | test -z "$ac_c_werror_flag" || | |
10039 | test ! -s conftest.err | |
ec6a6fbe AK |
10040 | } && test -s conftest$ac_exeext && { |
10041 | test "$cross_compiling" = yes || | |
10042 | $as_test_x conftest$ac_exeext | |
10043 | }; then | |
ad6254c5 AK |
10044 | eval "$as_ac_var=yes" |
10045 | else | |
ec6a6fbe | 10046 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10047 | sed 's/^/| /' conftest.$ac_ext >&5 |
10048 | ||
7a197a62 | 10049 | eval "$as_ac_var=no" |
ad6254c5 | 10050 | fi |
7a197a62 | 10051 | |
ec6a6fbe | 10052 | rm -rf conftest.dSYM |
25fbec5b | 10053 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10054 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10055 | fi |
ec6a6fbe AK |
10056 | ac_res=`eval 'as_val=${'$as_ac_var'} |
10057 | $as_echo "$as_val"'` | |
10058 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10059 | $as_echo "$ac_res" >&6; } | |
10060 | as_val=`eval 'as_val=${'$as_ac_var'} | |
10061 | $as_echo "$as_val"'` | |
10062 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 10063 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10064 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
10065 | _ACEOF |
10066 | ||
10067 | fi | |
10068 | done | |
10069 | ||
ec6a6fbe AK |
10070 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
10071 | $as_echo_n "checking for working mmap... " >&6; } | |
ad6254c5 | 10072 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
ec6a6fbe | 10073 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10074 | else |
10075 | if test "$cross_compiling" = yes; then | |
10076 | ac_cv_func_mmap_fixed_mapped=no | |
10077 | else | |
10078 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10079 | /* confdefs.h. */ |
10080 | _ACEOF | |
10081 | cat confdefs.h >>conftest.$ac_ext | |
10082 | cat >>conftest.$ac_ext <<_ACEOF | |
10083 | /* end confdefs.h. */ | |
10084 | $ac_includes_default | |
10085 | /* malloc might have been renamed as rpl_malloc. */ | |
10086 | #undef malloc | |
10087 | ||
10088 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
10089 | Here is a matrix of mmap possibilities: | |
10090 | mmap private not fixed | |
10091 | mmap private fixed at somewhere currently unmapped | |
10092 | mmap private fixed at somewhere already mapped | |
10093 | mmap shared not fixed | |
10094 | mmap shared fixed at somewhere currently unmapped | |
10095 | mmap shared fixed at somewhere already mapped | |
10096 | For private mappings, we should verify that changes cannot be read() | |
10097 | back from the file, nor mmap's back from the file at a different | |
10098 | address. (There have been systems where private was not correctly | |
10099 | implemented like the infamous i386 svr4.0, and systems where the | |
10100 | VM page cache was not coherent with the file system buffer cache | |
10101 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
10102 | For shared mappings, we should conversely verify that changes get | |
10103 | propagated back to all the places they're supposed to be. | |
10104 | ||
10105 | Grep wants private fixed already mapped. | |
10106 | The main things grep needs to know about mmap are: | |
10107 | * does it exist and is it safe to write into the mmap'd area | |
10108 | * how to use it (BSD variants) */ | |
10109 | ||
10110 | #include <fcntl.h> | |
10111 | #include <sys/mman.h> | |
10112 | ||
25fbec5b | 10113 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
10114 | char *malloc (); |
10115 | #endif | |
10116 | ||
10117 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 10118 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 10119 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 10120 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
10121 | # define HAVE_SYS_PARAM_H 1 |
10122 | # endif | |
10123 | ||
10124 | # ifdef _SC_PAGESIZE | |
10125 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
10126 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 10127 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
10128 | # include <sys/param.h> |
10129 | # ifdef EXEC_PAGESIZE | |
10130 | # define getpagesize() EXEC_PAGESIZE | |
10131 | # else /* no EXEC_PAGESIZE */ | |
10132 | # ifdef NBPG | |
10133 | # define getpagesize() NBPG * CLSIZE | |
10134 | # ifndef CLSIZE | |
10135 | # define CLSIZE 1 | |
10136 | # endif /* no CLSIZE */ | |
10137 | # else /* no NBPG */ | |
10138 | # ifdef NBPC | |
10139 | # define getpagesize() NBPC | |
10140 | # else /* no NBPC */ | |
10141 | # ifdef PAGESIZE | |
10142 | # define getpagesize() PAGESIZE | |
10143 | # endif /* PAGESIZE */ | |
10144 | # endif /* no NBPC */ | |
10145 | # endif /* no NBPG */ | |
10146 | # endif /* no EXEC_PAGESIZE */ | |
10147 | # else /* no HAVE_SYS_PARAM_H */ | |
10148 | # define getpagesize() 8192 /* punt totally */ | |
10149 | # endif /* no HAVE_SYS_PARAM_H */ | |
10150 | # endif /* no _SC_PAGESIZE */ | |
10151 | ||
10152 | #endif /* no HAVE_GETPAGESIZE */ | |
10153 | ||
10154 | int | |
10155 | main () | |
10156 | { | |
10157 | char *data, *data2, *data3; | |
10158 | int i, pagesize; | |
10159 | int fd; | |
10160 | ||
10161 | pagesize = getpagesize (); | |
10162 | ||
10163 | /* First, make a file with some known garbage in it. */ | |
10164 | data = (char *) malloc (pagesize); | |
10165 | if (!data) | |
7a197a62 | 10166 | return 1; |
ad6254c5 AK |
10167 | for (i = 0; i < pagesize; ++i) |
10168 | *(data + i) = rand (); | |
10169 | umask (0); | |
10170 | fd = creat ("conftest.mmap", 0600); | |
10171 | if (fd < 0) | |
7a197a62 | 10172 | return 1; |
ad6254c5 | 10173 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 10174 | return 1; |
ad6254c5 AK |
10175 | close (fd); |
10176 | ||
10177 | /* Next, try to mmap the file at a fixed address which already has | |
10178 | something else allocated at it. If we can, also make sure that | |
10179 | we see the same garbage. */ | |
10180 | fd = open ("conftest.mmap", O_RDWR); | |
10181 | if (fd < 0) | |
7a197a62 | 10182 | return 1; |
ad6254c5 AK |
10183 | data2 = (char *) malloc (2 * pagesize); |
10184 | if (!data2) | |
7a197a62 AK |
10185 | return 1; |
10186 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 10187 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 10188 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 10189 | return 1; |
ad6254c5 AK |
10190 | for (i = 0; i < pagesize; ++i) |
10191 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 10192 | return 1; |
ad6254c5 | 10193 | |
d911ec67 AK |
10194 | /* Finally, make sure that changes to the mapped area do not |
10195 | percolate back to the file as seen by read(). (This is a bug on | |
10196 | some variants of i386 svr4.0.) */ | |
10197 | for (i = 0; i < pagesize; ++i) | |
10198 | *(data2 + i) = *(data2 + i) + 1; | |
10199 | data3 = (char *) malloc (pagesize); | |
10200 | if (!data3) | |
10201 | return 1; | |
10202 | if (read (fd, data3, pagesize) != pagesize) | |
10203 | return 1; | |
10204 | for (i = 0; i < pagesize; ++i) | |
10205 | if (*(data + i) != *(data3 + i)) | |
10206 | return 1; | |
10207 | close (fd); | |
10208 | return 0; | |
10209 | } | |
10210 | _ACEOF | |
10211 | rm -f conftest$ac_exeext | |
10212 | if { (ac_try="$ac_link" | |
10213 | case "(($ac_try" in | |
10214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10215 | *) ac_try_echo=$ac_try;; | |
10216 | esac | |
10217 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10218 | $as_echo "$ac_try_echo") >&5 | |
10219 | (eval "$ac_link") 2>&5 | |
10220 | ac_status=$? | |
10221 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10222 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
10223 | { (case "(($ac_try" in | |
10224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10225 | *) ac_try_echo=$ac_try;; | |
10226 | esac | |
10227 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10228 | $as_echo "$ac_try_echo") >&5 | |
10229 | (eval "$ac_try") 2>&5 | |
10230 | ac_status=$? | |
10231 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10232 | (exit $ac_status); }; }; then | |
10233 | ac_cv_func_mmap_fixed_mapped=yes | |
10234 | else | |
10235 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
10236 | $as_echo "$as_me: failed program was:" >&5 | |
10237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10238 | ||
10239 | ( exit $ac_status ) | |
10240 | ac_cv_func_mmap_fixed_mapped=no | |
10241 | fi | |
10242 | rm -rf conftest.dSYM | |
10243 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
10244 | fi | |
10245 | ||
10246 | ||
10247 | fi | |
10248 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
10249 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
10250 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
10251 | ||
10252 | cat >>confdefs.h <<\_ACEOF | |
10253 | #define HAVE_MMAP 1 | |
10254 | _ACEOF | |
10255 | ||
10256 | fi | |
10257 | rm -f conftest.mmap | |
10258 | ||
10259 | ||
10260 | for ac_header in stdlib.h | |
10261 | do | |
10262 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10263 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10264 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10265 | $as_echo_n "checking for $ac_header... " >&6; } | |
10266 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10267 | $as_echo_n "(cached) " >&6 | |
10268 | fi | |
10269 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10270 | $as_echo "$as_val"'` | |
10271 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10272 | $as_echo "$ac_res" >&6; } | |
10273 | else | |
10274 | # Is the header compilable? | |
10275 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10276 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10277 | cat >conftest.$ac_ext <<_ACEOF | |
10278 | /* confdefs.h. */ | |
10279 | _ACEOF | |
10280 | cat confdefs.h >>conftest.$ac_ext | |
10281 | cat >>conftest.$ac_ext <<_ACEOF | |
10282 | /* end confdefs.h. */ | |
10283 | $ac_includes_default | |
10284 | #include <$ac_header> | |
10285 | _ACEOF | |
10286 | rm -f conftest.$ac_objext | |
10287 | if { (ac_try="$ac_compile" | |
10288 | case "(($ac_try" in | |
10289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10290 | *) ac_try_echo=$ac_try;; | |
10291 | esac | |
10292 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10293 | $as_echo "$ac_try_echo") >&5 | |
10294 | (eval "$ac_compile") 2>conftest.er1 | |
10295 | ac_status=$? | |
10296 | grep -v '^ *+' conftest.er1 >conftest.err | |
10297 | rm -f conftest.er1 | |
10298 | cat conftest.err >&5 | |
10299 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10300 | (exit $ac_status); } && { | |
10301 | test -z "$ac_c_werror_flag" || | |
10302 | test ! -s conftest.err | |
10303 | } && test -s conftest.$ac_objext; then | |
10304 | ac_header_compiler=yes | |
10305 | else | |
10306 | $as_echo "$as_me: failed program was:" >&5 | |
10307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10308 | ||
10309 | ac_header_compiler=no | |
10310 | fi | |
10311 | ||
10312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10313 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10314 | $as_echo "$ac_header_compiler" >&6; } | |
10315 | ||
10316 | # Is the header present? | |
10317 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10318 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10319 | cat >conftest.$ac_ext <<_ACEOF | |
10320 | /* confdefs.h. */ | |
10321 | _ACEOF | |
10322 | cat confdefs.h >>conftest.$ac_ext | |
10323 | cat >>conftest.$ac_ext <<_ACEOF | |
10324 | /* end confdefs.h. */ | |
10325 | #include <$ac_header> | |
10326 | _ACEOF | |
10327 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10328 | case "(($ac_try" in | |
10329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10330 | *) ac_try_echo=$ac_try;; | |
10331 | esac | |
10332 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10333 | $as_echo "$ac_try_echo") >&5 | |
10334 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10335 | ac_status=$? | |
10336 | grep -v '^ *+' conftest.er1 >conftest.err | |
10337 | rm -f conftest.er1 | |
10338 | cat conftest.err >&5 | |
10339 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10340 | (exit $ac_status); } >/dev/null && { | |
10341 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10342 | test ! -s conftest.err | |
10343 | }; then | |
10344 | ac_header_preproc=yes | |
10345 | else | |
10346 | $as_echo "$as_me: failed program was:" >&5 | |
10347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10348 | ||
10349 | ac_header_preproc=no | |
10350 | fi | |
10351 | ||
10352 | rm -f conftest.err conftest.$ac_ext | |
10353 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10354 | $as_echo "$ac_header_preproc" >&6; } | |
10355 | ||
10356 | # So? What about this header? | |
10357 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10358 | yes:no: ) | |
10359 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10360 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10361 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10362 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10363 | ac_header_preproc=yes | |
10364 | ;; | |
10365 | no:yes:* ) | |
10366 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10367 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10368 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10369 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10370 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10371 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10372 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10373 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10374 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10375 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10376 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10377 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10378 | ||
10379 | ;; | |
10380 | esac | |
10381 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10382 | $as_echo_n "checking for $ac_header... " >&6; } | |
10383 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10384 | $as_echo_n "(cached) " >&6 | |
10385 | else | |
10386 | eval "$as_ac_Header=\$ac_header_preproc" | |
10387 | fi | |
10388 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10389 | $as_echo "$as_val"'` | |
10390 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10391 | $as_echo "$ac_res" >&6; } | |
10392 | ||
10393 | fi | |
10394 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10395 | $as_echo "$as_val"'` | |
10396 | if test "x$as_val" = x""yes; then | |
10397 | cat >>confdefs.h <<_ACEOF | |
10398 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10399 | _ACEOF | |
10400 | ||
10401 | fi | |
10402 | ||
10403 | done | |
10404 | ||
10405 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 | |
10406 | $as_echo_n "checking for GNU libc compatible realloc... " >&6; } | |
10407 | if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then | |
10408 | $as_echo_n "(cached) " >&6 | |
10409 | else | |
10410 | if test "$cross_compiling" = yes; then | |
10411 | ac_cv_func_realloc_0_nonnull=no | |
10412 | else | |
10413 | cat >conftest.$ac_ext <<_ACEOF | |
10414 | /* confdefs.h. */ | |
10415 | _ACEOF | |
10416 | cat confdefs.h >>conftest.$ac_ext | |
10417 | cat >>conftest.$ac_ext <<_ACEOF | |
10418 | /* end confdefs.h. */ | |
10419 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | |
10420 | # include <stdlib.h> | |
10421 | #else | |
10422 | char *realloc (); | |
10423 | #endif | |
10424 | ||
10425 | int | |
10426 | main () | |
10427 | { | |
10428 | return ! realloc (0, 0); | |
10429 | ; | |
7a197a62 | 10430 | return 0; |
ad6254c5 AK |
10431 | } |
10432 | _ACEOF | |
10433 | rm -f conftest$ac_exeext | |
7a197a62 AK |
10434 | if { (ac_try="$ac_link" |
10435 | case "(($ac_try" in | |
10436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10437 | *) ac_try_echo=$ac_try;; | |
10438 | esac | |
ec6a6fbe AK |
10439 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10440 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10441 | (eval "$ac_link") 2>&5 |
ad6254c5 | 10442 | ac_status=$? |
ec6a6fbe | 10443 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10444 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
10445 | { (case "(($ac_try" in |
10446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10447 | *) ac_try_echo=$ac_try;; | |
10448 | esac | |
ec6a6fbe AK |
10449 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10450 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10451 | (eval "$ac_try") 2>&5 |
ad6254c5 | 10452 | ac_status=$? |
ec6a6fbe | 10453 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10454 | (exit $ac_status); }; }; then |
d911ec67 | 10455 | ac_cv_func_realloc_0_nonnull=yes |
ad6254c5 | 10456 | else |
ec6a6fbe AK |
10457 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
10458 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
10459 | sed 's/^/| /' conftest.$ac_ext >&5 |
10460 | ||
10461 | ( exit $ac_status ) | |
d911ec67 | 10462 | ac_cv_func_realloc_0_nonnull=no |
ad6254c5 | 10463 | fi |
ec6a6fbe | 10464 | rm -rf conftest.dSYM |
7a197a62 | 10465 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 10466 | fi |
7a197a62 AK |
10467 | |
10468 | ||
ad6254c5 | 10469 | fi |
d911ec67 AK |
10470 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 |
10471 | $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } | |
10472 | if test $ac_cv_func_realloc_0_nonnull = yes; then | |
ad6254c5 AK |
10473 | |
10474 | cat >>confdefs.h <<\_ACEOF | |
d911ec67 AK |
10475 | #define HAVE_REALLOC 1 |
10476 | _ACEOF | |
10477 | ||
10478 | else | |
10479 | cat >>confdefs.h <<\_ACEOF | |
10480 | #define HAVE_REALLOC 0 | |
10481 | _ACEOF | |
10482 | ||
10483 | case " $LIBOBJS " in | |
10484 | *" realloc.$ac_objext "* ) ;; | |
10485 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" | |
10486 | ;; | |
10487 | esac | |
10488 | ||
10489 | ||
10490 | cat >>confdefs.h <<\_ACEOF | |
10491 | #define realloc rpl_realloc | |
ad6254c5 AK |
10492 | _ACEOF |
10493 | ||
10494 | fi | |
d911ec67 AK |
10495 | |
10496 | ||
ad6254c5 | 10497 | |
ec6a6fbe AK |
10498 | { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
10499 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
ad6254c5 | 10500 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
ec6a6fbe | 10501 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10502 | else |
10503 | if test "$cross_compiling" = yes; then | |
10504 | ac_cv_func_stat_empty_string_bug=yes | |
10505 | else | |
10506 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10507 | /* confdefs.h. */ |
10508 | _ACEOF | |
10509 | cat confdefs.h >>conftest.$ac_ext | |
10510 | cat >>conftest.$ac_ext <<_ACEOF | |
10511 | /* end confdefs.h. */ | |
10512 | $ac_includes_default | |
10513 | int | |
10514 | main () | |
10515 | { | |
10516 | struct stat sbuf; | |
7a197a62 | 10517 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
10518 | ; |
10519 | return 0; | |
10520 | } | |
10521 | _ACEOF | |
10522 | rm -f conftest$ac_exeext | |
7a197a62 AK |
10523 | if { (ac_try="$ac_link" |
10524 | case "(($ac_try" in | |
10525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10526 | *) ac_try_echo=$ac_try;; | |
10527 | esac | |
ec6a6fbe AK |
10528 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10529 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10530 | (eval "$ac_link") 2>&5 |
ad6254c5 | 10531 | ac_status=$? |
ec6a6fbe | 10532 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10533 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
10534 | { (case "(($ac_try" in |
10535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10536 | *) ac_try_echo=$ac_try;; | |
10537 | esac | |
ec6a6fbe AK |
10538 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10539 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10540 | (eval "$ac_try") 2>&5 |
ad6254c5 | 10541 | ac_status=$? |
ec6a6fbe | 10542 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10543 | (exit $ac_status); }; }; then |
7a197a62 | 10544 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 10545 | else |
ec6a6fbe AK |
10546 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
10547 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
10548 | sed 's/^/| /' conftest.$ac_ext >&5 |
10549 | ||
10550 | ( exit $ac_status ) | |
7a197a62 | 10551 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 10552 | fi |
ec6a6fbe | 10553 | rm -rf conftest.dSYM |
7a197a62 | 10554 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 10555 | fi |
7a197a62 AK |
10556 | |
10557 | ||
ad6254c5 | 10558 | fi |
ec6a6fbe AK |
10559 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
10560 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 10561 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 10562 | case " $LIBOBJS " in |
8a2fc586 | 10563 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
10564 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
10565 | ;; | |
8a2fc586 AK |
10566 | esac |
10567 | ||
ad6254c5 AK |
10568 | |
10569 | cat >>confdefs.h <<_ACEOF | |
10570 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
10571 | _ACEOF | |
10572 | ||
10573 | fi | |
10574 | ||
ec6a6fbe AK |
10575 | { $as_echo "$as_me:$LINENO: checking for working strtod" >&5 |
10576 | $as_echo_n "checking for working strtod... " >&6; } | |
ad6254c5 | 10577 | if test "${ac_cv_func_strtod+set}" = set; then |
ec6a6fbe | 10578 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10579 | else |
10580 | if test "$cross_compiling" = yes; then | |
10581 | ac_cv_func_strtod=no | |
10582 | else | |
10583 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10584 | /* confdefs.h. */ |
10585 | _ACEOF | |
10586 | cat confdefs.h >>conftest.$ac_ext | |
10587 | cat >>conftest.$ac_ext <<_ACEOF | |
10588 | /* end confdefs.h. */ | |
10589 | ||
7a197a62 AK |
10590 | $ac_includes_default |
10591 | #ifndef strtod | |
ad6254c5 | 10592 | double strtod (); |
7a197a62 | 10593 | #endif |
ad6254c5 AK |
10594 | int |
10595 | main() | |
10596 | { | |
10597 | { | |
10598 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
10599 | char *string = " +69"; | |
10600 | char *term; | |
10601 | double value; | |
10602 | value = strtod (string, &term); | |
10603 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 10604 | return 1; |
ad6254c5 AK |
10605 | } |
10606 | ||
10607 | { | |
10608 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
10609 | terminating character under some conditions. */ | |
10610 | char *string = "NaN"; | |
10611 | char *term; | |
10612 | strtod (string, &term); | |
10613 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 10614 | return 1; |
ad6254c5 | 10615 | } |
7a197a62 | 10616 | return 0; |
ad6254c5 AK |
10617 | } |
10618 | ||
10619 | _ACEOF | |
10620 | rm -f conftest$ac_exeext | |
7a197a62 AK |
10621 | if { (ac_try="$ac_link" |
10622 | case "(($ac_try" in | |
10623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10624 | *) ac_try_echo=$ac_try;; | |
10625 | esac | |
ec6a6fbe AK |
10626 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10627 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10628 | (eval "$ac_link") 2>&5 |
ad6254c5 | 10629 | ac_status=$? |
ec6a6fbe | 10630 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 10631 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
10632 | { (case "(($ac_try" in |
10633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10634 | *) ac_try_echo=$ac_try;; | |
10635 | esac | |
ec6a6fbe AK |
10636 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10637 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10638 | (eval "$ac_try") 2>&5 |
ad6254c5 | 10639 | ac_status=$? |
ec6a6fbe | 10640 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
10641 | (exit $ac_status); }; }; then |
10642 | ac_cv_func_strtod=yes | |
10643 | else | |
ec6a6fbe AK |
10644 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
10645 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
10646 | sed 's/^/| /' conftest.$ac_ext >&5 |
10647 | ||
10648 | ( exit $ac_status ) | |
10649 | ac_cv_func_strtod=no | |
10650 | fi | |
ec6a6fbe | 10651 | rm -rf conftest.dSYM |
7a197a62 | 10652 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 10653 | fi |
7a197a62 AK |
10654 | |
10655 | ||
ad6254c5 | 10656 | fi |
ec6a6fbe AK |
10657 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
10658 | $as_echo "$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 10659 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 10660 | case " $LIBOBJS " in |
8a2fc586 | 10661 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
10662 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
10663 | ;; | |
8a2fc586 AK |
10664 | esac |
10665 | ||
ec6a6fbe AK |
10666 | { $as_echo "$as_me:$LINENO: checking for pow" >&5 |
10667 | $as_echo_n "checking for pow... " >&6; } | |
ad6254c5 | 10668 | if test "${ac_cv_func_pow+set}" = set; then |
ec6a6fbe | 10669 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10670 | else |
10671 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10672 | /* confdefs.h. */ |
10673 | _ACEOF | |
10674 | cat confdefs.h >>conftest.$ac_ext | |
10675 | cat >>conftest.$ac_ext <<_ACEOF | |
10676 | /* end confdefs.h. */ | |
8a2fc586 AK |
10677 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
10678 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10679 | #define pow innocuous_pow | |
10680 | ||
ad6254c5 AK |
10681 | /* System header to define __stub macros and hopefully few prototypes, |
10682 | which can conflict with char pow (); below. | |
10683 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10684 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 10685 | |
ad6254c5 AK |
10686 | #ifdef __STDC__ |
10687 | # include <limits.h> | |
10688 | #else | |
10689 | # include <assert.h> | |
10690 | #endif | |
8a2fc586 AK |
10691 | |
10692 | #undef pow | |
10693 | ||
7a197a62 AK |
10694 | /* Override any GCC internal prototype to avoid an error. |
10695 | Use char because int might match the return type of a GCC | |
10696 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10697 | #ifdef __cplusplus |
10698 | extern "C" | |
ad6254c5 | 10699 | #endif |
ad6254c5 AK |
10700 | char pow (); |
10701 | /* The GNU C library defines this for functions which it implements | |
10702 | to always fail with ENOSYS. Some functions are actually named | |
10703 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 10704 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 10705 | choke me |
ad6254c5 AK |
10706 | #endif |
10707 | ||
10708 | int | |
10709 | main () | |
10710 | { | |
7a197a62 | 10711 | return pow (); |
ad6254c5 AK |
10712 | ; |
10713 | return 0; | |
10714 | } | |
10715 | _ACEOF | |
10716 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10717 | if { (ac_try="$ac_link" |
10718 | case "(($ac_try" in | |
10719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10720 | *) ac_try_echo=$ac_try;; | |
10721 | esac | |
ec6a6fbe AK |
10722 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10723 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10724 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10725 | ac_status=$? |
8a2fc586 AK |
10726 | grep -v '^ *+' conftest.er1 >conftest.err |
10727 | rm -f conftest.er1 | |
10728 | cat conftest.err >&5 | |
ec6a6fbe | 10729 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10730 | (exit $ac_status); } && { |
10731 | test -z "$ac_c_werror_flag" || | |
10732 | test ! -s conftest.err | |
ec6a6fbe AK |
10733 | } && test -s conftest$ac_exeext && { |
10734 | test "$cross_compiling" = yes || | |
10735 | $as_test_x conftest$ac_exeext | |
10736 | }; then | |
ad6254c5 AK |
10737 | ac_cv_func_pow=yes |
10738 | else | |
ec6a6fbe | 10739 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10740 | sed 's/^/| /' conftest.$ac_ext >&5 |
10741 | ||
7a197a62 | 10742 | ac_cv_func_pow=no |
ad6254c5 | 10743 | fi |
7a197a62 | 10744 | |
ec6a6fbe | 10745 | rm -rf conftest.dSYM |
25fbec5b | 10746 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10747 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10748 | fi |
ec6a6fbe AK |
10749 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
10750 | $as_echo "$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
10751 | |
10752 | if test $ac_cv_func_pow = no; then | |
ec6a6fbe AK |
10753 | { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
10754 | $as_echo_n "checking for pow in -lm... " >&6; } | |
ad6254c5 | 10755 | if test "${ac_cv_lib_m_pow+set}" = set; then |
ec6a6fbe | 10756 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
10757 | else |
10758 | ac_check_lib_save_LIBS=$LIBS | |
10759 | LIBS="-lm $LIBS" | |
10760 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
10761 | /* confdefs.h. */ |
10762 | _ACEOF | |
10763 | cat confdefs.h >>conftest.$ac_ext | |
10764 | cat >>conftest.$ac_ext <<_ACEOF | |
10765 | /* end confdefs.h. */ | |
10766 | ||
7a197a62 AK |
10767 | /* Override any GCC internal prototype to avoid an error. |
10768 | Use char because int might match the return type of a GCC | |
10769 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10770 | #ifdef __cplusplus |
10771 | extern "C" | |
10772 | #endif | |
ad6254c5 AK |
10773 | char pow (); |
10774 | int | |
10775 | main () | |
10776 | { | |
7a197a62 | 10777 | return pow (); |
ad6254c5 AK |
10778 | ; |
10779 | return 0; | |
10780 | } | |
10781 | _ACEOF | |
10782 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
10783 | if { (ac_try="$ac_link" |
10784 | case "(($ac_try" in | |
10785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10786 | *) ac_try_echo=$ac_try;; | |
10787 | esac | |
ec6a6fbe AK |
10788 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10789 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 10790 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 10791 | ac_status=$? |
8a2fc586 AK |
10792 | grep -v '^ *+' conftest.er1 >conftest.err |
10793 | rm -f conftest.er1 | |
10794 | cat conftest.err >&5 | |
ec6a6fbe | 10795 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
10796 | (exit $ac_status); } && { |
10797 | test -z "$ac_c_werror_flag" || | |
10798 | test ! -s conftest.err | |
ec6a6fbe AK |
10799 | } && test -s conftest$ac_exeext && { |
10800 | test "$cross_compiling" = yes || | |
10801 | $as_test_x conftest$ac_exeext | |
10802 | }; then | |
ad6254c5 AK |
10803 | ac_cv_lib_m_pow=yes |
10804 | else | |
ec6a6fbe | 10805 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
10806 | sed 's/^/| /' conftest.$ac_ext >&5 |
10807 | ||
7a197a62 | 10808 | ac_cv_lib_m_pow=no |
ad6254c5 | 10809 | fi |
7a197a62 | 10810 | |
ec6a6fbe | 10811 | rm -rf conftest.dSYM |
25fbec5b | 10812 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 10813 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 10814 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 10815 | fi |
ec6a6fbe AK |
10816 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
10817 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
10818 | if test "x$ac_cv_lib_m_pow" = x""yes; then | |
d0191583 JM |
10819 | POW_LIB=-lm |
10820 | else | |
ec6a6fbe AK |
10821 | { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
10822 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 10823 | fi |
72b2cb61 | 10824 | |
d0191583 | 10825 | fi |
72b2cb61 | 10826 | |
ad6254c5 AK |
10827 | fi |
10828 | ||
ad6254c5 | 10829 | |
d0191583 JM |
10830 | for ac_func in vprintf |
10831 | do | |
ec6a6fbe AK |
10832 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10833 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10834 | $as_echo_n "checking for $ac_func... " >&6; } | |
d0191583 | 10835 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 10836 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10837 | else |
d0191583 JM |
10838 | cat >conftest.$ac_ext <<_ACEOF |
10839 | /* confdefs.h. */ | |
10840 | _ACEOF | |
10841 | cat confdefs.h >>conftest.$ac_ext | |
10842 | cat >>conftest.$ac_ext <<_ACEOF | |
10843 | /* end confdefs.h. */ | |
10844 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10845 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10846 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 10847 | |
d0191583 JM |
10848 | /* System header to define __stub macros and hopefully few prototypes, |
10849 | which can conflict with char $ac_func (); below. | |
10850 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10851 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 10852 | |
d0191583 JM |
10853 | #ifdef __STDC__ |
10854 | # include <limits.h> | |
10855 | #else | |
10856 | # include <assert.h> | |
10857 | #endif | |
ad6254c5 | 10858 | |
d0191583 | 10859 | #undef $ac_func |
72b2cb61 | 10860 | |
d0191583 JM |
10861 | /* Override any GCC internal prototype to avoid an error. |
10862 | Use char because int might match the return type of a GCC | |
10863 | builtin and then its argument prototype would still apply. */ | |
10864 | #ifdef __cplusplus | |
10865 | extern "C" | |
10866 | #endif | |
10867 | char $ac_func (); | |
10868 | /* The GNU C library defines this for functions which it implements | |
10869 | to always fail with ENOSYS. Some functions are actually named | |
10870 | something starting with __ and the normal name is an alias. */ | |
10871 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
10872 | choke me | |
10873 | #endif | |
10874 | ||
10875 | int | |
10876 | main () | |
10877 | { | |
10878 | return $ac_func (); | |
10879 | ; | |
10880 | return 0; | |
10881 | } | |
72b2cb61 | 10882 | _ACEOF |
d0191583 JM |
10883 | rm -f conftest.$ac_objext conftest$ac_exeext |
10884 | if { (ac_try="$ac_link" | |
10885 | case "(($ac_try" in | |
10886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10887 | *) ac_try_echo=$ac_try;; | |
10888 | esac | |
ec6a6fbe AK |
10889 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10890 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
10891 | (eval "$ac_link") 2>conftest.er1 |
10892 | ac_status=$? | |
10893 | grep -v '^ *+' conftest.er1 >conftest.err | |
10894 | rm -f conftest.er1 | |
10895 | cat conftest.err >&5 | |
ec6a6fbe | 10896 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
10897 | (exit $ac_status); } && { |
10898 | test -z "$ac_c_werror_flag" || | |
10899 | test ! -s conftest.err | |
ec6a6fbe AK |
10900 | } && test -s conftest$ac_exeext && { |
10901 | test "$cross_compiling" = yes || | |
10902 | $as_test_x conftest$ac_exeext | |
10903 | }; then | |
d0191583 JM |
10904 | eval "$as_ac_var=yes" |
10905 | else | |
ec6a6fbe | 10906 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 10907 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 10908 | |
d0191583 | 10909 | eval "$as_ac_var=no" |
ad6254c5 AK |
10910 | fi |
10911 | ||
ec6a6fbe | 10912 | rm -rf conftest.dSYM |
d0191583 JM |
10913 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10914 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 10915 | fi |
ec6a6fbe AK |
10916 | ac_res=`eval 'as_val=${'$as_ac_var'} |
10917 | $as_echo "$as_val"'` | |
10918 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10919 | $as_echo "$ac_res" >&6; } | |
10920 | as_val=`eval 'as_val=${'$as_ac_var'} | |
10921 | $as_echo "$as_val"'` | |
10922 | if test "x$as_val" = x""yes; then | |
d0191583 | 10923 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10924 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 10925 | _ACEOF |
7a197a62 | 10926 | |
ec6a6fbe AK |
10927 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
10928 | $as_echo_n "checking for _doprnt... " >&6; } | |
d0191583 | 10929 | if test "${ac_cv_func__doprnt+set}" = set; then |
ec6a6fbe | 10930 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 10931 | else |
d0191583 JM |
10932 | cat >conftest.$ac_ext <<_ACEOF |
10933 | /* confdefs.h. */ | |
10934 | _ACEOF | |
10935 | cat confdefs.h >>conftest.$ac_ext | |
10936 | cat >>conftest.$ac_ext <<_ACEOF | |
10937 | /* end confdefs.h. */ | |
10938 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
10939 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10940 | #define _doprnt innocuous__doprnt | |
7a197a62 | 10941 | |
d0191583 JM |
10942 | /* System header to define __stub macros and hopefully few prototypes, |
10943 | which can conflict with char _doprnt (); below. | |
10944 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10945 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 10946 | |
d0191583 JM |
10947 | #ifdef __STDC__ |
10948 | # include <limits.h> | |
10949 | #else | |
10950 | # include <assert.h> | |
10951 | #endif | |
72b2cb61 | 10952 | |
d0191583 JM |
10953 | #undef _doprnt |
10954 | ||
10955 | /* Override any GCC internal prototype to avoid an error. | |
10956 | Use char because int might match the return type of a GCC | |
10957 | builtin and then its argument prototype would still apply. */ | |
10958 | #ifdef __cplusplus | |
10959 | extern "C" | |
10960 | #endif | |
10961 | char _doprnt (); | |
10962 | /* The GNU C library defines this for functions which it implements | |
10963 | to always fail with ENOSYS. Some functions are actually named | |
10964 | something starting with __ and the normal name is an alias. */ | |
10965 | #if defined __stub__doprnt || defined __stub____doprnt | |
10966 | choke me | |
10967 | #endif | |
10968 | ||
10969 | int | |
10970 | main () | |
10971 | { | |
10972 | return _doprnt (); | |
10973 | ; | |
10974 | return 0; | |
10975 | } | |
72b2cb61 | 10976 | _ACEOF |
d0191583 JM |
10977 | rm -f conftest.$ac_objext conftest$ac_exeext |
10978 | if { (ac_try="$ac_link" | |
10979 | case "(($ac_try" in | |
10980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10981 | *) ac_try_echo=$ac_try;; | |
10982 | esac | |
ec6a6fbe AK |
10983 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
10984 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
10985 | (eval "$ac_link") 2>conftest.er1 |
10986 | ac_status=$? | |
10987 | grep -v '^ *+' conftest.er1 >conftest.err | |
10988 | rm -f conftest.er1 | |
10989 | cat conftest.err >&5 | |
ec6a6fbe | 10990 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
10991 | (exit $ac_status); } && { |
10992 | test -z "$ac_c_werror_flag" || | |
10993 | test ! -s conftest.err | |
ec6a6fbe AK |
10994 | } && test -s conftest$ac_exeext && { |
10995 | test "$cross_compiling" = yes || | |
10996 | $as_test_x conftest$ac_exeext | |
10997 | }; then | |
d0191583 JM |
10998 | ac_cv_func__doprnt=yes |
10999 | else | |
ec6a6fbe | 11000 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 11001 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 11002 | |
d0191583 | 11003 | ac_cv_func__doprnt=no |
ad6254c5 AK |
11004 | fi |
11005 | ||
ec6a6fbe | 11006 | rm -rf conftest.dSYM |
d0191583 JM |
11007 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11008 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 11009 | fi |
ec6a6fbe AK |
11010 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
11011 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
11012 | if test "x$ac_cv_func__doprnt" = x""yes; then | |
7a197a62 | 11013 | |
d0191583 JM |
11014 | cat >>confdefs.h <<\_ACEOF |
11015 | #define HAVE_DOPRNT 1 | |
11016 | _ACEOF | |
ad6254c5 | 11017 | |
7a197a62 AK |
11018 | fi |
11019 | ||
d0191583 JM |
11020 | fi |
11021 | done | |
8b1a3214 | 11022 | |
ad6254c5 | 11023 | |
7a197a62 | 11024 | |
9c961554 | 11025 | ################################################################################ |
ec6a6fbe AK |
11026 | { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
11027 | $as_echo_n "checking whether to use static linking... " >&6; } | |
9c961554 MB |
11028 | # Check whether --enable-static_link was given. |
11029 | if test "${enable_static_link+set}" = set; then | |
11030 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
11031 | else | |
11032 | STATIC_LINK=no | |
11033 | fi | |
11034 | ||
ec6a6fbe AK |
11035 | { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
11036 | $as_echo "$STATIC_LINK" >&6; } | |
9c961554 | 11037 | |
d0191583 | 11038 | ################################################################################ |
ad6254c5 | 11039 | |
ad6254c5 AK |
11040 | |
11041 | ################################################################################ | |
ec6a6fbe AK |
11042 | { $as_echo "$as_me:$LINENO: checking file owner" >&5 |
11043 | $as_echo_n "checking file owner... " >&6; } | |
d0191583 JM |
11044 | |
11045 | # Check whether --with-user was given. | |
11046 | if test "${with_user+set}" = set; then | |
71082be4 | 11047 | withval=$with_user; OWNER=$withval |
7a197a62 AK |
11048 | fi |
11049 | ||
ec6a6fbe AK |
11050 | { $as_echo "$as_me:$LINENO: result: $OWNER" >&5 |
11051 | $as_echo "$OWNER" >&6; } | |
ad6254c5 | 11052 | |
d0191583 | 11053 | if test x$OWNER != x; then |
23b059e7 | 11054 | INSTALL="$INSTALL -o $OWNER" |
ad6254c5 AK |
11055 | fi |
11056 | ||
11057 | ################################################################################ | |
ec6a6fbe AK |
11058 | { $as_echo "$as_me:$LINENO: checking group owner" >&5 |
11059 | $as_echo_n "checking group owner... " >&6; } | |
ad6254c5 | 11060 | |
d0191583 JM |
11061 | # Check whether --with-group was given. |
11062 | if test "${with_group+set}" = set; then | |
71082be4 | 11063 | withval=$with_group; GROUP=$withval |
7a197a62 AK |
11064 | fi |
11065 | ||
ec6a6fbe AK |
11066 | { $as_echo "$as_me:$LINENO: result: $GROUP" >&5 |
11067 | $as_echo "$GROUP" >&6; } | |
d0191583 JM |
11068 | |
11069 | if test x$GROUP != x; then | |
23b059e7 | 11070 | INSTALL="$INSTALL -g $GROUP" |
d0191583 | 11071 | fi |
ad6254c5 | 11072 | |
24bbc4d7 | 11073 | ################################################################################ |
ec6a6fbe AK |
11074 | { $as_echo "$as_me:$LINENO: checking device node uid" >&5 |
11075 | $as_echo_n "checking device node uid... " >&6; } | |
24bbc4d7 AK |
11076 | |
11077 | ||
11078 | # Check whether --with-device-uid was given. | |
11079 | if test "${with_device_uid+set}" = set; then | |
71082be4 | 11080 | withval=$with_device_uid; DM_DEVICE_UID=$withval |
24bbc4d7 | 11081 | else |
71082be4 | 11082 | DM_DEVICE_UID=0 |
24bbc4d7 AK |
11083 | fi |
11084 | ||
ec6a6fbe AK |
11085 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5 |
11086 | $as_echo "$DM_DEVICE_UID" >&6; } | |
24bbc4d7 AK |
11087 | |
11088 | ################################################################################ | |
ec6a6fbe AK |
11089 | { $as_echo "$as_me:$LINENO: checking device node gid" >&5 |
11090 | $as_echo_n "checking device node gid... " >&6; } | |
24bbc4d7 AK |
11091 | |
11092 | ||
11093 | # Check whether --with-device-gid was given. | |
11094 | if test "${with_device_gid+set}" = set; then | |
71082be4 | 11095 | withval=$with_device_gid; DM_DEVICE_GID=$withval |
24bbc4d7 | 11096 | else |
71082be4 | 11097 | DM_DEVICE_GID=0 |
24bbc4d7 AK |
11098 | fi |
11099 | ||
ec6a6fbe AK |
11100 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5 |
11101 | $as_echo "$DM_DEVICE_GID" >&6; } | |
24bbc4d7 | 11102 | |
93bd259b | 11103 | ################################################################################ |
ec6a6fbe AK |
11104 | { $as_echo "$as_me:$LINENO: checking device node mode" >&5 |
11105 | $as_echo_n "checking device node mode... " >&6; } | |
93bd259b AK |
11106 | |
11107 | ||
11108 | # Check whether --with-device-mode was given. | |
11109 | if test "${with_device_mode+set}" = set; then | |
71082be4 | 11110 | withval=$with_device_mode; DM_DEVICE_MODE=$withval |
93bd259b | 11111 | else |
71082be4 | 11112 | DM_DEVICE_MODE=0600 |
93bd259b AK |
11113 | fi |
11114 | ||
ec6a6fbe AK |
11115 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5 |
11116 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
93bd259b | 11117 | |
ad6254c5 | 11118 | ################################################################################ |
ec6a6fbe AK |
11119 | { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
11120 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
d0191583 JM |
11121 | # Check whether --enable-lvm1_fallback was given. |
11122 | if test "${enable_lvm1_fallback+set}" = set; then | |
11123 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
11124 | else | |
11125 | LVM1_FALLBACK=no | |
7a197a62 AK |
11126 | fi |
11127 | ||
ec6a6fbe AK |
11128 | { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
11129 | $as_echo "$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 11130 | |
d0191583 | 11131 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
11132 | |
11133 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 11134 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
11135 | _ACEOF |
11136 | ||
ad6254c5 AK |
11137 | fi |
11138 | ||
11139 | ################################################################################ | |
ec6a6fbe AK |
11140 | { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
11141 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
d0191583 JM |
11142 | |
11143 | # Check whether --with-lvm1 was given. | |
11144 | if test "${with_lvm1+set}" = set; then | |
71082be4 | 11145 | withval=$with_lvm1; LVM1=$withval |
d0191583 | 11146 | else |
71082be4 | 11147 | LVM1=internal |
7a197a62 AK |
11148 | fi |
11149 | ||
ec6a6fbe AK |
11150 | { $as_echo "$as_me:$LINENO: result: $LVM1" >&5 |
11151 | $as_echo "$LVM1" >&6; } | |
ad6254c5 | 11152 | |
d0191583 | 11153 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
ec6a6fbe | 11154 | then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 11155 | " >&5 |
ec6a6fbe | 11156 | $as_echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
11157 | " >&2;} |
11158 | { (exit 1); exit 1; }; } | |
11159 | fi; | |
11160 | ||
11161 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
11162 | |
11163 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 11164 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
11165 | _ACEOF |
11166 | ||
ad6254c5 AK |
11167 | fi |
11168 | ||
11169 | ################################################################################ | |
ec6a6fbe AK |
11170 | { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
11171 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
d0191583 JM |
11172 | |
11173 | # Check whether --with-pool was given. | |
11174 | if test "${with_pool+set}" = set; then | |
71082be4 | 11175 | withval=$with_pool; POOL=$withval |
ad6254c5 | 11176 | else |
71082be4 | 11177 | POOL=internal |
7a197a62 AK |
11178 | fi |
11179 | ||
ec6a6fbe AK |
11180 | { $as_echo "$as_me:$LINENO: result: $POOL" >&5 |
11181 | $as_echo "$POOL" >&6; } | |
ad6254c5 | 11182 | |
d0191583 | 11183 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
ec6a6fbe | 11184 | then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 11185 | " >&5 |
ec6a6fbe | 11186 | $as_echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
11187 | " >&2;} |
11188 | { (exit 1); exit 1; }; } | |
11189 | fi; | |
7a197a62 | 11190 | |
d0191583 JM |
11191 | if test x$POOL = xinternal; then |
11192 | ||
11193 | cat >>confdefs.h <<\_ACEOF | |
11194 | #define POOL_INTERNAL 1 | |
11195 | _ACEOF | |
11196 | ||
11197 | fi | |
ad6254c5 | 11198 | |
06f62ad1 | 11199 | ################################################################################ |
ec6a6fbe AK |
11200 | { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
11201 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
d0191583 JM |
11202 | |
11203 | # Check whether --with-cluster was given. | |
11204 | if test "${with_cluster+set}" = set; then | |
71082be4 | 11205 | withval=$with_cluster; CLUSTER=$withval |
7a197a62 AK |
11206 | fi |
11207 | ||
ec6a6fbe AK |
11208 | { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
11209 | $as_echo "$CLUSTER" >&6; } | |
06f62ad1 | 11210 | |
d0191583 | 11211 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
ec6a6fbe | 11212 | then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 11213 | " >&5 |
ec6a6fbe | 11214 | $as_echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
11215 | " >&2;} |
11216 | { (exit 1); exit 1; }; } | |
d0191583 | 11217 | fi; |
06f62ad1 | 11218 | |
d0191583 | 11219 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
11220 | |
11221 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 11222 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
11223 | _ACEOF |
11224 | ||
15d91f5a | 11225 | fi |
ad6254c5 AK |
11226 | |
11227 | ################################################################################ | |
ec6a6fbe AK |
11228 | { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
11229 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
ad6254c5 | 11230 | |
d0191583 JM |
11231 | # Check whether --with-snapshots was given. |
11232 | if test "${with_snapshots+set}" = set; then | |
71082be4 | 11233 | withval=$with_snapshots; SNAPSHOTS=$withval |
d0191583 | 11234 | else |
71082be4 | 11235 | SNAPSHOTS=internal |
ad6254c5 AK |
11236 | fi |
11237 | ||
ec6a6fbe AK |
11238 | { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
11239 | $as_echo "$SNAPSHOTS" >&6; } | |
ad6254c5 | 11240 | |
d0191583 | 11241 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
ec6a6fbe | 11242 | then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 11243 | " >&5 |
ec6a6fbe | 11244 | $as_echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
11245 | " >&2;} |
11246 | { (exit 1); exit 1; }; } | |
11247 | fi; | |
11248 | ||
11249 | if test x$SNAPSHOTS = xinternal; then | |
11250 | ||
11251 | cat >>confdefs.h <<\_ACEOF | |
11252 | #define SNAPSHOT_INTERNAL 1 | |
11253 | _ACEOF | |
ad6254c5 | 11254 | |
ad6254c5 | 11255 | fi |
7a197a62 | 11256 | |
d0191583 | 11257 | ################################################################################ |
ec6a6fbe AK |
11258 | { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
11259 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
d0191583 JM |
11260 | |
11261 | # Check whether --with-mirrors was given. | |
11262 | if test "${with_mirrors+set}" = set; then | |
71082be4 | 11263 | withval=$with_mirrors; MIRRORS=$withval |
d0191583 | 11264 | else |
71082be4 | 11265 | MIRRORS=internal |
ad6254c5 | 11266 | fi |
ad6254c5 | 11267 | |
ec6a6fbe AK |
11268 | { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
11269 | $as_echo "$MIRRORS" >&6; } | |
ad6254c5 | 11270 | |
d0191583 | 11271 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
ec6a6fbe | 11272 | then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 11273 | " >&5 |
ec6a6fbe | 11274 | $as_echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
11275 | " >&2;} |
11276 | { (exit 1); exit 1; }; } | |
11277 | fi; | |
ad6254c5 | 11278 | |
d0191583 | 11279 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 11280 | |
d0191583 JM |
11281 | cat >>confdefs.h <<\_ACEOF |
11282 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 11283 | _ACEOF |
8a2fc586 | 11284 | |
d0191583 | 11285 | fi |
8a2fc586 | 11286 | |
8fea97b7 ZK |
11287 | ################################################################################ |
11288 | { $as_echo "$as_me:$LINENO: checking whether to include replicators" >&5 | |
11289 | $as_echo_n "checking whether to include replicators... " >&6; } | |
11290 | ||
11291 | # Check whether --with-replicators was given. | |
11292 | if test "${with_replicators+set}" = set; then | |
11293 | withval=$with_replicators; REPLICATORS=$withval | |
11294 | else | |
71082be4 | 11295 | REPLICATORS=none |
8fea97b7 ZK |
11296 | fi |
11297 | ||
11298 | { $as_echo "$as_me:$LINENO: result: $REPLICATORS" >&5 | |
11299 | $as_echo "$REPLICATORS" >&6; } | |
11300 | ||
11301 | case "$REPLICATORS" in | |
11302 | none|shared) ;; | |
11303 | internal) | |
11304 | cat >>confdefs.h <<\_ACEOF | |
11305 | #define REPLICATOR_INTERNAL 1 | |
11306 | _ACEOF | |
11307 | ;; | |
11308 | *) { { $as_echo "$as_me:$LINENO: error: --with-replicators parameter invalid ($REPLICATORS)" >&5 | |
11309 | $as_echo "$as_me: error: --with-replicators parameter invalid ($REPLICATORS)" >&2;} | |
11310 | { (exit 1); exit 1; }; } ;; | |
11311 | esac | |
11312 | ||
d0191583 | 11313 | ################################################################################ |
ec6a6fbe AK |
11314 | { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
11315 | $as_echo_n "checking whether to enable readline... " >&6; } | |
d0191583 JM |
11316 | # Check whether --enable-readline was given. |
11317 | if test "${enable_readline+set}" = set; then | |
11318 | enableval=$enable_readline; READLINE=$enableval | |
11319 | else | |
06e459df | 11320 | READLINE=maybe |
d0191583 | 11321 | fi |
8a2fc586 | 11322 | |
ec6a6fbe AK |
11323 | { $as_echo "$as_me:$LINENO: result: $READLINE" >&5 |
11324 | $as_echo "$READLINE" >&6; } | |
8a2fc586 | 11325 | |
d0191583 | 11326 | ################################################################################ |
ec6a6fbe AK |
11327 | { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
11328 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
d0191583 JM |
11329 | # Check whether --enable-realtime was given. |
11330 | if test "${enable_realtime+set}" = set; then | |
11331 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 11332 | fi |
ad6254c5 | 11333 | |
ec6a6fbe AK |
11334 | { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5 |
11335 | $as_echo "$REALTIME" >&6; } | |
d0191583 | 11336 | |
37ddf259 AK |
11337 | ################################################################################ |
11338 | { $as_echo "$as_me:$LINENO: checking whether to enable OCF resource agents" >&5 | |
11339 | $as_echo_n "checking whether to enable OCF resource agents... " >&6; } | |
11340 | # Check whether --enable-ocf was given. | |
11341 | if test "${enable_ocf+set}" = set; then | |
11342 | enableval=$enable_ocf; OCF=$enableval | |
11343 | else | |
11344 | OCF=no | |
11345 | fi | |
11346 | ||
11347 | { $as_echo "$as_me:$LINENO: result: $OCF" >&5 | |
11348 | $as_echo "$OCF" >&6; } | |
11349 | ||
d0191583 | 11350 | ################################################################################ |
90c80887 | 11351 | pkg_config_init() { |
e2997b73 AK |
11352 | |
11353 | ||
11354 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
11355 | if test -n "$ac_tool_prefix"; then | |
11356 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
11357 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
11358 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11359 | $as_echo_n "checking for $ac_word... " >&6; } | |
11360 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
11361 | $as_echo_n "(cached) " >&6 | |
11362 | else | |
11363 | case $PKG_CONFIG in | |
11364 | [\\/]* | ?:[\\/]*) | |
11365 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11366 | ;; | |
11367 | *) | |
11368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11369 | for as_dir in $PATH | |
11370 | do | |
11371 | IFS=$as_save_IFS | |
11372 | test -z "$as_dir" && as_dir=. | |
11373 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11374 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11375 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11376 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11377 | break 2 | |
11378 | fi | |
11379 | done | |
11380 | done | |
11381 | IFS=$as_save_IFS | |
11382 | ||
11383 | ;; | |
11384 | esac | |
11385 | fi | |
11386 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
11387 | if test -n "$PKG_CONFIG"; then | |
11388 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
11389 | $as_echo "$PKG_CONFIG" >&6; } | |
11390 | else | |
11391 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11392 | $as_echo "no" >&6; } | |
11393 | fi | |
11394 | ||
11395 | ||
11396 | fi | |
11397 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
11398 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
11399 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
11400 | set dummy pkg-config; ac_word=$2 | |
11401 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11402 | $as_echo_n "checking for $ac_word... " >&6; } | |
11403 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
11404 | $as_echo_n "(cached) " >&6 | |
11405 | else | |
11406 | case $ac_pt_PKG_CONFIG in | |
11407 | [\\/]* | ?:[\\/]*) | |
11408 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
11409 | ;; | |
11410 | *) | |
11411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11412 | for as_dir in $PATH | |
11413 | do | |
11414 | IFS=$as_save_IFS | |
11415 | test -z "$as_dir" && as_dir=. | |
11416 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11417 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11418 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11419 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11420 | break 2 | |
11421 | fi | |
11422 | done | |
11423 | done | |
11424 | IFS=$as_save_IFS | |
11425 | ||
11426 | ;; | |
11427 | esac | |
11428 | fi | |
11429 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
11430 | if test -n "$ac_pt_PKG_CONFIG"; then | |
11431 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
11432 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
11433 | else | |
11434 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11435 | $as_echo "no" >&6; } | |
11436 | fi | |
11437 | ||
11438 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
11439 | PKG_CONFIG="" | |
11440 | else | |
11441 | case $cross_compiling:$ac_tool_warned in | |
11442 | yes:) | |
11443 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
11444 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
11445 | ac_tool_warned=yes ;; | |
11446 | esac | |
11447 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
11448 | fi | |
11449 | else | |
11450 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
11451 | fi | |
11452 | ||
11453 | fi | |
11454 | if test -n "$PKG_CONFIG"; then | |
11455 | _pkg_min_version=0.9.0 | |
11456 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
11457 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
11458 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
11459 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11460 | $as_echo "yes" >&6; } | |
11461 | else | |
11462 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11463 | $as_echo "no" >&6; } | |
11464 | PKG_CONFIG="" | |
11465 | fi | |
8c4e8a18 | 11466 | |
e2997b73 AK |
11467 | fi |
11468 | ||
11469 | pkg_failed=no | |
a946372e AK |
11470 | { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5 |
11471 | $as_echo_n "checking for PKGCONFIGINIT... " >&6; } | |
e2997b73 | 11472 | |
a946372e AK |
11473 | if test -n "$PKGCONFIGINIT_CFLAGS"; then |
11474 | pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS" | |
e2997b73 AK |
11475 | elif test -n "$PKG_CONFIG"; then |
11476 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11477 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
11478 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
11479 | ac_status=$? |
11480 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11481 | (exit $ac_status); }; then | |
a946372e | 11482 | pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
11483 | else |
11484 | pkg_failed=yes | |
11485 | fi | |
11486 | else | |
11487 | pkg_failed=untried | |
11488 | fi | |
a946372e AK |
11489 | if test -n "$PKGCONFIGINIT_LIBS"; then |
11490 | pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS" | |
e2997b73 AK |
11491 | elif test -n "$PKG_CONFIG"; then |
11492 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11493 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
11494 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
11495 | ac_status=$? |
11496 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11497 | (exit $ac_status); }; then | |
a946372e | 11498 | pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
11499 | else |
11500 | pkg_failed=yes | |
11501 | fi | |
11502 | else | |
11503 | pkg_failed=untried | |
11504 | fi | |
11505 | ||
11506 | ||
11507 | ||
11508 | if test $pkg_failed = yes; then | |
11509 | ||
11510 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11511 | _pkg_short_errors_supported=yes | |
11512 | else | |
11513 | _pkg_short_errors_supported=no | |
11514 | fi | |
11515 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 11516 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1` |
e2997b73 | 11517 | else |
a946372e | 11518 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1` |
e2997b73 AK |
11519 | fi |
11520 | # Put the nasty error message in config.log where it belongs | |
a946372e | 11521 | echo "$PKGCONFIGINIT_PKG_ERRORS" >&5 |
e2997b73 | 11522 | |
8c4e8a18 FDN |
11523 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11524 | $as_echo "no" >&6; } | |
11525 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 | |
a946372e | 11526 | $as_echo "pkg-config initialized" >&6; } |
e2997b73 | 11527 | elif test $pkg_failed = untried; then |
a946372e AK |
11528 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 |
11529 | $as_echo "pkg-config initialized" >&6; } | |
e2997b73 | 11530 | else |
a946372e AK |
11531 | PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS |
11532 | PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS | |
e2997b73 AK |
11533 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
11534 | $as_echo "yes" >&6; } | |
8c4e8a18 | 11535 | : |
e2997b73 | 11536 | fi |
90c80887 AK |
11537 | PKGCONFIG_INIT=1 |
11538 | } | |
11539 | ||
11540 | ################################################################################ | |
11541 | { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 | |
11542 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
11543 | ||
11544 | # Check whether --with-clvmd was given. | |
11545 | if test "${with_clvmd+set}" = set; then | |
71082be4 | 11546 | withval=$with_clvmd; CLVMD=$withval |
90c80887 | 11547 | else |
71082be4 | 11548 | CLVMD=none |
90c80887 AK |
11549 | fi |
11550 | ||
11551 | if test x$CLVMD = xyes; then | |
11552 | CLVMD=all | |
11553 | fi | |
11554 | { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5 | |
11555 | $as_echo "$CLVMD" >&6; } | |
11556 | ||
11557 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then | |
11558 | CLUSTER=internal | |
11559 | fi | |
11560 | ||
c89bc357 | 11561 | if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then |
90c80887 AK |
11562 | pkg_config_init |
11563 | fi | |
11564 | ||
c89bc357 MB |
11565 | CLVMD_CMANAGERS="" |
11566 | CLVMD_NEEDS_QDISKD=no | |
90c80887 AK |
11567 | |
11568 | if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then | |
11569 | BUILDGULM=yes | |
c89bc357 MB |
11570 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd" |
11571 | CLVMD_NEEDS_QDISKD=yes | |
11572 | fi | |
11573 | if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then | |
11574 | BUILDCMAN=yes | |
11575 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman" | |
11576 | CLVMD_NEEDS_QDISKD=yes | |
90c80887 AK |
11577 | fi |
11578 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then | |
11579 | BUILDCOROSYNC=yes | |
c89bc357 | 11580 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync" |
90c80887 AK |
11581 | fi |
11582 | if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then | |
11583 | BUILDOPENAIS=yes | |
c89bc357 | 11584 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais" |
90c80887 | 11585 | fi |
c89bc357 MB |
11586 | if test x$CLVMD_NEEDS_QDISKD != xno; then |
11587 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd" | |
90c80887 AK |
11588 | fi |
11589 | ||
11590 | if test x$BUILDGULM = xyes; then | |
11591 | if test x$BUILDCOROSYNC = xyes || \ | |
11592 | test x$BUILDOPENAIS = xyes; then | |
11593 | { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5 | |
11594 | $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;} | |
11595 | { (exit 1); exit 1; }; } | |
11596 | fi | |
a946372e | 11597 | fi |
e2997b73 | 11598 | |
a946372e AK |
11599 | soft_bailout() { |
11600 | NOTFOUND=1 | |
11601 | } | |
e2997b73 | 11602 | |
a946372e AK |
11603 | hard_bailout() { |
11604 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
11605 | $as_echo "$as_me: error: bailing out" >&2;} | |
11606 | { (exit 1); exit 1; }; } | |
11607 | } | |
11608 | ||
11609 | if test x$CLVMD = xall; then | |
11610 | bailout=soft_bailout | |
11611 | BUILDGULM=yes | |
11612 | BUILDCMAN=yes | |
11613 | BUILDCOROSYNC=yes | |
11614 | BUILDOPENAIS=yes | |
e2997b73 | 11615 | else |
a946372e | 11616 | bailout=hard_bailout |
e2997b73 | 11617 | fi |
a946372e AK |
11618 | |
11619 | check_lib_no_libs() { | |
11620 | lib_no_libs_arg1=$1 | |
11621 | shift | |
11622 | lib_no_libs_arg2=$1 | |
11623 | shift | |
11624 | lib_no_libs_args=$@ | |
11625 | ||
11626 | as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh` | |
11627 | { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5 | |
11628 | $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; } | |
11629 | if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then | |
11630 | $as_echo_n "(cached) " >&6 | |
11631 | else | |
11632 | ac_check_lib_save_LIBS=$LIBS | |
11633 | LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS" | |
11634 | cat >conftest.$ac_ext <<_ACEOF | |
11635 | /* confdefs.h. */ | |
11636 | _ACEOF | |
11637 | cat confdefs.h >>conftest.$ac_ext | |
11638 | cat >>conftest.$ac_ext <<_ACEOF | |
11639 | /* end confdefs.h. */ | |
11640 | ||
11641 | /* Override any GCC internal prototype to avoid an error. | |
11642 | Use char because int might match the return type of a GCC | |
11643 | builtin and then its argument prototype would still apply. */ | |
11644 | #ifdef __cplusplus | |
11645 | extern "C" | |
11646 | #endif | |
11647 | char $lib_no_libs_arg2 (); | |
11648 | int | |
11649 | main () | |
11650 | { | |
11651 | return $lib_no_libs_arg2 (); | |
11652 | ; | |
11653 | return 0; | |
11654 | } | |
11655 | _ACEOF | |
11656 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11657 | if { (ac_try="$ac_link" | |
11658 | case "(($ac_try" in | |
11659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11660 | *) ac_try_echo=$ac_try;; | |
11661 | esac | |
11662 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11663 | $as_echo "$ac_try_echo") >&5 | |
11664 | (eval "$ac_link") 2>conftest.er1 | |
e2997b73 | 11665 | ac_status=$? |
a946372e AK |
11666 | grep -v '^ *+' conftest.er1 >conftest.err |
11667 | rm -f conftest.er1 | |
11668 | cat conftest.err >&5 | |
e2997b73 | 11669 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a946372e AK |
11670 | (exit $ac_status); } && { |
11671 | test -z "$ac_c_werror_flag" || | |
11672 | test ! -s conftest.err | |
11673 | } && test -s conftest$ac_exeext && { | |
11674 | test "$cross_compiling" = yes || | |
11675 | $as_test_x conftest$ac_exeext | |
11676 | }; then | |
11677 | eval "$as_ac_Lib=yes" | |
e2997b73 | 11678 | else |
a946372e AK |
11679 | $as_echo "$as_me: failed program was:" >&5 |
11680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
e2997b73 | 11681 | |
a946372e AK |
11682 | eval "$as_ac_Lib=no" |
11683 | fi | |
e2997b73 | 11684 | |
a946372e AK |
11685 | rm -rf conftest.dSYM |
11686 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11687 | conftest$ac_exeext conftest.$ac_ext | |
11688 | LIBS=$ac_check_lib_save_LIBS | |
11689 | fi | |
11690 | ac_res=`eval 'as_val=${'$as_ac_Lib'} | |
11691 | $as_echo "$as_val"'` | |
11692 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11693 | $as_echo "$ac_res" >&6; } | |
11694 | as_val=`eval 'as_val=${'$as_ac_Lib'} | |
11695 | $as_echo "$as_val"'` | |
11696 | if test "x$as_val" = x""yes; then | |
11697 | cat >>confdefs.h <<_ACEOF | |
11698 | #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1 | |
11699 | _ACEOF | |
e2997b73 | 11700 | |
a946372e | 11701 | LIBS="-l$lib_no_libs_arg1 $LIBS" |
e2997b73 | 11702 | |
e2997b73 | 11703 | else |
a946372e | 11704 | $bailout |
e2997b73 | 11705 | fi |
e2997b73 | 11706 | |
a946372e AK |
11707 | LIBS=$ac_check_lib_save_LIBS |
11708 | } | |
11709 | ||
11710 | if test x$BUILDGULM = xyes; then | |
e2997b73 AK |
11711 | |
11712 | pkg_failed=no | |
a946372e AK |
11713 | { $as_echo "$as_me:$LINENO: checking for CCS" >&5 |
11714 | $as_echo_n "checking for CCS... " >&6; } | |
e2997b73 | 11715 | |
a946372e AK |
11716 | if test -n "$CCS_CFLAGS"; then |
11717 | pkg_cv_CCS_CFLAGS="$CCS_CFLAGS" | |
e2997b73 AK |
11718 | elif test -n "$PKG_CONFIG"; then |
11719 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11720 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
11721 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
11722 | ac_status=$? |
11723 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11724 | (exit $ac_status); }; then | |
a946372e | 11725 | pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null` |
e2997b73 AK |
11726 | else |
11727 | pkg_failed=yes | |
11728 | fi | |
11729 | else | |
11730 | pkg_failed=untried | |
11731 | fi | |
a946372e AK |
11732 | if test -n "$CCS_LIBS"; then |
11733 | pkg_cv_CCS_LIBS="$CCS_LIBS" | |
e2997b73 AK |
11734 | elif test -n "$PKG_CONFIG"; then |
11735 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
11736 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
11737 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
11738 | ac_status=$? |
11739 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11740 | (exit $ac_status); }; then | |
a946372e | 11741 | pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null` |
e2997b73 AK |
11742 | else |
11743 | pkg_failed=yes | |
11744 | fi | |
11745 | else | |
11746 | pkg_failed=untried | |
11747 | fi | |
11748 | ||
11749 | ||
11750 | ||
11751 | if test $pkg_failed = yes; then | |
11752 | ||
11753 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11754 | _pkg_short_errors_supported=yes | |
11755 | else | |
11756 | _pkg_short_errors_supported=no | |
11757 | fi | |
11758 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 11759 | CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1` |
e2997b73 | 11760 | else |
a946372e | 11761 | CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1` |
e2997b73 AK |
11762 | fi |
11763 | # Put the nasty error message in config.log where it belongs | |
a946372e | 11764 | echo "$CCS_PKG_ERRORS" >&5 |
e2997b73 | 11765 | |
8c4e8a18 FDN |
11766 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
11767 | $as_echo "no" >&6; } | |
11768 | NOTFOUND=0 | |
e2997b73 | 11769 | |
a946372e AK |
11770 | for ac_header in ccs.h |
11771 | do | |
11772 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11773 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11774 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11775 | $as_echo_n "checking for $ac_header... " >&6; } | |
11776 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11777 | $as_echo_n "(cached) " >&6 | |
d0191583 | 11778 | fi |
a946372e AK |
11779 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
11780 | $as_echo "$as_val"'` | |
11781 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11782 | $as_echo "$ac_res" >&6; } | |
fc54be10 | 11783 | else |
a946372e AK |
11784 | # Is the header compilable? |
11785 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11786 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11787 | cat >conftest.$ac_ext <<_ACEOF | |
11788 | /* confdefs.h. */ | |
11789 | _ACEOF | |
11790 | cat confdefs.h >>conftest.$ac_ext | |
11791 | cat >>conftest.$ac_ext <<_ACEOF | |
11792 | /* end confdefs.h. */ | |
11793 | $ac_includes_default | |
11794 | #include <$ac_header> | |
11795 | _ACEOF | |
11796 | rm -f conftest.$ac_objext | |
11797 | if { (ac_try="$ac_compile" | |
11798 | case "(($ac_try" in | |
11799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11800 | *) ac_try_echo=$ac_try;; | |
11801 | esac | |
11802 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11803 | $as_echo "$ac_try_echo") >&5 | |
11804 | (eval "$ac_compile") 2>conftest.er1 | |
11805 | ac_status=$? | |
11806 | grep -v '^ *+' conftest.er1 >conftest.err | |
11807 | rm -f conftest.er1 | |
11808 | cat conftest.err >&5 | |
11809 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11810 | (exit $ac_status); } && { | |
11811 | test -z "$ac_c_werror_flag" || | |
11812 | test ! -s conftest.err | |
11813 | } && test -s conftest.$ac_objext; then | |
11814 | ac_header_compiler=yes | |
11815 | else | |
11816 | $as_echo "$as_me: failed program was:" >&5 | |
11817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d0191583 | 11818 | |
a946372e | 11819 | ac_header_compiler=no |
d0191583 JM |
11820 | fi |
11821 | ||
a946372e AK |
11822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11823 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11824 | $as_echo "$ac_header_compiler" >&6; } | |
fddafd51 | 11825 | |
a946372e AK |
11826 | # Is the header present? |
11827 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11828 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11829 | cat >conftest.$ac_ext <<_ACEOF | |
11830 | /* confdefs.h. */ | |
11831 | _ACEOF | |
11832 | cat confdefs.h >>conftest.$ac_ext | |
11833 | cat >>conftest.$ac_ext <<_ACEOF | |
11834 | /* end confdefs.h. */ | |
11835 | #include <$ac_header> | |
11836 | _ACEOF | |
11837 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11838 | case "(($ac_try" in | |
11839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11840 | *) ac_try_echo=$ac_try;; | |
11841 | esac | |
11842 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11843 | $as_echo "$ac_try_echo") >&5 | |
11844 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11845 | ac_status=$? | |
11846 | grep -v '^ *+' conftest.er1 >conftest.err | |
11847 | rm -f conftest.er1 | |
11848 | cat conftest.err >&5 | |
11849 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11850 | (exit $ac_status); } >/dev/null && { | |
11851 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11852 | test ! -s conftest.err | |
11853 | }; then | |
11854 | ac_header_preproc=yes | |
11855 | else | |
11856 | $as_echo "$as_me: failed program was:" >&5 | |
11857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11858 | ||
11859 | ac_header_preproc=no | |
11860 | fi | |
11861 | ||
11862 | rm -f conftest.err conftest.$ac_ext | |
11863 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11864 | $as_echo "$ac_header_preproc" >&6; } | |
11865 | ||
11866 | # So? What about this header? | |
11867 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11868 | yes:no: ) | |
11869 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11870 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11871 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11872 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11873 | ac_header_preproc=yes | |
11874 | ;; | |
11875 | no:yes:* ) | |
11876 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11877 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11878 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11879 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11880 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11881 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11882 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11883 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11884 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11885 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11886 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11887 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11888 | ||
11889 | ;; | |
11890 | esac | |
11891 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11892 | $as_echo_n "checking for $ac_header... " >&6; } | |
11893 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11894 | $as_echo_n "(cached) " >&6 | |
11895 | else | |
11896 | eval "$as_ac_Header=\$ac_header_preproc" | |
11897 | fi | |
11898 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11899 | $as_echo "$as_val"'` | |
11900 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11901 | $as_echo "$ac_res" >&6; } | |
11902 | ||
11903 | fi | |
11904 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11905 | $as_echo "$as_val"'` | |
11906 | if test "x$as_val" = x""yes; then | |
11907 | cat >>confdefs.h <<_ACEOF | |
11908 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11909 | _ACEOF | |
11910 | ||
11911 | else | |
11912 | $bailout | |
11913 | fi | |
11914 | ||
11915 | done | |
11916 | ||
11917 | check_lib_no_libs ccs ccs_connect | |
11918 | if test $NOTFOUND = 0; then | |
11919 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
11920 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
11921 | CCS_LIBS="-lccs" | |
11922 | HAVE_CCS=yes | |
11923 | fi | |
11924 | elif test $pkg_failed = untried; then | |
11925 | NOTFOUND=0 | |
11926 | ||
11927 | for ac_header in ccs.h | |
11928 | do | |
11929 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11930 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11931 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11932 | $as_echo_n "checking for $ac_header... " >&6; } | |
11933 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11934 | $as_echo_n "(cached) " >&6 | |
11935 | fi | |
11936 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11937 | $as_echo "$as_val"'` | |
11938 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11939 | $as_echo "$ac_res" >&6; } | |
11940 | else | |
11941 | # Is the header compilable? | |
11942 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11943 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11944 | cat >conftest.$ac_ext <<_ACEOF | |
11945 | /* confdefs.h. */ | |
11946 | _ACEOF | |
11947 | cat confdefs.h >>conftest.$ac_ext | |
11948 | cat >>conftest.$ac_ext <<_ACEOF | |
11949 | /* end confdefs.h. */ | |
11950 | $ac_includes_default | |
11951 | #include <$ac_header> | |
11952 | _ACEOF | |
11953 | rm -f conftest.$ac_objext | |
11954 | if { (ac_try="$ac_compile" | |
11955 | case "(($ac_try" in | |
11956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11957 | *) ac_try_echo=$ac_try;; | |
11958 | esac | |
11959 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11960 | $as_echo "$ac_try_echo") >&5 | |
11961 | (eval "$ac_compile") 2>conftest.er1 | |
11962 | ac_status=$? | |
11963 | grep -v '^ *+' conftest.er1 >conftest.err | |
11964 | rm -f conftest.er1 | |
11965 | cat conftest.err >&5 | |
11966 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11967 | (exit $ac_status); } && { | |
11968 | test -z "$ac_c_werror_flag" || | |
11969 | test ! -s conftest.err | |
11970 | } && test -s conftest.$ac_objext; then | |
11971 | ac_header_compiler=yes | |
11972 | else | |
11973 | $as_echo "$as_me: failed program was:" >&5 | |
11974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11975 | ||
11976 | ac_header_compiler=no | |
11977 | fi | |
11978 | ||
11979 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11980 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11981 | $as_echo "$ac_header_compiler" >&6; } | |
11982 | ||
11983 | # Is the header present? | |
11984 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11985 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11986 | cat >conftest.$ac_ext <<_ACEOF | |
11987 | /* confdefs.h. */ | |
11988 | _ACEOF | |
11989 | cat confdefs.h >>conftest.$ac_ext | |
11990 | cat >>conftest.$ac_ext <<_ACEOF | |
11991 | /* end confdefs.h. */ | |
11992 | #include <$ac_header> | |
11993 | _ACEOF | |
11994 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11995 | case "(($ac_try" in | |
11996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11997 | *) ac_try_echo=$ac_try;; | |
11998 | esac | |
11999 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12000 | $as_echo "$ac_try_echo") >&5 | |
12001 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12002 | ac_status=$? | |
12003 | grep -v '^ *+' conftest.er1 >conftest.err | |
12004 | rm -f conftest.er1 | |
12005 | cat conftest.err >&5 | |
12006 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12007 | (exit $ac_status); } >/dev/null && { | |
12008 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12009 | test ! -s conftest.err | |
12010 | }; then | |
12011 | ac_header_preproc=yes | |
12012 | else | |
12013 | $as_echo "$as_me: failed program was:" >&5 | |
12014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12015 | ||
12016 | ac_header_preproc=no | |
12017 | fi | |
12018 | ||
12019 | rm -f conftest.err conftest.$ac_ext | |
12020 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12021 | $as_echo "$ac_header_preproc" >&6; } | |
12022 | ||
12023 | # So? What about this header? | |
12024 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12025 | yes:no: ) | |
12026 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12027 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12028 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12029 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12030 | ac_header_preproc=yes | |
12031 | ;; | |
12032 | no:yes:* ) | |
12033 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12034 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12035 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12036 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12037 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12038 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12039 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12040 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12041 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12042 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12043 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12044 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12045 | ||
12046 | ;; | |
12047 | esac | |
12048 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12049 | $as_echo_n "checking for $ac_header... " >&6; } | |
12050 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12051 | $as_echo_n "(cached) " >&6 | |
12052 | else | |
12053 | eval "$as_ac_Header=\$ac_header_preproc" | |
12054 | fi | |
12055 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12056 | $as_echo "$as_val"'` | |
12057 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12058 | $as_echo "$ac_res" >&6; } | |
12059 | ||
12060 | fi | |
12061 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12062 | $as_echo "$as_val"'` | |
12063 | if test "x$as_val" = x""yes; then | |
12064 | cat >>confdefs.h <<_ACEOF | |
12065 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12066 | _ACEOF | |
12067 | ||
12068 | else | |
12069 | $bailout | |
12070 | fi | |
12071 | ||
12072 | done | |
12073 | ||
12074 | check_lib_no_libs ccs ccs_connect | |
12075 | if test $NOTFOUND = 0; then | |
12076 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
12077 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
12078 | CCS_LIBS="-lccs" | |
12079 | HAVE_CCS=yes | |
12080 | fi | |
12081 | else | |
12082 | CCS_CFLAGS=$pkg_cv_CCS_CFLAGS | |
12083 | CCS_LIBS=$pkg_cv_CCS_LIBS | |
12084 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12085 | $as_echo "yes" >&6; } | |
12086 | HAVE_CCS=yes | |
12087 | fi | |
12088 | ||
12089 | pkg_failed=no | |
12090 | { $as_echo "$as_me:$LINENO: checking for GULM" >&5 | |
12091 | $as_echo_n "checking for GULM... " >&6; } | |
12092 | ||
12093 | if test -n "$GULM_CFLAGS"; then | |
12094 | pkg_cv_GULM_CFLAGS="$GULM_CFLAGS" | |
12095 | elif test -n "$PKG_CONFIG"; then | |
12096 | if test -n "$PKG_CONFIG" && \ | |
12097 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
12098 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
12099 | ac_status=$? | |
12100 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12101 | (exit $ac_status); }; then | |
12102 | pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null` | |
12103 | else | |
12104 | pkg_failed=yes | |
12105 | fi | |
12106 | else | |
12107 | pkg_failed=untried | |
12108 | fi | |
12109 | if test -n "$GULM_LIBS"; then | |
12110 | pkg_cv_GULM_LIBS="$GULM_LIBS" | |
12111 | elif test -n "$PKG_CONFIG"; then | |
12112 | if test -n "$PKG_CONFIG" && \ | |
12113 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
12114 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
12115 | ac_status=$? | |
12116 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12117 | (exit $ac_status); }; then | |
12118 | pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null` | |
12119 | else | |
12120 | pkg_failed=yes | |
12121 | fi | |
12122 | else | |
12123 | pkg_failed=untried | |
12124 | fi | |
12125 | ||
12126 | ||
12127 | ||
12128 | if test $pkg_failed = yes; then | |
12129 | ||
12130 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12131 | _pkg_short_errors_supported=yes | |
12132 | else | |
12133 | _pkg_short_errors_supported=no | |
12134 | fi | |
12135 | if test $_pkg_short_errors_supported = yes; then | |
12136 | GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1` | |
12137 | else | |
12138 | GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1` | |
12139 | fi | |
12140 | # Put the nasty error message in config.log where it belongs | |
12141 | echo "$GULM_PKG_ERRORS" >&5 | |
12142 | ||
8c4e8a18 FDN |
12143 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12144 | $as_echo "no" >&6; } | |
12145 | NOTFOUND=0 | |
a946372e AK |
12146 | |
12147 | for ac_header in libgulm.h | |
12148 | do | |
12149 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12150 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12151 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12152 | $as_echo_n "checking for $ac_header... " >&6; } | |
12153 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12154 | $as_echo_n "(cached) " >&6 | |
12155 | fi | |
12156 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12157 | $as_echo "$as_val"'` | |
12158 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12159 | $as_echo "$ac_res" >&6; } | |
12160 | else | |
12161 | # Is the header compilable? | |
12162 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12163 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12164 | cat >conftest.$ac_ext <<_ACEOF | |
12165 | /* confdefs.h. */ | |
12166 | _ACEOF | |
12167 | cat confdefs.h >>conftest.$ac_ext | |
12168 | cat >>conftest.$ac_ext <<_ACEOF | |
12169 | /* end confdefs.h. */ | |
12170 | $ac_includes_default | |
12171 | #include <$ac_header> | |
12172 | _ACEOF | |
12173 | rm -f conftest.$ac_objext | |
12174 | if { (ac_try="$ac_compile" | |
12175 | case "(($ac_try" in | |
12176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12177 | *) ac_try_echo=$ac_try;; | |
12178 | esac | |
12179 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12180 | $as_echo "$ac_try_echo") >&5 | |
12181 | (eval "$ac_compile") 2>conftest.er1 | |
12182 | ac_status=$? | |
12183 | grep -v '^ *+' conftest.er1 >conftest.err | |
12184 | rm -f conftest.er1 | |
12185 | cat conftest.err >&5 | |
12186 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12187 | (exit $ac_status); } && { | |
12188 | test -z "$ac_c_werror_flag" || | |
12189 | test ! -s conftest.err | |
12190 | } && test -s conftest.$ac_objext; then | |
12191 | ac_header_compiler=yes | |
12192 | else | |
12193 | $as_echo "$as_me: failed program was:" >&5 | |
12194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12195 | ||
12196 | ac_header_compiler=no | |
12197 | fi | |
12198 | ||
12199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12200 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12201 | $as_echo "$ac_header_compiler" >&6; } | |
12202 | ||
12203 | # Is the header present? | |
12204 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12205 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12206 | cat >conftest.$ac_ext <<_ACEOF | |
12207 | /* confdefs.h. */ | |
12208 | _ACEOF | |
12209 | cat confdefs.h >>conftest.$ac_ext | |
12210 | cat >>conftest.$ac_ext <<_ACEOF | |
12211 | /* end confdefs.h. */ | |
12212 | #include <$ac_header> | |
12213 | _ACEOF | |
12214 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12215 | case "(($ac_try" in | |
12216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12217 | *) ac_try_echo=$ac_try;; | |
12218 | esac | |
12219 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12220 | $as_echo "$ac_try_echo") >&5 | |
12221 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12222 | ac_status=$? | |
12223 | grep -v '^ *+' conftest.er1 >conftest.err | |
12224 | rm -f conftest.er1 | |
12225 | cat conftest.err >&5 | |
12226 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12227 | (exit $ac_status); } >/dev/null && { | |
12228 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12229 | test ! -s conftest.err | |
12230 | }; then | |
12231 | ac_header_preproc=yes | |
12232 | else | |
12233 | $as_echo "$as_me: failed program was:" >&5 | |
12234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12235 | ||
12236 | ac_header_preproc=no | |
12237 | fi | |
12238 | ||
12239 | rm -f conftest.err conftest.$ac_ext | |
12240 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12241 | $as_echo "$ac_header_preproc" >&6; } | |
12242 | ||
12243 | # So? What about this header? | |
12244 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12245 | yes:no: ) | |
12246 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12247 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12248 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12249 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12250 | ac_header_preproc=yes | |
12251 | ;; | |
12252 | no:yes:* ) | |
12253 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12254 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12255 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12256 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12257 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12258 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12259 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12260 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12261 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12262 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12263 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12264 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12265 | ||
12266 | ;; | |
12267 | esac | |
12268 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12269 | $as_echo_n "checking for $ac_header... " >&6; } | |
12270 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12271 | $as_echo_n "(cached) " >&6 | |
12272 | else | |
12273 | eval "$as_ac_Header=\$ac_header_preproc" | |
12274 | fi | |
12275 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12276 | $as_echo "$as_val"'` | |
12277 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12278 | $as_echo "$ac_res" >&6; } | |
12279 | ||
12280 | fi | |
12281 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12282 | $as_echo "$as_val"'` | |
12283 | if test "x$as_val" = x""yes; then | |
12284 | cat >>confdefs.h <<_ACEOF | |
12285 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12286 | _ACEOF | |
12287 | ||
12288 | else | |
12289 | $bailout | |
12290 | fi | |
12291 | ||
12292 | done | |
12293 | ||
12294 | check_lib_no_libs gulm lg_core_login | |
12295 | if test $NOTFOUND = 0; then | |
12296 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
12297 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
12298 | GULM_LIBS="-lgulm" | |
12299 | HAVE_GULM=yes | |
12300 | fi | |
12301 | elif test $pkg_failed = untried; then | |
12302 | NOTFOUND=0 | |
12303 | ||
12304 | for ac_header in libgulm.h | |
12305 | do | |
12306 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12307 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12308 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12309 | $as_echo_n "checking for $ac_header... " >&6; } | |
12310 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12311 | $as_echo_n "(cached) " >&6 | |
12312 | fi | |
12313 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12314 | $as_echo "$as_val"'` | |
12315 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12316 | $as_echo "$ac_res" >&6; } | |
12317 | else | |
12318 | # Is the header compilable? | |
12319 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12320 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12321 | cat >conftest.$ac_ext <<_ACEOF | |
12322 | /* confdefs.h. */ | |
12323 | _ACEOF | |
12324 | cat confdefs.h >>conftest.$ac_ext | |
12325 | cat >>conftest.$ac_ext <<_ACEOF | |
12326 | /* end confdefs.h. */ | |
12327 | $ac_includes_default | |
12328 | #include <$ac_header> | |
12329 | _ACEOF | |
12330 | rm -f conftest.$ac_objext | |
12331 | if { (ac_try="$ac_compile" | |
12332 | case "(($ac_try" in | |
12333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12334 | *) ac_try_echo=$ac_try;; | |
12335 | esac | |
12336 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12337 | $as_echo "$ac_try_echo") >&5 | |
12338 | (eval "$ac_compile") 2>conftest.er1 | |
12339 | ac_status=$? | |
12340 | grep -v '^ *+' conftest.er1 >conftest.err | |
12341 | rm -f conftest.er1 | |
12342 | cat conftest.err >&5 | |
12343 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12344 | (exit $ac_status); } && { | |
12345 | test -z "$ac_c_werror_flag" || | |
12346 | test ! -s conftest.err | |
12347 | } && test -s conftest.$ac_objext; then | |
12348 | ac_header_compiler=yes | |
12349 | else | |
12350 | $as_echo "$as_me: failed program was:" >&5 | |
12351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12352 | ||
12353 | ac_header_compiler=no | |
12354 | fi | |
12355 | ||
12356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12357 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12358 | $as_echo "$ac_header_compiler" >&6; } | |
12359 | ||
12360 | # Is the header present? | |
12361 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12362 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12363 | cat >conftest.$ac_ext <<_ACEOF | |
12364 | /* confdefs.h. */ | |
12365 | _ACEOF | |
12366 | cat confdefs.h >>conftest.$ac_ext | |
12367 | cat >>conftest.$ac_ext <<_ACEOF | |
12368 | /* end confdefs.h. */ | |
12369 | #include <$ac_header> | |
12370 | _ACEOF | |
12371 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12372 | case "(($ac_try" in | |
12373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12374 | *) ac_try_echo=$ac_try;; | |
12375 | esac | |
12376 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12377 | $as_echo "$ac_try_echo") >&5 | |
12378 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12379 | ac_status=$? | |
12380 | grep -v '^ *+' conftest.er1 >conftest.err | |
12381 | rm -f conftest.er1 | |
12382 | cat conftest.err >&5 | |
12383 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12384 | (exit $ac_status); } >/dev/null && { | |
12385 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12386 | test ! -s conftest.err | |
12387 | }; then | |
12388 | ac_header_preproc=yes | |
12389 | else | |
12390 | $as_echo "$as_me: failed program was:" >&5 | |
12391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12392 | ||
12393 | ac_header_preproc=no | |
12394 | fi | |
12395 | ||
12396 | rm -f conftest.err conftest.$ac_ext | |
12397 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12398 | $as_echo "$ac_header_preproc" >&6; } | |
12399 | ||
12400 | # So? What about this header? | |
12401 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12402 | yes:no: ) | |
12403 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12404 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12405 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12406 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12407 | ac_header_preproc=yes | |
12408 | ;; | |
12409 | no:yes:* ) | |
12410 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12411 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12412 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12413 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12414 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12415 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12416 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12417 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12418 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12419 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12420 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12421 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12422 | ||
12423 | ;; | |
12424 | esac | |
12425 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12426 | $as_echo_n "checking for $ac_header... " >&6; } | |
12427 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12428 | $as_echo_n "(cached) " >&6 | |
12429 | else | |
12430 | eval "$as_ac_Header=\$ac_header_preproc" | |
12431 | fi | |
12432 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12433 | $as_echo "$as_val"'` | |
12434 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12435 | $as_echo "$ac_res" >&6; } | |
12436 | ||
12437 | fi | |
12438 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12439 | $as_echo "$as_val"'` | |
12440 | if test "x$as_val" = x""yes; then | |
12441 | cat >>confdefs.h <<_ACEOF | |
12442 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12443 | _ACEOF | |
12444 | ||
12445 | else | |
12446 | $bailout | |
12447 | fi | |
12448 | ||
12449 | done | |
12450 | ||
12451 | check_lib_no_libs gulm lg_core_login | |
12452 | if test $NOTFOUND = 0; then | |
12453 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
12454 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
12455 | GULM_LIBS="-lgulm" | |
12456 | HAVE_GULM=yes | |
12457 | fi | |
12458 | else | |
12459 | GULM_CFLAGS=$pkg_cv_GULM_CFLAGS | |
12460 | GULM_LIBS=$pkg_cv_GULM_LIBS | |
12461 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12462 | $as_echo "yes" >&6; } | |
12463 | HAVE_GULM=yes | |
12464 | fi | |
12465 | fi | |
12466 | ||
12467 | if test x$BUILDCMAN = xyes; then | |
12468 | ||
12469 | pkg_failed=no | |
12470 | { $as_echo "$as_me:$LINENO: checking for CMAN" >&5 | |
12471 | $as_echo_n "checking for CMAN... " >&6; } | |
12472 | ||
12473 | if test -n "$CMAN_CFLAGS"; then | |
12474 | pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS" | |
12475 | elif test -n "$PKG_CONFIG"; then | |
12476 | if test -n "$PKG_CONFIG" && \ | |
12477 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
12478 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
12479 | ac_status=$? | |
12480 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12481 | (exit $ac_status); }; then | |
12482 | pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null` | |
12483 | else | |
12484 | pkg_failed=yes | |
12485 | fi | |
12486 | else | |
12487 | pkg_failed=untried | |
12488 | fi | |
12489 | if test -n "$CMAN_LIBS"; then | |
12490 | pkg_cv_CMAN_LIBS="$CMAN_LIBS" | |
12491 | elif test -n "$PKG_CONFIG"; then | |
12492 | if test -n "$PKG_CONFIG" && \ | |
12493 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
12494 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
12495 | ac_status=$? | |
12496 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12497 | (exit $ac_status); }; then | |
12498 | pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null` | |
12499 | else | |
12500 | pkg_failed=yes | |
12501 | fi | |
12502 | else | |
12503 | pkg_failed=untried | |
12504 | fi | |
12505 | ||
12506 | ||
12507 | ||
12508 | if test $pkg_failed = yes; then | |
12509 | ||
12510 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12511 | _pkg_short_errors_supported=yes | |
12512 | else | |
12513 | _pkg_short_errors_supported=no | |
12514 | fi | |
12515 | if test $_pkg_short_errors_supported = yes; then | |
12516 | CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1` | |
12517 | else | |
12518 | CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1` | |
12519 | fi | |
12520 | # Put the nasty error message in config.log where it belongs | |
12521 | echo "$CMAN_PKG_ERRORS" >&5 | |
12522 | ||
8c4e8a18 FDN |
12523 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12524 | $as_echo "no" >&6; } | |
12525 | NOTFOUND=0 | |
a946372e AK |
12526 | |
12527 | for ac_header in libcman.h | |
12528 | do | |
12529 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12530 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12531 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12532 | $as_echo_n "checking for $ac_header... " >&6; } | |
12533 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12534 | $as_echo_n "(cached) " >&6 | |
12535 | fi | |
12536 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12537 | $as_echo "$as_val"'` | |
12538 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12539 | $as_echo "$ac_res" >&6; } | |
12540 | else | |
12541 | # Is the header compilable? | |
12542 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12543 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12544 | cat >conftest.$ac_ext <<_ACEOF | |
12545 | /* confdefs.h. */ | |
12546 | _ACEOF | |
12547 | cat confdefs.h >>conftest.$ac_ext | |
12548 | cat >>conftest.$ac_ext <<_ACEOF | |
12549 | /* end confdefs.h. */ | |
12550 | $ac_includes_default | |
12551 | #include <$ac_header> | |
12552 | _ACEOF | |
12553 | rm -f conftest.$ac_objext | |
12554 | if { (ac_try="$ac_compile" | |
12555 | case "(($ac_try" in | |
12556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12557 | *) ac_try_echo=$ac_try;; | |
12558 | esac | |
12559 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12560 | $as_echo "$ac_try_echo") >&5 | |
12561 | (eval "$ac_compile") 2>conftest.er1 | |
12562 | ac_status=$? | |
12563 | grep -v '^ *+' conftest.er1 >conftest.err | |
12564 | rm -f conftest.er1 | |
12565 | cat conftest.err >&5 | |
12566 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12567 | (exit $ac_status); } && { | |
12568 | test -z "$ac_c_werror_flag" || | |
12569 | test ! -s conftest.err | |
12570 | } && test -s conftest.$ac_objext; then | |
12571 | ac_header_compiler=yes | |
12572 | else | |
12573 | $as_echo "$as_me: failed program was:" >&5 | |
12574 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12575 | ||
12576 | ac_header_compiler=no | |
12577 | fi | |
12578 | ||
12579 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12580 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12581 | $as_echo "$ac_header_compiler" >&6; } | |
12582 | ||
12583 | # Is the header present? | |
12584 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12585 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12586 | cat >conftest.$ac_ext <<_ACEOF | |
12587 | /* confdefs.h. */ | |
12588 | _ACEOF | |
12589 | cat confdefs.h >>conftest.$ac_ext | |
12590 | cat >>conftest.$ac_ext <<_ACEOF | |
12591 | /* end confdefs.h. */ | |
12592 | #include <$ac_header> | |
12593 | _ACEOF | |
12594 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12595 | case "(($ac_try" in | |
12596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12597 | *) ac_try_echo=$ac_try;; | |
12598 | esac | |
12599 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12600 | $as_echo "$ac_try_echo") >&5 | |
12601 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12602 | ac_status=$? | |
12603 | grep -v '^ *+' conftest.er1 >conftest.err | |
12604 | rm -f conftest.er1 | |
12605 | cat conftest.err >&5 | |
12606 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12607 | (exit $ac_status); } >/dev/null && { | |
12608 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12609 | test ! -s conftest.err | |
12610 | }; then | |
12611 | ac_header_preproc=yes | |
12612 | else | |
12613 | $as_echo "$as_me: failed program was:" >&5 | |
12614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12615 | ||
12616 | ac_header_preproc=no | |
12617 | fi | |
12618 | ||
12619 | rm -f conftest.err conftest.$ac_ext | |
12620 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12621 | $as_echo "$ac_header_preproc" >&6; } | |
12622 | ||
12623 | # So? What about this header? | |
12624 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12625 | yes:no: ) | |
12626 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12627 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12628 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12629 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12630 | ac_header_preproc=yes | |
12631 | ;; | |
12632 | no:yes:* ) | |
12633 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12634 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12635 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12636 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12637 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12638 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12639 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12640 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12641 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12642 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12643 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12644 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12645 | ||
12646 | ;; | |
12647 | esac | |
12648 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12649 | $as_echo_n "checking for $ac_header... " >&6; } | |
12650 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12651 | $as_echo_n "(cached) " >&6 | |
12652 | else | |
12653 | eval "$as_ac_Header=\$ac_header_preproc" | |
12654 | fi | |
12655 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12656 | $as_echo "$as_val"'` | |
12657 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12658 | $as_echo "$ac_res" >&6; } | |
12659 | ||
12660 | fi | |
12661 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12662 | $as_echo "$as_val"'` | |
12663 | if test "x$as_val" = x""yes; then | |
12664 | cat >>confdefs.h <<_ACEOF | |
12665 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12666 | _ACEOF | |
12667 | ||
12668 | else | |
12669 | $bailout | |
12670 | fi | |
12671 | ||
12672 | done | |
12673 | ||
12674 | check_lib_no_libs cman cman_init | |
12675 | if test $NOTFOUND = 0; then | |
12676 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
12677 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
12678 | CMAN_LIBS="-lcman" | |
12679 | HAVE_CMAN=yes | |
12680 | fi | |
12681 | elif test $pkg_failed = untried; then | |
12682 | NOTFOUND=0 | |
12683 | ||
12684 | for ac_header in libcman.h | |
12685 | do | |
12686 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12687 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12688 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12689 | $as_echo_n "checking for $ac_header... " >&6; } | |
12690 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12691 | $as_echo_n "(cached) " >&6 | |
12692 | fi | |
12693 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12694 | $as_echo "$as_val"'` | |
12695 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12696 | $as_echo "$ac_res" >&6; } | |
12697 | else | |
12698 | # Is the header compilable? | |
12699 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12700 | $as_echo_n "checking $ac_header usability... " >&6; } | |
12701 | cat >conftest.$ac_ext <<_ACEOF | |
12702 | /* confdefs.h. */ | |
12703 | _ACEOF | |
12704 | cat confdefs.h >>conftest.$ac_ext | |
12705 | cat >>conftest.$ac_ext <<_ACEOF | |
12706 | /* end confdefs.h. */ | |
12707 | $ac_includes_default | |
12708 | #include <$ac_header> | |
12709 | _ACEOF | |
12710 | rm -f conftest.$ac_objext | |
12711 | if { (ac_try="$ac_compile" | |
12712 | case "(($ac_try" in | |
12713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12714 | *) ac_try_echo=$ac_try;; | |
12715 | esac | |
12716 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12717 | $as_echo "$ac_try_echo") >&5 | |
12718 | (eval "$ac_compile") 2>conftest.er1 | |
12719 | ac_status=$? | |
12720 | grep -v '^ *+' conftest.er1 >conftest.err | |
12721 | rm -f conftest.er1 | |
12722 | cat conftest.err >&5 | |
12723 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12724 | (exit $ac_status); } && { | |
12725 | test -z "$ac_c_werror_flag" || | |
12726 | test ! -s conftest.err | |
12727 | } && test -s conftest.$ac_objext; then | |
12728 | ac_header_compiler=yes | |
12729 | else | |
12730 | $as_echo "$as_me: failed program was:" >&5 | |
12731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12732 | ||
12733 | ac_header_compiler=no | |
12734 | fi | |
12735 | ||
12736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12737 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12738 | $as_echo "$ac_header_compiler" >&6; } | |
12739 | ||
12740 | # Is the header present? | |
12741 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12742 | $as_echo_n "checking $ac_header presence... " >&6; } | |
12743 | cat >conftest.$ac_ext <<_ACEOF | |
12744 | /* confdefs.h. */ | |
12745 | _ACEOF | |
12746 | cat confdefs.h >>conftest.$ac_ext | |
12747 | cat >>conftest.$ac_ext <<_ACEOF | |
12748 | /* end confdefs.h. */ | |
12749 | #include <$ac_header> | |
12750 | _ACEOF | |
12751 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12752 | case "(($ac_try" in | |
12753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12754 | *) ac_try_echo=$ac_try;; | |
12755 | esac | |
12756 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12757 | $as_echo "$ac_try_echo") >&5 | |
12758 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12759 | ac_status=$? | |
12760 | grep -v '^ *+' conftest.er1 >conftest.err | |
12761 | rm -f conftest.er1 | |
12762 | cat conftest.err >&5 | |
12763 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12764 | (exit $ac_status); } >/dev/null && { | |
12765 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12766 | test ! -s conftest.err | |
12767 | }; then | |
12768 | ac_header_preproc=yes | |
12769 | else | |
12770 | $as_echo "$as_me: failed program was:" >&5 | |
12771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12772 | ||
12773 | ac_header_preproc=no | |
12774 | fi | |
12775 | ||
12776 | rm -f conftest.err conftest.$ac_ext | |
12777 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12778 | $as_echo "$ac_header_preproc" >&6; } | |
12779 | ||
12780 | # So? What about this header? | |
12781 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12782 | yes:no: ) | |
12783 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12784 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12785 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12786 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12787 | ac_header_preproc=yes | |
12788 | ;; | |
12789 | no:yes:* ) | |
12790 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12791 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12792 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12793 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12794 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12795 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12796 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12797 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12798 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12799 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12800 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12801 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12802 | ||
12803 | ;; | |
12804 | esac | |
12805 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12806 | $as_echo_n "checking for $ac_header... " >&6; } | |
12807 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12808 | $as_echo_n "(cached) " >&6 | |
12809 | else | |
12810 | eval "$as_ac_Header=\$ac_header_preproc" | |
12811 | fi | |
12812 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12813 | $as_echo "$as_val"'` | |
12814 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12815 | $as_echo "$ac_res" >&6; } | |
12816 | ||
12817 | fi | |
12818 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
12819 | $as_echo "$as_val"'` | |
12820 | if test "x$as_val" = x""yes; then | |
12821 | cat >>confdefs.h <<_ACEOF | |
12822 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12823 | _ACEOF | |
12824 | ||
12825 | else | |
12826 | $bailout | |
12827 | fi | |
12828 | ||
12829 | done | |
12830 | ||
12831 | check_lib_no_libs cman cman_init | |
12832 | if test $NOTFOUND = 0; then | |
12833 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
12834 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
12835 | CMAN_LIBS="-lcman" | |
12836 | HAVE_CMAN=yes | |
12837 | fi | |
12838 | else | |
12839 | CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS | |
12840 | CMAN_LIBS=$pkg_cv_CMAN_LIBS | |
12841 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12842 | $as_echo "yes" >&6; } | |
12843 | HAVE_CMAN=yes | |
12844 | fi | |
12845 | CHECKCONFDB=yes | |
12846 | CHECKDLM=yes | |
12847 | fi | |
12848 | ||
12849 | if test x$BUILDCOROSYNC = xyes || \ | |
12850 | test x$BUILDOPENAIS = xyes; then | |
12851 | ||
12852 | pkg_failed=no | |
12853 | { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5 | |
12854 | $as_echo_n "checking for COROSYNC... " >&6; } | |
12855 | ||
12856 | if test -n "$COROSYNC_CFLAGS"; then | |
12857 | pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS" | |
12858 | elif test -n "$PKG_CONFIG"; then | |
12859 | if test -n "$PKG_CONFIG" && \ | |
12860 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
12861 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
12862 | ac_status=$? | |
12863 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12864 | (exit $ac_status); }; then | |
12865 | pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null` | |
12866 | else | |
12867 | pkg_failed=yes | |
12868 | fi | |
12869 | else | |
12870 | pkg_failed=untried | |
12871 | fi | |
12872 | if test -n "$COROSYNC_LIBS"; then | |
12873 | pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS" | |
12874 | elif test -n "$PKG_CONFIG"; then | |
12875 | if test -n "$PKG_CONFIG" && \ | |
12876 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
12877 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
12878 | ac_status=$? | |
12879 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12880 | (exit $ac_status); }; then | |
12881 | pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null` | |
12882 | else | |
12883 | pkg_failed=yes | |
12884 | fi | |
12885 | else | |
12886 | pkg_failed=untried | |
12887 | fi | |
12888 | ||
12889 | ||
12890 | ||
12891 | if test $pkg_failed = yes; then | |
12892 | ||
12893 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12894 | _pkg_short_errors_supported=yes | |
12895 | else | |
12896 | _pkg_short_errors_supported=no | |
12897 | fi | |
12898 | if test $_pkg_short_errors_supported = yes; then | |
12899 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1` | |
12900 | else | |
12901 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1` | |
12902 | fi | |
12903 | # Put the nasty error message in config.log where it belongs | |
12904 | echo "$COROSYNC_PKG_ERRORS" >&5 | |
12905 | ||
8c4e8a18 | 12906 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 12907 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
12908 | $bailout |
12909 | elif test $pkg_failed = untried; then | |
a946372e AK |
12910 | $bailout |
12911 | else | |
12912 | COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS | |
12913 | COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS | |
12914 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12915 | $as_echo "yes" >&6; } | |
12916 | HAVE_COROSYNC=yes | |
12917 | fi | |
12918 | CHECKCONFDB=yes | |
12919 | fi | |
12920 | ||
12921 | if test x$BUILDCOROSYNC = xyes; then | |
12922 | ||
12923 | pkg_failed=no | |
12924 | { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5 | |
12925 | $as_echo_n "checking for QUORUM... " >&6; } | |
12926 | ||
12927 | if test -n "$QUORUM_CFLAGS"; then | |
12928 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
12929 | elif test -n "$PKG_CONFIG"; then | |
12930 | if test -n "$PKG_CONFIG" && \ | |
12931 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
12932 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
12933 | ac_status=$? | |
12934 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12935 | (exit $ac_status); }; then | |
12936 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
12937 | else | |
12938 | pkg_failed=yes | |
12939 | fi | |
12940 | else | |
12941 | pkg_failed=untried | |
12942 | fi | |
12943 | if test -n "$QUORUM_LIBS"; then | |
12944 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
12945 | elif test -n "$PKG_CONFIG"; then | |
12946 | if test -n "$PKG_CONFIG" && \ | |
12947 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
12948 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
12949 | ac_status=$? | |
12950 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12951 | (exit $ac_status); }; then | |
12952 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
12953 | else | |
12954 | pkg_failed=yes | |
12955 | fi | |
12956 | else | |
12957 | pkg_failed=untried | |
12958 | fi | |
12959 | ||
12960 | ||
12961 | ||
12962 | if test $pkg_failed = yes; then | |
12963 | ||
12964 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12965 | _pkg_short_errors_supported=yes | |
12966 | else | |
12967 | _pkg_short_errors_supported=no | |
12968 | fi | |
12969 | if test $_pkg_short_errors_supported = yes; then | |
12970 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
12971 | else | |
12972 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
12973 | fi | |
12974 | # Put the nasty error message in config.log where it belongs | |
12975 | echo "$QUORUM_PKG_ERRORS" >&5 | |
12976 | ||
8c4e8a18 | 12977 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 12978 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
12979 | $bailout |
12980 | elif test $pkg_failed = untried; then | |
a946372e AK |
12981 | $bailout |
12982 | else | |
12983 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
12984 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
12985 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12986 | $as_echo "yes" >&6; } | |
12987 | HAVE_QUORUM=yes | |
12988 | fi | |
12989 | CHECKCPG=yes | |
12990 | CHECKDLM=yes | |
12991 | fi | |
12992 | ||
12993 | if test x$BUILDOPENAIS = xyes; then | |
12994 | ||
12995 | pkg_failed=no | |
12996 | { $as_echo "$as_me:$LINENO: checking for SALCK" >&5 | |
12997 | $as_echo_n "checking for SALCK... " >&6; } | |
12998 | ||
12999 | if test -n "$SALCK_CFLAGS"; then | |
13000 | pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS" | |
13001 | elif test -n "$PKG_CONFIG"; then | |
13002 | if test -n "$PKG_CONFIG" && \ | |
13003 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
13004 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
13005 | ac_status=$? | |
13006 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13007 | (exit $ac_status); }; then | |
13008 | pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null` | |
13009 | else | |
13010 | pkg_failed=yes | |
13011 | fi | |
13012 | else | |
13013 | pkg_failed=untried | |
13014 | fi | |
13015 | if test -n "$SALCK_LIBS"; then | |
13016 | pkg_cv_SALCK_LIBS="$SALCK_LIBS" | |
13017 | elif test -n "$PKG_CONFIG"; then | |
13018 | if test -n "$PKG_CONFIG" && \ | |
13019 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
13020 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
13021 | ac_status=$? | |
13022 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13023 | (exit $ac_status); }; then | |
13024 | pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null` | |
13025 | else | |
13026 | pkg_failed=yes | |
13027 | fi | |
13028 | else | |
13029 | pkg_failed=untried | |
13030 | fi | |
13031 | ||
13032 | ||
13033 | ||
13034 | if test $pkg_failed = yes; then | |
13035 | ||
13036 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13037 | _pkg_short_errors_supported=yes | |
13038 | else | |
13039 | _pkg_short_errors_supported=no | |
13040 | fi | |
13041 | if test $_pkg_short_errors_supported = yes; then | |
13042 | SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1` | |
13043 | else | |
13044 | SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1` | |
13045 | fi | |
13046 | # Put the nasty error message in config.log where it belongs | |
13047 | echo "$SALCK_PKG_ERRORS" >&5 | |
13048 | ||
8c4e8a18 | 13049 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 13050 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
13051 | $bailout |
13052 | elif test $pkg_failed = untried; then | |
a946372e AK |
13053 | $bailout |
13054 | else | |
13055 | SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS | |
13056 | SALCK_LIBS=$pkg_cv_SALCK_LIBS | |
13057 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13058 | $as_echo "yes" >&6; } | |
13059 | HAVE_SALCK=yes | |
13060 | fi | |
13061 | CHECKCPG=yes | |
13062 | fi | |
13063 | ||
13064 | ||
13065 | ||
13066 | if test x$CHECKCONFDB = xyes; then | |
13067 | ||
13068 | pkg_failed=no | |
13069 | { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5 | |
13070 | $as_echo_n "checking for CONFDB... " >&6; } | |
13071 | ||
13072 | if test -n "$CONFDB_CFLAGS"; then | |
13073 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
13074 | elif test -n "$PKG_CONFIG"; then | |
13075 | if test -n "$PKG_CONFIG" && \ | |
13076 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
13077 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
13078 | ac_status=$? | |
13079 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13080 | (exit $ac_status); }; then | |
13081 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
13082 | else | |
13083 | pkg_failed=yes | |
13084 | fi | |
13085 | else | |
13086 | pkg_failed=untried | |
13087 | fi | |
13088 | if test -n "$CONFDB_LIBS"; then | |
13089 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
13090 | elif test -n "$PKG_CONFIG"; then | |
13091 | if test -n "$PKG_CONFIG" && \ | |
13092 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
13093 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
13094 | ac_status=$? | |
13095 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13096 | (exit $ac_status); }; then | |
13097 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
13098 | else | |
13099 | pkg_failed=yes | |
13100 | fi | |
13101 | else | |
13102 | pkg_failed=untried | |
13103 | fi | |
13104 | ||
13105 | ||
13106 | ||
13107 | if test $pkg_failed = yes; then | |
13108 | ||
13109 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13110 | _pkg_short_errors_supported=yes | |
13111 | else | |
13112 | _pkg_short_errors_supported=no | |
13113 | fi | |
13114 | if test $_pkg_short_errors_supported = yes; then | |
13115 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
13116 | else | |
13117 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
13118 | fi | |
13119 | # Put the nasty error message in config.log where it belongs | |
13120 | echo "$CONFDB_PKG_ERRORS" >&5 | |
13121 | ||
8c4e8a18 | 13122 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 13123 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
13124 | HAVE_CONFDB=no |
13125 | elif test $pkg_failed = untried; then | |
a946372e AK |
13126 | HAVE_CONFDB=no |
13127 | else | |
13128 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
13129 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
13130 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13131 | $as_echo "yes" >&6; } | |
13132 | HAVE_CONFDB=yes | |
13133 | fi | |
13134 | ||
13135 | ||
13136 | for ac_header in corosync/confdb.h | |
13137 | do | |
13138 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13139 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13140 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13141 | $as_echo_n "checking for $ac_header... " >&6; } | |
13142 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13143 | $as_echo_n "(cached) " >&6 | |
13144 | fi | |
13145 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13146 | $as_echo "$as_val"'` | |
13147 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13148 | $as_echo "$ac_res" >&6; } | |
13149 | else | |
13150 | # Is the header compilable? | |
13151 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13152 | $as_echo_n "checking $ac_header usability... " >&6; } | |
13153 | cat >conftest.$ac_ext <<_ACEOF | |
13154 | /* confdefs.h. */ | |
13155 | _ACEOF | |
13156 | cat confdefs.h >>conftest.$ac_ext | |
13157 | cat >>conftest.$ac_ext <<_ACEOF | |
13158 | /* end confdefs.h. */ | |
13159 | $ac_includes_default | |
13160 | #include <$ac_header> | |
13161 | _ACEOF | |
13162 | rm -f conftest.$ac_objext | |
13163 | if { (ac_try="$ac_compile" | |
13164 | case "(($ac_try" in | |
13165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13166 | *) ac_try_echo=$ac_try;; | |
13167 | esac | |
13168 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13169 | $as_echo "$ac_try_echo") >&5 | |
13170 | (eval "$ac_compile") 2>conftest.er1 | |
13171 | ac_status=$? | |
13172 | grep -v '^ *+' conftest.er1 >conftest.err | |
13173 | rm -f conftest.er1 | |
13174 | cat conftest.err >&5 | |
13175 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13176 | (exit $ac_status); } && { | |
13177 | test -z "$ac_c_werror_flag" || | |
13178 | test ! -s conftest.err | |
13179 | } && test -s conftest.$ac_objext; then | |
13180 | ac_header_compiler=yes | |
13181 | else | |
13182 | $as_echo "$as_me: failed program was:" >&5 | |
13183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13184 | ||
13185 | ac_header_compiler=no | |
13186 | fi | |
13187 | ||
13188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13189 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13190 | $as_echo "$ac_header_compiler" >&6; } | |
13191 | ||
13192 | # Is the header present? | |
13193 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13194 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13195 | cat >conftest.$ac_ext <<_ACEOF | |
13196 | /* confdefs.h. */ | |
13197 | _ACEOF | |
13198 | cat confdefs.h >>conftest.$ac_ext | |
13199 | cat >>conftest.$ac_ext <<_ACEOF | |
13200 | /* end confdefs.h. */ | |
13201 | #include <$ac_header> | |
13202 | _ACEOF | |
13203 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13204 | case "(($ac_try" in | |
13205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13206 | *) ac_try_echo=$ac_try;; | |
13207 | esac | |
13208 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13209 | $as_echo "$ac_try_echo") >&5 | |
13210 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13211 | ac_status=$? | |
13212 | grep -v '^ *+' conftest.er1 >conftest.err | |
13213 | rm -f conftest.er1 | |
13214 | cat conftest.err >&5 | |
13215 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13216 | (exit $ac_status); } >/dev/null && { | |
13217 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13218 | test ! -s conftest.err | |
13219 | }; then | |
13220 | ac_header_preproc=yes | |
13221 | else | |
13222 | $as_echo "$as_me: failed program was:" >&5 | |
13223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13224 | ||
13225 | ac_header_preproc=no | |
13226 | fi | |
13227 | ||
13228 | rm -f conftest.err conftest.$ac_ext | |
13229 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13230 | $as_echo "$ac_header_preproc" >&6; } | |
13231 | ||
13232 | # So? What about this header? | |
13233 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13234 | yes:no: ) | |
13235 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13236 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13237 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13238 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13239 | ac_header_preproc=yes | |
13240 | ;; | |
13241 | no:yes:* ) | |
13242 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13243 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13244 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13245 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13246 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13247 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13248 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13249 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13250 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13251 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13252 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13253 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13254 | ||
13255 | ;; | |
13256 | esac | |
13257 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13258 | $as_echo_n "checking for $ac_header... " >&6; } | |
13259 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13260 | $as_echo_n "(cached) " >&6 | |
13261 | else | |
13262 | eval "$as_ac_Header=\$ac_header_preproc" | |
13263 | fi | |
13264 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13265 | $as_echo "$as_val"'` | |
13266 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13267 | $as_echo "$ac_res" >&6; } | |
13268 | ||
13269 | fi | |
13270 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
13271 | $as_echo "$as_val"'` | |
13272 | if test "x$as_val" = x""yes; then | |
13273 | cat >>confdefs.h <<_ACEOF | |
13274 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13275 | _ACEOF | |
13276 | HAVE_CONFDB_H=yes | |
13277 | else | |
13278 | HAVE_CONFDB_H=no | |
13279 | fi | |
13280 | ||
13281 | done | |
13282 | ||
13283 | ||
13284 | if test x$HAVE_CONFDB != xyes && \ | |
13285 | test x$HAVE_CONFDB_H = xyes; then | |
13286 | check_lib_no_libs confdb confdb_initialize | |
13287 | { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5 | |
13288 | $as_echo "no pkg for confdb, using -lconfdb" >&6; } | |
13289 | CONFDB_LIBS="-lconfdb" | |
13290 | HAVE_CONFDB=yes | |
13291 | fi | |
13292 | ||
13293 | if test x$BUILDCOROSYNC = xyes && \ | |
13294 | test x$HAVE_CONFDB != xyes && | |
13295 | test x$CLVMD != xall; then | |
13296 | { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5 | |
13297 | $as_echo "$as_me: error: bailing out... confdb library is required" >&2;} | |
13298 | { (exit 1); exit 1; }; } | |
13299 | fi | |
13300 | fi | |
13301 | ||
13302 | if test x$CHECKCPG = xyes; then | |
13303 | ||
13304 | pkg_failed=no | |
13305 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
13306 | $as_echo_n "checking for CPG... " >&6; } | |
13307 | ||
13308 | if test -n "$CPG_CFLAGS"; then | |
13309 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
13310 | elif test -n "$PKG_CONFIG"; then | |
13311 | if test -n "$PKG_CONFIG" && \ | |
13312 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
13313 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
13314 | ac_status=$? | |
13315 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13316 | (exit $ac_status); }; then | |
13317 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
13318 | else | |
13319 | pkg_failed=yes | |
13320 | fi | |
13321 | else | |
13322 | pkg_failed=untried | |
13323 | fi | |
13324 | if test -n "$CPG_LIBS"; then | |
13325 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
13326 | elif test -n "$PKG_CONFIG"; then | |
13327 | if test -n "$PKG_CONFIG" && \ | |
13328 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
13329 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
13330 | ac_status=$? | |
13331 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13332 | (exit $ac_status); }; then | |
13333 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
13334 | else | |
13335 | pkg_failed=yes | |
13336 | fi | |
13337 | else | |
13338 | pkg_failed=untried | |
13339 | fi | |
13340 | ||
13341 | ||
13342 | ||
13343 | if test $pkg_failed = yes; then | |
13344 | ||
13345 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13346 | _pkg_short_errors_supported=yes | |
13347 | else | |
13348 | _pkg_short_errors_supported=no | |
13349 | fi | |
13350 | if test $_pkg_short_errors_supported = yes; then | |
13351 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
13352 | else | |
13353 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
13354 | fi | |
13355 | # Put the nasty error message in config.log where it belongs | |
13356 | echo "$CPG_PKG_ERRORS" >&5 | |
13357 | ||
8c4e8a18 | 13358 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
71082be4 | 13359 | $as_echo "no" >&6; } |
8c4e8a18 FDN |
13360 | $bailout |
13361 | elif test $pkg_failed = untried; then | |
a946372e AK |
13362 | $bailout |
13363 | else | |
13364 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
13365 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
13366 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13367 | $as_echo "yes" >&6; } | |
13368 | HAVE_CPG=yes | |
13369 | fi | |
13370 | fi | |
13371 | ||
13372 | if test x$CHECKDLM = xyes; then | |
13373 | ||
13374 | pkg_failed=no | |
13375 | { $as_echo "$as_me:$LINENO: checking for DLM" >&5 | |
13376 | $as_echo_n "checking for DLM... " >&6; } | |
13377 | ||
13378 | if test -n "$DLM_CFLAGS"; then | |
13379 | pkg_cv_DLM_CFLAGS="$DLM_CFLAGS" | |
13380 | elif test -n "$PKG_CONFIG"; then | |
13381 | if test -n "$PKG_CONFIG" && \ | |
13382 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
13383 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
13384 | ac_status=$? | |
13385 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13386 | (exit $ac_status); }; then | |
13387 | pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null` | |
13388 | else | |
13389 | pkg_failed=yes | |
13390 | fi | |
13391 | else | |
13392 | pkg_failed=untried | |
13393 | fi | |
13394 | if test -n "$DLM_LIBS"; then | |
13395 | pkg_cv_DLM_LIBS="$DLM_LIBS" | |
13396 | elif test -n "$PKG_CONFIG"; then | |
13397 | if test -n "$PKG_CONFIG" && \ | |
13398 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
13399 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
13400 | ac_status=$? | |
13401 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13402 | (exit $ac_status); }; then | |
13403 | pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null` | |
13404 | else | |
13405 | pkg_failed=yes | |
13406 | fi | |
13407 | else | |
13408 | pkg_failed=untried | |
13409 | fi | |
13410 | ||
13411 | ||
13412 | ||
13413 | if test $pkg_failed = yes; then | |
13414 | ||
13415 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13416 | _pkg_short_errors_supported=yes | |
13417 | else | |
13418 | _pkg_short_errors_supported=no | |
13419 | fi | |
13420 | if test $_pkg_short_errors_supported = yes; then | |
13421 | DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1` | |
13422 | else | |
13423 | DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1` | |
13424 | fi | |
13425 | # Put the nasty error message in config.log where it belongs | |
13426 | echo "$DLM_PKG_ERRORS" >&5 | |
13427 | ||
8c4e8a18 FDN |
13428 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13429 | $as_echo "no" >&6; } | |
13430 | NOTFOUND=0 | |
a946372e AK |
13431 | |
13432 | for ac_header in libdlm.h | |
13433 | do | |
13434 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13435 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13436 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13437 | $as_echo_n "checking for $ac_header... " >&6; } | |
13438 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13439 | $as_echo_n "(cached) " >&6 | |
13440 | fi | |
13441 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13442 | $as_echo "$as_val"'` | |
13443 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13444 | $as_echo "$ac_res" >&6; } | |
13445 | else | |
13446 | # Is the header compilable? | |
13447 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13448 | $as_echo_n "checking $ac_header usability... " >&6; } | |
13449 | cat >conftest.$ac_ext <<_ACEOF | |
13450 | /* confdefs.h. */ | |
13451 | _ACEOF | |
13452 | cat confdefs.h >>conftest.$ac_ext | |
13453 | cat >>conftest.$ac_ext <<_ACEOF | |
13454 | /* end confdefs.h. */ | |
13455 | $ac_includes_default | |
13456 | #include <$ac_header> | |
13457 | _ACEOF | |
13458 | rm -f conftest.$ac_objext | |
13459 | if { (ac_try="$ac_compile" | |
13460 | case "(($ac_try" in | |
13461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13462 | *) ac_try_echo=$ac_try;; | |
13463 | esac | |
13464 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13465 | $as_echo "$ac_try_echo") >&5 | |
13466 | (eval "$ac_compile") 2>conftest.er1 | |
13467 | ac_status=$? | |
13468 | grep -v '^ *+' conftest.er1 >conftest.err | |
13469 | rm -f conftest.er1 | |
13470 | cat conftest.err >&5 | |
13471 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13472 | (exit $ac_status); } && { | |
13473 | test -z "$ac_c_werror_flag" || | |
13474 | test ! -s conftest.err | |
13475 | } && test -s conftest.$ac_objext; then | |
13476 | ac_header_compiler=yes | |
13477 | else | |
13478 | $as_echo "$as_me: failed program was:" >&5 | |
13479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13480 | ||
13481 | ac_header_compiler=no | |
13482 | fi | |
13483 | ||
13484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13485 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13486 | $as_echo "$ac_header_compiler" >&6; } | |
13487 | ||
13488 | # Is the header present? | |
13489 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13490 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13491 | cat >conftest.$ac_ext <<_ACEOF | |
13492 | /* confdefs.h. */ | |
13493 | _ACEOF | |
13494 | cat confdefs.h >>conftest.$ac_ext | |
13495 | cat >>conftest.$ac_ext <<_ACEOF | |
13496 | /* end confdefs.h. */ | |
13497 | #include <$ac_header> | |
13498 | _ACEOF | |
13499 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13500 | case "(($ac_try" in | |
13501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13502 | *) ac_try_echo=$ac_try;; | |
13503 | esac | |
13504 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13505 | $as_echo "$ac_try_echo") >&5 | |
13506 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13507 | ac_status=$? | |
13508 | grep -v '^ *+' conftest.er1 >conftest.err | |
13509 | rm -f conftest.er1 | |
13510 | cat conftest.err >&5 | |
13511 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13512 | (exit $ac_status); } >/dev/null && { | |
13513 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13514 | test ! -s conftest.err | |
13515 | }; then | |
13516 | ac_header_preproc=yes | |
13517 | else | |
13518 | $as_echo "$as_me: failed program was:" >&5 | |
13519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13520 | ||
13521 | ac_header_preproc=no | |
13522 | fi | |
13523 | ||
13524 | rm -f conftest.err conftest.$ac_ext | |
13525 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13526 | $as_echo "$ac_header_preproc" >&6; } | |
13527 | ||
13528 | # So? What about this header? | |
13529 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13530 | yes:no: ) | |
13531 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13532 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13533 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13534 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13535 | ac_header_preproc=yes | |
13536 | ;; | |
13537 | no:yes:* ) | |
13538 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13539 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13540 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13541 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13542 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13543 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13544 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13545 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13546 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13547 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13548 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13549 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13550 | ||
13551 | ;; | |
13552 | esac | |
13553 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13554 | $as_echo_n "checking for $ac_header... " >&6; } | |
13555 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13556 | $as_echo_n "(cached) " >&6 | |
13557 | else | |
13558 | eval "$as_ac_Header=\$ac_header_preproc" | |
13559 | fi | |
13560 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13561 | $as_echo "$as_val"'` | |
13562 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13563 | $as_echo "$ac_res" >&6; } | |
13564 | ||
13565 | fi | |
13566 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
13567 | $as_echo "$as_val"'` | |
13568 | if test "x$as_val" = x""yes; then | |
13569 | cat >>confdefs.h <<_ACEOF | |
13570 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13571 | _ACEOF | |
13572 | ||
13573 | else | |
13574 | $bailout | |
13575 | fi | |
13576 | ||
13577 | done | |
13578 | ||
13579 | check_lib_no_libs dlm dlm_lock -lpthread | |
13580 | if test $NOTFOUND = 0; then | |
13581 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
13582 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
13583 | DLM_LIBS="-ldlm -lpthread" | |
13584 | HAVE_DLM=yes | |
13585 | fi | |
13586 | elif test $pkg_failed = untried; then | |
13587 | NOTFOUND=0 | |
13588 | ||
13589 | for ac_header in libdlm.h | |
13590 | do | |
13591 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13592 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13593 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13594 | $as_echo_n "checking for $ac_header... " >&6; } | |
13595 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13596 | $as_echo_n "(cached) " >&6 | |
13597 | fi | |
13598 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13599 | $as_echo "$as_val"'` | |
13600 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13601 | $as_echo "$ac_res" >&6; } | |
13602 | else | |
13603 | # Is the header compilable? | |
13604 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13605 | $as_echo_n "checking $ac_header usability... " >&6; } | |
13606 | cat >conftest.$ac_ext <<_ACEOF | |
13607 | /* confdefs.h. */ | |
13608 | _ACEOF | |
13609 | cat confdefs.h >>conftest.$ac_ext | |
13610 | cat >>conftest.$ac_ext <<_ACEOF | |
13611 | /* end confdefs.h. */ | |
13612 | $ac_includes_default | |
13613 | #include <$ac_header> | |
13614 | _ACEOF | |
13615 | rm -f conftest.$ac_objext | |
13616 | if { (ac_try="$ac_compile" | |
13617 | case "(($ac_try" in | |
13618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13619 | *) ac_try_echo=$ac_try;; | |
13620 | esac | |
13621 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13622 | $as_echo "$ac_try_echo") >&5 | |
13623 | (eval "$ac_compile") 2>conftest.er1 | |
13624 | ac_status=$? | |
13625 | grep -v '^ *+' conftest.er1 >conftest.err | |
13626 | rm -f conftest.er1 | |
13627 | cat conftest.err >&5 | |
13628 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13629 | (exit $ac_status); } && { | |
13630 | test -z "$ac_c_werror_flag" || | |
13631 | test ! -s conftest.err | |
13632 | } && test -s conftest.$ac_objext; then | |
13633 | ac_header_compiler=yes | |
13634 | else | |
13635 | $as_echo "$as_me: failed program was:" >&5 | |
13636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13637 | ||
13638 | ac_header_compiler=no | |
13639 | fi | |
13640 | ||
13641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13642 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13643 | $as_echo "$ac_header_compiler" >&6; } | |
13644 | ||
13645 | # Is the header present? | |
13646 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13647 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13648 | cat >conftest.$ac_ext <<_ACEOF | |
13649 | /* confdefs.h. */ | |
13650 | _ACEOF | |
13651 | cat confdefs.h >>conftest.$ac_ext | |
13652 | cat >>conftest.$ac_ext <<_ACEOF | |
13653 | /* end confdefs.h. */ | |
13654 | #include <$ac_header> | |
13655 | _ACEOF | |
13656 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13657 | case "(($ac_try" in | |
13658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13659 | *) ac_try_echo=$ac_try;; | |
13660 | esac | |
13661 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13662 | $as_echo "$ac_try_echo") >&5 | |
13663 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13664 | ac_status=$? | |
13665 | grep -v '^ *+' conftest.er1 >conftest.err | |
13666 | rm -f conftest.er1 | |
13667 | cat conftest.err >&5 | |
13668 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13669 | (exit $ac_status); } >/dev/null && { | |
13670 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13671 | test ! -s conftest.err | |
13672 | }; then | |
13673 | ac_header_preproc=yes | |
13674 | else | |
13675 | $as_echo "$as_me: failed program was:" >&5 | |
13676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13677 | ||
13678 | ac_header_preproc=no | |
13679 | fi | |
13680 | ||
13681 | rm -f conftest.err conftest.$ac_ext | |
13682 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13683 | $as_echo "$ac_header_preproc" >&6; } | |
13684 | ||
13685 | # So? What about this header? | |
13686 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13687 | yes:no: ) | |
13688 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13689 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13690 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13691 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13692 | ac_header_preproc=yes | |
13693 | ;; | |
13694 | no:yes:* ) | |
13695 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13696 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13697 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13698 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13699 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13700 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13701 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13702 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13703 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13704 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13705 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13706 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13707 | ||
13708 | ;; | |
13709 | esac | |
13710 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13711 | $as_echo_n "checking for $ac_header... " >&6; } | |
13712 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13713 | $as_echo_n "(cached) " >&6 | |
13714 | else | |
13715 | eval "$as_ac_Header=\$ac_header_preproc" | |
13716 | fi | |
13717 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
13718 | $as_echo "$as_val"'` | |
13719 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13720 | $as_echo "$ac_res" >&6; } | |
13721 | ||
13722 | fi | |
13723 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
13724 | $as_echo "$as_val"'` | |
13725 | if test "x$as_val" = x""yes; then | |
13726 | cat >>confdefs.h <<_ACEOF | |
13727 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13728 | _ACEOF | |
13729 | ||
13730 | else | |
13731 | $bailout | |
13732 | fi | |
13733 | ||
13734 | done | |
13735 | ||
13736 | check_lib_no_libs dlm dlm_lock -lpthread | |
13737 | if test $NOTFOUND = 0; then | |
13738 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
13739 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
13740 | DLM_LIBS="-ldlm -lpthread" | |
13741 | HAVE_DLM=yes | |
13742 | fi | |
13743 | else | |
13744 | DLM_CFLAGS=$pkg_cv_DLM_CFLAGS | |
13745 | DLM_LIBS=$pkg_cv_DLM_LIBS | |
13746 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13747 | $as_echo "yes" >&6; } | |
13748 | HAVE_DLM=yes | |
13749 | fi | |
13750 | fi | |
13751 | ||
13752 | if test x$CLVMD = xall; then | |
8c222979 | 13753 | CLVMD=none |
c89bc357 MB |
13754 | CLVMD_CMANAGERS="" |
13755 | CLVMD_NEEDS_QDISKD=no | |
a946372e AK |
13756 | if test x$HAVE_CCS = xyes && \ |
13757 | test x$HAVE_GULM = xyes; then | |
8c222979 FDN |
13758 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5 |
13759 | $as_echo "Enabling clvmd gulm cluster manager" >&6; } | |
13760 | CLVMD="$CLVMD,gulm" | |
c89bc357 MB |
13761 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd" |
13762 | CLVMD_NEEDS_QDISKD=yes | |
a946372e AK |
13763 | fi |
13764 | if test x$HAVE_CMAN = xyes && \ | |
13765 | test x$HAVE_DLM = xyes; then | |
8c222979 FDN |
13766 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5 |
13767 | $as_echo "Enabling clvmd cman cluster manager" >&6; } | |
13768 | CLVMD="$CLVMD,cman" | |
c89bc357 MB |
13769 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman" |
13770 | CLVMD_NEEDS_QDISKD=yes | |
a946372e AK |
13771 | fi |
13772 | if test x$HAVE_COROSYNC = xyes && \ | |
13773 | test x$HAVE_QUORUM = xyes && \ | |
13774 | test x$HAVE_CPG = xyes && \ | |
13775 | test x$HAVE_DLM = xyes && \ | |
13776 | test x$HAVE_CONFDB = xyes; then | |
8c222979 FDN |
13777 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5 |
13778 | $as_echo "Enabling clvmd corosync cluster manager" >&6; } | |
13779 | CLVMD="$CLVMD,corosync" | |
c89bc357 | 13780 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync" |
a946372e AK |
13781 | fi |
13782 | if test x$HAVE_COROSYNC = xyes && \ | |
13783 | test x$HAVE_CPG = xyes && \ | |
13784 | test x$HAVE_SALCK = xyes; then | |
8c222979 FDN |
13785 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5 |
13786 | $as_echo "Enabling clvmd openais cluster manager" >&6; } | |
13787 | CLVMD="$CLVMD,openais" | |
c89bc357 MB |
13788 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais" |
13789 | fi | |
13790 | if test x$CLVMD_NEEDS_QDISKD != xno; then | |
13791 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd" | |
8c222979 FDN |
13792 | fi |
13793 | if test x$CLVMD = xnone; then | |
13794 | { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5 | |
13795 | $as_echo "Disabling clvmd build. No cluster manager detected." >&6; } | |
a946372e | 13796 | fi |
a946372e AK |
13797 | fi |
13798 | ||
8c4e8a18 FDN |
13799 | ################################################################################ |
13800 | if test "x$CLVMD" != xnone; then | |
13801 | ||
13802 | # Check whether --with-clvmd-pidfile was given. | |
13803 | if test "${with_clvmd_pidfile+set}" = set; then | |
13804 | withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval | |
13805 | else | |
13806 | CLVMD_PIDFILE="/var/run/clvmd.pid" | |
13807 | fi | |
13808 | ||
13809 | ||
13810 | cat >>confdefs.h <<_ACEOF | |
13811 | #define CLVMD_PIDFILE "$CLVMD_PIDFILE" | |
13812 | _ACEOF | |
13813 | ||
13814 | fi | |
13815 | ||
a946372e | 13816 | ################################################################################ |
66fd4529 AK |
13817 | { $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5 |
13818 | $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; } | |
13819 | # Check whether --enable-cmirrord was given. | |
13820 | if test "${enable_cmirrord+set}" = set; then | |
13821 | enableval=$enable_cmirrord; CMIRRORD=$enableval | |
13822 | else | |
13823 | CMIRRORD=no | |
13824 | fi | |
13825 | ||
13826 | { $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5 | |
13827 | $as_echo "$CMIRRORD" >&6; } | |
13828 | ||
13829 | BUILD_CMIRRORD=$CMIRRORD | |
13830 | ||
13831 | ################################################################################ | |
66fd4529 AK |
13832 | if test "x$BUILD_CMIRRORD" = xyes; then |
13833 | ||
13834 | # Check whether --with-cmirrord-pidfile was given. | |
13835 | if test "${with_cmirrord_pidfile+set}" = set; then | |
71082be4 | 13836 | withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval |
66fd4529 | 13837 | else |
71082be4 | 13838 | CMIRRORD_PIDFILE="/var/run/cmirrord.pid" |
a946372e AK |
13839 | fi |
13840 | ||
71082be4 ZK |
13841 | |
13842 | cat >>confdefs.h <<_ACEOF | |
13843 | #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE" | |
13844 | _ACEOF | |
13845 | ||
66fd4529 | 13846 | fi |
a946372e | 13847 | |
66fd4529 AK |
13848 | ################################################################################ |
13849 | if [ "x$BUILD_CMIRRORD" = xyes ]; then | |
90c80887 AK |
13850 | if test x$PKGCONFIG_INIT != x1; then |
13851 | pkg_config_init | |
13852 | fi | |
13853 | ||
13854 | pkg_failed=no | |
13855 | { $as_echo "$as_me:$LINENO: checking for SACKPT" >&5 | |
13856 | $as_echo_n "checking for SACKPT... " >&6; } | |
13857 | ||
13858 | if test -n "$SACKPT_CFLAGS"; then | |
13859 | pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS" | |
13860 | elif test -n "$PKG_CONFIG"; then | |
13861 | if test -n "$PKG_CONFIG" && \ | |
13862 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
13863 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
13864 | ac_status=$? | |
13865 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13866 | (exit $ac_status); }; then | |
13867 | pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null` | |
13868 | else | |
13869 | pkg_failed=yes | |
13870 | fi | |
13871 | else | |
13872 | pkg_failed=untried | |
13873 | fi | |
13874 | if test -n "$SACKPT_LIBS"; then | |
13875 | pkg_cv_SACKPT_LIBS="$SACKPT_LIBS" | |
13876 | elif test -n "$PKG_CONFIG"; then | |
13877 | if test -n "$PKG_CONFIG" && \ | |
13878 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
13879 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
13880 | ac_status=$? | |
13881 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13882 | (exit $ac_status); }; then | |
13883 | pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null` | |
13884 | else | |
13885 | pkg_failed=yes | |
13886 | fi | |
13887 | else | |
13888 | pkg_failed=untried | |
13889 | fi | |
13890 | ||
13891 | ||
13892 | ||
13893 | if test $pkg_failed = yes; then | |
13894 | ||
13895 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13896 | _pkg_short_errors_supported=yes | |
13897 | else | |
13898 | _pkg_short_errors_supported=no | |
13899 | fi | |
13900 | if test $_pkg_short_errors_supported = yes; then | |
13901 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1` | |
13902 | else | |
13903 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1` | |
13904 | fi | |
13905 | # Put the nasty error message in config.log where it belongs | |
13906 | echo "$SACKPT_PKG_ERRORS" >&5 | |
13907 | ||
13908 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met: | |
13909 | ||
13910 | $SACKPT_PKG_ERRORS | |
13911 | ||
13912 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
13913 | installed software in a non-standard prefix. | |
13914 | ||
13915 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
13916 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
8c4e8a18 FDN |
13917 | See the pkg-config man page for more details. |
13918 | " >&5 | |
90c80887 AK |
13919 | $as_echo "$as_me: error: Package requirements (libSaCkpt) were not met: |
13920 | ||
13921 | $SACKPT_PKG_ERRORS | |
13922 | ||
13923 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
13924 | installed software in a non-standard prefix. | |
13925 | ||
13926 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
13927 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
8c4e8a18 FDN |
13928 | See the pkg-config man page for more details. |
13929 | " >&2;} | |
90c80887 AK |
13930 | { (exit 1); exit 1; }; } |
13931 | elif test $pkg_failed = untried; then | |
13932 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
13933 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13934 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
13935 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
13936 | path to pkg-config. | |
13937 | ||
13938 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
13939 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
13940 | See the pkg-config man page for more details. | |
13941 | ||
13942 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
13943 | See \`config.log' for more details." >&5 | |
13944 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
13945 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
13946 | path to pkg-config. | |
13947 | ||
13948 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
13949 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
13950 | See the pkg-config man page for more details. | |
13951 | ||
13952 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
13953 | See \`config.log' for more details." >&2;} | |
13954 | { (exit 1); exit 1; }; }; } | |
13955 | else | |
13956 | SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS | |
13957 | SACKPT_LIBS=$pkg_cv_SACKPT_LIBS | |
13958 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
13959 | $as_echo "yes" >&6; } | |
8c4e8a18 | 13960 | : |
90c80887 AK |
13961 | fi |
13962 | if test x$HAVE_CPG != xyes; then | |
a946372e AK |
13963 | |
13964 | pkg_failed=no | |
13965 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
13966 | $as_echo_n "checking for CPG... " >&6; } | |
13967 | ||
13968 | if test -n "$CPG_CFLAGS"; then | |
13969 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
13970 | elif test -n "$PKG_CONFIG"; then | |
13971 | if test -n "$PKG_CONFIG" && \ | |
13972 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
13973 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
13974 | ac_status=$? | |
13975 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13976 | (exit $ac_status); }; then | |
13977 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
13978 | else | |
13979 | pkg_failed=yes | |
13980 | fi | |
13981 | else | |
13982 | pkg_failed=untried | |
13983 | fi | |
13984 | if test -n "$CPG_LIBS"; then | |
13985 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
13986 | elif test -n "$PKG_CONFIG"; then | |
13987 | if test -n "$PKG_CONFIG" && \ | |
13988 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
13989 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
13990 | ac_status=$? | |
13991 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13992 | (exit $ac_status); }; then | |
13993 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
13994 | else | |
13995 | pkg_failed=yes | |
13996 | fi | |
13997 | else | |
13998 | pkg_failed=untried | |
13999 | fi | |
14000 | ||
14001 | ||
14002 | ||
14003 | if test $pkg_failed = yes; then | |
14004 | ||
14005 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
14006 | _pkg_short_errors_supported=yes | |
14007 | else | |
14008 | _pkg_short_errors_supported=no | |
14009 | fi | |
14010 | if test $_pkg_short_errors_supported = yes; then | |
14011 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
14012 | else | |
14013 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
14014 | fi | |
14015 | # Put the nasty error message in config.log where it belongs | |
14016 | echo "$CPG_PKG_ERRORS" >&5 | |
14017 | ||
90c80887 AK |
14018 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met: |
14019 | ||
14020 | $CPG_PKG_ERRORS | |
14021 | ||
14022 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
14023 | installed software in a non-standard prefix. | |
14024 | ||
14025 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14026 | and CPG_LIBS to avoid the need to call pkg-config. | |
8c4e8a18 FDN |
14027 | See the pkg-config man page for more details. |
14028 | " >&5 | |
90c80887 AK |
14029 | $as_echo "$as_me: error: Package requirements (libcpg) were not met: |
14030 | ||
14031 | $CPG_PKG_ERRORS | |
14032 | ||
14033 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
14034 | installed software in a non-standard prefix. | |
14035 | ||
14036 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14037 | and CPG_LIBS to avoid the need to call pkg-config. | |
8c4e8a18 FDN |
14038 | See the pkg-config man page for more details. |
14039 | " >&2;} | |
90c80887 | 14040 | { (exit 1); exit 1; }; } |
a946372e | 14041 | elif test $pkg_failed = untried; then |
90c80887 AK |
14042 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
14043 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14044 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
14045 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
14046 | path to pkg-config. | |
14047 | ||
14048 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14049 | and CPG_LIBS to avoid the need to call pkg-config. | |
14050 | See the pkg-config man page for more details. | |
14051 | ||
14052 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
14053 | See \`config.log' for more details." >&5 | |
14054 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
14055 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
14056 | path to pkg-config. | |
14057 | ||
14058 | Alternatively, you may set the environment variables CPG_CFLAGS | |
14059 | and CPG_LIBS to avoid the need to call pkg-config. | |
14060 | See the pkg-config man page for more details. | |
14061 | ||
14062 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
14063 | See \`config.log' for more details." >&2;} | |
14064 | { (exit 1); exit 1; }; }; } | |
a946372e AK |
14065 | else |
14066 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
14067 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
14068 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
14069 | $as_echo "yes" >&6; } | |
8c4e8a18 | 14070 | : |
a946372e | 14071 | fi |
90c80887 | 14072 | fi |
a946372e AK |
14073 | fi |
14074 | ||
14075 | ################################################################################ | |
14076 | { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5 | |
14077 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
14078 | # Check whether --enable-debug was given. | |
14079 | if test "${enable_debug+set}" = set; then | |
14080 | enableval=$enable_debug; DEBUG=$enableval | |
14081 | else | |
14082 | DEBUG=no | |
14083 | fi | |
14084 | ||
14085 | { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5 | |
14086 | $as_echo "$DEBUG" >&6; } | |
14087 | ||
14088 | if test x$DEBUG = xyes; then | |
14089 | COPTIMISE_FLAG= | |
14090 | else | |
14091 | CSCOPE_CMD= | |
14092 | fi | |
14093 | ||
14094 | ################################################################################ | |
14095 | { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5 | |
14096 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
14097 | ||
14098 | # Check whether --with-optimisation was given. | |
14099 | if test "${with_optimisation+set}" = set; then | |
71082be4 | 14100 | withval=$with_optimisation; COPTIMISE_FLAG=$withval |
a946372e AK |
14101 | fi |
14102 | ||
14103 | { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 | |
14104 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
14105 | ||
14106 | ################################################################################ | |
14107 | { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 | |
14108 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
14109 | # Check whether --enable-profiling was given. | |
14110 | if test "${enable_profiling+set}" = set; then | |
5556819a | 14111 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 14112 | else |
5556819a | 14113 | PROFILING=no |
fddafd51 ZK |
14114 | fi |
14115 | ||
ec6a6fbe AK |
14116 | { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5 |
14117 | $as_echo "$PROFILING" >&6; } | |
5556819a AK |
14118 | |
14119 | if test "x$PROFILING" = xyes; then | |
14120 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
14121 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 14122 | set dummy lcov; ac_word=$2 |
ec6a6fbe AK |
14123 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14124 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 14125 | if test "${ac_cv_path_LCOV+set}" = set; then |
ec6a6fbe | 14126 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
14127 | else |
14128 | case $LCOV in | |
14129 | [\\/]* | ?:[\\/]*) | |
14130 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
14131 | ;; | |
14132 | *) | |
14133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14134 | for as_dir in $PATH | |
14135 | do | |
14136 | IFS=$as_save_IFS | |
14137 | test -z "$as_dir" && as_dir=. | |
14138 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14139 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14140 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 14141 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
14142 | break 2 |
14143 | fi | |
14144 | done | |
14145 | done | |
14146 | IFS=$as_save_IFS | |
14147 | ||
14148 | ;; | |
14149 | esac | |
14150 | fi | |
14151 | LCOV=$ac_cv_path_LCOV | |
14152 | if test -n "$LCOV"; then | |
ec6a6fbe AK |
14153 | { $as_echo "$as_me:$LINENO: result: $LCOV" >&5 |
14154 | $as_echo "$LCOV" >&6; } | |
fddafd51 | 14155 | else |
ec6a6fbe AK |
14156 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14157 | $as_echo "no" >&6; } | |
fddafd51 ZK |
14158 | fi |
14159 | ||
14160 | ||
5556819a | 14161 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 14162 | set dummy genhtml; ac_word=$2 |
ec6a6fbe AK |
14163 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14164 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 14165 | if test "${ac_cv_path_GENHTML+set}" = set; then |
ec6a6fbe | 14166 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
14167 | else |
14168 | case $GENHTML in | |
14169 | [\\/]* | ?:[\\/]*) | |
14170 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
14171 | ;; | |
14172 | *) | |
14173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14174 | for as_dir in $PATH | |
14175 | do | |
14176 | IFS=$as_save_IFS | |
14177 | test -z "$as_dir" && as_dir=. | |
14178 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14179 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14180 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 14181 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
14182 | break 2 |
14183 | fi | |
14184 | done | |
14185 | done | |
14186 | IFS=$as_save_IFS | |
14187 | ||
14188 | ;; | |
14189 | esac | |
14190 | fi | |
14191 | GENHTML=$ac_cv_path_GENHTML | |
14192 | if test -n "$GENHTML"; then | |
ec6a6fbe AK |
14193 | { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5 |
14194 | $as_echo "$GENHTML" >&6; } | |
fddafd51 | 14195 | else |
ec6a6fbe AK |
14196 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
14197 | $as_echo "no" >&6; } | |
fddafd51 ZK |
14198 | fi |
14199 | ||
14200 | ||
fd4728e1 | 14201 | if test -z "$LCOV" -o -z "$GENHTML"; then |
ec6a6fbe AK |
14202 | { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5 |
14203 | $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;} | |
b145d876 ZK |
14204 | { (exit 1); exit 1; }; } |
14205 | fi | |
fd4728e1 ZK |
14206 | # Extract the first word of "genpng", so it can be a program name with args. |
14207 | set dummy genpng; ac_word=$2 | |
14208 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14209 | $as_echo_n "checking for $ac_word... " >&6; } | |
14210 | if test "${ac_cv_path_GENPNG+set}" = set; then | |
14211 | $as_echo_n "(cached) " >&6 | |
14212 | else | |
14213 | case $GENPNG in | |
14214 | [\\/]* | ?:[\\/]*) | |
14215 | ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path. | |
14216 | ;; | |
14217 | *) | |
14218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14219 | for as_dir in $PATH | |
14220 | do | |
14221 | IFS=$as_save_IFS | |
14222 | test -z "$as_dir" && as_dir=. | |
14223 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14224 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14225 | ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext" | |
14226 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14227 | break 2 | |
14228 | fi | |
14229 | done | |
14230 | done | |
14231 | IFS=$as_save_IFS | |
14232 | ||
14233 | ;; | |
14234 | esac | |
14235 | fi | |
14236 | GENPNG=$ac_cv_path_GENPNG | |
14237 | if test -n "$GENPNG"; then | |
14238 | { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5 | |
14239 | $as_echo "$GENPNG" >&6; } | |
14240 | else | |
14241 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14242 | $as_echo "no" >&6; } | |
14243 | fi | |
14244 | ||
14245 | ||
14246 | if test -n "$GENPNG"; then | |
14247 | { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5 | |
14248 | $as_echo_n "checking whether $GENPNG has all required modules... " >&6; } | |
14249 | if $GENPNG --help > /dev/null 2>&1 ; then | |
14250 | { $as_echo "$as_me:$LINENO: result: ok" >&5 | |
14251 | $as_echo "ok" >&6; } | |
14252 | GENHTML="$GENHTML --frames" | |
14253 | else | |
14254 | { $as_echo "$as_me:$LINENO: result: not supported" >&5 | |
14255 | $as_echo "not supported" >&6; } | |
14256 | { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5 | |
14257 | $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;} | |
14258 | GENPNG= | |
14259 | fi | |
14260 | fi | |
5556819a | 14261 | fi |
d0191583 | 14262 | |
54b362f9 AK |
14263 | ################################################################################ |
14264 | { $as_echo "$as_me:$LINENO: checking whether to enable unit testing" >&5 | |
14265 | $as_echo_n "checking whether to enable unit testing... " >&6; } | |
14266 | # Check whether --enable-testing was given. | |
14267 | if test "${enable_testing+set}" = set; then | |
14268 | enableval=$enable_testing; TESTING=$enableval | |
14269 | else | |
14270 | TESTING=no | |
14271 | fi | |
14272 | ||
14273 | { $as_echo "$as_me:$LINENO: result: $TESTING" >&5 | |
14274 | $as_echo "$TESTING" >&6; } | |
14275 | ||
14276 | if test "$TESTING" = yes; then | |
14277 | # Extract the first word of "ruby1.9", so it can be a program name with args. | |
14278 | set dummy ruby1.9; ac_word=$2 | |
14279 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14280 | $as_echo_n "checking for $ac_word... " >&6; } | |
14281 | if test "${ac_cv_path_RUBY19+set}" = set; then | |
14282 | $as_echo_n "(cached) " >&6 | |
14283 | else | |
14284 | case $RUBY19 in | |
14285 | [\\/]* | ?:[\\/]*) | |
14286 | ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path. | |
14287 | ;; | |
14288 | *) | |
14289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14290 | for as_dir in $PATH | |
14291 | do | |
14292 | IFS=$as_save_IFS | |
14293 | test -z "$as_dir" && as_dir=. | |
14294 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14295 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14296 | ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext" | |
14297 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14298 | break 2 | |
14299 | fi | |
14300 | done | |
14301 | done | |
14302 | IFS=$as_save_IFS | |
14303 | ||
14304 | ;; | |
14305 | esac | |
14306 | fi | |
14307 | RUBY19=$ac_cv_path_RUBY19 | |
14308 | if test -n "$RUBY19"; then | |
14309 | { $as_echo "$as_me:$LINENO: result: $RUBY19" >&5 | |
14310 | $as_echo "$RUBY19" >&6; } | |
14311 | else | |
14312 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14313 | $as_echo "no" >&6; } | |
14314 | fi | |
14315 | ||
14316 | ||
14317 | # Extract the first word of "valgrind", so it can be a program name with args. | |
14318 | set dummy valgrind; ac_word=$2 | |
14319 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14320 | $as_echo_n "checking for $ac_word... " >&6; } | |
14321 | if test "${ac_cv_path_VALGRIND+set}" = set; then | |
14322 | $as_echo_n "(cached) " >&6 | |
14323 | else | |
14324 | case $VALGRIND in | |
14325 | [\\/]* | ?:[\\/]*) | |
14326 | ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path. | |
14327 | ;; | |
14328 | *) | |
14329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14330 | for as_dir in $PATH | |
14331 | do | |
14332 | IFS=$as_save_IFS | |
14333 | test -z "$as_dir" && as_dir=. | |
14334 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14335 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14336 | ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext" | |
14337 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14338 | break 2 | |
14339 | fi | |
14340 | done | |
14341 | done | |
14342 | IFS=$as_save_IFS | |
14343 | ||
14344 | ;; | |
14345 | esac | |
14346 | fi | |
14347 | VALGRIND=$ac_cv_path_VALGRIND | |
14348 | if test -n "$VALGRIND"; then | |
14349 | { $as_echo "$as_me:$LINENO: result: $VALGRIND" >&5 | |
14350 | $as_echo "$VALGRIND" >&6; } | |
14351 | else | |
14352 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
14353 | $as_echo "no" >&6; } | |
14354 | fi | |
14355 | ||
14356 | ||
14357 | if test -z "$RUBY19" -o -z "$VALGRIND"; then | |
14358 | { { $as_echo "$as_me:$LINENO: error: ruby1.9 and valgrind are required for testing" >&5 | |
14359 | $as_echo "$as_me: error: ruby1.9 and valgrind are required for testing" >&2;} | |
14360 | { (exit 1); exit 1; }; } | |
14361 | fi | |
14362 | fi | |
14363 | ||
d1e8046f AK |
14364 | ################################################################################ |
14365 | { $as_echo "$as_me:$LINENO: checking whether to enable valgrind awareness of pools" >&5 | |
14366 | $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; } | |
14367 | # Check whether --enable-valgrind_pool was given. | |
14368 | if test "${enable_valgrind_pool+set}" = set; then | |
14369 | enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval | |
14370 | else | |
14371 | VALGRIND_POOL=no | |
14372 | fi | |
14373 | ||
14374 | { $as_echo "$as_me:$LINENO: result: $VALGRIND_POOL" >&5 | |
14375 | $as_echo "$VALGRIND_POOL" >&6; } | |
14376 | ||
14377 | if test "$VALGRIND_POOL" = yes; then | |
14378 | ||
14379 | for ac_header in valgrind/memcheck.h | |
14380 | do | |
14381 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14382 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
14383 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14384 | $as_echo_n "checking for $ac_header... " >&6; } | |
14385 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
14386 | $as_echo_n "(cached) " >&6 | |
14387 | fi | |
14388 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
14389 | $as_echo "$as_val"'` | |
14390 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14391 | $as_echo "$ac_res" >&6; } | |
14392 | else | |
14393 | # Is the header compilable? | |
14394 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14395 | $as_echo_n "checking $ac_header usability... " >&6; } | |
14396 | cat >conftest.$ac_ext <<_ACEOF | |
14397 | /* confdefs.h. */ | |
14398 | _ACEOF | |
14399 | cat confdefs.h >>conftest.$ac_ext | |
14400 | cat >>conftest.$ac_ext <<_ACEOF | |
14401 | /* end confdefs.h. */ | |
14402 | $ac_includes_default | |
14403 | #include <$ac_header> | |
14404 | _ACEOF | |
14405 | rm -f conftest.$ac_objext | |
14406 | if { (ac_try="$ac_compile" | |
14407 | case "(($ac_try" in | |
14408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14409 | *) ac_try_echo=$ac_try;; | |
14410 | esac | |
14411 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14412 | $as_echo "$ac_try_echo") >&5 | |
14413 | (eval "$ac_compile") 2>conftest.er1 | |
14414 | ac_status=$? | |
14415 | grep -v '^ *+' conftest.er1 >conftest.err | |
14416 | rm -f conftest.er1 | |
14417 | cat conftest.err >&5 | |
14418 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14419 | (exit $ac_status); } && { | |
14420 | test -z "$ac_c_werror_flag" || | |
14421 | test ! -s conftest.err | |
14422 | } && test -s conftest.$ac_objext; then | |
14423 | ac_header_compiler=yes | |
14424 | else | |
14425 | $as_echo "$as_me: failed program was:" >&5 | |
14426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14427 | ||
14428 | ac_header_compiler=no | |
14429 | fi | |
14430 | ||
14431 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14432 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14433 | $as_echo "$ac_header_compiler" >&6; } | |
14434 | ||
14435 | # Is the header present? | |
14436 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14437 | $as_echo_n "checking $ac_header presence... " >&6; } | |
14438 | cat >conftest.$ac_ext <<_ACEOF | |
14439 | /* confdefs.h. */ | |
14440 | _ACEOF | |
14441 | cat confdefs.h >>conftest.$ac_ext | |
14442 | cat >>conftest.$ac_ext <<_ACEOF | |
14443 | /* end confdefs.h. */ | |
14444 | #include <$ac_header> | |
14445 | _ACEOF | |
14446 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
14447 | case "(($ac_try" in | |
14448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14449 | *) ac_try_echo=$ac_try;; | |
14450 | esac | |
14451 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14452 | $as_echo "$ac_try_echo") >&5 | |
14453 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
14454 | ac_status=$? | |
14455 | grep -v '^ *+' conftest.er1 >conftest.err | |
14456 | rm -f conftest.er1 | |
14457 | cat conftest.err >&5 | |
14458 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14459 | (exit $ac_status); } >/dev/null && { | |
14460 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14461 | test ! -s conftest.err | |
14462 | }; then | |
14463 | ac_header_preproc=yes | |
14464 | else | |
14465 | $as_echo "$as_me: failed program was:" >&5 | |
14466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14467 | ||
14468 | ac_header_preproc=no | |
14469 | fi | |
14470 | ||
14471 | rm -f conftest.err conftest.$ac_ext | |
14472 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14473 | $as_echo "$ac_header_preproc" >&6; } | |
14474 | ||
14475 | # So? What about this header? | |
14476 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14477 | yes:no: ) | |
14478 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14479 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14480 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14481 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14482 | ac_header_preproc=yes | |
14483 | ;; | |
14484 | no:yes:* ) | |
14485 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14486 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14487 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14488 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14489 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14490 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14491 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14492 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14493 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14494 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14495 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14496 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
14497 | ||
14498 | ;; | |
14499 | esac | |
14500 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14501 | $as_echo_n "checking for $ac_header... " >&6; } | |
14502 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
14503 | $as_echo_n "(cached) " >&6 | |
14504 | else | |
14505 | eval "$as_ac_Header=\$ac_header_preproc" | |
14506 | fi | |
14507 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
14508 | $as_echo "$as_val"'` | |
14509 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14510 | $as_echo "$ac_res" >&6; } | |
14511 | ||
14512 | fi | |
14513 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
14514 | $as_echo "$as_val"'` | |
14515 | if test "x$as_val" = x""yes; then | |
14516 | cat >>confdefs.h <<_ACEOF | |
14517 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14518 | _ACEOF | |
14519 | ||
14520 | else | |
14521 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
14522 | $as_echo "$as_me: error: bailing out" >&2;} | |
14523 | { (exit 1); exit 1; }; } | |
14524 | fi | |
14525 | ||
14526 | done | |
14527 | ||
14528 | ||
14529 | cat >>confdefs.h <<\_ACEOF | |
14530 | #define VALGRIND_POOL 1 | |
14531 | _ACEOF | |
14532 | ||
14533 | fi | |
14534 | ||
d0191583 | 14535 | ################################################################################ |
ec6a6fbe AK |
14536 | { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
14537 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
d0191583 JM |
14538 | # Check whether --enable-devmapper was given. |
14539 | if test "${enable_devmapper+set}" = set; then | |
14540 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
14541 | fi |
14542 | ||
ec6a6fbe AK |
14543 | { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
14544 | $as_echo "$DEVMAPPER" >&6; } | |
d0191583 JM |
14545 | |
14546 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
14547 | |
14548 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 14549 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
14550 | _ACEOF |
14551 | ||
14552 | fi | |
14553 | ||
a5f46f6a AK |
14554 | ################################################################################ |
14555 | { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5 | |
14556 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
14557 | # Check whether --enable-udev_sync was given. | |
14558 | if test "${enable_udev_sync+set}" = set; then | |
14559 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
14560 | else | |
14561 | UDEV_SYNC=no | |
14562 | fi | |
14563 | ||
14564 | { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5 | |
14565 | $as_echo "$UDEV_SYNC" >&6; } | |
14566 | ||
90c80887 AK |
14567 | if test x$UDEV_SYNC = xyes; then |
14568 | { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5 | |
14569 | $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; } | |
14570 | if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then | |
14571 | $as_echo_n "(cached) " >&6 | |
14572 | else | |
14573 | ac_check_lib_save_LIBS=$LIBS | |
14574 | LIBS="-ludev $LIBS" | |
14575 | cat >conftest.$ac_ext <<_ACEOF | |
14576 | /* confdefs.h. */ | |
14577 | _ACEOF | |
14578 | cat confdefs.h >>conftest.$ac_ext | |
14579 | cat >>conftest.$ac_ext <<_ACEOF | |
14580 | /* end confdefs.h. */ | |
14581 | ||
14582 | /* Override any GCC internal prototype to avoid an error. | |
14583 | Use char because int might match the return type of a GCC | |
14584 | builtin and then its argument prototype would still apply. */ | |
14585 | #ifdef __cplusplus | |
14586 | extern "C" | |
14587 | #endif | |
14588 | char udev_queue_get_udev_is_active (); | |
14589 | int | |
14590 | main () | |
14591 | { | |
14592 | return udev_queue_get_udev_is_active (); | |
14593 | ; | |
14594 | return 0; | |
14595 | } | |
14596 | _ACEOF | |
14597 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14598 | if { (ac_try="$ac_link" | |
14599 | case "(($ac_try" in | |
14600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14601 | *) ac_try_echo=$ac_try;; | |
14602 | esac | |
14603 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
14604 | $as_echo "$ac_try_echo") >&5 | |
14605 | (eval "$ac_link") 2>conftest.er1 | |
14606 | ac_status=$? | |
14607 | grep -v '^ *+' conftest.er1 >conftest.err | |
14608 | rm -f conftest.er1 | |
14609 | cat conftest.err >&5 | |
14610 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14611 | (exit $ac_status); } && { | |
14612 | test -z "$ac_c_werror_flag" || | |
14613 | test ! -s conftest.err | |
14614 | } && test -s conftest$ac_exeext && { | |
14615 | test "$cross_compiling" = yes || | |
14616 | $as_test_x conftest$ac_exeext | |
14617 | }; then | |
14618 | ac_cv_lib_udev_udev_queue_get_udev_is_active=yes | |
14619 | else | |
14620 | $as_echo "$as_me: failed program was:" >&5 | |
14621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14622 | ||
14623 | ac_cv_lib_udev_udev_queue_get_udev_is_active=no | |
14624 | fi | |
14625 | ||
14626 | rm -rf conftest.dSYM | |
14627 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14628 | conftest$ac_exeext conftest.$ac_ext | |
14629 | LIBS=$ac_check_lib_save_LIBS | |
14630 | fi | |
14631 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5 | |
14632 | $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; } | |
14633 | if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then | |
f7f0854e | 14634 | UDEV_PC="libudev"; UDEV_LIBS="-ludev" |
90c80887 | 14635 | else |
5161ecb9 PR |
14636 | { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5 |
14637 | $as_echo "$as_me: error: bailing out... libudev library is required" >&2;} | |
14638 | { (exit 1); exit 1; }; } | |
90c80887 AK |
14639 | fi |
14640 | ||
14641 | ||
90c80887 | 14642 | cat >>confdefs.h <<\_ACEOF |
5161ecb9 | 14643 | #define UDEV_SYNC_SUPPORT 1 |
90c80887 AK |
14644 | _ACEOF |
14645 | ||
90c80887 AK |
14646 | fi |
14647 | ||
5161ecb9 PR |
14648 | { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5 |
14649 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
14650 | # Check whether --enable-udev_rules was given. | |
14651 | if test "${enable_udev_rules+set}" = set; then | |
14652 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
14653 | else | |
14654 | UDEV_RULES=$UDEV_SYNC | |
14655 | fi | |
14656 | ||
14657 | { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5 | |
14658 | $as_echo "$UDEV_RULES" >&6; } | |
14659 | ||
93bd259b AK |
14660 | ################################################################################ |
14661 | # Check whether --enable-compat was given. | |
14662 | if test "${enable_compat+set}" = set; then | |
14663 | enableval=$enable_compat; DM_COMPAT=$enableval | |
14664 | else | |
14665 | DM_COMPAT=no | |
14666 | fi | |
14667 | ||
14668 | ||
95eaa683 AK |
14669 | ################################################################################ |
14670 | # Check whether --enable-units-compat was given. | |
14671 | if test "${enable_units_compat+set}" = set; then | |
14672 | enableval=$enable_units_compat; UNITS_COMPAT=$enableval | |
14673 | else | |
14674 | UNITS_COMPAT=no | |
14675 | fi | |
14676 | ||
14677 | ||
14678 | if test x$UNITS_COMPAT = xyes; then | |
14679 | ||
14680 | cat >>confdefs.h <<\_ACEOF | |
14681 | #define DEFAULT_SI_UNIT_CONSISTENCY 0 | |
14682 | _ACEOF | |
14683 | ||
14684 | fi | |
14685 | ||
93bd259b AK |
14686 | ################################################################################ |
14687 | # Check whether --enable-ioctl was given. | |
14688 | if test "${enable_ioctl+set}" = set; then | |
14689 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
14690 | fi | |
14691 | ||
14692 | ||
d0191583 | 14693 | ################################################################################ |
ec6a6fbe AK |
14694 | { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
14695 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
d0191583 JM |
14696 | # Check whether --enable-o_direct was given. |
14697 | if test "${enable_o_direct+set}" = set; then | |
14698 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 14699 | fi |
ad6254c5 | 14700 | |
ec6a6fbe AK |
14701 | { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
14702 | $as_echo "$ODIRECT" >&6; } | |
ad6254c5 | 14703 | |
d0191583 | 14704 | if test x$ODIRECT = xyes; then |
ad6254c5 | 14705 | |
d0191583 JM |
14706 | cat >>confdefs.h <<\_ACEOF |
14707 | #define O_DIRECT_SUPPORT 1 | |
14708 | _ACEOF | |
ad6254c5 | 14709 | |
d0191583 | 14710 | fi |
ad6254c5 | 14711 | |
572fefeb AK |
14712 | ################################################################################ |
14713 | { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5 | |
14714 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
14715 | # Check whether --enable-applib was given. | |
14716 | if test "${enable_applib+set}" = set; then | |
14717 | enableval=$enable_applib; APPLIB=$enableval | |
14718 | else | |
14719 | APPLIB=no | |
14720 | fi | |
14721 | ||
14722 | { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5 | |
14723 | $as_echo "$APPLIB" >&6; } | |
14724 | ||
14725 | test x$APPLIB = xyes \ | |
14726 | && LVM2APP_LIB=-llvm2app \ | |
14727 | || LVM2APP_LIB= | |
14728 | ||
d0191583 | 14729 | ################################################################################ |
ec6a6fbe AK |
14730 | { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
14731 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
d0191583 JM |
14732 | # Check whether --enable-cmdlib was given. |
14733 | if test "${enable_cmdlib+set}" = set; then | |
14734 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 14735 | else |
d0191583 JM |
14736 | CMDLIB=no |
14737 | fi | |
8a2fc586 | 14738 | |
ec6a6fbe AK |
14739 | { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
14740 | $as_echo "$CMDLIB" >&6; } | |
8a2fc586 | 14741 | |
2a9a80c9 | 14742 | test x$CMDLIB = xyes \ |
d179cc7a JM |
14743 | && LVM2CMD_LIB=-llvm2cmd \ |
14744 | || LVM2CMD_LIB= | |
14745 | ||
93bd259b AK |
14746 | ################################################################################ |
14747 | # Check whether --enable-pkgconfig was given. | |
14748 | if test "${enable_pkgconfig+set}" = set; then | |
14749 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
14750 | else | |
14751 | PKGCONFIG=no | |
14752 | fi | |
14753 | ||
2a9a80c9 | 14754 | |
23b059e7 ZK |
14755 | ################################################################################ |
14756 | # Check whether --enable-write_install was given. | |
14757 | if test "${enable_write_install+set}" = set; then | |
14758 | enableval=$enable_write_install; WRITE_INSTALL=$enableval | |
14759 | else | |
14760 | WRITE_INSTALL=no | |
14761 | fi | |
14762 | ||
14763 | ||
d0191583 | 14764 | ################################################################################ |
ec6a6fbe AK |
14765 | { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
14766 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
d0191583 JM |
14767 | # Check whether --enable-fsadm was given. |
14768 | if test "${enable_fsadm+set}" = set; then | |
14769 | enableval=$enable_fsadm; FSADM=$enableval | |
14770 | fi | |
8a2fc586 | 14771 | |
ec6a6fbe AK |
14772 | { $as_echo "$as_me:$LINENO: result: $FSADM" >&5 |
14773 | $as_echo "$FSADM" >&6; } | |
8a2fc586 | 14774 | |
d0191583 | 14775 | ################################################################################ |
ec6a6fbe AK |
14776 | { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
14777 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
d0191583 JM |
14778 | # Check whether --enable-dmeventd was given. |
14779 | if test "${enable_dmeventd+set}" = set; then | |
14780 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
14781 | fi | |
ad6254c5 | 14782 | |
ec6a6fbe AK |
14783 | { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
14784 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 14785 | |
93bd259b AK |
14786 | BUILD_DMEVENTD=$DMEVENTD |
14787 | ||
2a9a80c9 PR |
14788 | if test x$DMEVENTD = xyes; then |
14789 | if test x$MIRRORS != xinternal; then | |
ec6a6fbe | 14790 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 14791 | " >&5 |
ec6a6fbe | 14792 | $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 14793 | " >&2;} |
d0191583 | 14794 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
14795 | fi |
14796 | if test x$CMDLIB = xno; then | |
ec6a6fbe | 14797 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 | 14798 | " >&5 |
ec6a6fbe | 14799 | $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 PR |
14800 | " >&2;} |
14801 | { (exit 1); exit 1; }; } | |
14802 | fi | |
ad6254c5 | 14803 | fi |
7a197a62 | 14804 | |
d0191583 JM |
14805 | if test x$DMEVENTD = xyes; then |
14806 | ||
14807 | cat >>confdefs.h <<\_ACEOF | |
14808 | #define DMEVENTD 1 | |
ad6254c5 AK |
14809 | _ACEOF |
14810 | ||
ad6254c5 | 14811 | fi |
93bd259b AK |
14812 | |
14813 | ################################################################################ | |
14814 | ||
ec6a6fbe AK |
14815 | { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5 |
14816 | $as_echo_n "checking for getline in -lc... " >&6; } | |
93bd259b | 14817 | if test "${ac_cv_lib_c_getline+set}" = set; then |
ec6a6fbe | 14818 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
14819 | else |
14820 | ac_check_lib_save_LIBS=$LIBS | |
14821 | LIBS="-lc $LIBS" | |
14822 | cat >conftest.$ac_ext <<_ACEOF | |
14823 | /* confdefs.h. */ | |
14824 | _ACEOF | |
14825 | cat confdefs.h >>conftest.$ac_ext | |
14826 | cat >>conftest.$ac_ext <<_ACEOF | |
14827 | /* end confdefs.h. */ | |
14828 | ||
14829 | /* Override any GCC internal prototype to avoid an error. | |
14830 | Use char because int might match the return type of a GCC | |
14831 | builtin and then its argument prototype would still apply. */ | |
14832 | #ifdef __cplusplus | |
14833 | extern "C" | |
14834 | #endif | |
14835 | char getline (); | |
14836 | int | |
14837 | main () | |
14838 | { | |
14839 | return getline (); | |
14840 | ; | |
14841 | return 0; | |
14842 | } | |
14843 | _ACEOF | |
14844 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14845 | if { (ac_try="$ac_link" | |
14846 | case "(($ac_try" in | |
14847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14848 | *) ac_try_echo=$ac_try;; | |
14849 | esac | |
ec6a6fbe AK |
14850 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14851 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
14852 | (eval "$ac_link") 2>conftest.er1 |
14853 | ac_status=$? | |
14854 | grep -v '^ *+' conftest.er1 >conftest.err | |
14855 | rm -f conftest.er1 | |
14856 | cat conftest.err >&5 | |
ec6a6fbe | 14857 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
14858 | (exit $ac_status); } && { |
14859 | test -z "$ac_c_werror_flag" || | |
14860 | test ! -s conftest.err | |
ec6a6fbe AK |
14861 | } && test -s conftest$ac_exeext && { |
14862 | test "$cross_compiling" = yes || | |
14863 | $as_test_x conftest$ac_exeext | |
14864 | }; then | |
93bd259b AK |
14865 | ac_cv_lib_c_getline=yes |
14866 | else | |
ec6a6fbe | 14867 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
14868 | sed 's/^/| /' conftest.$ac_ext >&5 |
14869 | ||
14870 | ac_cv_lib_c_getline=no | |
14871 | fi | |
14872 | ||
ec6a6fbe | 14873 | rm -rf conftest.dSYM |
93bd259b AK |
14874 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14875 | conftest$ac_exeext conftest.$ac_ext | |
14876 | LIBS=$ac_check_lib_save_LIBS | |
14877 | fi | |
ec6a6fbe AK |
14878 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5 |
14879 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
14880 | if test "x$ac_cv_lib_c_getline" = x""yes; then | |
93bd259b AK |
14881 | |
14882 | cat >>confdefs.h <<\_ACEOF | |
14883 | #define HAVE_GETLINE 1 | |
14884 | _ACEOF | |
14885 | ||
14886 | fi | |
14887 | ||
14888 | ||
14889 | ################################################################################ | |
14890 | ||
ec6a6fbe AK |
14891 | { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5 |
14892 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
93bd259b | 14893 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then |
ec6a6fbe | 14894 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
14895 | else |
14896 | ac_check_lib_save_LIBS=$LIBS | |
14897 | LIBS="-lc $LIBS" | |
14898 | cat >conftest.$ac_ext <<_ACEOF | |
14899 | /* confdefs.h. */ | |
14900 | _ACEOF | |
14901 | cat confdefs.h >>conftest.$ac_ext | |
14902 | cat >>conftest.$ac_ext <<_ACEOF | |
14903 | /* end confdefs.h. */ | |
14904 | ||
14905 | /* Override any GCC internal prototype to avoid an error. | |
14906 | Use char because int might match the return type of a GCC | |
14907 | builtin and then its argument prototype would still apply. */ | |
14908 | #ifdef __cplusplus | |
14909 | extern "C" | |
14910 | #endif | |
14911 | char canonicalize_file_name (); | |
14912 | int | |
14913 | main () | |
14914 | { | |
14915 | return canonicalize_file_name (); | |
14916 | ; | |
14917 | return 0; | |
14918 | } | |
14919 | _ACEOF | |
14920 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14921 | if { (ac_try="$ac_link" | |
14922 | case "(($ac_try" in | |
14923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14924 | *) ac_try_echo=$ac_try;; | |
14925 | esac | |
ec6a6fbe AK |
14926 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14927 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
14928 | (eval "$ac_link") 2>conftest.er1 |
14929 | ac_status=$? | |
14930 | grep -v '^ *+' conftest.er1 >conftest.err | |
14931 | rm -f conftest.er1 | |
14932 | cat conftest.err >&5 | |
ec6a6fbe | 14933 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
14934 | (exit $ac_status); } && { |
14935 | test -z "$ac_c_werror_flag" || | |
14936 | test ! -s conftest.err | |
ec6a6fbe AK |
14937 | } && test -s conftest$ac_exeext && { |
14938 | test "$cross_compiling" = yes || | |
14939 | $as_test_x conftest$ac_exeext | |
14940 | }; then | |
93bd259b AK |
14941 | ac_cv_lib_c_canonicalize_file_name=yes |
14942 | else | |
ec6a6fbe | 14943 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
14944 | sed 's/^/| /' conftest.$ac_ext >&5 |
14945 | ||
14946 | ac_cv_lib_c_canonicalize_file_name=no | |
14947 | fi | |
14948 | ||
ec6a6fbe | 14949 | rm -rf conftest.dSYM |
93bd259b AK |
14950 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14951 | conftest$ac_exeext conftest.$ac_ext | |
14952 | LIBS=$ac_check_lib_save_LIBS | |
14953 | fi | |
ec6a6fbe AK |
14954 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5 |
14955 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
14956 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then | |
93bd259b AK |
14957 | |
14958 | cat >>confdefs.h <<\_ACEOF | |
14959 | #define HAVE_CANONICALIZE_FILE_NAME 1 | |
14960 | _ACEOF | |
14961 | ||
14962 | fi | |
14963 | ||
14964 | ||
d0191583 JM |
14965 | ################################################################################ |
14966 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
14967 | then exec_prefix=""; | |
14968 | fi; | |
ad6254c5 | 14969 | |
ad6254c5 | 14970 | ################################################################################ |
ec6a6fbe AK |
14971 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
14972 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
ad6254c5 | 14973 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
ec6a6fbe | 14974 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
14975 | else |
14976 | ac_check_lib_save_LIBS=$LIBS | |
14977 | LIBS="-ldl $LIBS" | |
14978 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
14979 | /* confdefs.h. */ |
14980 | _ACEOF | |
14981 | cat confdefs.h >>conftest.$ac_ext | |
14982 | cat >>conftest.$ac_ext <<_ACEOF | |
14983 | /* end confdefs.h. */ | |
14984 | ||
7a197a62 AK |
14985 | /* Override any GCC internal prototype to avoid an error. |
14986 | Use char because int might match the return type of a GCC | |
14987 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
14988 | #ifdef __cplusplus |
14989 | extern "C" | |
14990 | #endif | |
ad6254c5 AK |
14991 | char dlopen (); |
14992 | int | |
14993 | main () | |
14994 | { | |
7a197a62 | 14995 | return dlopen (); |
ad6254c5 AK |
14996 | ; |
14997 | return 0; | |
14998 | } | |
14999 | _ACEOF | |
15000 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15001 | if { (ac_try="$ac_link" |
15002 | case "(($ac_try" in | |
15003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15004 | *) ac_try_echo=$ac_try;; | |
15005 | esac | |
ec6a6fbe AK |
15006 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15007 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15008 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 15009 | ac_status=$? |
8a2fc586 AK |
15010 | grep -v '^ *+' conftest.er1 >conftest.err |
15011 | rm -f conftest.er1 | |
15012 | cat conftest.err >&5 | |
ec6a6fbe | 15013 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15014 | (exit $ac_status); } && { |
15015 | test -z "$ac_c_werror_flag" || | |
15016 | test ! -s conftest.err | |
ec6a6fbe AK |
15017 | } && test -s conftest$ac_exeext && { |
15018 | test "$cross_compiling" = yes || | |
15019 | $as_test_x conftest$ac_exeext | |
15020 | }; then | |
ad6254c5 AK |
15021 | ac_cv_lib_dl_dlopen=yes |
15022 | else | |
ec6a6fbe | 15023 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15024 | sed 's/^/| /' conftest.$ac_ext >&5 |
15025 | ||
7a197a62 | 15026 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 15027 | fi |
7a197a62 | 15028 | |
ec6a6fbe | 15029 | rm -rf conftest.dSYM |
25fbec5b | 15030 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 15031 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
15032 | LIBS=$ac_check_lib_save_LIBS |
15033 | fi | |
ec6a6fbe AK |
15034 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
15035 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
15036 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
ad6254c5 | 15037 | |
72b2cb61 AK |
15038 | |
15039 | cat >>confdefs.h <<\_ACEOF | |
15040 | #define HAVE_LIBDL 1 | |
15041 | _ACEOF | |
15042 | ||
19a2c6e0 ZK |
15043 | DL_LIBS="-ldl" |
15044 | HAVE_LIBDL=yes | |
ad6254c5 | 15045 | else |
19a2c6e0 ZK |
15046 | |
15047 | DL_LIBS= | |
ad6254c5 AK |
15048 | HAVE_LIBDL=no |
15049 | fi | |
15050 | ||
19a2c6e0 | 15051 | |
ad6254c5 AK |
15052 | ################################################################################ |
15053 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
15054 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
15055 | \) -a "x$STATIC_LINK" = xyes ]; | |
ec6a6fbe | 15056 | then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 15057 | " >&5 |
ec6a6fbe | 15058 | $as_echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
15059 | " >&2;} |
15060 | { (exit 1); exit 1; }; } | |
15061 | fi | |
15062 | ||
f30875db ZK |
15063 | ################################################################################ |
15064 | if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then | |
15065 | { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5 | |
15066 | $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } | |
15067 | if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then | |
15068 | $as_echo_n "(cached) " >&6 | |
15069 | else | |
15070 | ac_check_lib_save_LIBS=$LIBS | |
15071 | LIBS="-lpthread $LIBS" | |
15072 | cat >conftest.$ac_ext <<_ACEOF | |
15073 | /* confdefs.h. */ | |
15074 | _ACEOF | |
15075 | cat confdefs.h >>conftest.$ac_ext | |
15076 | cat >>conftest.$ac_ext <<_ACEOF | |
15077 | /* end confdefs.h. */ | |
15078 | ||
15079 | /* Override any GCC internal prototype to avoid an error. | |
15080 | Use char because int might match the return type of a GCC | |
15081 | builtin and then its argument prototype would still apply. */ | |
15082 | #ifdef __cplusplus | |
15083 | extern "C" | |
15084 | #endif | |
15085 | char pthread_mutex_lock (); | |
15086 | int | |
15087 | main () | |
15088 | { | |
15089 | return pthread_mutex_lock (); | |
15090 | ; | |
15091 | return 0; | |
15092 | } | |
15093 | _ACEOF | |
15094 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15095 | if { (ac_try="$ac_link" | |
15096 | case "(($ac_try" in | |
15097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15098 | *) ac_try_echo=$ac_try;; | |
15099 | esac | |
15100 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15101 | $as_echo "$ac_try_echo") >&5 | |
15102 | (eval "$ac_link") 2>conftest.er1 | |
15103 | ac_status=$? | |
15104 | grep -v '^ *+' conftest.er1 >conftest.err | |
15105 | rm -f conftest.er1 | |
15106 | cat conftest.err >&5 | |
15107 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15108 | (exit $ac_status); } && { | |
15109 | test -z "$ac_c_werror_flag" || | |
15110 | test ! -s conftest.err | |
15111 | } && test -s conftest$ac_exeext && { | |
15112 | test "$cross_compiling" = yes || | |
15113 | $as_test_x conftest$ac_exeext | |
15114 | }; then | |
15115 | ac_cv_lib_pthread_pthread_mutex_lock=yes | |
15116 | else | |
15117 | $as_echo "$as_me: failed program was:" >&5 | |
15118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15119 | ||
15120 | ac_cv_lib_pthread_pthread_mutex_lock=no | |
15121 | fi | |
15122 | ||
15123 | rm -rf conftest.dSYM | |
15124 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15125 | conftest$ac_exeext conftest.$ac_ext | |
15126 | LIBS=$ac_check_lib_save_LIBS | |
15127 | fi | |
15128 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 | |
15129 | $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } | |
15130 | if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then | |
15131 | PTHREAD_LIBS="-lpthread" | |
15132 | else | |
15133 | hard_bailout | |
15134 | fi | |
15135 | ||
15136 | fi | |
15137 | ||
d0191583 | 15138 | ################################################################################ |
ec6a6fbe AK |
15139 | { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
15140 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
d0191583 JM |
15141 | # Check whether --enable-selinux was given. |
15142 | if test "${enable_selinux+set}" = set; then | |
15143 | enableval=$enable_selinux; SELINUX=$enableval | |
15144 | fi | |
15145 | ||
ec6a6fbe AK |
15146 | { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5 |
15147 | $as_echo "$SELINUX" >&6; } | |
d0191583 | 15148 | |
ad6254c5 AK |
15149 | ################################################################################ |
15150 | if test x$SELINUX = xyes; then | |
ec6a6fbe AK |
15151 | { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
15152 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
8a2fc586 | 15153 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
ec6a6fbe | 15154 | $as_echo_n "(cached) " >&6 |
8a2fc586 AK |
15155 | else |
15156 | ac_check_lib_save_LIBS=$LIBS | |
15157 | LIBS="-lsepol $LIBS" | |
15158 | cat >conftest.$ac_ext <<_ACEOF | |
15159 | /* confdefs.h. */ | |
15160 | _ACEOF | |
15161 | cat confdefs.h >>conftest.$ac_ext | |
15162 | cat >>conftest.$ac_ext <<_ACEOF | |
15163 | /* end confdefs.h. */ | |
15164 | ||
7a197a62 AK |
15165 | /* Override any GCC internal prototype to avoid an error. |
15166 | Use char because int might match the return type of a GCC | |
15167 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
15168 | #ifdef __cplusplus |
15169 | extern "C" | |
15170 | #endif | |
8a2fc586 AK |
15171 | char sepol_check_context (); |
15172 | int | |
15173 | main () | |
15174 | { | |
7a197a62 | 15175 | return sepol_check_context (); |
8a2fc586 AK |
15176 | ; |
15177 | return 0; | |
15178 | } | |
15179 | _ACEOF | |
15180 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15181 | if { (ac_try="$ac_link" |
15182 | case "(($ac_try" in | |
15183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15184 | *) ac_try_echo=$ac_try;; | |
15185 | esac | |
ec6a6fbe AK |
15186 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15187 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15188 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
15189 | ac_status=$? |
15190 | grep -v '^ *+' conftest.er1 >conftest.err | |
15191 | rm -f conftest.er1 | |
15192 | cat conftest.err >&5 | |
ec6a6fbe | 15193 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15194 | (exit $ac_status); } && { |
15195 | test -z "$ac_c_werror_flag" || | |
15196 | test ! -s conftest.err | |
ec6a6fbe AK |
15197 | } && test -s conftest$ac_exeext && { |
15198 | test "$cross_compiling" = yes || | |
15199 | $as_test_x conftest$ac_exeext | |
15200 | }; then | |
8a2fc586 AK |
15201 | ac_cv_lib_sepol_sepol_check_context=yes |
15202 | else | |
ec6a6fbe | 15203 | $as_echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
15204 | sed 's/^/| /' conftest.$ac_ext >&5 |
15205 | ||
7a197a62 | 15206 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 15207 | fi |
7a197a62 | 15208 | |
ec6a6fbe | 15209 | rm -rf conftest.dSYM |
25fbec5b | 15210 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
15211 | conftest$ac_exeext conftest.$ac_ext |
15212 | LIBS=$ac_check_lib_save_LIBS | |
15213 | fi | |
ec6a6fbe AK |
15214 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
15215 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
15216 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then | |
8a2fc586 | 15217 | |
d0191583 JM |
15218 | |
15219 | cat >>confdefs.h <<\_ACEOF | |
15220 | #define HAVE_SEPOL 1 | |
15221 | _ACEOF | |
15222 | ||
f8f6ec92 ZK |
15223 | SELINUX_LIBS="-lsepol" |
15224 | fi | |
15225 | ||
8a2fc586 | 15226 | |
ec6a6fbe AK |
15227 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
15228 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
ad6254c5 | 15229 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
ec6a6fbe | 15230 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
15231 | else |
15232 | ac_check_lib_save_LIBS=$LIBS | |
15233 | LIBS="-lselinux $LIBS" | |
15234 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
15235 | /* confdefs.h. */ |
15236 | _ACEOF | |
15237 | cat confdefs.h >>conftest.$ac_ext | |
15238 | cat >>conftest.$ac_ext <<_ACEOF | |
15239 | /* end confdefs.h. */ | |
15240 | ||
7a197a62 AK |
15241 | /* Override any GCC internal prototype to avoid an error. |
15242 | Use char because int might match the return type of a GCC | |
15243 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
15244 | #ifdef __cplusplus |
15245 | extern "C" | |
15246 | #endif | |
ad6254c5 AK |
15247 | char is_selinux_enabled (); |
15248 | int | |
15249 | main () | |
15250 | { | |
7a197a62 | 15251 | return is_selinux_enabled (); |
ad6254c5 AK |
15252 | ; |
15253 | return 0; | |
15254 | } | |
15255 | _ACEOF | |
15256 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15257 | if { (ac_try="$ac_link" |
15258 | case "(($ac_try" in | |
15259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15260 | *) ac_try_echo=$ac_try;; | |
15261 | esac | |
ec6a6fbe AK |
15262 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15263 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15264 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 15265 | ac_status=$? |
8a2fc586 AK |
15266 | grep -v '^ *+' conftest.er1 >conftest.err |
15267 | rm -f conftest.er1 | |
15268 | cat conftest.err >&5 | |
ec6a6fbe | 15269 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15270 | (exit $ac_status); } && { |
15271 | test -z "$ac_c_werror_flag" || | |
15272 | test ! -s conftest.err | |
ec6a6fbe AK |
15273 | } && test -s conftest$ac_exeext && { |
15274 | test "$cross_compiling" = yes || | |
15275 | $as_test_x conftest$ac_exeext | |
15276 | }; then | |
ad6254c5 AK |
15277 | ac_cv_lib_selinux_is_selinux_enabled=yes |
15278 | else | |
ec6a6fbe | 15279 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15280 | sed 's/^/| /' conftest.$ac_ext >&5 |
15281 | ||
7a197a62 | 15282 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 15283 | fi |
7a197a62 | 15284 | |
ec6a6fbe | 15285 | rm -rf conftest.dSYM |
25fbec5b | 15286 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 15287 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
15288 | LIBS=$ac_check_lib_save_LIBS |
15289 | fi | |
ec6a6fbe AK |
15290 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
15291 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
15292 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then | |
ad6254c5 | 15293 | |
72b2cb61 | 15294 | |
f8f6ec92 ZK |
15295 | for ac_header in selinux/selinux.h |
15296 | do | |
15297 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15298 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15299 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15300 | $as_echo_n "checking for $ac_header... " >&6; } | |
15301 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ec6a6fbe | 15302 | $as_echo_n "(cached) " >&6 |
f8f6ec92 ZK |
15303 | fi |
15304 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15305 | $as_echo "$as_val"'` | |
15306 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15307 | $as_echo "$ac_res" >&6; } | |
66e941e8 | 15308 | else |
f8f6ec92 ZK |
15309 | # Is the header compilable? |
15310 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15311 | $as_echo_n "checking $ac_header usability... " >&6; } | |
66e941e8 JM |
15312 | cat >conftest.$ac_ext <<_ACEOF |
15313 | /* confdefs.h. */ | |
15314 | _ACEOF | |
15315 | cat confdefs.h >>conftest.$ac_ext | |
15316 | cat >>conftest.$ac_ext <<_ACEOF | |
15317 | /* end confdefs.h. */ | |
f8f6ec92 ZK |
15318 | $ac_includes_default |
15319 | #include <$ac_header> | |
66e941e8 | 15320 | _ACEOF |
f8f6ec92 ZK |
15321 | rm -f conftest.$ac_objext |
15322 | if { (ac_try="$ac_compile" | |
66e941e8 JM |
15323 | case "(($ac_try" in |
15324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15325 | *) ac_try_echo=$ac_try;; | |
15326 | esac | |
ec6a6fbe AK |
15327 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15328 | $as_echo "$ac_try_echo") >&5 | |
f8f6ec92 | 15329 | (eval "$ac_compile") 2>conftest.er1 |
66e941e8 JM |
15330 | ac_status=$? |
15331 | grep -v '^ *+' conftest.er1 >conftest.err | |
15332 | rm -f conftest.er1 | |
15333 | cat conftest.err >&5 | |
ec6a6fbe | 15334 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15335 | (exit $ac_status); } && { |
15336 | test -z "$ac_c_werror_flag" || | |
15337 | test ! -s conftest.err | |
f8f6ec92 ZK |
15338 | } && test -s conftest.$ac_objext; then |
15339 | ac_header_compiler=yes | |
15340 | else | |
15341 | $as_echo "$as_me: failed program was:" >&5 | |
15342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15343 | ||
15344 | ac_header_compiler=no | |
15345 | fi | |
15346 | ||
15347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15348 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15349 | $as_echo "$ac_header_compiler" >&6; } | |
15350 | ||
15351 | # Is the header present? | |
15352 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15353 | $as_echo_n "checking $ac_header presence... " >&6; } | |
15354 | cat >conftest.$ac_ext <<_ACEOF | |
15355 | /* confdefs.h. */ | |
15356 | _ACEOF | |
15357 | cat confdefs.h >>conftest.$ac_ext | |
15358 | cat >>conftest.$ac_ext <<_ACEOF | |
15359 | /* end confdefs.h. */ | |
15360 | #include <$ac_header> | |
15361 | _ACEOF | |
15362 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15363 | case "(($ac_try" in | |
15364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15365 | *) ac_try_echo=$ac_try;; | |
15366 | esac | |
15367 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15368 | $as_echo "$ac_try_echo") >&5 | |
15369 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15370 | ac_status=$? | |
15371 | grep -v '^ *+' conftest.er1 >conftest.err | |
15372 | rm -f conftest.er1 | |
15373 | cat conftest.err >&5 | |
15374 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15375 | (exit $ac_status); } >/dev/null && { | |
15376 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15377 | test ! -s conftest.err | |
ec6a6fbe | 15378 | }; then |
f8f6ec92 | 15379 | ac_header_preproc=yes |
66e941e8 | 15380 | else |
ec6a6fbe | 15381 | $as_echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
15382 | sed 's/^/| /' conftest.$ac_ext >&5 |
15383 | ||
f8f6ec92 ZK |
15384 | ac_header_preproc=no |
15385 | fi | |
15386 | ||
15387 | rm -f conftest.err conftest.$ac_ext | |
15388 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15389 | $as_echo "$ac_header_preproc" >&6; } | |
15390 | ||
15391 | # So? What about this header? | |
15392 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15393 | yes:no: ) | |
15394 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15395 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15396 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15397 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15398 | ac_header_preproc=yes | |
15399 | ;; | |
15400 | no:yes:* ) | |
15401 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15402 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15403 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15404 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15405 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15406 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15407 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15408 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15409 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15410 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15411 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15412 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
66e941e8 | 15413 | |
f8f6ec92 ZK |
15414 | ;; |
15415 | esac | |
15416 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15417 | $as_echo_n "checking for $ac_header... " >&6; } | |
15418 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15419 | $as_echo_n "(cached) " >&6 | |
15420 | else | |
15421 | eval "$as_ac_Header=\$ac_header_preproc" | |
66e941e8 | 15422 | fi |
f8f6ec92 ZK |
15423 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15424 | $as_echo "$as_val"'` | |
15425 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15426 | $as_echo "$ac_res" >&6; } | |
66e941e8 | 15427 | |
66e941e8 | 15428 | fi |
f8f6ec92 ZK |
15429 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15430 | $as_echo "$as_val"'` | |
15431 | if test "x$as_val" = x""yes; then | |
15432 | cat >>confdefs.h <<_ACEOF | |
15433 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15434 | _ACEOF | |
15435 | ||
66e941e8 | 15436 | else |
f8f6ec92 | 15437 | hard_bailout |
66e941e8 | 15438 | fi |
f8f6ec92 ZK |
15439 | |
15440 | done | |
15441 | ||
15442 | ||
15443 | cat >>confdefs.h <<\_ACEOF | |
15444 | #define HAVE_SELINUX 1 | |
15445 | _ACEOF | |
15446 | ||
15447 | SELINUX_LIBS="-lselinux $SELINUX_LIBS" | |
f7f0854e | 15448 | SELINUX_PC="libselinux" |
f8f6ec92 ZK |
15449 | HAVE_SELINUX=yes |
15450 | else | |
15451 | ||
15452 | { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 | |
15453 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
15454 | SELINUX_LIBS= | |
f7f0854e | 15455 | SELINUX_PC= |
f8f6ec92 | 15456 | HAVE_SELINUX=no |
66e941e8 JM |
15457 | fi |
15458 | ||
ad6254c5 AK |
15459 | fi |
15460 | ||
8b1a3214 AK |
15461 | ################################################################################ |
15462 | if test x$REALTIME = xyes; then | |
ec6a6fbe AK |
15463 | { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
15464 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
8b1a3214 | 15465 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
ec6a6fbe | 15466 | $as_echo_n "(cached) " >&6 |
8b1a3214 AK |
15467 | else |
15468 | ac_check_lib_save_LIBS=$LIBS | |
15469 | LIBS="-lrt $LIBS" | |
15470 | cat >conftest.$ac_ext <<_ACEOF | |
15471 | /* confdefs.h. */ | |
15472 | _ACEOF | |
15473 | cat confdefs.h >>conftest.$ac_ext | |
15474 | cat >>conftest.$ac_ext <<_ACEOF | |
15475 | /* end confdefs.h. */ | |
15476 | ||
7a197a62 AK |
15477 | /* Override any GCC internal prototype to avoid an error. |
15478 | Use char because int might match the return type of a GCC | |
15479 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
15480 | #ifdef __cplusplus |
15481 | extern "C" | |
15482 | #endif | |
8b1a3214 AK |
15483 | char clock_gettime (); |
15484 | int | |
15485 | main () | |
15486 | { | |
7a197a62 | 15487 | return clock_gettime (); |
8b1a3214 AK |
15488 | ; |
15489 | return 0; | |
15490 | } | |
15491 | _ACEOF | |
15492 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15493 | if { (ac_try="$ac_link" |
15494 | case "(($ac_try" in | |
15495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15496 | *) ac_try_echo=$ac_try;; | |
15497 | esac | |
ec6a6fbe AK |
15498 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15499 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15500 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
15501 | ac_status=$? |
15502 | grep -v '^ *+' conftest.er1 >conftest.err | |
15503 | rm -f conftest.er1 | |
15504 | cat conftest.err >&5 | |
ec6a6fbe | 15505 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15506 | (exit $ac_status); } && { |
15507 | test -z "$ac_c_werror_flag" || | |
15508 | test ! -s conftest.err | |
ec6a6fbe AK |
15509 | } && test -s conftest$ac_exeext && { |
15510 | test "$cross_compiling" = yes || | |
15511 | $as_test_x conftest$ac_exeext | |
15512 | }; then | |
8b1a3214 AK |
15513 | ac_cv_lib_rt_clock_gettime=yes |
15514 | else | |
ec6a6fbe | 15515 | $as_echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
15516 | sed 's/^/| /' conftest.$ac_ext >&5 |
15517 | ||
7a197a62 | 15518 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 15519 | fi |
7a197a62 | 15520 | |
ec6a6fbe | 15521 | rm -rf conftest.dSYM |
25fbec5b | 15522 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
15523 | conftest$ac_exeext conftest.$ac_ext |
15524 | LIBS=$ac_check_lib_save_LIBS | |
15525 | fi | |
ec6a6fbe AK |
15526 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
15527 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
15528 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then | |
8b1a3214 AK |
15529 | HAVE_REALTIME=yes |
15530 | else | |
15531 | HAVE_REALTIME=no | |
15532 | fi | |
15533 | ||
8b1a3214 AK |
15534 | |
15535 | if test x$HAVE_REALTIME = xyes; then | |
15536 | ||
15537 | cat >>confdefs.h <<\_ACEOF | |
15538 | #define HAVE_REALTIME 1 | |
15539 | _ACEOF | |
15540 | ||
15541 | LIBS="-lrt $LIBS" | |
15542 | else | |
ec6a6fbe AK |
15543 | { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
15544 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
15545 | fi |
15546 | fi | |
15547 | ||
ad6254c5 AK |
15548 | ################################################################################ |
15549 | ||
15550 | for ac_header in getopt.h | |
15551 | do | |
ec6a6fbe | 15552 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 15553 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
15554 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15555 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15556 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15557 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15558 | fi |
ec6a6fbe AK |
15559 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15560 | $as_echo "$as_val"'` | |
15561 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15562 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
15563 | else |
15564 | # Is the header compilable? | |
ec6a6fbe AK |
15565 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15566 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 15567 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15568 | /* confdefs.h. */ |
15569 | _ACEOF | |
15570 | cat confdefs.h >>conftest.$ac_ext | |
15571 | cat >>conftest.$ac_ext <<_ACEOF | |
15572 | /* end confdefs.h. */ | |
15573 | $ac_includes_default | |
15574 | #include <$ac_header> | |
15575 | _ACEOF | |
15576 | rm -f conftest.$ac_objext | |
7a197a62 AK |
15577 | if { (ac_try="$ac_compile" |
15578 | case "(($ac_try" in | |
15579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15580 | *) ac_try_echo=$ac_try;; | |
15581 | esac | |
ec6a6fbe AK |
15582 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15583 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15584 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 15585 | ac_status=$? |
8a2fc586 AK |
15586 | grep -v '^ *+' conftest.er1 >conftest.err |
15587 | rm -f conftest.er1 | |
15588 | cat conftest.err >&5 | |
ec6a6fbe | 15589 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15590 | (exit $ac_status); } && { |
15591 | test -z "$ac_c_werror_flag" || | |
15592 | test ! -s conftest.err | |
15593 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
15594 | ac_header_compiler=yes |
15595 | else | |
ec6a6fbe | 15596 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15597 | sed 's/^/| /' conftest.$ac_ext >&5 |
15598 | ||
7a197a62 | 15599 | ac_header_compiler=no |
ad6254c5 | 15600 | fi |
7a197a62 AK |
15601 | |
15602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
15603 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15604 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
15605 | |
15606 | # Is the header present? | |
ec6a6fbe AK |
15607 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15608 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 15609 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15610 | /* confdefs.h. */ |
15611 | _ACEOF | |
15612 | cat confdefs.h >>conftest.$ac_ext | |
15613 | cat >>conftest.$ac_ext <<_ACEOF | |
15614 | /* end confdefs.h. */ | |
15615 | #include <$ac_header> | |
15616 | _ACEOF | |
7a197a62 AK |
15617 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15618 | case "(($ac_try" in | |
15619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15620 | *) ac_try_echo=$ac_try;; | |
15621 | esac | |
ec6a6fbe AK |
15622 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15623 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15624 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
15625 | ac_status=$? |
15626 | grep -v '^ *+' conftest.er1 >conftest.err | |
15627 | rm -f conftest.er1 | |
15628 | cat conftest.err >&5 | |
ec6a6fbe | 15629 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15630 | (exit $ac_status); } >/dev/null && { |
15631 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15632 | test ! -s conftest.err | |
15633 | }; then | |
ad6254c5 AK |
15634 | ac_header_preproc=yes |
15635 | else | |
ec6a6fbe | 15636 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15637 | sed 's/^/| /' conftest.$ac_ext >&5 |
15638 | ||
15639 | ac_header_preproc=no | |
15640 | fi | |
7a197a62 | 15641 | |
ad6254c5 | 15642 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
15643 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15644 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
15645 | |
15646 | # So? What about this header? | |
8a2fc586 AK |
15647 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15648 | yes:no: ) | |
ec6a6fbe AK |
15649 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15650 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15651 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15652 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 15653 | ac_header_preproc=yes |
ad6254c5 | 15654 | ;; |
8a2fc586 | 15655 | no:yes:* ) |
ec6a6fbe AK |
15656 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15657 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15658 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15659 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15660 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15661 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15662 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15663 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15664 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15665 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15666 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15667 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 15668 | |
ad6254c5 AK |
15669 | ;; |
15670 | esac | |
ec6a6fbe AK |
15671 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15672 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15673 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15674 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15675 | else |
8a2fc586 | 15676 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 15677 | fi |
ec6a6fbe AK |
15678 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15679 | $as_echo "$as_val"'` | |
15680 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15681 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
15682 | |
15683 | fi | |
ec6a6fbe AK |
15684 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15685 | $as_echo "$as_val"'` | |
15686 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 15687 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 15688 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 15689 | _ACEOF |
72b2cb61 AK |
15690 | |
15691 | cat >>confdefs.h <<\_ACEOF | |
15692 | #define HAVE_GETOPTLONG 1 | |
15693 | _ACEOF | |
15694 | ||
ad6254c5 AK |
15695 | fi |
15696 | ||
15697 | done | |
15698 | ||
15699 | ||
15700 | ################################################################################ | |
06e459df | 15701 | if test x$READLINE != xno; then |
539f4a77 ZK |
15702 | lvm_saved_libs=$LIBS |
15703 | { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 | |
15704 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
15705 | if test "${ac_cv_search_tgetent+set}" = set; then | |
15706 | $as_echo_n "(cached) " >&6 | |
15707 | else | |
15708 | ac_func_search_save_LIBS=$LIBS | |
15709 | cat >conftest.$ac_ext <<_ACEOF | |
15710 | /* confdefs.h. */ | |
15711 | _ACEOF | |
15712 | cat confdefs.h >>conftest.$ac_ext | |
15713 | cat >>conftest.$ac_ext <<_ACEOF | |
15714 | /* end confdefs.h. */ | |
bc1024f8 | 15715 | |
539f4a77 ZK |
15716 | /* Override any GCC internal prototype to avoid an error. |
15717 | Use char because int might match the return type of a GCC | |
15718 | builtin and then its argument prototype would still apply. */ | |
15719 | #ifdef __cplusplus | |
15720 | extern "C" | |
15721 | #endif | |
15722 | char tgetent (); | |
15723 | int | |
15724 | main () | |
15725 | { | |
15726 | return tgetent (); | |
15727 | ; | |
15728 | return 0; | |
15729 | } | |
15730 | _ACEOF | |
15731 | for ac_lib in '' tinfo ncurses curses termcap termlib; do | |
15732 | if test -z "$ac_lib"; then | |
15733 | ac_res="none required" | |
15734 | else | |
15735 | ac_res=-l$ac_lib | |
15736 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15737 | fi | |
15738 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15739 | if { (ac_try="$ac_link" | |
15740 | case "(($ac_try" in | |
15741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15742 | *) ac_try_echo=$ac_try;; | |
15743 | esac | |
15744 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15745 | $as_echo "$ac_try_echo") >&5 | |
15746 | (eval "$ac_link") 2>conftest.er1 | |
15747 | ac_status=$? | |
15748 | grep -v '^ *+' conftest.er1 >conftest.err | |
15749 | rm -f conftest.er1 | |
15750 | cat conftest.err >&5 | |
15751 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15752 | (exit $ac_status); } && { | |
15753 | test -z "$ac_c_werror_flag" || | |
15754 | test ! -s conftest.err | |
15755 | } && test -s conftest$ac_exeext && { | |
15756 | test "$cross_compiling" = yes || | |
15757 | $as_test_x conftest$ac_exeext | |
15758 | }; then | |
15759 | ac_cv_search_tgetent=$ac_res | |
15760 | else | |
15761 | $as_echo "$as_me: failed program was:" >&5 | |
15762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15763 | ||
15764 | ||
15765 | fi | |
15766 | ||
15767 | rm -rf conftest.dSYM | |
15768 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15769 | conftest$ac_exeext | |
15770 | if test "${ac_cv_search_tgetent+set}" = set; then | |
15771 | break | |
15772 | fi | |
15773 | done | |
15774 | if test "${ac_cv_search_tgetent+set}" = set; then | |
15775 | : | |
15776 | else | |
15777 | ac_cv_search_tgetent=no | |
15778 | fi | |
15779 | rm conftest.$ac_ext | |
15780 | LIBS=$ac_func_search_save_LIBS | |
15781 | fi | |
15782 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 | |
15783 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
15784 | ac_res=$ac_cv_search_tgetent | |
15785 | if test "$ac_res" != no; then | |
15786 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
15787 | READLINE_LIBS=$ac_cv_search_tgetent | |
15788 | else | |
15789 | ||
15790 | if test "$READLINE" = yes; then | |
15791 | { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the | |
15792 | --enable-readline option (which is enabled by default). Either disable readline | |
15793 | support with --disable-readline or download and install termcap from: | |
15794 | ftp.gnu.org/gnu/termcap | |
15795 | Note: if you are using precompiled packages you will also need the development | |
15796 | package as well (which may be called termcap-devel or something similar). | |
15797 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
15798 | not found either - but you could try installing that as well." >&5 | |
15799 | $as_echo "$as_me: error: termcap could not be found which is required for the | |
15800 | --enable-readline option (which is enabled by default). Either disable readline | |
15801 | support with --disable-readline or download and install termcap from: | |
15802 | ftp.gnu.org/gnu/termcap | |
15803 | Note: if you are using precompiled packages you will also need the development | |
15804 | package as well (which may be called termcap-devel or something similar). | |
15805 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
15806 | not found either - but you could try installing that as well." >&2;} | |
15807 | { (exit 1); exit 1; }; } | |
15808 | fi | |
15809 | fi | |
15810 | ||
15811 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 | |
ec6a6fbe | 15812 | $as_echo_n "checking for readline in -lreadline... " >&6; } |
ad6254c5 | 15813 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
ec6a6fbe | 15814 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
15815 | else |
15816 | ac_check_lib_save_LIBS=$LIBS | |
15817 | LIBS="-lreadline $LIBS" | |
15818 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
15819 | /* confdefs.h. */ |
15820 | _ACEOF | |
15821 | cat confdefs.h >>conftest.$ac_ext | |
15822 | cat >>conftest.$ac_ext <<_ACEOF | |
15823 | /* end confdefs.h. */ | |
15824 | ||
7a197a62 AK |
15825 | /* Override any GCC internal prototype to avoid an error. |
15826 | Use char because int might match the return type of a GCC | |
15827 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
15828 | #ifdef __cplusplus |
15829 | extern "C" | |
15830 | #endif | |
ad6254c5 AK |
15831 | char readline (); |
15832 | int | |
15833 | main () | |
15834 | { | |
7a197a62 | 15835 | return readline (); |
ad6254c5 AK |
15836 | ; |
15837 | return 0; | |
15838 | } | |
15839 | _ACEOF | |
15840 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
15841 | if { (ac_try="$ac_link" |
15842 | case "(($ac_try" in | |
15843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15844 | *) ac_try_echo=$ac_try;; | |
15845 | esac | |
ec6a6fbe AK |
15846 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15847 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15848 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 15849 | ac_status=$? |
8a2fc586 AK |
15850 | grep -v '^ *+' conftest.er1 >conftest.err |
15851 | rm -f conftest.er1 | |
15852 | cat conftest.err >&5 | |
ec6a6fbe | 15853 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15854 | (exit $ac_status); } && { |
15855 | test -z "$ac_c_werror_flag" || | |
15856 | test ! -s conftest.err | |
ec6a6fbe AK |
15857 | } && test -s conftest$ac_exeext && { |
15858 | test "$cross_compiling" = yes || | |
15859 | $as_test_x conftest$ac_exeext | |
15860 | }; then | |
ad6254c5 AK |
15861 | ac_cv_lib_readline_readline=yes |
15862 | else | |
ec6a6fbe | 15863 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15864 | sed 's/^/| /' conftest.$ac_ext >&5 |
15865 | ||
7a197a62 | 15866 | ac_cv_lib_readline_readline=no |
ad6254c5 | 15867 | fi |
7a197a62 | 15868 | |
ec6a6fbe | 15869 | rm -rf conftest.dSYM |
25fbec5b | 15870 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 15871 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
15872 | LIBS=$ac_check_lib_save_LIBS |
15873 | fi | |
ec6a6fbe AK |
15874 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
15875 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
15876 | if test "x$ac_cv_lib_readline_readline" = x""yes; then | |
539f4a77 ZK |
15877 | |
15878 | ||
15879 | cat >>confdefs.h <<\_ACEOF | |
15880 | #define READLINE_SUPPORT 1 | |
bc1024f8 JM |
15881 | _ACEOF |
15882 | ||
539f4a77 ZK |
15883 | LIBS=$lvm_saved_libs |
15884 | { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5 | |
15885 | $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; } | |
15886 | if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then | |
15887 | $as_echo_n "(cached) " >&6 | |
15888 | else | |
15889 | ac_check_lib_save_LIBS=$LIBS | |
15890 | LIBS="-lreadline $LIBS" | |
15891 | cat >conftest.$ac_ext <<_ACEOF | |
15892 | /* confdefs.h. */ | |
15893 | _ACEOF | |
15894 | cat confdefs.h >>conftest.$ac_ext | |
15895 | cat >>conftest.$ac_ext <<_ACEOF | |
15896 | /* end confdefs.h. */ | |
bc1024f8 | 15897 | |
539f4a77 ZK |
15898 | /* Override any GCC internal prototype to avoid an error. |
15899 | Use char because int might match the return type of a GCC | |
15900 | builtin and then its argument prototype would still apply. */ | |
15901 | #ifdef __cplusplus | |
15902 | extern "C" | |
15903 | #endif | |
15904 | char rl_line_buffer (); | |
15905 | int | |
15906 | main () | |
15907 | { | |
15908 | return rl_line_buffer (); | |
15909 | ; | |
15910 | return 0; | |
15911 | } | |
15912 | _ACEOF | |
15913 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15914 | if { (ac_try="$ac_link" | |
15915 | case "(($ac_try" in | |
15916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15917 | *) ac_try_echo=$ac_try;; | |
15918 | esac | |
15919 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15920 | $as_echo "$ac_try_echo") >&5 | |
15921 | (eval "$ac_link") 2>conftest.er1 | |
15922 | ac_status=$? | |
15923 | grep -v '^ *+' conftest.er1 >conftest.err | |
15924 | rm -f conftest.er1 | |
15925 | cat conftest.err >&5 | |
15926 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15927 | (exit $ac_status); } && { | |
15928 | test -z "$ac_c_werror_flag" || | |
15929 | test ! -s conftest.err | |
15930 | } && test -s conftest$ac_exeext && { | |
15931 | test "$cross_compiling" = yes || | |
15932 | $as_test_x conftest$ac_exeext | |
15933 | }; then | |
15934 | ac_cv_lib_readline_rl_line_buffer=yes | |
ad6254c5 | 15935 | else |
539f4a77 ZK |
15936 | $as_echo "$as_me: failed program was:" >&5 |
15937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15938 | ||
15939 | ac_cv_lib_readline_rl_line_buffer=no | |
06e459df JM |
15940 | fi |
15941 | ||
539f4a77 ZK |
15942 | rm -rf conftest.dSYM |
15943 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
15944 | conftest$ac_exeext conftest.$ac_ext | |
15945 | LIBS=$ac_check_lib_save_LIBS | |
15946 | fi | |
15947 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5 | |
15948 | $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; } | |
15949 | if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then | |
15950 | READLINE_LIBS="-lreadline" | |
15951 | else | |
15952 | ||
15953 | { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5 | |
15954 | $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; } | |
15955 | READLINE_LIBS="-lreadline $READLINE_LIBS" | |
15956 | ||
15957 | fi | |
15958 | ||
15959 | else | |
15960 | ||
15961 | READLINE_LIBS= | |
15962 | if test "$READLINE" = yes; then | |
15963 | { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the | |
ad6254c5 AK |
15964 | --enable-readline option (which is enabled by default). Either disable readline |
15965 | support with --disable-readline or download and install readline from: | |
15966 | ftp.gnu.org/gnu/readline | |
15967 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 | 15968 | package as well (which may be called readline-devel or something similar)." >&5 |
ec6a6fbe | 15969 | $as_echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
15970 | --enable-readline option (which is enabled by default). Either disable readline |
15971 | support with --disable-readline or download and install readline from: | |
15972 | ftp.gnu.org/gnu/readline | |
15973 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 | 15974 | package as well (which may be called readline-devel or something similar)." >&2;} |
ad6254c5 | 15975 | { (exit 1); exit 1; }; } |
539f4a77 ZK |
15976 | fi |
15977 | fi | |
15978 | ||
15979 | LIBS="$READLINE_LIBS $lvm_saved_libs" | |
bc1024f8 JM |
15980 | |
15981 | for ac_func in rl_completion_matches | |
15982 | do | |
ec6a6fbe AK |
15983 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15984 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15985 | $as_echo_n "checking for $ac_func... " >&6; } | |
bc1024f8 | 15986 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15987 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
15988 | else |
15989 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
15990 | /* confdefs.h. */ |
15991 | _ACEOF | |
15992 | cat confdefs.h >>conftest.$ac_ext | |
15993 | cat >>conftest.$ac_ext <<_ACEOF | |
15994 | /* end confdefs.h. */ | |
bc1024f8 | 15995 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8a2fc586 | 15996 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
bc1024f8 | 15997 | #define $ac_func innocuous_$ac_func |
8a2fc586 | 15998 | |
ad6254c5 | 15999 | /* System header to define __stub macros and hopefully few prototypes, |
bc1024f8 | 16000 | which can conflict with char $ac_func (); below. |
ad6254c5 AK |
16001 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
16002 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 16003 | |
ad6254c5 AK |
16004 | #ifdef __STDC__ |
16005 | # include <limits.h> | |
16006 | #else | |
16007 | # include <assert.h> | |
16008 | #endif | |
8a2fc586 | 16009 | |
bc1024f8 | 16010 | #undef $ac_func |
8a2fc586 | 16011 | |
7a197a62 AK |
16012 | /* Override any GCC internal prototype to avoid an error. |
16013 | Use char because int might match the return type of a GCC | |
16014 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
16015 | #ifdef __cplusplus |
16016 | extern "C" | |
ad6254c5 | 16017 | #endif |
bc1024f8 | 16018 | char $ac_func (); |
ad6254c5 AK |
16019 | /* The GNU C library defines this for functions which it implements |
16020 | to always fail with ENOSYS. Some functions are actually named | |
16021 | something starting with __ and the normal name is an alias. */ | |
bc1024f8 | 16022 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 16023 | choke me |
ad6254c5 AK |
16024 | #endif |
16025 | ||
16026 | int | |
16027 | main () | |
16028 | { | |
bc1024f8 | 16029 | return $ac_func (); |
ad6254c5 AK |
16030 | ; |
16031 | return 0; | |
16032 | } | |
16033 | _ACEOF | |
16034 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
16035 | if { (ac_try="$ac_link" |
16036 | case "(($ac_try" in | |
16037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16038 | *) ac_try_echo=$ac_try;; | |
16039 | esac | |
ec6a6fbe AK |
16040 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16041 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16042 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 16043 | ac_status=$? |
8a2fc586 AK |
16044 | grep -v '^ *+' conftest.er1 >conftest.err |
16045 | rm -f conftest.er1 | |
16046 | cat conftest.err >&5 | |
ec6a6fbe | 16047 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16048 | (exit $ac_status); } && { |
16049 | test -z "$ac_c_werror_flag" || | |
16050 | test ! -s conftest.err | |
ec6a6fbe AK |
16051 | } && test -s conftest$ac_exeext && { |
16052 | test "$cross_compiling" = yes || | |
16053 | $as_test_x conftest$ac_exeext | |
16054 | }; then | |
bc1024f8 | 16055 | eval "$as_ac_var=yes" |
ad6254c5 | 16056 | else |
ec6a6fbe | 16057 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16058 | sed 's/^/| /' conftest.$ac_ext >&5 |
16059 | ||
bc1024f8 | 16060 | eval "$as_ac_var=no" |
ad6254c5 | 16061 | fi |
7a197a62 | 16062 | |
ec6a6fbe | 16063 | rm -rf conftest.dSYM |
25fbec5b | 16064 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 16065 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 16066 | fi |
ec6a6fbe AK |
16067 | ac_res=`eval 'as_val=${'$as_ac_var'} |
16068 | $as_echo "$as_val"'` | |
16069 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16070 | $as_echo "$ac_res" >&6; } | |
16071 | as_val=`eval 'as_val=${'$as_ac_var'} | |
16072 | $as_echo "$as_val"'` | |
16073 | if test "x$as_val" = x""yes; then | |
bc1024f8 | 16074 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16075 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
72b2cb61 AK |
16076 | _ACEOF |
16077 | ||
16078 | fi | |
bc1024f8 | 16079 | done |
ad6254c5 | 16080 | |
539f4a77 | 16081 | LIBS=$lvm_saved_libs |
ad6254c5 AK |
16082 | fi |
16083 | ||
16084 | ################################################################################ | |
ec6a6fbe AK |
16085 | { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
16086 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
7a197a62 | 16087 | # Check whether --enable-nls was given. |
ad6254c5 | 16088 | if test "${enable_nls+set}" = set; then |
7a197a62 | 16089 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
16090 | else |
16091 | INTL=no | |
7a197a62 AK |
16092 | fi |
16093 | ||
ec6a6fbe AK |
16094 | { $as_echo "$as_me:$LINENO: result: $INTL" >&5 |
16095 | $as_echo "$INTL" >&6; } | |
ad6254c5 AK |
16096 | |
16097 | if test x$INTL = xyes; then | |
93bd259b | 16098 | # FIXME - Move this - can be device-mapper too |
ad6254c5 AK |
16099 | INTL_PACKAGE="lvm2" |
16100 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
16101 | set dummy msgfmt; ac_word=$2 | |
ec6a6fbe AK |
16102 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
16103 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 16104 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
ec6a6fbe | 16105 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
16106 | else |
16107 | case $MSGFMT in | |
16108 | [\\/]* | ?:[\\/]*) | |
16109 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
16110 | ;; | |
16111 | *) | |
16112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16113 | for as_dir in $PATH | |
16114 | do | |
16115 | IFS=$as_save_IFS | |
16116 | test -z "$as_dir" && as_dir=. | |
16117 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 16118 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 16119 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 16120 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
16121 | break 2 |
16122 | fi | |
16123 | done | |
16124 | done | |
7a197a62 | 16125 | IFS=$as_save_IFS |
ad6254c5 AK |
16126 | |
16127 | ;; | |
16128 | esac | |
16129 | fi | |
16130 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 16131 | if test -n "$MSGFMT"; then |
ec6a6fbe AK |
16132 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
16133 | $as_echo "$MSGFMT" >&6; } | |
ad6254c5 | 16134 | else |
ec6a6fbe AK |
16135 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
16136 | $as_echo "no" >&6; } | |
ad6254c5 AK |
16137 | fi |
16138 | ||
7a197a62 | 16139 | |
ad6254c5 | 16140 | if [ "x$MSGFMT" == x ]; |
ec6a6fbe | 16141 | then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 16142 | " >&5 |
ec6a6fbe | 16143 | $as_echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
16144 | " >&2;} |
16145 | { (exit 1); exit 1; }; } | |
16146 | fi; | |
16147 | ||
16148 | ||
7a197a62 | 16149 | # Check whether --with-localedir was given. |
ad6254c5 | 16150 | if test "${with_localedir+set}" = set; then |
71082be4 | 16151 | withval=$with_localedir; LOCALEDIR=$withval |
ad6254c5 | 16152 | else |
71082be4 | 16153 | LOCALEDIR='${prefix}/share/locale' |
7a197a62 AK |
16154 | fi |
16155 | ||
ad6254c5 AK |
16156 | fi |
16157 | ||
16158 | ################################################################################ | |
16159 | ||
7a197a62 | 16160 | # Check whether --with-confdir was given. |
ad6254c5 | 16161 | if test "${with_confdir+set}" = set; then |
71082be4 | 16162 | withval=$with_confdir; CONFDIR=$withval |
ad6254c5 | 16163 | else |
71082be4 | 16164 | CONFDIR="/etc" |
7a197a62 AK |
16165 | fi |
16166 | ||
ad6254c5 AK |
16167 | |
16168 | ||
7a197a62 | 16169 | # Check whether --with-staticdir was given. |
ad6254c5 | 16170 | if test "${with_staticdir+set}" = set; then |
71082be4 | 16171 | withval=$with_staticdir; STATICDIR=$withval |
ad6254c5 | 16172 | else |
71082be4 | 16173 | STATICDIR='${exec_prefix}/sbin' |
7a197a62 | 16174 | fi |
ad6254c5 | 16175 | |
33f732c5 | 16176 | |
7a197a62 | 16177 | |
68f2de6d AK |
16178 | # Check whether --with-usrlibdir was given. |
16179 | if test "${with_usrlibdir+set}" = set; then | |
71082be4 | 16180 | withval=$with_usrlibdir; usrlibdir=$withval |
68f2de6d | 16181 | else |
71082be4 | 16182 | usrlibdir='${prefix}/lib' |
68f2de6d AK |
16183 | fi |
16184 | ||
16185 | ||
16186 | ||
16187 | # Check whether --with-usrsbindir was given. | |
16188 | if test "${with_usrsbindir+set}" = set; then | |
71082be4 | 16189 | withval=$with_usrsbindir; usrsbindir=$withval |
68f2de6d | 16190 | else |
71082be4 | 16191 | usrsbindir='${prefix}/sbin' |
68f2de6d AK |
16192 | fi |
16193 | ||
16194 | ||
a5f46f6a AK |
16195 | ################################################################################ |
16196 | ||
16197 | # Check whether --with-udev_prefix was given. | |
16198 | if test "${with_udev_prefix+set}" = set; then | |
71082be4 | 16199 | withval=$with_udev_prefix; udev_prefix=$withval |
a5f46f6a | 16200 | else |
71082be4 | 16201 | udev_prefix='${exec_prefix}' |
a5f46f6a AK |
16202 | fi |
16203 | ||
16204 | ||
78ce7acc AK |
16205 | |
16206 | # Check whether --with-udevdir was given. | |
16207 | if test "${with_udevdir+set}" = set; then | |
71082be4 | 16208 | withval=$with_udevdir; udevdir=$withval |
78ce7acc | 16209 | else |
71082be4 | 16210 | udevdir='${udev_prefix}/lib/udev/rules.d' |
78ce7acc AK |
16211 | fi |
16212 | ||
a5f46f6a | 16213 | |
ad6254c5 AK |
16214 | ################################################################################ |
16215 | if test x$READLINE = xyes; then | |
16216 | ||
16217 | ||
16218 | for ac_header in readline/readline.h readline/history.h | |
16219 | do | |
ec6a6fbe | 16220 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 16221 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
16222 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16223 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16224 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16225 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16226 | fi |
ec6a6fbe AK |
16227 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16228 | $as_echo "$as_val"'` | |
16229 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16230 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16231 | else |
16232 | # Is the header compilable? | |
ec6a6fbe AK |
16233 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16234 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 16235 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16236 | /* confdefs.h. */ |
16237 | _ACEOF | |
16238 | cat confdefs.h >>conftest.$ac_ext | |
16239 | cat >>conftest.$ac_ext <<_ACEOF | |
16240 | /* end confdefs.h. */ | |
16241 | $ac_includes_default | |
16242 | #include <$ac_header> | |
16243 | _ACEOF | |
16244 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16245 | if { (ac_try="$ac_compile" |
16246 | case "(($ac_try" in | |
16247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16248 | *) ac_try_echo=$ac_try;; | |
16249 | esac | |
ec6a6fbe AK |
16250 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16251 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16252 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16253 | ac_status=$? |
8a2fc586 AK |
16254 | grep -v '^ *+' conftest.er1 >conftest.err |
16255 | rm -f conftest.er1 | |
16256 | cat conftest.err >&5 | |
ec6a6fbe | 16257 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16258 | (exit $ac_status); } && { |
16259 | test -z "$ac_c_werror_flag" || | |
16260 | test ! -s conftest.err | |
16261 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
16262 | ac_header_compiler=yes |
16263 | else | |
ec6a6fbe | 16264 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16265 | sed 's/^/| /' conftest.$ac_ext >&5 |
16266 | ||
7a197a62 | 16267 | ac_header_compiler=no |
ad6254c5 | 16268 | fi |
7a197a62 AK |
16269 | |
16270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16271 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16272 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16273 | |
16274 | # Is the header present? | |
ec6a6fbe AK |
16275 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16276 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16277 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16278 | /* confdefs.h. */ |
16279 | _ACEOF | |
16280 | cat confdefs.h >>conftest.$ac_ext | |
16281 | cat >>conftest.$ac_ext <<_ACEOF | |
16282 | /* end confdefs.h. */ | |
16283 | #include <$ac_header> | |
16284 | _ACEOF | |
7a197a62 AK |
16285 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16286 | case "(($ac_try" in | |
16287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16288 | *) ac_try_echo=$ac_try;; | |
16289 | esac | |
ec6a6fbe AK |
16290 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16291 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16292 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16293 | ac_status=$? |
16294 | grep -v '^ *+' conftest.er1 >conftest.err | |
16295 | rm -f conftest.er1 | |
16296 | cat conftest.err >&5 | |
ec6a6fbe | 16297 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16298 | (exit $ac_status); } >/dev/null && { |
16299 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16300 | test ! -s conftest.err | |
16301 | }; then | |
ad6254c5 AK |
16302 | ac_header_preproc=yes |
16303 | else | |
ec6a6fbe | 16304 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16305 | sed 's/^/| /' conftest.$ac_ext >&5 |
16306 | ||
16307 | ac_header_preproc=no | |
16308 | fi | |
7a197a62 | 16309 | |
ad6254c5 | 16310 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16311 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16312 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16313 | |
16314 | # So? What about this header? | |
8a2fc586 AK |
16315 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16316 | yes:no: ) | |
ec6a6fbe AK |
16317 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16318 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16319 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16320 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16321 | ac_header_preproc=yes |
ad6254c5 | 16322 | ;; |
8a2fc586 | 16323 | no:yes:* ) |
ec6a6fbe AK |
16324 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16325 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16326 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16327 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16328 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16329 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16330 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16331 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16332 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16333 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16334 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16335 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16336 | |
ad6254c5 AK |
16337 | ;; |
16338 | esac | |
ec6a6fbe AK |
16339 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16340 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16341 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16342 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16343 | else |
8a2fc586 | 16344 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 16345 | fi |
ec6a6fbe AK |
16346 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16347 | $as_echo "$as_val"'` | |
16348 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16349 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16350 | |
16351 | fi | |
ec6a6fbe AK |
16352 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16353 | $as_echo "$as_val"'` | |
16354 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16355 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16356 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16357 | _ACEOF |
16358 | ||
16359 | else | |
ec6a6fbe AK |
16360 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16361 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
16362 | { (exit 1); exit 1; }; } |
16363 | fi | |
16364 | ||
16365 | done | |
16366 | ||
16367 | fi | |
16368 | ||
5c7fc7c4 | 16369 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
16370 | |
16371 | ||
16372 | ||
16373 | ||
16374 | ||
16375 | ||
16376 | ||
16377 | ||
16378 | ||
16379 | ||
16380 | 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 | |
16381 | do | |
ec6a6fbe | 16382 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 16383 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
16384 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16385 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16386 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16387 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16388 | fi |
ec6a6fbe AK |
16389 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16390 | $as_echo "$as_val"'` | |
16391 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16392 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16393 | else |
16394 | # Is the header compilable? | |
ec6a6fbe AK |
16395 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16396 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 16397 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16398 | /* confdefs.h. */ |
16399 | _ACEOF | |
16400 | cat confdefs.h >>conftest.$ac_ext | |
16401 | cat >>conftest.$ac_ext <<_ACEOF | |
16402 | /* end confdefs.h. */ | |
16403 | $ac_includes_default | |
16404 | #include <$ac_header> | |
16405 | _ACEOF | |
16406 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16407 | if { (ac_try="$ac_compile" |
16408 | case "(($ac_try" in | |
16409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16410 | *) ac_try_echo=$ac_try;; | |
16411 | esac | |
ec6a6fbe AK |
16412 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16413 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16414 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16415 | ac_status=$? |
8a2fc586 AK |
16416 | grep -v '^ *+' conftest.er1 >conftest.err |
16417 | rm -f conftest.er1 | |
16418 | cat conftest.err >&5 | |
ec6a6fbe | 16419 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16420 | (exit $ac_status); } && { |
16421 | test -z "$ac_c_werror_flag" || | |
16422 | test ! -s conftest.err | |
16423 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
16424 | ac_header_compiler=yes |
16425 | else | |
ec6a6fbe | 16426 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16427 | sed 's/^/| /' conftest.$ac_ext >&5 |
16428 | ||
7a197a62 | 16429 | ac_header_compiler=no |
ad6254c5 | 16430 | fi |
7a197a62 AK |
16431 | |
16432 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16433 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16434 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16435 | |
16436 | # Is the header present? | |
ec6a6fbe AK |
16437 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16438 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16439 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16440 | /* confdefs.h. */ |
16441 | _ACEOF | |
16442 | cat confdefs.h >>conftest.$ac_ext | |
16443 | cat >>conftest.$ac_ext <<_ACEOF | |
16444 | /* end confdefs.h. */ | |
16445 | #include <$ac_header> | |
16446 | _ACEOF | |
7a197a62 AK |
16447 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16448 | case "(($ac_try" in | |
16449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16450 | *) ac_try_echo=$ac_try;; | |
16451 | esac | |
ec6a6fbe AK |
16452 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16453 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16454 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16455 | ac_status=$? |
16456 | grep -v '^ *+' conftest.er1 >conftest.err | |
16457 | rm -f conftest.er1 | |
16458 | cat conftest.err >&5 | |
ec6a6fbe | 16459 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16460 | (exit $ac_status); } >/dev/null && { |
16461 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16462 | test ! -s conftest.err | |
16463 | }; then | |
ad6254c5 AK |
16464 | ac_header_preproc=yes |
16465 | else | |
ec6a6fbe | 16466 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16467 | sed 's/^/| /' conftest.$ac_ext >&5 |
16468 | ||
16469 | ac_header_preproc=no | |
16470 | fi | |
7a197a62 | 16471 | |
ad6254c5 | 16472 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16473 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16474 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16475 | |
16476 | # So? What about this header? | |
8a2fc586 AK |
16477 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16478 | yes:no: ) | |
ec6a6fbe AK |
16479 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16480 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16481 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16482 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16483 | ac_header_preproc=yes |
ad6254c5 | 16484 | ;; |
8a2fc586 | 16485 | no:yes:* ) |
ec6a6fbe AK |
16486 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16487 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16488 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16489 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16490 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16491 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16492 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16493 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16494 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16495 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16496 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16497 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16498 | |
ad6254c5 AK |
16499 | ;; |
16500 | esac | |
ec6a6fbe AK |
16501 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16502 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16503 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16504 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16505 | else |
8a2fc586 | 16506 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 16507 | fi |
ec6a6fbe AK |
16508 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16509 | $as_echo "$as_val"'` | |
16510 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16511 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16512 | |
16513 | fi | |
ec6a6fbe AK |
16514 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16515 | $as_echo "$as_val"'` | |
16516 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16517 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16518 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16519 | _ACEOF |
16520 | ||
16521 | else | |
ec6a6fbe AK |
16522 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16523 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 16524 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
16525 | fi |
16526 | ||
ad6254c5 AK |
16527 | done |
16528 | ||
16529 | ||
795ca3e5 | 16530 | |
8106cdd5 | 16531 | |
ad6254c5 AK |
16532 | |
16533 | ||
16534 | for ac_func in dup2 getmntent memmove select socket | |
16535 | do | |
ec6a6fbe AK |
16536 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16537 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16538 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 16539 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16540 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 16541 | else |
ad6254c5 | 16542 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16543 | /* confdefs.h. */ |
16544 | _ACEOF | |
16545 | cat confdefs.h >>conftest.$ac_ext | |
16546 | cat >>conftest.$ac_ext <<_ACEOF | |
16547 | /* end confdefs.h. */ | |
8a2fc586 AK |
16548 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16549 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16550 | #define $ac_func innocuous_$ac_func | |
16551 | ||
795ca3e5 | 16552 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
16553 | which can conflict with char $ac_func (); below. |
16554 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16555 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 16556 | |
ad6254c5 AK |
16557 | #ifdef __STDC__ |
16558 | # include <limits.h> | |
16559 | #else | |
16560 | # include <assert.h> | |
16561 | #endif | |
8a2fc586 AK |
16562 | |
16563 | #undef $ac_func | |
16564 | ||
7a197a62 AK |
16565 | /* Override any GCC internal prototype to avoid an error. |
16566 | Use char because int might match the return type of a GCC | |
16567 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
16568 | #ifdef __cplusplus |
16569 | extern "C" | |
ad6254c5 | 16570 | #endif |
ad6254c5 | 16571 | char $ac_func (); |
795ca3e5 AK |
16572 | /* The GNU C library defines this for functions which it implements |
16573 | to always fail with ENOSYS. Some functions are actually named | |
16574 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 16575 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 16576 | choke me |
795ca3e5 AK |
16577 | #endif |
16578 | ||
ad6254c5 AK |
16579 | int |
16580 | main () | |
16581 | { | |
7a197a62 | 16582 | return $ac_func (); |
ad6254c5 AK |
16583 | ; |
16584 | return 0; | |
16585 | } | |
16586 | _ACEOF | |
16587 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
16588 | if { (ac_try="$ac_link" |
16589 | case "(($ac_try" in | |
16590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16591 | *) ac_try_echo=$ac_try;; | |
16592 | esac | |
ec6a6fbe AK |
16593 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16594 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16595 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 16596 | ac_status=$? |
8a2fc586 AK |
16597 | grep -v '^ *+' conftest.er1 >conftest.err |
16598 | rm -f conftest.er1 | |
16599 | cat conftest.err >&5 | |
ec6a6fbe | 16600 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16601 | (exit $ac_status); } && { |
16602 | test -z "$ac_c_werror_flag" || | |
16603 | test ! -s conftest.err | |
ec6a6fbe AK |
16604 | } && test -s conftest$ac_exeext && { |
16605 | test "$cross_compiling" = yes || | |
16606 | $as_test_x conftest$ac_exeext | |
16607 | }; then | |
ad6254c5 | 16608 | eval "$as_ac_var=yes" |
795ca3e5 | 16609 | else |
ec6a6fbe | 16610 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16611 | sed 's/^/| /' conftest.$ac_ext >&5 |
16612 | ||
7a197a62 | 16613 | eval "$as_ac_var=no" |
80992638 | 16614 | fi |
7a197a62 | 16615 | |
ec6a6fbe | 16616 | rm -rf conftest.dSYM |
25fbec5b | 16617 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 16618 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 16619 | fi |
ec6a6fbe AK |
16620 | ac_res=`eval 'as_val=${'$as_ac_var'} |
16621 | $as_echo "$as_val"'` | |
16622 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16623 | $as_echo "$ac_res" >&6; } | |
16624 | as_val=`eval 'as_val=${'$as_ac_var'} | |
16625 | $as_echo "$as_val"'` | |
16626 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16627 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16628 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 16629 | _ACEOF |
80992638 AK |
16630 | |
16631 | else | |
ec6a6fbe AK |
16632 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
16633 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 16634 | { (exit 1); exit 1; }; } |
8106cdd5 | 16635 | fi |
ad6254c5 | 16636 | done |
795ca3e5 | 16637 | |
25fbec5b AK |
16638 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
16639 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
ec6a6fbe AK |
16640 | { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
16641 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
25fbec5b | 16642 | if test "${ac_cv_search_getmntent+set}" = set; then |
ec6a6fbe | 16643 | $as_echo_n "(cached) " >&6 |
25fbec5b AK |
16644 | else |
16645 | ac_func_search_save_LIBS=$LIBS | |
16646 | cat >conftest.$ac_ext <<_ACEOF | |
16647 | /* confdefs.h. */ | |
16648 | _ACEOF | |
16649 | cat confdefs.h >>conftest.$ac_ext | |
16650 | cat >>conftest.$ac_ext <<_ACEOF | |
16651 | /* end confdefs.h. */ | |
80992638 | 16652 | |
7a197a62 AK |
16653 | /* Override any GCC internal prototype to avoid an error. |
16654 | Use char because int might match the return type of a GCC | |
ad6254c5 | 16655 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
16656 | #ifdef __cplusplus |
16657 | extern "C" | |
16658 | #endif | |
25fbec5b | 16659 | char getmntent (); |
ad6254c5 AK |
16660 | int |
16661 | main () | |
16662 | { | |
25fbec5b | 16663 | return getmntent (); |
ad6254c5 AK |
16664 | ; |
16665 | return 0; | |
16666 | } | |
16667 | _ACEOF | |
25fbec5b AK |
16668 | for ac_lib in '' sun seq gen; do |
16669 | if test -z "$ac_lib"; then | |
16670 | ac_res="none required" | |
16671 | else | |
16672 | ac_res=-l$ac_lib | |
16673 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
16674 | fi | |
16675 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
16676 | if { (ac_try="$ac_link" |
16677 | case "(($ac_try" in | |
16678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16679 | *) ac_try_echo=$ac_try;; | |
16680 | esac | |
ec6a6fbe AK |
16681 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16682 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16683 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 16684 | ac_status=$? |
8a2fc586 AK |
16685 | grep -v '^ *+' conftest.er1 >conftest.err |
16686 | rm -f conftest.er1 | |
16687 | cat conftest.err >&5 | |
ec6a6fbe | 16688 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16689 | (exit $ac_status); } && { |
16690 | test -z "$ac_c_werror_flag" || | |
16691 | test ! -s conftest.err | |
ec6a6fbe AK |
16692 | } && test -s conftest$ac_exeext && { |
16693 | test "$cross_compiling" = yes || | |
16694 | $as_test_x conftest$ac_exeext | |
16695 | }; then | |
25fbec5b | 16696 | ac_cv_search_getmntent=$ac_res |
80992638 | 16697 | else |
ec6a6fbe | 16698 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16699 | sed 's/^/| /' conftest.$ac_ext >&5 |
16700 | ||
25fbec5b | 16701 | |
795ca3e5 AK |
16702 | fi |
16703 | ||
ec6a6fbe | 16704 | rm -rf conftest.dSYM |
25fbec5b AK |
16705 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
16706 | conftest$ac_exeext | |
16707 | if test "${ac_cv_search_getmntent+set}" = set; then | |
16708 | break | |
795ca3e5 | 16709 | fi |
25fbec5b AK |
16710 | done |
16711 | if test "${ac_cv_search_getmntent+set}" = set; then | |
16712 | : | |
16713 | else | |
16714 | ac_cv_search_getmntent=no | |
16715 | fi | |
16716 | rm conftest.$ac_ext | |
16717 | LIBS=$ac_func_search_save_LIBS | |
16718 | fi | |
ec6a6fbe AK |
16719 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
16720 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
16721 | ac_res=$ac_cv_search_getmntent |
16722 | if test "$ac_res" != no; then | |
16723 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
16724 | ac_cv_func_getmntent=yes | |
16725 | ||
16726 | cat >>confdefs.h <<\_ACEOF | |
9c961554 | 16727 | #define HAVE_GETMNTENT 1 |
ad6254c5 | 16728 | _ACEOF |
795ca3e5 | 16729 | |
25fbec5b AK |
16730 | else |
16731 | ac_cv_func_getmntent=no | |
795ca3e5 | 16732 | fi |
795ca3e5 AK |
16733 | |
16734 | ||
ad6254c5 AK |
16735 | |
16736 | ||
16737 | for ac_header in sys/select.h sys/socket.h | |
16738 | do | |
ec6a6fbe | 16739 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 16740 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
16741 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16742 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16743 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16744 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16745 | fi |
ec6a6fbe AK |
16746 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16747 | $as_echo "$as_val"'` | |
16748 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16749 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 16750 | else |
ad6254c5 | 16751 | # Is the header compilable? |
ec6a6fbe AK |
16752 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16753 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 16754 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16755 | /* confdefs.h. */ |
16756 | _ACEOF | |
16757 | cat confdefs.h >>conftest.$ac_ext | |
16758 | cat >>conftest.$ac_ext <<_ACEOF | |
16759 | /* end confdefs.h. */ | |
16760 | $ac_includes_default | |
16761 | #include <$ac_header> | |
16762 | _ACEOF | |
16763 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16764 | if { (ac_try="$ac_compile" |
16765 | case "(($ac_try" in | |
16766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16767 | *) ac_try_echo=$ac_try;; | |
16768 | esac | |
ec6a6fbe AK |
16769 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16770 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16771 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16772 | ac_status=$? |
8a2fc586 AK |
16773 | grep -v '^ *+' conftest.er1 >conftest.err |
16774 | rm -f conftest.er1 | |
16775 | cat conftest.err >&5 | |
ec6a6fbe | 16776 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16777 | (exit $ac_status); } && { |
16778 | test -z "$ac_c_werror_flag" || | |
16779 | test ! -s conftest.err | |
16780 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 16781 | ac_header_compiler=yes |
80992638 | 16782 | else |
ec6a6fbe | 16783 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16784 | sed 's/^/| /' conftest.$ac_ext >&5 |
16785 | ||
7a197a62 | 16786 | ac_header_compiler=no |
ad6254c5 | 16787 | fi |
7a197a62 AK |
16788 | |
16789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
16790 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16791 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
16792 | |
16793 | # Is the header present? | |
ec6a6fbe AK |
16794 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16795 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 16796 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16797 | /* confdefs.h. */ |
16798 | _ACEOF | |
16799 | cat confdefs.h >>conftest.$ac_ext | |
16800 | cat >>conftest.$ac_ext <<_ACEOF | |
16801 | /* end confdefs.h. */ | |
16802 | #include <$ac_header> | |
16803 | _ACEOF | |
7a197a62 AK |
16804 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16805 | case "(($ac_try" in | |
16806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16807 | *) ac_try_echo=$ac_try;; | |
16808 | esac | |
ec6a6fbe AK |
16809 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16810 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16811 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
16812 | ac_status=$? |
16813 | grep -v '^ *+' conftest.er1 >conftest.err | |
16814 | rm -f conftest.er1 | |
16815 | cat conftest.err >&5 | |
ec6a6fbe | 16816 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16817 | (exit $ac_status); } >/dev/null && { |
16818 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16819 | test ! -s conftest.err | |
16820 | }; then | |
ad6254c5 AK |
16821 | ac_header_preproc=yes |
16822 | else | |
ec6a6fbe | 16823 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16824 | sed 's/^/| /' conftest.$ac_ext >&5 |
16825 | ||
16826 | ac_header_preproc=no | |
16827 | fi | |
7a197a62 | 16828 | |
ad6254c5 | 16829 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
16830 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16831 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
16832 | |
16833 | # So? What about this header? | |
8a2fc586 AK |
16834 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16835 | yes:no: ) | |
ec6a6fbe AK |
16836 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16837 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16838 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16839 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 16840 | ac_header_preproc=yes |
ad6254c5 | 16841 | ;; |
8a2fc586 | 16842 | no:yes:* ) |
ec6a6fbe AK |
16843 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16844 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16845 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16846 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16847 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16848 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16849 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16850 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16851 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16852 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16853 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16854 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 16855 | |
ad6254c5 AK |
16856 | ;; |
16857 | esac | |
ec6a6fbe AK |
16858 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16859 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16860 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16861 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16862 | else |
8a2fc586 | 16863 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 16864 | fi |
ec6a6fbe AK |
16865 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16866 | $as_echo "$as_val"'` | |
16867 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16868 | $as_echo "$ac_res" >&6; } | |
8106cdd5 | 16869 | |
795ca3e5 | 16870 | fi |
ec6a6fbe AK |
16871 | as_val=`eval 'as_val=${'$as_ac_Header'} |
16872 | $as_echo "$as_val"'` | |
16873 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 16874 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 16875 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
16876 | _ACEOF |
16877 | ||
795ca3e5 AK |
16878 | fi |
16879 | ||
ad6254c5 AK |
16880 | done |
16881 | ||
ec6a6fbe AK |
16882 | { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
16883 | $as_echo_n "checking types of arguments for select... " >&6; } | |
ad6254c5 | 16884 | if test "${ac_cv_func_select_args+set}" = set; then |
ec6a6fbe | 16885 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 16886 | else |
ad6254c5 | 16887 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 16888 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
16889 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
16890 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
16891 | /* confdefs.h. */ |
16892 | _ACEOF | |
16893 | cat confdefs.h >>conftest.$ac_ext | |
16894 | cat >>conftest.$ac_ext <<_ACEOF | |
16895 | /* end confdefs.h. */ | |
16896 | $ac_includes_default | |
25fbec5b | 16897 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
16898 | # include <sys/select.h> |
16899 | #endif | |
25fbec5b | 16900 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
16901 | # include <sys/socket.h> |
16902 | #endif | |
16903 | ||
16904 | int | |
16905 | main () | |
16906 | { | |
16907 | extern int select ($ac_arg1, | |
8a2fc586 AK |
16908 | $ac_arg234, $ac_arg234, $ac_arg234, |
16909 | $ac_arg5); | |
ad6254c5 AK |
16910 | ; |
16911 | return 0; | |
16912 | } | |
16913 | _ACEOF | |
16914 | rm -f conftest.$ac_objext | |
7a197a62 AK |
16915 | if { (ac_try="$ac_compile" |
16916 | case "(($ac_try" in | |
16917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16918 | *) ac_try_echo=$ac_try;; | |
16919 | esac | |
ec6a6fbe AK |
16920 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
16921 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 16922 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 16923 | ac_status=$? |
8a2fc586 AK |
16924 | grep -v '^ *+' conftest.er1 >conftest.err |
16925 | rm -f conftest.er1 | |
16926 | cat conftest.err >&5 | |
ec6a6fbe | 16927 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
16928 | (exit $ac_status); } && { |
16929 | test -z "$ac_c_werror_flag" || | |
16930 | test ! -s conftest.err | |
16931 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
16932 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
16933 | else | |
ec6a6fbe | 16934 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
16935 | sed 's/^/| /' conftest.$ac_ext >&5 |
16936 | ||
7a197a62 | 16937 | |
ad6254c5 | 16938 | fi |
7a197a62 AK |
16939 | |
16940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
16941 | done |
16942 | done | |
16943 | done | |
16944 | # Provide a safe default value. | |
16945 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
16946 | ||
26e7f2e0 | 16947 | fi |
ec6a6fbe AK |
16948 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
16949 | $as_echo "$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
16950 | ac_save_IFS=$IFS; IFS=',' |
16951 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
16952 | IFS=$ac_save_IFS | |
16953 | shift | |
16954 | ||
16955 | cat >>confdefs.h <<_ACEOF | |
16956 | #define SELECT_TYPE_ARG1 $1 | |
16957 | _ACEOF | |
16958 | ||
16959 | ||
16960 | cat >>confdefs.h <<_ACEOF | |
16961 | #define SELECT_TYPE_ARG234 ($2) | |
16962 | _ACEOF | |
16963 | ||
16964 | ||
16965 | cat >>confdefs.h <<_ACEOF | |
16966 | #define SELECT_TYPE_ARG5 ($3) | |
16967 | _ACEOF | |
16968 | ||
80992638 | 16969 | rm -f conftest* |
80992638 | 16970 | |
8106cdd5 | 16971 | fi |
ad6254c5 | 16972 | |
ad6254c5 AK |
16973 | if test x$CLUSTER != xnone; then |
16974 | ||
16975 | ||
16976 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 16977 | do |
ec6a6fbe | 16978 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 16979 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
16980 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16981 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 16982 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 16983 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 16984 | fi |
ec6a6fbe AK |
16985 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
16986 | $as_echo "$as_val"'` | |
16987 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16988 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
16989 | else |
16990 | # Is the header compilable? | |
ec6a6fbe AK |
16991 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16992 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 16993 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
16994 | /* confdefs.h. */ |
16995 | _ACEOF | |
16996 | cat confdefs.h >>conftest.$ac_ext | |
16997 | cat >>conftest.$ac_ext <<_ACEOF | |
16998 | /* end confdefs.h. */ | |
16999 | $ac_includes_default | |
17000 | #include <$ac_header> | |
17001 | _ACEOF | |
17002 | rm -f conftest.$ac_objext | |
7a197a62 AK |
17003 | if { (ac_try="$ac_compile" |
17004 | case "(($ac_try" in | |
17005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17006 | *) ac_try_echo=$ac_try;; | |
17007 | esac | |
ec6a6fbe AK |
17008 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17009 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17010 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 17011 | ac_status=$? |
8a2fc586 AK |
17012 | grep -v '^ *+' conftest.er1 >conftest.err |
17013 | rm -f conftest.er1 | |
17014 | cat conftest.err >&5 | |
ec6a6fbe | 17015 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17016 | (exit $ac_status); } && { |
17017 | test -z "$ac_c_werror_flag" || | |
17018 | test ! -s conftest.err | |
17019 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
17020 | ac_header_compiler=yes |
17021 | else | |
ec6a6fbe | 17022 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17023 | sed 's/^/| /' conftest.$ac_ext >&5 |
17024 | ||
7a197a62 | 17025 | ac_header_compiler=no |
ad6254c5 | 17026 | fi |
7a197a62 AK |
17027 | |
17028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
17029 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17030 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
17031 | |
17032 | # Is the header present? | |
ec6a6fbe AK |
17033 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
17034 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 17035 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17036 | /* confdefs.h. */ |
17037 | _ACEOF | |
17038 | cat confdefs.h >>conftest.$ac_ext | |
17039 | cat >>conftest.$ac_ext <<_ACEOF | |
17040 | /* end confdefs.h. */ | |
17041 | #include <$ac_header> | |
17042 | _ACEOF | |
7a197a62 AK |
17043 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17044 | case "(($ac_try" in | |
17045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17046 | *) ac_try_echo=$ac_try;; | |
17047 | esac | |
ec6a6fbe AK |
17048 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17049 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17050 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
17051 | ac_status=$? |
17052 | grep -v '^ *+' conftest.er1 >conftest.err | |
17053 | rm -f conftest.er1 | |
17054 | cat conftest.err >&5 | |
ec6a6fbe | 17055 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17056 | (exit $ac_status); } >/dev/null && { |
17057 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17058 | test ! -s conftest.err | |
17059 | }; then | |
ad6254c5 AK |
17060 | ac_header_preproc=yes |
17061 | else | |
ec6a6fbe | 17062 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17063 | sed 's/^/| /' conftest.$ac_ext >&5 |
17064 | ||
17065 | ac_header_preproc=no | |
17066 | fi | |
7a197a62 | 17067 | |
ad6254c5 | 17068 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
17069 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17070 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
17071 | |
17072 | # So? What about this header? | |
8a2fc586 AK |
17073 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17074 | yes:no: ) | |
ec6a6fbe AK |
17075 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17076 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17077 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17078 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 17079 | ac_header_preproc=yes |
ad6254c5 | 17080 | ;; |
8a2fc586 | 17081 | no:yes:* ) |
ec6a6fbe AK |
17082 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17083 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17084 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17085 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17086 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17087 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17088 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17089 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17090 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17091 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17092 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17093 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 17094 | |
ad6254c5 AK |
17095 | ;; |
17096 | esac | |
ec6a6fbe AK |
17097 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17098 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17099 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17100 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17101 | else |
8a2fc586 | 17102 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 17103 | fi |
ec6a6fbe AK |
17104 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17105 | $as_echo "$as_val"'` | |
17106 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17107 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
17108 | |
17109 | fi | |
ec6a6fbe AK |
17110 | as_val=`eval 'as_val=${'$as_ac_Header'} |
17111 | $as_echo "$as_val"'` | |
17112 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 17113 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 17114 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
17115 | _ACEOF |
17116 | ||
80992638 | 17117 | else |
ec6a6fbe AK |
17118 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
17119 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 17120 | { (exit 1); exit 1; }; } |
b896caa1 | 17121 | fi |
ad6254c5 | 17122 | |
b896caa1 AK |
17123 | done |
17124 | ||
17125 | ||
ad6254c5 AK |
17126 | for ac_func in socket |
17127 | do | |
ec6a6fbe AK |
17128 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
17129 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
17130 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 17131 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17132 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 17133 | else |
ad6254c5 | 17134 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17135 | /* confdefs.h. */ |
17136 | _ACEOF | |
17137 | cat confdefs.h >>conftest.$ac_ext | |
17138 | cat >>conftest.$ac_ext <<_ACEOF | |
17139 | /* end confdefs.h. */ | |
8a2fc586 AK |
17140 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17141 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17142 | #define $ac_func innocuous_$ac_func | |
17143 | ||
ad6254c5 AK |
17144 | /* System header to define __stub macros and hopefully few prototypes, |
17145 | which can conflict with char $ac_func (); below. | |
17146 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17147 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 17148 | |
ad6254c5 AK |
17149 | #ifdef __STDC__ |
17150 | # include <limits.h> | |
17151 | #else | |
17152 | # include <assert.h> | |
17153 | #endif | |
8a2fc586 AK |
17154 | |
17155 | #undef $ac_func | |
17156 | ||
7a197a62 AK |
17157 | /* Override any GCC internal prototype to avoid an error. |
17158 | Use char because int might match the return type of a GCC | |
17159 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
17160 | #ifdef __cplusplus |
17161 | extern "C" | |
ad6254c5 | 17162 | #endif |
ad6254c5 AK |
17163 | char $ac_func (); |
17164 | /* The GNU C library defines this for functions which it implements | |
17165 | to always fail with ENOSYS. Some functions are actually named | |
17166 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 17167 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 17168 | choke me |
ad6254c5 AK |
17169 | #endif |
17170 | ||
17171 | int | |
17172 | main () | |
17173 | { | |
7a197a62 | 17174 | return $ac_func (); |
ad6254c5 AK |
17175 | ; |
17176 | return 0; | |
17177 | } | |
17178 | _ACEOF | |
17179 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
17180 | if { (ac_try="$ac_link" |
17181 | case "(($ac_try" in | |
17182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17183 | *) ac_try_echo=$ac_try;; | |
17184 | esac | |
ec6a6fbe AK |
17185 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17186 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17187 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 17188 | ac_status=$? |
8a2fc586 AK |
17189 | grep -v '^ *+' conftest.er1 >conftest.err |
17190 | rm -f conftest.er1 | |
17191 | cat conftest.err >&5 | |
ec6a6fbe | 17192 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17193 | (exit $ac_status); } && { |
17194 | test -z "$ac_c_werror_flag" || | |
17195 | test ! -s conftest.err | |
ec6a6fbe AK |
17196 | } && test -s conftest$ac_exeext && { |
17197 | test "$cross_compiling" = yes || | |
17198 | $as_test_x conftest$ac_exeext | |
17199 | }; then | |
ad6254c5 AK |
17200 | eval "$as_ac_var=yes" |
17201 | else | |
ec6a6fbe | 17202 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17203 | sed 's/^/| /' conftest.$ac_ext >&5 |
17204 | ||
7a197a62 | 17205 | eval "$as_ac_var=no" |
ad6254c5 | 17206 | fi |
7a197a62 | 17207 | |
ec6a6fbe | 17208 | rm -rf conftest.dSYM |
25fbec5b | 17209 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 17210 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 17211 | fi |
ec6a6fbe AK |
17212 | ac_res=`eval 'as_val=${'$as_ac_var'} |
17213 | $as_echo "$as_val"'` | |
17214 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17215 | $as_echo "$ac_res" >&6; } | |
17216 | as_val=`eval 'as_val=${'$as_ac_var'} | |
17217 | $as_echo "$as_val"'` | |
17218 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 17219 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 17220 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
17221 | _ACEOF |
17222 | ||
17223 | else | |
ec6a6fbe AK |
17224 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
17225 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
17226 | { (exit 1); exit 1; }; } |
17227 | fi | |
17228 | done | |
17229 | ||
17230 | fi | |
17231 | ||
d911ec67 AK |
17232 | if test x$DMEVENTD = xyes; then |
17233 | ||
17234 | for ac_header in arpa/inet.h | |
17235 | do | |
17236 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17237 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17238 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17239 | $as_echo_n "checking for $ac_header... " >&6; } | |
17240 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17241 | $as_echo_n "(cached) " >&6 | |
17242 | fi | |
17243 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17244 | $as_echo "$as_val"'` | |
17245 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17246 | $as_echo "$ac_res" >&6; } | |
17247 | else | |
17248 | # Is the header compilable? | |
17249 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17250 | $as_echo_n "checking $ac_header usability... " >&6; } | |
17251 | cat >conftest.$ac_ext <<_ACEOF | |
17252 | /* confdefs.h. */ | |
17253 | _ACEOF | |
17254 | cat confdefs.h >>conftest.$ac_ext | |
17255 | cat >>conftest.$ac_ext <<_ACEOF | |
17256 | /* end confdefs.h. */ | |
17257 | $ac_includes_default | |
17258 | #include <$ac_header> | |
17259 | _ACEOF | |
17260 | rm -f conftest.$ac_objext | |
17261 | if { (ac_try="$ac_compile" | |
17262 | case "(($ac_try" in | |
17263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17264 | *) ac_try_echo=$ac_try;; | |
17265 | esac | |
17266 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17267 | $as_echo "$ac_try_echo") >&5 | |
17268 | (eval "$ac_compile") 2>conftest.er1 | |
17269 | ac_status=$? | |
17270 | grep -v '^ *+' conftest.er1 >conftest.err | |
17271 | rm -f conftest.er1 | |
17272 | cat conftest.err >&5 | |
17273 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17274 | (exit $ac_status); } && { | |
17275 | test -z "$ac_c_werror_flag" || | |
17276 | test ! -s conftest.err | |
17277 | } && test -s conftest.$ac_objext; then | |
17278 | ac_header_compiler=yes | |
17279 | else | |
17280 | $as_echo "$as_me: failed program was:" >&5 | |
17281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17282 | ||
17283 | ac_header_compiler=no | |
17284 | fi | |
17285 | ||
17286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17287 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17288 | $as_echo "$ac_header_compiler" >&6; } | |
17289 | ||
17290 | # Is the header present? | |
17291 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17292 | $as_echo_n "checking $ac_header presence... " >&6; } | |
17293 | cat >conftest.$ac_ext <<_ACEOF | |
17294 | /* confdefs.h. */ | |
17295 | _ACEOF | |
17296 | cat confdefs.h >>conftest.$ac_ext | |
17297 | cat >>conftest.$ac_ext <<_ACEOF | |
17298 | /* end confdefs.h. */ | |
17299 | #include <$ac_header> | |
17300 | _ACEOF | |
17301 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
17302 | case "(($ac_try" in | |
17303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17304 | *) ac_try_echo=$ac_try;; | |
17305 | esac | |
17306 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17307 | $as_echo "$ac_try_echo") >&5 | |
17308 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
17309 | ac_status=$? | |
17310 | grep -v '^ *+' conftest.er1 >conftest.err | |
17311 | rm -f conftest.er1 | |
17312 | cat conftest.err >&5 | |
17313 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17314 | (exit $ac_status); } >/dev/null && { | |
17315 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17316 | test ! -s conftest.err | |
17317 | }; then | |
17318 | ac_header_preproc=yes | |
17319 | else | |
17320 | $as_echo "$as_me: failed program was:" >&5 | |
17321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17322 | ||
17323 | ac_header_preproc=no | |
17324 | fi | |
17325 | ||
17326 | rm -f conftest.err conftest.$ac_ext | |
17327 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17328 | $as_echo "$ac_header_preproc" >&6; } | |
17329 | ||
17330 | # So? What about this header? | |
17331 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17332 | yes:no: ) | |
17333 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17334 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17335 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17336 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17337 | ac_header_preproc=yes | |
17338 | ;; | |
17339 | no:yes:* ) | |
17340 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17341 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17342 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17343 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17344 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17345 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17346 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17347 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17348 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17349 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17350 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17351 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17352 | ||
17353 | ;; | |
17354 | esac | |
17355 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17356 | $as_echo_n "checking for $ac_header... " >&6; } | |
17357 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17358 | $as_echo_n "(cached) " >&6 | |
17359 | else | |
17360 | eval "$as_ac_Header=\$ac_header_preproc" | |
17361 | fi | |
17362 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17363 | $as_echo "$as_val"'` | |
17364 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17365 | $as_echo "$ac_res" >&6; } | |
17366 | ||
17367 | fi | |
17368 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
17369 | $as_echo "$as_val"'` | |
17370 | if test "x$as_val" = x""yes; then | |
17371 | cat >>confdefs.h <<_ACEOF | |
17372 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17373 | _ACEOF | |
17374 | ||
17375 | else | |
17376 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
17377 | $as_echo "$as_me: error: bailing out" >&2;} | |
17378 | { (exit 1); exit 1; }; } | |
17379 | fi | |
17380 | ||
17381 | done | |
17382 | ||
17383 | fi | |
17384 | ||
ad6254c5 AK |
17385 | if test x$HAVE_LIBDL = xyes; then |
17386 | ||
17387 | for ac_header in dlfcn.h | |
17388 | do | |
ec6a6fbe | 17389 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 17390 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
17391 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17392 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17393 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17394 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17395 | fi |
ec6a6fbe AK |
17396 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17397 | $as_echo "$as_val"'` | |
17398 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17399 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
17400 | else |
17401 | # Is the header compilable? | |
ec6a6fbe AK |
17402 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
17403 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 17404 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17405 | /* confdefs.h. */ |
17406 | _ACEOF | |
17407 | cat confdefs.h >>conftest.$ac_ext | |
17408 | cat >>conftest.$ac_ext <<_ACEOF | |
17409 | /* end confdefs.h. */ | |
17410 | $ac_includes_default | |
17411 | #include <$ac_header> | |
17412 | _ACEOF | |
17413 | rm -f conftest.$ac_objext | |
7a197a62 AK |
17414 | if { (ac_try="$ac_compile" |
17415 | case "(($ac_try" in | |
17416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17417 | *) ac_try_echo=$ac_try;; | |
17418 | esac | |
ec6a6fbe AK |
17419 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17420 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17421 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 17422 | ac_status=$? |
8a2fc586 AK |
17423 | grep -v '^ *+' conftest.er1 >conftest.err |
17424 | rm -f conftest.er1 | |
17425 | cat conftest.err >&5 | |
ec6a6fbe | 17426 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17427 | (exit $ac_status); } && { |
17428 | test -z "$ac_c_werror_flag" || | |
17429 | test ! -s conftest.err | |
17430 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
17431 | ac_header_compiler=yes |
17432 | else | |
ec6a6fbe | 17433 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17434 | sed 's/^/| /' conftest.$ac_ext >&5 |
17435 | ||
7a197a62 | 17436 | ac_header_compiler=no |
ad6254c5 | 17437 | fi |
7a197a62 AK |
17438 | |
17439 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
17440 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17441 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
17442 | |
17443 | # Is the header present? | |
ec6a6fbe AK |
17444 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
17445 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 17446 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17447 | /* confdefs.h. */ |
17448 | _ACEOF | |
17449 | cat confdefs.h >>conftest.$ac_ext | |
17450 | cat >>conftest.$ac_ext <<_ACEOF | |
17451 | /* end confdefs.h. */ | |
17452 | #include <$ac_header> | |
17453 | _ACEOF | |
7a197a62 AK |
17454 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17455 | case "(($ac_try" in | |
17456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17457 | *) ac_try_echo=$ac_try;; | |
17458 | esac | |
ec6a6fbe AK |
17459 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17460 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17461 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
17462 | ac_status=$? |
17463 | grep -v '^ *+' conftest.er1 >conftest.err | |
17464 | rm -f conftest.er1 | |
17465 | cat conftest.err >&5 | |
ec6a6fbe | 17466 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17467 | (exit $ac_status); } >/dev/null && { |
17468 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17469 | test ! -s conftest.err | |
17470 | }; then | |
ad6254c5 AK |
17471 | ac_header_preproc=yes |
17472 | else | |
ec6a6fbe | 17473 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17474 | sed 's/^/| /' conftest.$ac_ext >&5 |
17475 | ||
17476 | ac_header_preproc=no | |
17477 | fi | |
7a197a62 | 17478 | |
ad6254c5 | 17479 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
17480 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17481 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
17482 | |
17483 | # So? What about this header? | |
8a2fc586 AK |
17484 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17485 | yes:no: ) | |
ec6a6fbe AK |
17486 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17487 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17488 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17489 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 17490 | ac_header_preproc=yes |
ad6254c5 | 17491 | ;; |
8a2fc586 | 17492 | no:yes:* ) |
ec6a6fbe AK |
17493 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17494 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17495 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17496 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17497 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17498 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17499 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17500 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17501 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17502 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17503 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17504 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 17505 | |
ad6254c5 AK |
17506 | ;; |
17507 | esac | |
ec6a6fbe AK |
17508 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17509 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17510 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17511 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17512 | else |
8a2fc586 | 17513 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 17514 | fi |
ec6a6fbe AK |
17515 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17516 | $as_echo "$as_val"'` | |
17517 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17518 | $as_echo "$ac_res" >&6; } | |
80992638 | 17519 | |
8106cdd5 | 17520 | fi |
ec6a6fbe AK |
17521 | as_val=`eval 'as_val=${'$as_ac_Header'} |
17522 | $as_echo "$as_val"'` | |
17523 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 17524 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 17525 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 17526 | _ACEOF |
795ca3e5 AK |
17527 | |
17528 | else | |
ec6a6fbe AK |
17529 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
17530 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 17531 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
17532 | fi |
17533 | ||
ad6254c5 | 17534 | done |
80992638 | 17535 | |
ad6254c5 | 17536 | fi |
80992638 | 17537 | |
ad6254c5 | 17538 | if test x$INTL = xyes; then |
83912faa | 17539 | |
ad6254c5 AK |
17540 | for ac_header in libintl.h |
17541 | do | |
ec6a6fbe | 17542 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 17543 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
17544 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17545 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17546 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17547 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 17548 | fi |
ec6a6fbe AK |
17549 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17550 | $as_echo "$as_val"'` | |
17551 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17552 | $as_echo "$ac_res" >&6; } | |
83912faa | 17553 | else |
ad6254c5 | 17554 | # Is the header compilable? |
ec6a6fbe AK |
17555 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
17556 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 17557 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17558 | /* confdefs.h. */ |
17559 | _ACEOF | |
17560 | cat confdefs.h >>conftest.$ac_ext | |
17561 | cat >>conftest.$ac_ext <<_ACEOF | |
17562 | /* end confdefs.h. */ | |
17563 | $ac_includes_default | |
17564 | #include <$ac_header> | |
17565 | _ACEOF | |
17566 | rm -f conftest.$ac_objext | |
7a197a62 AK |
17567 | if { (ac_try="$ac_compile" |
17568 | case "(($ac_try" in | |
17569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17570 | *) ac_try_echo=$ac_try;; | |
17571 | esac | |
ec6a6fbe AK |
17572 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17573 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17574 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 17575 | ac_status=$? |
8a2fc586 AK |
17576 | grep -v '^ *+' conftest.er1 >conftest.err |
17577 | rm -f conftest.er1 | |
17578 | cat conftest.err >&5 | |
ec6a6fbe | 17579 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17580 | (exit $ac_status); } && { |
17581 | test -z "$ac_c_werror_flag" || | |
17582 | test ! -s conftest.err | |
17583 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
17584 | ac_header_compiler=yes |
17585 | else | |
ec6a6fbe | 17586 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17587 | sed 's/^/| /' conftest.$ac_ext >&5 |
17588 | ||
7a197a62 | 17589 | ac_header_compiler=no |
ad6254c5 | 17590 | fi |
7a197a62 AK |
17591 | |
17592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
17593 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17594 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
17595 | |
17596 | # Is the header present? | |
ec6a6fbe AK |
17597 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
17598 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 17599 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
17600 | /* confdefs.h. */ |
17601 | _ACEOF | |
17602 | cat confdefs.h >>conftest.$ac_ext | |
17603 | cat >>conftest.$ac_ext <<_ACEOF | |
17604 | /* end confdefs.h. */ | |
17605 | #include <$ac_header> | |
17606 | _ACEOF | |
7a197a62 AK |
17607 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17608 | case "(($ac_try" in | |
17609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17610 | *) ac_try_echo=$ac_try;; | |
17611 | esac | |
ec6a6fbe AK |
17612 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
17613 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 17614 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
17615 | ac_status=$? |
17616 | grep -v '^ *+' conftest.er1 >conftest.err | |
17617 | rm -f conftest.er1 | |
17618 | cat conftest.err >&5 | |
ec6a6fbe | 17619 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
17620 | (exit $ac_status); } >/dev/null && { |
17621 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17622 | test ! -s conftest.err | |
17623 | }; then | |
ad6254c5 AK |
17624 | ac_header_preproc=yes |
17625 | else | |
ec6a6fbe | 17626 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
17627 | sed 's/^/| /' conftest.$ac_ext >&5 |
17628 | ||
17629 | ac_header_preproc=no | |
17630 | fi | |
7a197a62 | 17631 | |
ad6254c5 | 17632 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
17633 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17634 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
17635 | |
17636 | # So? What about this header? | |
8a2fc586 AK |
17637 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17638 | yes:no: ) | |
ec6a6fbe AK |
17639 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17640 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17641 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17642 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 17643 | ac_header_preproc=yes |
ad6254c5 | 17644 | ;; |
8a2fc586 | 17645 | no:yes:* ) |
ec6a6fbe AK |
17646 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17647 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17648 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17649 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17650 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17651 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17652 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17653 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17654 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17655 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17656 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17657 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 17658 | |
ad6254c5 AK |
17659 | ;; |
17660 | esac | |
ec6a6fbe AK |
17661 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17662 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 17663 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 17664 | $as_echo_n "(cached) " >&6 |
80992638 | 17665 | else |
8a2fc586 | 17666 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 17667 | fi |
ec6a6fbe AK |
17668 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
17669 | $as_echo "$as_val"'` | |
17670 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17671 | $as_echo "$ac_res" >&6; } | |
83912faa | 17672 | |
69792976 | 17673 | fi |
ec6a6fbe AK |
17674 | as_val=`eval 'as_val=${'$as_ac_Header'} |
17675 | $as_echo "$as_val"'` | |
17676 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 17677 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 17678 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 17679 | _ACEOF |
69792976 | 17680 | |
69792976 | 17681 | else |
ec6a6fbe AK |
17682 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
17683 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 17684 | { (exit 1); exit 1; }; } |
80992638 AK |
17685 | fi |
17686 | ||
ad6254c5 | 17687 | done |
69792976 | 17688 | |
ad6254c5 AK |
17689 | fi |
17690 | ||
a5f46f6a AK |
17691 | if test x$UDEV_SYNC = xyes; then |
17692 | ||
17693 | ||
17694 | for ac_header in sys/ipc.h sys/sem.h | |
17695 | do | |
17696 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17697 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17698 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17699 | $as_echo_n "checking for $ac_header... " >&6; } | |
17700 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17701 | $as_echo_n "(cached) " >&6 | |
17702 | fi | |
17703 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17704 | $as_echo "$as_val"'` | |
17705 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17706 | $as_echo "$ac_res" >&6; } | |
17707 | else | |
17708 | # Is the header compilable? | |
17709 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17710 | $as_echo_n "checking $ac_header usability... " >&6; } | |
17711 | cat >conftest.$ac_ext <<_ACEOF | |
17712 | /* confdefs.h. */ | |
17713 | _ACEOF | |
17714 | cat confdefs.h >>conftest.$ac_ext | |
17715 | cat >>conftest.$ac_ext <<_ACEOF | |
17716 | /* end confdefs.h. */ | |
17717 | $ac_includes_default | |
17718 | #include <$ac_header> | |
17719 | _ACEOF | |
17720 | rm -f conftest.$ac_objext | |
17721 | if { (ac_try="$ac_compile" | |
17722 | case "(($ac_try" in | |
17723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17724 | *) ac_try_echo=$ac_try;; | |
17725 | esac | |
17726 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17727 | $as_echo "$ac_try_echo") >&5 | |
17728 | (eval "$ac_compile") 2>conftest.er1 | |
17729 | ac_status=$? | |
17730 | grep -v '^ *+' conftest.er1 >conftest.err | |
17731 | rm -f conftest.er1 | |
17732 | cat conftest.err >&5 | |
17733 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17734 | (exit $ac_status); } && { | |
17735 | test -z "$ac_c_werror_flag" || | |
17736 | test ! -s conftest.err | |
17737 | } && test -s conftest.$ac_objext; then | |
17738 | ac_header_compiler=yes | |
17739 | else | |
17740 | $as_echo "$as_me: failed program was:" >&5 | |
17741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17742 | ||
17743 | ac_header_compiler=no | |
17744 | fi | |
17745 | ||
17746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17747 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17748 | $as_echo "$ac_header_compiler" >&6; } | |
17749 | ||
17750 | # Is the header present? | |
17751 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17752 | $as_echo_n "checking $ac_header presence... " >&6; } | |
17753 | cat >conftest.$ac_ext <<_ACEOF | |
17754 | /* confdefs.h. */ | |
17755 | _ACEOF | |
17756 | cat confdefs.h >>conftest.$ac_ext | |
17757 | cat >>conftest.$ac_ext <<_ACEOF | |
17758 | /* end confdefs.h. */ | |
17759 | #include <$ac_header> | |
17760 | _ACEOF | |
17761 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
17762 | case "(($ac_try" in | |
17763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17764 | *) ac_try_echo=$ac_try;; | |
17765 | esac | |
17766 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
17767 | $as_echo "$ac_try_echo") >&5 | |
17768 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
17769 | ac_status=$? | |
17770 | grep -v '^ *+' conftest.er1 >conftest.err | |
17771 | rm -f conftest.er1 | |
17772 | cat conftest.err >&5 | |
17773 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17774 | (exit $ac_status); } >/dev/null && { | |
17775 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17776 | test ! -s conftest.err | |
17777 | }; then | |
17778 | ac_header_preproc=yes | |
17779 | else | |
17780 | $as_echo "$as_me: failed program was:" >&5 | |
17781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17782 | ||
17783 | ac_header_preproc=no | |
17784 | fi | |
17785 | ||
17786 | rm -f conftest.err conftest.$ac_ext | |
17787 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17788 | $as_echo "$ac_header_preproc" >&6; } | |
17789 | ||
17790 | # So? What about this header? | |
17791 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17792 | yes:no: ) | |
17793 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17794 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17795 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17796 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17797 | ac_header_preproc=yes | |
17798 | ;; | |
17799 | no:yes:* ) | |
17800 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17801 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17802 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17803 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17804 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17805 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17806 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17807 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17808 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17809 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17810 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17811 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17812 | ||
17813 | ;; | |
17814 | esac | |
17815 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17816 | $as_echo_n "checking for $ac_header... " >&6; } | |
17817 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
17818 | $as_echo_n "(cached) " >&6 | |
17819 | else | |
17820 | eval "$as_ac_Header=\$ac_header_preproc" | |
17821 | fi | |
17822 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
17823 | $as_echo "$as_val"'` | |
17824 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17825 | $as_echo "$ac_res" >&6; } | |
17826 | ||
17827 | fi | |
17828 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
17829 | $as_echo "$as_val"'` | |
17830 | if test "x$as_val" = x""yes; then | |
17831 | cat >>confdefs.h <<_ACEOF | |
17832 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17833 | _ACEOF | |
17834 | ||
17835 | else | |
17836 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
17837 | $as_echo "$as_me: error: bailing out" >&2;} | |
17838 | { (exit 1); exit 1; }; } | |
17839 | fi | |
17840 | ||
17841 | done | |
17842 | ||
17843 | fi | |
17844 | ||
a653923f AK |
17845 | ################################################################################ |
17846 | # Extract the first word of "modprobe", so it can be a program name with args. | |
17847 | set dummy modprobe; ac_word=$2 | |
ec6a6fbe AK |
17848 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
17849 | $as_echo_n "checking for $ac_word... " >&6; } | |
72b2cb61 | 17850 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
ec6a6fbe | 17851 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
17852 | else |
17853 | case $MODPROBE_CMD in | |
17854 | [\\/]* | ?:[\\/]*) | |
17855 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
17856 | ;; | |
17857 | *) | |
17858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17859 | for as_dir in $PATH | |
17860 | do | |
17861 | IFS=$as_save_IFS | |
17862 | test -z "$as_dir" && as_dir=. | |
17863 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 17864 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 17865 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 17866 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
17867 | break 2 |
17868 | fi | |
17869 | done | |
17870 | done | |
7a197a62 | 17871 | IFS=$as_save_IFS |
72b2cb61 AK |
17872 | |
17873 | ;; | |
17874 | esac | |
17875 | fi | |
17876 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 17877 | if test -n "$MODPROBE_CMD"; then |
ec6a6fbe AK |
17878 | { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
17879 | $as_echo "$MODPROBE_CMD" >&6; } | |
72b2cb61 | 17880 | else |
ec6a6fbe AK |
17881 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
17882 | $as_echo "no" >&6; } | |
72b2cb61 AK |
17883 | fi |
17884 | ||
a653923f | 17885 | |
7a197a62 | 17886 | |
a653923f | 17887 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
17888 | |
17889 | cat >>confdefs.h <<_ACEOF | |
17890 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
17891 | _ACEOF | |
17892 | ||
a653923f AK |
17893 | fi |
17894 | ||
b5c2529b | 17895 | |
a9b601e2 ZK |
17896 | lvm_exec_prefix=$exec_prefix |
17897 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix | |
17898 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix | |
17899 | ||
b5c2529b | 17900 | cat >>confdefs.h <<_ACEOF |
a9b601e2 | 17901 | #define LVM_PATH "$lvm_exec_prefix/sbin/lvm" |
b5c2529b ZK |
17902 | _ACEOF |
17903 | ||
17904 | ||
17905 | if test "$CLVMD" != none; then | |
17906 | clvmd_prefix=$ac_default_prefix | |
17907 | test "$prefix" != NONE && clvmd_prefix=$prefix | |
17908 | ||
17909 | cat >>confdefs.h <<_ACEOF | |
17910 | #define CLVMD_PATH "$clvmd_prefix/sbin/clvmd" | |
17911 | _ACEOF | |
17912 | ||
17913 | fi | |
17914 | ||
80992638 | 17915 | ################################################################################ |
93bd259b AK |
17916 | if test "$BUILD_DMEVENTD" = yes; then |
17917 | ||
17918 | # Check whether --with-dmeventd-pidfile was given. | |
17919 | if test "${with_dmeventd_pidfile+set}" = set; then | |
71082be4 | 17920 | withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval |
93bd259b | 17921 | else |
71082be4 | 17922 | DMEVENTD_PIDFILE="/var/run/dmeventd.pid" |
93bd259b AK |
17923 | fi |
17924 | ||
93bd259b | 17925 | |
71082be4 ZK |
17926 | cat >>confdefs.h <<_ACEOF |
17927 | #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE" | |
17928 | _ACEOF | |
93bd259b | 17929 | |
71082be4 | 17930 | fi |
93bd259b AK |
17931 | |
17932 | if test "$BUILD_DMEVENTD" = yes; then | |
93bd259b AK |
17933 | |
17934 | # Check whether --with-dmeventd-path was given. | |
17935 | if test "${with_dmeventd_path+set}" = set; then | |
71082be4 | 17936 | withval=$with_dmeventd_path; DMEVENTD_PATH=$withval |
93bd259b | 17937 | else |
71082be4 | 17938 | DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd" |
93bd259b AK |
17939 | fi |
17940 | ||
93bd259b | 17941 | |
71082be4 ZK |
17942 | cat >>confdefs.h <<_ACEOF |
17943 | #define DMEVENTD_PATH "$DMEVENTD_PATH" | |
17944 | _ACEOF | |
3399ae32 | 17945 | |
71082be4 | 17946 | fi |
3399ae32 | 17947 | |
8bae0a1e AK |
17948 | |
17949 | ||
17950 | ||
17951 | # Check whether --with-default-run-dir was given. | |
17952 | if test "${with_default_run_dir+set}" = set; then | |
17953 | withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval" | |
17954 | else | |
17955 | DEFAULT_RUN_DIR="/var/run/lvm" | |
17956 | fi | |
17957 | ||
17958 | cat >>confdefs.h <<_ACEOF | |
17959 | #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR" | |
17960 | _ACEOF | |
17961 | ||
17962 | ||
71082be4 | 17963 | ################################################################################ |
3399ae32 AK |
17964 | |
17965 | # Check whether --with-default-system-dir was given. | |
17966 | if test "${with_default_system_dir+set}" = set; then | |
71082be4 | 17967 | withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval |
3399ae32 | 17968 | else |
71082be4 | 17969 | DEFAULT_SYS_DIR="/etc/lvm" |
3399ae32 AK |
17970 | fi |
17971 | ||
71082be4 | 17972 | |
3399ae32 AK |
17973 | cat >>confdefs.h <<_ACEOF |
17974 | #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR" | |
17975 | _ACEOF | |
17976 | ||
17977 | ||
17978 | ||
3399ae32 AK |
17979 | # Check whether --with-default-archive-subdir was given. |
17980 | if test "${with_default_archive_subdir+set}" = set; then | |
71082be4 | 17981 | withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval |
3399ae32 | 17982 | else |
71082be4 | 17983 | DEFAULT_ARCHIVE_SUBDIR=archive |
3399ae32 AK |
17984 | fi |
17985 | ||
71082be4 | 17986 | |
3399ae32 AK |
17987 | cat >>confdefs.h <<_ACEOF |
17988 | #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR" | |
17989 | _ACEOF | |
17990 | ||
17991 | ||
17992 | ||
3399ae32 AK |
17993 | # Check whether --with-default-backup-subdir was given. |
17994 | if test "${with_default_backup_subdir+set}" = set; then | |
71082be4 | 17995 | withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval |
3399ae32 | 17996 | else |
71082be4 | 17997 | DEFAULT_BACKUP_SUBDIR=backup |
3399ae32 AK |
17998 | fi |
17999 | ||
71082be4 | 18000 | |
3399ae32 AK |
18001 | cat >>confdefs.h <<_ACEOF |
18002 | #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR" | |
18003 | _ACEOF | |
18004 | ||
18005 | ||
18006 | ||
3399ae32 AK |
18007 | # Check whether --with-default-cache-subdir was given. |
18008 | if test "${with_default_cache_subdir+set}" = set; then | |
71082be4 | 18009 | withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval |
3399ae32 | 18010 | else |
71082be4 | 18011 | DEFAULT_CACHE_SUBDIR=cache |
3399ae32 AK |
18012 | fi |
18013 | ||
71082be4 | 18014 | |
3399ae32 AK |
18015 | cat >>confdefs.h <<_ACEOF |
18016 | #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR" | |
18017 | _ACEOF | |
18018 | ||
18019 | ||
18020 | ||
3399ae32 AK |
18021 | # Check whether --with-default-locking-dir was given. |
18022 | if test "${with_default_locking_dir+set}" = set; then | |
71082be4 | 18023 | withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval |
3399ae32 | 18024 | else |
71082be4 | 18025 | DEFAULT_LOCK_DIR="/var/lock/lvm" |
3399ae32 AK |
18026 | fi |
18027 | ||
71082be4 | 18028 | |
3399ae32 AK |
18029 | cat >>confdefs.h <<_ACEOF |
18030 | #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR" | |
18031 | _ACEOF | |
18032 | ||
18033 | ||
fea55602 DW |
18034 | ################################################################################ |
18035 | ||
18036 | # Check whether --with-default-data-alignment was given. | |
18037 | if test "${with_default_data_alignment+set}" = set; then | |
18038 | withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval | |
18039 | else | |
18040 | DEFAULT_DATA_ALIGNMENT=1 | |
18041 | fi | |
18042 | ||
18043 | ||
18044 | cat >>confdefs.h <<_ACEOF | |
18045 | #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT | |
18046 | _ACEOF | |
18047 | ||
18048 | ||
93bd259b | 18049 | ################################################################################ |
ec6a6fbe AK |
18050 | { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5 |
18051 | $as_echo_n "checking for kernel interface choice... " >&6; } | |
93bd259b AK |
18052 | |
18053 | # Check whether --with-interface was given. | |
18054 | if test "${with_interface+set}" = set; then | |
71082be4 | 18055 | withval=$with_interface; interface=$withval |
93bd259b | 18056 | else |
71082be4 | 18057 | interface=ioctl |
93bd259b AK |
18058 | fi |
18059 | ||
18060 | if [ "x$interface" != xioctl ]; | |
18061 | then | |
ec6a6fbe AK |
18062 | { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5 |
18063 | $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;} | |
93bd259b AK |
18064 | { (exit 1); exit 1; }; } |
18065 | fi | |
ec6a6fbe AK |
18066 | { $as_echo "$as_me:$LINENO: result: $interface" >&5 |
18067 | $as_echo "$interface" >&6; } | |
93bd259b AK |
18068 | |
18069 | ################################################################################ | |
db8b5af9 | 18070 | DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
18071 | |
18072 | cat >>confdefs.h <<_ACEOF | |
18073 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
18074 | _ACEOF | |
18075 | ||
18076 | ||
db8b5af9 | 18077 | DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 18078 | |
db8b5af9 | 18079 | LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 18080 | |
db8b5af9 | 18081 | VER=`cat "$srcdir"/VERSION` |
bf456146 | 18082 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
18083 | VER=`echo "$VER" | $AWK '{print $1}'` |
18084 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
18085 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
18086 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
18087 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
18088 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
18089 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 18090 | |
80992638 | 18091 | ################################################################################ |
fae0c576 | 18092 | |
83912faa | 18093 | |
795ca3e5 AK |
18094 | |
18095 | ||
18096 | ||
18097 | ||
18098 | ||
18099 | ||
5a52dca9 | 18100 | |
8ef2b021 | 18101 | |
199e490e | 18102 | |
69792976 AK |
18103 | |
18104 | ||
18105 | ||
d0191583 | 18106 | |
69792976 | 18107 | |
8106cdd5 AK |
18108 | |
18109 | ||
18110 | ||
18111 | ||
18112 | ||
d68a82ec | 18113 | |
036f273a | 18114 | |
7d1552c9 | 18115 | |
8106cdd5 | 18116 | |
0a62c911 | 18117 | |
8106cdd5 | 18118 | |
4a7f3eb2 | 18119 | |
4922197a AK |
18120 | |
18121 | ||
d8ac0fbc | 18122 | |
1a9ea74d | 18123 | |
8a2fc586 AK |
18124 | |
18125 | ||
d0191583 | 18126 | |
93bd259b AK |
18127 | |
18128 | ||
18129 | ||
18130 | ||
18131 | ||
d0191583 JM |
18132 | |
18133 | ||
18134 | ||
18135 | ||
18136 | ||
8a2fc586 | 18137 | |
19a2c6e0 | 18138 | |
f7f0854e ZK |
18139 | |
18140 | ||
3ceb7608 | 18141 | |
8ce0cbda | 18142 | |
8b1a3214 | 18143 | |
ec6a6fbe AK |
18144 | |
18145 | ||
18146 | ||
18147 | ||
e2997b73 AK |
18148 | |
18149 | ||
18150 | ||
18151 | ||
18152 | ||
18153 | ||
a946372e AK |
18154 | |
18155 | ||
18156 | ||
18157 | ||
18158 | ||
18159 | ||
18160 | ||
18161 | ||
18162 | ||
18163 | ||
18164 | ||
ec6a6fbe | 18165 | |
33f732c5 | 18166 | |
66e941e8 | 18167 | |
d3c8211f | 18168 | |
7e3fe830 | 18169 | |
a5f46f6a AK |
18170 | |
18171 | ||
18172 | ||
572fefeb | 18173 | |
90c80887 | 18174 | |
3399ae32 AK |
18175 | |
18176 | ||
18177 | ||
18178 | ||
18179 | ||
90c80887 | 18180 | |
bf456146 | 18181 | |
e1b8a236 | 18182 | |
0878503f | 18183 | |
8fea97b7 | 18184 | |
54b362f9 | 18185 | |
b1f08e51 | 18186 | |
d1e8046f | 18187 | |
fea55602 | 18188 | |
c89bc357 | 18189 | |
37ddf259 | 18190 | |
68f2de6d AK |
18191 | |
18192 | ||
80992638 | 18193 | ################################################################################ |
d1e8046f | 18194 | ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile" |
7a197a62 | 18195 | |
ad6254c5 | 18196 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
18197 | # This file is a shell script that caches the results of configure |
18198 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
18199 | # scripts and configure runs, see configure's option --config-cache. |
18200 | # It is not useful on other systems. If it contains results you don't | |
18201 | # want to keep, you may remove or edit it. | |
795ca3e5 | 18202 | # |
ad6254c5 AK |
18203 | # config.status only pays attention to the cache file if you give it |
18204 | # the --recheck option to rerun configure. | |
795ca3e5 | 18205 | # |
ad6254c5 AK |
18206 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
18207 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18208 | # following values. | |
18209 | ||
18210 | _ACEOF | |
18211 | ||
795ca3e5 AK |
18212 | # The following way of writing the cache mishandles newlines in values, |
18213 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 18214 | # So, we kill variables containing newlines. |
795ca3e5 AK |
18215 | # Ultrix sh set writes to stderr and can't be redirected directly, |
18216 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
18217 | ( |
18218 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
18219 | eval ac_val=\$$ac_var | |
18220 | case $ac_val in #( | |
18221 | *${as_nl}*) | |
18222 | case $ac_var in #( | |
ec6a6fbe AK |
18223 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
18224 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
18225 | esac |
18226 | case $ac_var in #( | |
18227 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 18228 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
18229 | *) $as_unset $ac_var ;; |
18230 | esac ;; | |
18231 | esac | |
18232 | done | |
18233 | ||
ad6254c5 | 18234 | (set) 2>&1 | |
7a197a62 AK |
18235 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
18236 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
18237 | # `set' does not quote correctly, so add quotes (double-quote |
18238 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
18239 | sed -n \ | |
8a2fc586 AK |
18240 | "s/'/'\\\\''/g; |
18241 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 18242 | ;; #( |
ad6254c5 AK |
18243 | *) |
18244 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 18245 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 18246 | ;; |
7a197a62 AK |
18247 | esac | |
18248 | sort | |
18249 | ) | | |
ad6254c5 | 18250 | sed ' |
7a197a62 | 18251 | /^ac_cv_env_/b end |
ad6254c5 | 18252 | t clear |
7a197a62 | 18253 | :clear |
ad6254c5 AK |
18254 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
18255 | t end | |
7a197a62 AK |
18256 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
18257 | :end' >>confcache | |
18258 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
18259 | if test -w "$cache_file"; then | |
18260 | test "x$cache_file" != "x/dev/null" && | |
ec6a6fbe AK |
18261 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
18262 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 18263 | cat confcache >$cache_file |
795ca3e5 | 18264 | else |
ec6a6fbe AK |
18265 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
18266 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
18267 | fi |
18268 | fi | |
18269 | rm -f confcache | |
18270 | ||
795ca3e5 AK |
18271 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18272 | # Let make expand exec_prefix. | |
18273 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
18274 | ||
72b2cb61 | 18275 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
18276 | |
18277 | ac_libobjs= | |
18278 | ac_ltlibobjs= | |
18279 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
18280 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 18281 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 18282 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
18283 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
18284 | # will be set to the directory where LIBOBJS objects are built. | |
18285 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
18286 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
18287 | done |
18288 | LIBOBJS=$ac_libobjs | |
80992638 | 18289 | |
ad6254c5 AK |
18290 | LTLIBOBJS=$ac_ltlibobjs |
18291 | ||
18292 | ||
18293 | ||
18294 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 18295 | ac_write_fail=0 |
ad6254c5 AK |
18296 | ac_clean_files_save=$ac_clean_files |
18297 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
ec6a6fbe AK |
18298 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
18299 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
18300 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 AK |
18301 | #! $SHELL |
18302 | # Generated by $as_me. | |
795ca3e5 | 18303 | # Run this file to recreate the current configuration. |
795ca3e5 | 18304 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
18305 | # configure, is in config.log if it exists. |
18306 | ||
18307 | debug=false | |
18308 | ac_cs_recheck=false | |
18309 | ac_cs_silent=false | |
18310 | SHELL=\${CONFIG_SHELL-$SHELL} | |
18311 | _ACEOF | |
18312 | ||
ec6a6fbe | 18313 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
18314 | ## --------------------- ## |
18315 | ## M4sh Initialization. ## | |
18316 | ## --------------------- ## | |
18317 | ||
25fbec5b AK |
18318 | # Be more Bourne compatible |
18319 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
18320 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
18321 | emulate sh | |
18322 | NULLCMD=: | |
ec6a6fbe | 18323 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
18324 | # is contrary to our usage. Disable this feature. |
18325 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
18326 | setopt NO_GLOB_SUBST |
18327 | else | |
25fbec5b AK |
18328 | case `(set -o) 2>/dev/null` in |
18329 | *posix*) set -o posix ;; | |
18330 | esac | |
18331 | ||
7a197a62 | 18332 | fi |
25fbec5b AK |
18333 | |
18334 | ||
7a197a62 AK |
18335 | |
18336 | ||
18337 | # PATH needs CR | |
18338 | # Avoid depending upon Character Ranges. | |
18339 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18340 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18341 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18342 | as_cr_digits='0123456789' | |
18343 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18344 | ||
ec6a6fbe AK |
18345 | as_nl=' |
18346 | ' | |
18347 | export as_nl | |
18348 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18349 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18350 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18351 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18352 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18353 | as_echo='printf %s\n' | |
18354 | as_echo_n='printf %s' | |
18355 | else | |
18356 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
18357 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18358 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 18359 | else |
ec6a6fbe AK |
18360 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
18361 | as_echo_n_body='eval | |
18362 | arg=$1; | |
18363 | case $arg in | |
18364 | *"$as_nl"*) | |
18365 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18366 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18367 | esac; | |
18368 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18369 | ' | |
18370 | export as_echo_n_body | |
18371 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 18372 | fi |
ec6a6fbe AK |
18373 | export as_echo_body |
18374 | as_echo='sh -c $as_echo_body as_echo' | |
18375 | fi | |
18376 | ||
18377 | # The user is always right. | |
18378 | if test "${PATH_SEPARATOR+set}" != set; then | |
18379 | PATH_SEPARATOR=: | |
18380 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18381 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18382 | PATH_SEPARATOR=';' | |
18383 | } | |
ad6254c5 AK |
18384 | fi |
18385 | ||
18386 | # Support unset when possible. | |
8a2fc586 | 18387 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
18388 | as_unset=unset |
18389 | else | |
18390 | as_unset=false | |
18391 | fi | |
8106cdd5 | 18392 | |
ad6254c5 | 18393 | |
7a197a62 AK |
18394 | # IFS |
18395 | # We need space, tab and new line, in precisely that order. Quoting is | |
18396 | # there to prevent editors from complaining about space-tab. | |
18397 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18398 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
18399 | IFS=" "" $as_nl" |
18400 | ||
18401 | # Find who we are. Look in the path if we contain no directory separator. | |
18402 | case $0 in | |
18403 | *[\\/]* ) as_myself=$0 ;; | |
18404 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18405 | for as_dir in $PATH | |
18406 | do | |
18407 | IFS=$as_save_IFS | |
18408 | test -z "$as_dir" && as_dir=. | |
18409 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18410 | done | |
18411 | IFS=$as_save_IFS | |
18412 | ||
18413 | ;; | |
18414 | esac | |
18415 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18416 | # in which case we are not to be found in the path. | |
18417 | if test "x$as_myself" = x; then | |
18418 | as_myself=$0 | |
18419 | fi | |
18420 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 18421 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
18422 | { (exit 1); exit 1; } |
18423 | fi | |
18424 | ||
ad6254c5 | 18425 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
18426 | for as_var in ENV MAIL MAILPATH |
18427 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
18428 | done | |
ad6254c5 AK |
18429 | PS1='$ ' |
18430 | PS2='> ' | |
18431 | PS4='+ ' | |
18432 | ||
18433 | # NLS nuisances. | |
ec6a6fbe AK |
18434 | LC_ALL=C |
18435 | export LC_ALL | |
18436 | LANGUAGE=C | |
18437 | export LANGUAGE | |
8106cdd5 | 18438 | |
ad6254c5 | 18439 | # Required to use basename. |
7a197a62 AK |
18440 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18441 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
18442 | as_expr=expr |
18443 | else | |
18444 | as_expr=false | |
18445 | fi | |
8106cdd5 | 18446 | |
7a197a62 | 18447 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
18448 | as_basename=basename |
18449 | else | |
18450 | as_basename=false | |
18451 | fi | |
18452 | ||
18453 | ||
18454 | # Name of the executable. | |
7a197a62 | 18455 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
18456 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
18457 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 18458 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 18459 | $as_echo X/"$0" | |
7a197a62 AK |
18460 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
18461 | s//\1/ | |
18462 | q | |
18463 | } | |
18464 | /^X\/\(\/\/\)$/{ | |
18465 | s//\1/ | |
18466 | q | |
18467 | } | |
18468 | /^X\/\(\/\).*/{ | |
18469 | s//\1/ | |
18470 | q | |
18471 | } | |
18472 | s/.*/./; q'` | |
ad6254c5 | 18473 | |
7a197a62 AK |
18474 | # CDPATH. |
18475 | $as_unset CDPATH | |
ad6254c5 AK |
18476 | |
18477 | ||
ad6254c5 | 18478 | |
ad6254c5 AK |
18479 | as_lineno_1=$LINENO |
18480 | as_lineno_2=$LINENO | |
ad6254c5 | 18481 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 18482 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 18483 | |
ad6254c5 AK |
18484 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
18485 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
18486 | # line-number line after each line using $LINENO; the second 'sed' |
18487 | # does the real work. The second script uses 'N' to pair each | |
18488 | # line-number line with the line containing $LINENO, and appends | |
18489 | # trailing '-' during substitution so that $LINENO is not a special | |
18490 | # case at line end. | |
ad6254c5 | 18491 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
18492 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
18493 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
18494 | sed -n ' | |
18495 | p | |
18496 | /[$]LINENO/= | |
18497 | ' <$as_myself | | |
ad6254c5 | 18498 | sed ' |
7a197a62 AK |
18499 | s/[$]LINENO.*/&-/ |
18500 | t lineno | |
18501 | b | |
18502 | :lineno | |
ad6254c5 | 18503 | N |
7a197a62 AK |
18504 | :loop |
18505 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 18506 | t loop |
7a197a62 | 18507 | s/-\n.*// |
ad6254c5 | 18508 | ' >$as_me.lineno && |
7a197a62 | 18509 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 18510 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
18511 | { (exit 1); exit 1; }; } |
18512 | ||
18513 | # Don't try to exec as it changes $[0], causing all sort of problems | |
18514 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
18515 | # original and so on. Autoconf is especially sensitive to this). |
18516 | . "./$as_me.lineno" | |
ad6254c5 AK |
18517 | # Exit status is that of the last command. |
18518 | exit | |
18519 | } | |
18520 | ||
18521 | ||
7a197a62 AK |
18522 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18523 | as_dirname=dirname | |
18524 | else | |
18525 | as_dirname=false | |
18526 | fi | |
18527 | ||
18528 | ECHO_C= ECHO_N= ECHO_T= | |
18529 | case `echo -n x` in | |
18530 | -n*) | |
18531 | case `echo 'x\c'` in | |
18532 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
18533 | *) ECHO_C='\c';; | |
18534 | esac;; | |
18535 | *) | |
18536 | ECHO_N='-n';; | |
ad6254c5 | 18537 | esac |
7a197a62 AK |
18538 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18539 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
18540 | as_expr=expr |
18541 | else | |
18542 | as_expr=false | |
18543 | fi | |
80992638 | 18544 | |
ad6254c5 | 18545 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
18546 | if test -d conf$$.dir; then |
18547 | rm -f conf$$.dir/conf$$.file | |
18548 | else | |
18549 | rm -f conf$$.dir | |
ec6a6fbe AK |
18550 | mkdir conf$$.dir 2>/dev/null |
18551 | fi | |
18552 | if (echo >conf$$.file) 2>/dev/null; then | |
18553 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
18554 | as_ln_s='ln -s' | |
18555 | # ... but there are two gotchas: | |
18556 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18557 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
18558 | # In both cases, we have to default to `cp -p'. | |
18559 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
18560 | as_ln_s='cp -p' | |
18561 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
18562 | as_ln_s=ln | |
18563 | else | |
ad6254c5 | 18564 | as_ln_s='cp -p' |
ec6a6fbe | 18565 | fi |
ad6254c5 AK |
18566 | else |
18567 | as_ln_s='cp -p' | |
18568 | fi | |
7a197a62 AK |
18569 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
18570 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 18571 | |
ad6254c5 AK |
18572 | if mkdir -p . 2>/dev/null; then |
18573 | as_mkdir_p=: | |
18574 | else | |
8a2fc586 | 18575 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
18576 | as_mkdir_p=false |
18577 | fi | |
18578 | ||
25fbec5b AK |
18579 | if test -x / >/dev/null 2>&1; then |
18580 | as_test_x='test -x' | |
7a197a62 | 18581 | else |
25fbec5b AK |
18582 | if ls -dL / >/dev/null 2>&1; then |
18583 | as_ls_L_option=L | |
18584 | else | |
18585 | as_ls_L_option= | |
18586 | fi | |
18587 | as_test_x=' | |
18588 | eval sh -c '\'' | |
18589 | if test -d "$1"; then | |
ec6a6fbe | 18590 | test -d "$1/."; |
25fbec5b AK |
18591 | else |
18592 | case $1 in | |
ec6a6fbe | 18593 | -*)set "./$1";; |
25fbec5b AK |
18594 | esac; |
18595 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
18596 | ???[sx]*):;;*)false;;esac;fi | |
18597 | '\'' sh | |
18598 | ' | |
7a197a62 | 18599 | fi |
25fbec5b | 18600 | as_executable_p=$as_test_x |
ad6254c5 AK |
18601 | |
18602 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 18603 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
18604 | |
18605 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 18606 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
18607 | |
18608 | ||
ad6254c5 AK |
18609 | exec 6>&1 |
18610 | ||
7a197a62 | 18611 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 18612 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
18613 | # values after options handling. |
18614 | ac_log=" | |
ad6254c5 | 18615 | This file was extended by $as_me, which was |
ec6a6fbe | 18616 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
18617 | |
18618 | CONFIG_FILES = $CONFIG_FILES | |
18619 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18620 | CONFIG_LINKS = $CONFIG_LINKS | |
18621 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18622 | $ $0 $@ | |
18623 | ||
7a197a62 AK |
18624 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
18625 | " | |
18626 | ||
ad6254c5 AK |
18627 | _ACEOF |
18628 | ||
ec6a6fbe AK |
18629 | case $ac_config_files in *" |
18630 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18631 | esac | |
18632 | ||
18633 | case $ac_config_headers in *" | |
18634 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
18635 | esac | |
18636 | ||
18637 | ||
18638 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 18639 | # Files that config.status was made for. |
68f2de6d AK |
18640 | config_files="$ac_config_files" |
18641 | config_headers="$ac_config_headers" | |
ad6254c5 | 18642 | |
7a197a62 | 18643 | _ACEOF |
ad6254c5 | 18644 | |
ec6a6fbe | 18645 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
18646 | ac_cs_usage="\ |
18647 | \`$as_me' instantiates files from templates according to the | |
18648 | current configuration. | |
18649 | ||
ec6a6fbe | 18650 | Usage: $0 [OPTION]... [FILE]... |
ad6254c5 AK |
18651 | |
18652 | -h, --help print this help, then exit | |
25fbec5b | 18653 | -V, --version print version number and configuration settings, then exit |
ec6a6fbe AK |
18654 | -q, --quiet, --silent |
18655 | do not print progress messages | |
ad6254c5 AK |
18656 | -d, --debug don't remove temporary files |
18657 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
18658 | --file=FILE[:TEMPLATE] |
18659 | instantiate the configuration file FILE | |
18660 | --header=FILE[:TEMPLATE] | |
18661 | instantiate the configuration header FILE | |
ad6254c5 AK |
18662 | |
18663 | Configuration files: | |
18664 | $config_files | |
18665 | ||
72b2cb61 AK |
18666 | Configuration headers: |
18667 | $config_headers | |
18668 | ||
ad6254c5 | 18669 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 18670 | |
7a197a62 | 18671 | _ACEOF |
ec6a6fbe | 18672 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
18673 | ac_cs_version="\\ |
18674 | config.status | |
ec6a6fbe AK |
18675 | configured by $0, generated by GNU Autoconf 2.63, |
18676 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 18677 | |
ec6a6fbe | 18678 | Copyright (C) 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
18679 | This config.status script is free software; the Free Software Foundation |
18680 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
18681 | |
18682 | ac_pwd='$ac_pwd' | |
18683 | srcdir='$srcdir' | |
18684 | INSTALL='$INSTALL' | |
fddafd51 | 18685 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
18686 | AWK='$AWK' |
18687 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
18688 | _ACEOF |
18689 | ||
ec6a6fbe AK |
18690 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18691 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
18692 | ac_need_defaults=: |
18693 | while test $# != 0 | |
18694 | do | |
18695 | case $1 in | |
18696 | --*=*) | |
7a197a62 AK |
18697 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18698 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
18699 | ac_shift=: |
18700 | ;; | |
7a197a62 | 18701 | *) |
ad6254c5 AK |
18702 | ac_option=$1 |
18703 | ac_optarg=$2 | |
18704 | ac_shift=shift | |
18705 | ;; | |
ad6254c5 AK |
18706 | esac |
18707 | ||
18708 | case $ac_option in | |
18709 | # Handling of the options. | |
ad6254c5 AK |
18710 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
18711 | ac_cs_recheck=: ;; | |
7a197a62 | 18712 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 18713 | $as_echo "$ac_cs_version"; exit ;; |
7a197a62 | 18714 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
18715 | debug=: ;; |
18716 | --file | --fil | --fi | --f ) | |
18717 | $ac_shift | |
ec6a6fbe AK |
18718 | case $ac_optarg in |
18719 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18720 | esac | |
18721 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
ad6254c5 AK |
18722 | ac_need_defaults=false;; |
18723 | --header | --heade | --head | --hea ) | |
18724 | $ac_shift | |
ec6a6fbe AK |
18725 | case $ac_optarg in |
18726 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18727 | esac | |
18728 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
ad6254c5 | 18729 | ac_need_defaults=false;; |
7a197a62 AK |
18730 | --he | --h) |
18731 | # Conflict between --help and --header | |
ec6a6fbe | 18732 | { $as_echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
18733 | Try \`$0 --help' for more information." >&2 |
18734 | { (exit 1); exit 1; }; };; | |
18735 | --help | --hel | -h ) | |
ec6a6fbe | 18736 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
18737 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18738 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18739 | ac_cs_silent=: ;; | |
18740 | ||
18741 | # This is an error. | |
ec6a6fbe | 18742 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 18743 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
18744 | { (exit 1); exit 1; }; } ;; |
18745 | ||
7a197a62 AK |
18746 | *) ac_config_targets="$ac_config_targets $1" |
18747 | ac_need_defaults=false ;; | |
ad6254c5 AK |
18748 | |
18749 | esac | |
18750 | shift | |
18751 | done | |
18752 | ||
18753 | ac_configure_extra_args= | |
18754 | ||
18755 | if $ac_cs_silent; then | |
18756 | exec 6>/dev/null | |
18757 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
18758 | fi | |
18759 | ||
18760 | _ACEOF | |
ec6a6fbe | 18761 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 18762 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
18763 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
18764 | shift | |
18765 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
18766 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 18767 | export CONFIG_SHELL |
ec6a6fbe | 18768 | exec "\$@" |
ad6254c5 AK |
18769 | fi |
18770 | ||
18771 | _ACEOF | |
ec6a6fbe | 18772 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
18773 | exec 5>>config.log |
18774 | { | |
18775 | echo | |
18776 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18777 | ## Running $as_me. ## | |
18778 | _ASBOX | |
ec6a6fbe | 18779 | $as_echo "$ac_log" |
7a197a62 | 18780 | } >&5 |
ad6254c5 | 18781 | |
7a197a62 | 18782 | _ACEOF |
ec6a6fbe | 18783 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 18784 | _ACEOF |
ad6254c5 | 18785 | |
ec6a6fbe | 18786 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
18787 | |
18788 | # Handling of arguments. | |
ad6254c5 AK |
18789 | for ac_config_target in $ac_config_targets |
18790 | do | |
7a197a62 AK |
18791 | case $ac_config_target in |
18792 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
18793 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
18794 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
18795 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
18796 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
5d311afb | 18797 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; |
93bd259b AK |
18798 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
18799 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 18800 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
d3d98fdc | 18801 | "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;; |
93bd259b AK |
18802 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
18803 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 18804 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
da05c479 | 18805 | "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; |
db8b5af9 | 18806 | "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;; |
93bd259b AK |
18807 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
18808 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
18809 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
18810 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
18811 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
18812 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
8fea97b7 | 18813 | "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;; |
ec6a6fbe | 18814 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
7a197a62 | 18815 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
93bd259b AK |
18816 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
18817 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 18818 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 18819 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
18820 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
18821 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 18822 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
81410c8f | 18823 | "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;; |
595eaf92 | 18824 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; |
7a197a62 | 18825 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 18826 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 18827 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 18828 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 18829 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
54b362f9 AK |
18830 | "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;; |
18831 | "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;; | |
d1e8046f | 18832 | "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;; |
7a197a62 | 18833 | |
ec6a6fbe AK |
18834 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
18835 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 18836 | { (exit 1); exit 1; }; };; |
80992638 | 18837 | esac |
ad6254c5 AK |
18838 | done |
18839 | ||
7a197a62 | 18840 | |
ad6254c5 AK |
18841 | # If the user did not use the arguments to specify the items to instantiate, |
18842 | # then the envvar interface is used. Set only those that are not. | |
18843 | # We use the long form for the default assignment because of an extremely | |
18844 | # bizarre bug on SunOS 4.1.3. | |
18845 | if $ac_need_defaults; then | |
18846 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 18847 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
18848 | fi |
18849 | ||
18850 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 18851 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 18852 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
18853 | # Hook for its removal unless debugging. |
18854 | # Note that there is a small window in which the directory will not be cleaned: | |
18855 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
18856 | $debug || |
18857 | { | |
7a197a62 AK |
18858 | tmp= |
18859 | trap 'exit_status=$? | |
18860 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
18861 | ' 0 | |
ad6254c5 AK |
18862 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
18863 | } | |
ad6254c5 AK |
18864 | # Create a (secure) tmp directory for tmp files. |
18865 | ||
18866 | { | |
7a197a62 | 18867 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
18868 | test -n "$tmp" && test -d "$tmp" |
18869 | } || | |
18870 | { | |
7a197a62 AK |
18871 | tmp=./conf$$-$RANDOM |
18872 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
18873 | } || |
18874 | { | |
ec6a6fbe | 18875 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
18876 | { (exit 1); exit 1; } |
18877 | } | |
18878 | ||
ec6a6fbe AK |
18879 | # Set up the scripts for CONFIG_FILES section. |
18880 | # No need to generate them if there are no CONFIG_FILES. | |
18881 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 18882 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 18883 | |
68f2de6d | 18884 | |
ec6a6fbe AK |
18885 | ac_cr='\r' |
18886 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18887 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
18888 | ac_cs_awk_cr='\\r' | |
18889 | else | |
18890 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 18891 | fi |
7a197a62 | 18892 | |
ec6a6fbe | 18893 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 18894 | _ACEOF |
7a197a62 | 18895 | |
8106cdd5 | 18896 | |
ec6a6fbe AK |
18897 | { |
18898 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
18899 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
18900 | echo "_ACEOF" | |
18901 | } >conf$$subs.sh || | |
18902 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
18903 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
18904 | { (exit 1); exit 1; }; } | |
18905 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
1995c9ff AK |
18906 | ac_delim='%!_!# ' |
18907 | for ac_last_try in false false false false false :; do | |
ec6a6fbe AK |
18908 | . ./conf$$subs.sh || |
18909 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
18910 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
18911 | { (exit 1); exit 1; }; } | |
18912 | ||
18913 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
18914 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
18915 | break |
18916 | elif $ac_last_try; then | |
ec6a6fbe AK |
18917 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
18918 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
18919 | { (exit 1); exit 1; }; } |
18920 | else | |
18921 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18922 | fi | |
18923 | done | |
ec6a6fbe AK |
18924 | rm -f conf$$subs.sh |
18925 | ||
18926 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18927 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
18928 | _ACEOF | |
18929 | sed -n ' | |
18930 | h | |
18931 | s/^/S["/; s/!.*/"]=/ | |
18932 | p | |
18933 | g | |
18934 | s/^[^!]*!// | |
18935 | :repl | |
18936 | t repl | |
18937 | s/'"$ac_delim"'$// | |
18938 | t delim | |
18939 | :nl | |
18940 | h | |
18941 | s/\(.\{148\}\).*/\1/ | |
18942 | t more1 | |
18943 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
18944 | p | |
18945 | n | |
18946 | b repl | |
18947 | :more1 | |
18948 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18949 | p | |
18950 | g | |
18951 | s/.\{148\}// | |
18952 | t nl | |
18953 | :delim | |
18954 | h | |
18955 | s/\(.\{148\}\).*/\1/ | |
18956 | t more2 | |
18957 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
18958 | p | |
18959 | b | |
18960 | :more2 | |
18961 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18962 | p | |
18963 | g | |
18964 | s/.\{148\}// | |
18965 | t delim | |
18966 | ' <conf$$subs.awk | sed ' | |
18967 | /^[^""]/{ | |
18968 | N | |
18969 | s/\n// | |
18970 | } | |
18971 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
18972 | rm -f conf$$subs.awk | |
18973 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18974 | _ACAWK | |
18975 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
18976 | for (key in S) S_is_set[key] = 1 | |
18977 | FS = "\a" | |
7a197a62 | 18978 | |
ec6a6fbe AK |
18979 | } |
18980 | { | |
18981 | line = $ 0 | |
18982 | nfields = split(line, field, "@") | |
18983 | substed = 0 | |
18984 | len = length(field[1]) | |
18985 | for (i = 2; i < nfields; i++) { | |
18986 | key = field[i] | |
18987 | keylen = length(key) | |
18988 | if (S_is_set[key]) { | |
18989 | value = S[key] | |
18990 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
18991 | len += length(value) + length(field[++i]) | |
18992 | substed = 1 | |
18993 | } else | |
18994 | len += 1 + keylen | |
18995 | } | |
18996 | ||
18997 | print line | |
18998 | } | |
fddafd51 | 18999 | |
ec6a6fbe | 19000 | _ACAWK |
1995c9ff | 19001 | _ACEOF |
ec6a6fbe AK |
19002 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19003 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
19004 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
19005 | else | |
19006 | cat | |
19007 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
19008 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
19009 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
19010 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
19011 | _ACEOF |
19012 | ||
7a197a62 AK |
19013 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
19014 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
19015 | # trailing colons and then remove the whole line if VPATH becomes empty | |
19016 | # (actually we leave an empty line to preserve line numbers). | |
19017 | if test "x$srcdir" = x.; then | |
19018 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
19019 | s/:*\$(srcdir):*/:/ | |
19020 | s/:*\${srcdir}:*/:/ | |
19021 | s/:*@srcdir@:*/:/ | |
19022 | s/^\([^=]*=[ ]*\):*/\1/ | |
19023 | s/:*$// | |
19024 | s/^[^=]*=[ ]*$// | |
19025 | }' | |
19026 | fi | |
19027 | ||
ec6a6fbe | 19028 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
19029 | fi # test -n "$CONFIG_FILES" |
19030 | ||
ec6a6fbe AK |
19031 | # Set up the scripts for CONFIG_HEADERS section. |
19032 | # No need to generate them if there are no CONFIG_HEADERS. | |
19033 | # This happens for instance with `./config.status Makefile'. | |
19034 | if test -n "$CONFIG_HEADERS"; then | |
19035 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
19036 | BEGIN { | |
19037 | _ACEOF | |
19038 | ||
19039 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
19040 | # here-document in config.status, that substitutes the proper values into | |
19041 | # config.h.in to produce config.h. | |
19042 | ||
19043 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
19044 | # handling of long lines. | |
19045 | ac_delim='%!_!# ' | |
19046 | for ac_last_try in false false :; do | |
19047 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
19048 | if test -z "$ac_t"; then | |
19049 | break | |
19050 | elif $ac_last_try; then | |
19051 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
19052 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
19053 | { (exit 1); exit 1; }; } | |
19054 | else | |
19055 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19056 | fi | |
19057 | done | |
19058 | ||
19059 | # For the awk script, D is an array of macro values keyed by name, | |
19060 | # likewise P contains macro parameters if any. Preserve backslash | |
19061 | # newline sequences. | |
19062 | ||
19063 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
19064 | sed -n ' | |
19065 | s/.\{148\}/&'"$ac_delim"'/g | |
19066 | t rset | |
19067 | :rset | |
19068 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
19069 | t def | |
19070 | d | |
19071 | :def | |
19072 | s/\\$// | |
19073 | t bsnl | |
19074 | s/["\\]/\\&/g | |
19075 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19076 | D["\1"]=" \3"/p | |
19077 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
19078 | d | |
19079 | :bsnl | |
19080 | s/["\\]/\\&/g | |
19081 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19082 | D["\1"]=" \3\\\\\\n"\\/p | |
19083 | t cont | |
19084 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
19085 | t cont | |
19086 | d | |
19087 | :cont | |
19088 | n | |
19089 | s/.\{148\}/&'"$ac_delim"'/g | |
19090 | t clear | |
19091 | :clear | |
19092 | s/\\$// | |
19093 | t bsnlc | |
19094 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
19095 | d | |
19096 | :bsnlc | |
19097 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
19098 | b cont | |
19099 | ' <confdefs.h | sed ' | |
19100 | s/'"$ac_delim"'/"\\\ | |
19101 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
19102 | ||
19103 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19104 | for (key in D) D_is_set[key] = 1 | |
19105 | FS = "\a" | |
19106 | } | |
19107 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
19108 | line = \$ 0 | |
19109 | split(line, arg, " ") | |
19110 | if (arg[1] == "#") { | |
19111 | defundef = arg[2] | |
19112 | mac1 = arg[3] | |
19113 | } else { | |
19114 | defundef = substr(arg[1], 2) | |
19115 | mac1 = arg[2] | |
19116 | } | |
19117 | split(mac1, mac2, "(") #) | |
19118 | macro = mac2[1] | |
19119 | prefix = substr(line, 1, index(line, defundef) - 1) | |
19120 | if (D_is_set[macro]) { | |
19121 | # Preserve the white space surrounding the "#". | |
19122 | print prefix "define", macro P[macro] D[macro] | |
19123 | next | |
19124 | } else { | |
19125 | # Replace #undef with comments. This is necessary, for example, | |
19126 | # in the case of _POSIX_SOURCE, which is predefined and required | |
19127 | # on some systems where configure will not decide to define it. | |
19128 | if (defundef == "undef") { | |
19129 | print "/*", prefix defundef, macro, "*/" | |
19130 | next | |
19131 | } | |
19132 | } | |
19133 | } | |
19134 | { print } | |
19135 | _ACAWK | |
19136 | _ACEOF | |
19137 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19138 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
19139 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
19140 | { (exit 1); exit 1; }; } | |
19141 | fi # test -n "$CONFIG_HEADERS" | |
19142 | ||
7a197a62 | 19143 | |
ec6a6fbe AK |
19144 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
19145 | shift | |
19146 | for ac_tag | |
7a197a62 AK |
19147 | do |
19148 | case $ac_tag in | |
19149 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19150 | esac | |
19151 | case $ac_mode$ac_tag in | |
19152 | :[FHL]*:*);; | |
ec6a6fbe AK |
19153 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
19154 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
7a197a62 AK |
19155 | { (exit 1); exit 1; }; };; |
19156 | :[FH]-) ac_tag=-:-;; | |
19157 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
19158 | esac | |
19159 | ac_save_IFS=$IFS | |
19160 | IFS=: | |
19161 | set x $ac_tag | |
19162 | IFS=$ac_save_IFS | |
19163 | shift | |
19164 | ac_file=$1 | |
19165 | shift | |
19166 | ||
19167 | case $ac_mode in | |
19168 | :L) ac_source=$1;; | |
19169 | :[FH]) | |
19170 | ac_file_inputs= | |
19171 | for ac_f | |
19172 | do | |
19173 | case $ac_f in | |
19174 | -) ac_f="$tmp/stdin";; | |
19175 | *) # Look for the file first in the build tree, then in the source tree | |
19176 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19177 | # because $ac_f cannot contain `:'. | |
19178 | test -f "$ac_f" || | |
19179 | case $ac_f in | |
19180 | [\\/$]*) false;; | |
19181 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19182 | esac || | |
ec6a6fbe AK |
19183 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
19184 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
19185 | { (exit 1); exit 1; }; };; |
19186 | esac | |
ec6a6fbe AK |
19187 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
19188 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
7a197a62 AK |
19189 | done |
19190 | ||
19191 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
19192 | # use $as_me), people would be surprised to read: | |
19193 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
19194 | configure_input='Generated from '` |
19195 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19196 | `' by configure.' | |
7a197a62 AK |
19197 | if test x"$ac_file" != x-; then |
19198 | configure_input="$ac_file. $configure_input" | |
ec6a6fbe AK |
19199 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
19200 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 | 19201 | fi |
ec6a6fbe AK |
19202 | # Neutralize special characters interpreted by sed in replacement strings. |
19203 | case $configure_input in #( | |
19204 | *\&* | *\|* | *\\* ) | |
19205 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19206 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19207 | *) ac_sed_conf_input=$configure_input;; | |
19208 | esac | |
7a197a62 AK |
19209 | |
19210 | case $ac_tag in | |
ec6a6fbe AK |
19211 | *:-:* | *:-) cat >"$tmp/stdin" \ |
19212 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19213 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19214 | { (exit 1); exit 1; }; } ;; | |
7a197a62 AK |
19215 | esac |
19216 | ;; | |
80992638 | 19217 | esac |
8106cdd5 | 19218 | |
7a197a62 | 19219 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 19220 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
19221 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
19222 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 19223 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 19224 | $as_echo X"$ac_file" | |
7a197a62 AK |
19225 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
19226 | s//\1/ | |
19227 | q | |
19228 | } | |
19229 | /^X\(\/\/\)[^/].*/{ | |
19230 | s//\1/ | |
19231 | q | |
19232 | } | |
19233 | /^X\(\/\/\)$/{ | |
19234 | s//\1/ | |
19235 | q | |
19236 | } | |
19237 | /^X\(\/\).*/{ | |
19238 | s//\1/ | |
19239 | q | |
19240 | } | |
19241 | s/.*/./; q'` | |
19242 | { as_dir="$ac_dir" | |
19243 | case $as_dir in #( | |
19244 | -*) as_dir=./$as_dir;; | |
19245 | esac | |
19246 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 19247 | as_dirs= |
7a197a62 AK |
19248 | while :; do |
19249 | case $as_dir in #( | |
ec6a6fbe | 19250 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7a197a62 AK |
19251 | *) as_qdir=$as_dir;; |
19252 | esac | |
19253 | as_dirs="'$as_qdir' $as_dirs" | |
19254 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 19255 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
19256 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
19257 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 19258 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 19259 | $as_echo X"$as_dir" | |
7a197a62 AK |
19260 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
19261 | s//\1/ | |
19262 | q | |
19263 | } | |
19264 | /^X\(\/\/\)[^/].*/{ | |
19265 | s//\1/ | |
19266 | q | |
19267 | } | |
19268 | /^X\(\/\/\)$/{ | |
19269 | s//\1/ | |
19270 | q | |
19271 | } | |
19272 | /^X\(\/\).*/{ | |
19273 | s//\1/ | |
19274 | q | |
19275 | } | |
19276 | s/.*/./; q'` | |
19277 | test -d "$as_dir" && break | |
ad6254c5 | 19278 | done |
7a197a62 | 19279 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
ec6a6fbe AK |
19280 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
19281 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 19282 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
19283 | ac_builddir=. |
19284 | ||
7a197a62 AK |
19285 | case "$ac_dir" in |
19286 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19287 | *) | |
ec6a6fbe | 19288 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 19289 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 19290 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
19291 | case $ac_top_builddir_sub in |
19292 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19293 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19294 | esac ;; | |
19295 | esac | |
19296 | ac_abs_top_builddir=$ac_pwd | |
19297 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19298 | # for backward compatibility: | |
19299 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
19300 | |
19301 | case $srcdir in | |
7a197a62 | 19302 | .) # We are building in place. |
ad6254c5 | 19303 | ac_srcdir=. |
7a197a62 AK |
19304 | ac_top_srcdir=$ac_top_builddir_sub |
19305 | ac_abs_top_srcdir=$ac_pwd ;; | |
19306 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 19307 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
19308 | ac_top_srcdir=$srcdir |
19309 | ac_abs_top_srcdir=$srcdir ;; | |
19310 | *) # Relative name. | |
19311 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19312 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19313 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 19314 | esac |
7a197a62 | 19315 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 19316 | |
ad6254c5 | 19317 | |
7a197a62 AK |
19318 | case $ac_mode in |
19319 | :F) | |
19320 | # | |
19321 | # CONFIG_FILE | |
19322 | # | |
ad6254c5 AK |
19323 | |
19324 | case $INSTALL in | |
19325 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 19326 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 19327 | esac |
fddafd51 ZK |
19328 | ac_MKDIR_P=$MKDIR_P |
19329 | case $MKDIR_P in | |
19330 | [\\/$]* | ?:[\\/]* ) ;; | |
19331 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
19332 | esac | |
7a197a62 | 19333 | _ACEOF |
795ca3e5 | 19334 | |
ec6a6fbe | 19335 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
19336 | # If the template does not know about datarootdir, expand it. |
19337 | # FIXME: This hack should be removed a few years after 2.60. | |
19338 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19339 | ||
ec6a6fbe AK |
19340 | ac_sed_dataroot=' |
19341 | /datarootdir/ { | |
7a197a62 AK |
19342 | p |
19343 | q | |
19344 | } | |
19345 | /@datadir@/p | |
19346 | /@docdir@/p | |
19347 | /@infodir@/p | |
19348 | /@localedir@/p | |
19349 | /@mandir@/p | |
ec6a6fbe AK |
19350 | ' |
19351 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7a197a62 AK |
19352 | *datarootdir*) ac_datarootdir_seen=yes;; |
19353 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
ec6a6fbe AK |
19354 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
19355 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 19356 | _ACEOF |
ec6a6fbe | 19357 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
19358 | ac_datarootdir_hack=' |
19359 | s&@datadir@&$datadir&g | |
19360 | s&@docdir@&$docdir&g | |
19361 | s&@infodir@&$infodir&g | |
19362 | s&@localedir@&$localedir&g | |
19363 | s&@mandir@&$mandir&g | |
19364 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19365 | esac | |
19366 | _ACEOF | |
19367 | ||
19368 | # Neutralize VPATH when `$srcdir' = `.'. | |
19369 | # Shell code in configure.ac might set extrasub. | |
19370 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
19371 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19372 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
19373 | $extrasub |
19374 | _ACEOF | |
ec6a6fbe | 19375 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
19376 | :t |
19377 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 19378 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 19379 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 19380 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
19381 | s&@srcdir@&$ac_srcdir&;t t |
19382 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19383 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19384 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19385 | s&@builddir@&$ac_builddir&;t t | |
19386 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19387 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19388 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 19389 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 19390 | $ac_datarootdir_hack |
ec6a6fbe AK |
19391 | " |
19392 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
19393 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19394 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19395 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
19396 | |
19397 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
19398 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
19399 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
ec6a6fbe | 19400 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 19401 | which seems to be undefined. Please make sure it is defined." >&5 |
ec6a6fbe | 19402 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
19403 | which seems to be undefined. Please make sure it is defined." >&2;} |
19404 | ||
19405 | rm -f "$tmp/stdin" | |
72b2cb61 | 19406 | case $ac_file in |
ec6a6fbe AK |
19407 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
19408 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
19409 | esac \ | |
19410 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19411 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19412 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
19413 | ;; |
19414 | :H) | |
19415 | # | |
19416 | # CONFIG_HEADER | |
19417 | # | |
72b2cb61 | 19418 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
19419 | { |
19420 | $as_echo "/* $configure_input */" \ | |
19421 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
19422 | } >"$tmp/config.h" \ | |
19423 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19424 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19425 | { (exit 1); exit 1; }; } | |
19426 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
19427 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
19428 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 19429 | else |
ec6a6fbe AK |
19430 | rm -f "$ac_file" |
19431 | mv "$tmp/config.h" "$ac_file" \ | |
19432 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
19433 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
19434 | { (exit 1); exit 1; }; } | |
72b2cb61 AK |
19435 | fi |
19436 | else | |
ec6a6fbe AK |
19437 | $as_echo "/* $configure_input */" \ |
19438 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
19439 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
19440 | $as_echo "$as_me: error: could not create -" >&2;} | |
19441 | { (exit 1); exit 1; }; } | |
72b2cb61 | 19442 | fi |
7a197a62 AK |
19443 | ;; |
19444 | ||
19445 | ||
19446 | esac | |
19447 | ||
19448 | done # for ac_tag | |
795ca3e5 | 19449 | |
795ca3e5 | 19450 | |
ad6254c5 AK |
19451 | { (exit 0); exit 0; } |
19452 | _ACEOF | |
795ca3e5 | 19453 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
19454 | ac_clean_files=$ac_clean_files_save |
19455 | ||
ec6a6fbe AK |
19456 | test $ac_write_fail = 0 || |
19457 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
19458 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
19459 | { (exit 1); exit 1; }; } | |
19460 | ||
ad6254c5 AK |
19461 | |
19462 | # configure is writing to config.log, and then calls config.status. | |
19463 | # config.status does its own redirection, appending to config.log. | |
19464 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19465 | # by configure, so config.status won't be able to write to it; its | |
19466 | # output is simply discarded. So we exec the FD to /dev/null, | |
19467 | # effectively closing config.log, so it can be properly (re)opened and | |
19468 | # appended to by config.status. When coming back to configure, we | |
19469 | # need to make the FD available again. | |
19470 | if test "$no_create" != yes; then | |
19471 | ac_cs_success=: | |
19472 | ac_config_status_args= | |
19473 | test "$silent" = yes && | |
19474 | ac_config_status_args="$ac_config_status_args --quiet" | |
19475 | exec 5>/dev/null | |
19476 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19477 | exec 5>>config.log | |
19478 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19479 | # would make configure fail if this is the last instruction. | |
19480 | $ac_cs_success || { (exit 1); exit 1; } | |
19481 | fi | |
ec6a6fbe AK |
19482 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
19483 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19484 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
19485 | fi | |
795ca3e5 | 19486 | |
2dc95e1c AK |
19487 | |
19488 | if test x$ODIRECT != xyes; then | |
ec6a6fbe AK |
19489 | { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
19490 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 19491 | fi |