]>
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 | |
0878503f | 649 | UDEV_SYNC |
a5f46f6a | 650 | UDEV_RULES |
db724a44 | 651 | UDEV_LIBS |
ec6a6fbe AK |
652 | STATIC_LINK |
653 | STATICDIR | |
654 | SNAPSHOTS | |
e1b8a236 | 655 | SELINUX_LIBS |
539f4a77 | 656 | READLINE_LIBS |
f30875db | 657 | PTHREAD_LIBS |
ec6a6fbe AK |
658 | POOL |
659 | PKGCONFIG | |
660 | OWNER | |
661 | MIRRORS | |
662 | LVM_RELEASE_DATE | |
663 | LVM_RELEASE | |
664 | LVM_PATCHLEVEL | |
665 | LVM_MINOR | |
666 | LVM_MAJOR | |
bf456146 | 667 | LVM_LIBAPI |
ec6a6fbe | 668 | LVM_VERSION |
ec6a6fbe AK |
669 | LVM1_FALLBACK |
670 | LVM1 | |
671 | LOCALEDIR | |
672 | LIB_SUFFIX | |
673 | LDDEPS | |
674 | JOBS | |
675 | INTL_PACKAGE | |
676 | INTL | |
ec6a6fbe AK |
677 | HAVE_REALTIME |
678 | HAVE_LIBDL | |
679 | GROUP | |
680 | FSADM | |
681 | DM_LIB_PATCHLEVEL | |
682 | DM_LIB_VERSION | |
683 | DM_IOCTLS | |
684 | DM_DEVICE_UID | |
685 | DM_DEVICE_MODE | |
686 | DM_DEVICE_GID | |
687 | DM_COMPAT | |
688 | DMEVENTD | |
19a2c6e0 | 689 | DL_LIBS |
ec6a6fbe AK |
690 | DEVMAPPER |
691 | DEBUG | |
692 | COPTIMISE_FLAG | |
e2997b73 | 693 | CONFDIR |
ec6a6fbe AK |
694 | CMDLIB |
695 | CLVMD | |
696 | CLUSTER | |
697 | CLDWHOLEARCHIVE | |
698 | CLDNOWHOLEARCHIVE | |
699 | CLDFLAGS | |
700 | BUILD_DMEVENTD | |
66fd4529 | 701 | BUILD_CMIRRORD |
572fefeb | 702 | APPLIB |
ec6a6fbe AK |
703 | MODPROBE_CMD |
704 | MSGFMT | |
705 | LVM2CMD_LIB | |
572fefeb | 706 | LVM2APP_LIB |
ec6a6fbe AK |
707 | GENHTML |
708 | LCOV | |
90c80887 AK |
709 | SACKPT_LIBS |
710 | SACKPT_CFLAGS | |
a946372e AK |
711 | DLM_LIBS |
712 | DLM_CFLAGS | |
e2997b73 AK |
713 | CPG_LIBS |
714 | CPG_CFLAGS | |
715 | CONFDB_LIBS | |
716 | CONFDB_CFLAGS | |
a946372e AK |
717 | SALCK_LIBS |
718 | SALCK_CFLAGS | |
e2997b73 AK |
719 | QUORUM_LIBS |
720 | QUORUM_CFLAGS | |
a946372e AK |
721 | COROSYNC_LIBS |
722 | COROSYNC_CFLAGS | |
723 | CMAN_LIBS | |
724 | CMAN_CFLAGS | |
725 | GULM_LIBS | |
726 | GULM_CFLAGS | |
727 | CCS_LIBS | |
728 | CCS_CFLAGS | |
729 | PKGCONFIGINIT_LIBS | |
730 | PKGCONFIGINIT_CFLAGS | |
e2997b73 | 731 | PKG_CONFIG |
ec6a6fbe AK |
732 | POW_LIB |
733 | LIBOBJS | |
734 | ALLOCA | |
735 | CSCOPE_CMD | |
736 | CFLOW_CMD | |
737 | RANLIB | |
738 | MKDIR_P | |
739 | SET_MAKE | |
740 | LN_S | |
741 | INSTALL_DATA | |
742 | INSTALL_SCRIPT | |
743 | INSTALL_PROGRAM | |
744 | EGREP | |
745 | GREP | |
746 | CPP | |
747 | OBJEXT | |
748 | EXEEXT | |
749 | ac_ct_CC | |
750 | CPPFLAGS | |
751 | LDFLAGS | |
752 | CFLAGS | |
753 | CC | |
754 | AWK | |
755 | SED | |
756 | target_os | |
757 | target_vendor | |
758 | target_cpu | |
759 | target | |
760 | host_os | |
761 | host_vendor | |
762 | host_cpu | |
763 | host | |
764 | build_os | |
765 | build_vendor | |
766 | build_cpu | |
767 | build | |
768 | target_alias | |
769 | host_alias | |
770 | build_alias | |
771 | LIBS | |
772 | ECHO_T | |
773 | ECHO_N | |
774 | ECHO_C | |
775 | DEFS | |
776 | mandir | |
777 | localedir | |
778 | libdir | |
779 | psdir | |
780 | pdfdir | |
781 | dvidir | |
782 | htmldir | |
783 | infodir | |
784 | docdir | |
785 | oldincludedir | |
786 | includedir | |
787 | localstatedir | |
788 | sharedstatedir | |
789 | sysconfdir | |
790 | datadir | |
791 | datarootdir | |
792 | libexecdir | |
793 | sbindir | |
794 | bindir | |
795 | program_transform_name | |
796 | prefix | |
797 | exec_prefix | |
798 | PACKAGE_BUGREPORT | |
799 | PACKAGE_STRING | |
800 | PACKAGE_VERSION | |
801 | PACKAGE_TARNAME | |
802 | PACKAGE_NAME | |
803 | PATH_SEPARATOR | |
804 | SHELL' | |
ad6254c5 | 805 | ac_subst_files='' |
ec6a6fbe AK |
806 | ac_user_opts=' |
807 | enable_option_checking | |
808 | enable_static_link | |
809 | with_user | |
810 | with_group | |
811 | with_device_uid | |
812 | with_device_gid | |
813 | with_device_mode | |
814 | enable_lvm1_fallback | |
815 | with_lvm1 | |
816 | with_pool | |
817 | with_cluster | |
818 | with_snapshots | |
819 | with_mirrors | |
820 | enable_readline | |
821 | enable_realtime | |
822 | with_clvmd | |
66fd4529 AK |
823 | enable_cmirrord |
824 | with_cmirrord_pidfile | |
ec6a6fbe AK |
825 | enable_debug |
826 | with_optimisation | |
827 | enable_profiling | |
828 | enable_devmapper | |
a5f46f6a AK |
829 | enable_udev_sync |
830 | enable_udev_rules | |
ec6a6fbe | 831 | enable_compat |
95eaa683 | 832 | enable_units_compat |
ec6a6fbe AK |
833 | enable_ioctl |
834 | enable_o_direct | |
572fefeb | 835 | enable_applib |
ec6a6fbe AK |
836 | enable_cmdlib |
837 | enable_pkgconfig | |
838 | enable_fsadm | |
839 | enable_dmeventd | |
840 | enable_selinux | |
841 | enable_nls | |
842 | with_localedir | |
843 | with_confdir | |
844 | with_staticdir | |
845 | with_usrlibdir | |
846 | with_usrsbindir | |
a5f46f6a | 847 | with_udev_prefix |
78ce7acc | 848 | with_udevdir |
ec6a6fbe AK |
849 | with_dmeventd_pidfile |
850 | with_dmeventd_path | |
851 | with_interface | |
852 | ' | |
7a197a62 AK |
853 | ac_precious_vars='build_alias |
854 | host_alias | |
855 | target_alias | |
856 | CC | |
857 | CFLAGS | |
858 | LDFLAGS | |
25fbec5b | 859 | LIBS |
7a197a62 | 860 | CPPFLAGS |
e2997b73 AK |
861 | CPP |
862 | PKG_CONFIG | |
a946372e AK |
863 | PKGCONFIGINIT_CFLAGS |
864 | PKGCONFIGINIT_LIBS | |
865 | CCS_CFLAGS | |
866 | CCS_LIBS | |
867 | GULM_CFLAGS | |
868 | GULM_LIBS | |
869 | CMAN_CFLAGS | |
870 | CMAN_LIBS | |
871 | COROSYNC_CFLAGS | |
872 | COROSYNC_LIBS | |
e2997b73 AK |
873 | QUORUM_CFLAGS |
874 | QUORUM_LIBS | |
a946372e AK |
875 | SALCK_CFLAGS |
876 | SALCK_LIBS | |
e2997b73 AK |
877 | CONFDB_CFLAGS |
878 | CONFDB_LIBS | |
879 | CPG_CFLAGS | |
a946372e AK |
880 | CPG_LIBS |
881 | DLM_CFLAGS | |
90c80887 AK |
882 | DLM_LIBS |
883 | SACKPT_CFLAGS | |
884 | SACKPT_LIBS' | |
7a197a62 | 885 | |
795ca3e5 AK |
886 | |
887 | # Initialize some variables set by options. | |
ad6254c5 AK |
888 | ac_init_help= |
889 | ac_init_version=false | |
ec6a6fbe AK |
890 | ac_unrecognized_opts= |
891 | ac_unrecognized_sep= | |
795ca3e5 AK |
892 | # The variables have the same names as the options, with |
893 | # dashes changed to underlines. | |
ad6254c5 | 894 | cache_file=/dev/null |
795ca3e5 | 895 | exec_prefix=NONE |
795ca3e5 | 896 | no_create= |
795ca3e5 AK |
897 | no_recursion= |
898 | prefix=NONE | |
899 | program_prefix=NONE | |
900 | program_suffix=NONE | |
901 | program_transform_name=s,x,x, | |
902 | silent= | |
903 | site= | |
904 | srcdir= | |
795ca3e5 AK |
905 | verbose= |
906 | x_includes=NONE | |
907 | x_libraries=NONE | |
ad6254c5 AK |
908 | |
909 | # Installation directory options. | |
910 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
911 | # and all the variables that are supposed to be based on exec_prefix | |
912 | # by default will actually change. | |
913 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 914 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
915 | bindir='${exec_prefix}/bin' |
916 | sbindir='${exec_prefix}/sbin' | |
917 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
918 | datarootdir='${prefix}/share' |
919 | datadir='${datarootdir}' | |
795ca3e5 AK |
920 | sysconfdir='${prefix}/etc' |
921 | sharedstatedir='${prefix}/com' | |
922 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
923 | includedir='${prefix}/include' |
924 | oldincludedir='/usr/include' | |
7a197a62 AK |
925 | docdir='${datarootdir}/doc/${PACKAGE}' |
926 | infodir='${datarootdir}/info' | |
927 | htmldir='${docdir}' | |
928 | dvidir='${docdir}' | |
929 | pdfdir='${docdir}' | |
930 | psdir='${docdir}' | |
931 | libdir='${exec_prefix}/lib' | |
932 | localedir='${datarootdir}/locale' | |
933 | mandir='${datarootdir}/man' | |
795ca3e5 | 934 | |
795ca3e5 | 935 | ac_prev= |
7a197a62 | 936 | ac_dashdash= |
795ca3e5 AK |
937 | for ac_option |
938 | do | |
795ca3e5 AK |
939 | # If the previous option needs an argument, assign it. |
940 | if test -n "$ac_prev"; then | |
7a197a62 | 941 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
942 | ac_prev= |
943 | continue | |
944 | fi | |
945 | ||
7a197a62 AK |
946 | case $ac_option in |
947 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
948 | *) ac_optarg=yes ;; | |
949 | esac | |
795ca3e5 AK |
950 | |
951 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
952 | ||
7a197a62 AK |
953 | case $ac_dashdash$ac_option in |
954 | --) | |
955 | ac_dashdash=yes ;; | |
795ca3e5 AK |
956 | |
957 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
958 | ac_prev=bindir ;; | |
959 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 960 | bindir=$ac_optarg ;; |
795ca3e5 AK |
961 | |
962 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 963 | ac_prev=build_alias ;; |
795ca3e5 | 964 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 965 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
966 | |
967 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
968 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
969 | ac_prev=cache_file ;; | |
970 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
971 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
972 | cache_file=$ac_optarg ;; |
973 | ||
974 | --config-cache | -C) | |
975 | cache_file=config.cache ;; | |
795ca3e5 | 976 | |
7a197a62 | 977 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 978 | ac_prev=datadir ;; |
7a197a62 | 979 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 980 | datadir=$ac_optarg ;; |
795ca3e5 | 981 | |
7a197a62 AK |
982 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
983 | | --dataroo | --dataro | --datar) | |
984 | ac_prev=datarootdir ;; | |
985 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
986 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
987 | datarootdir=$ac_optarg ;; | |
988 | ||
795ca3e5 | 989 | -disable-* | --disable-*) |
ec6a6fbe | 990 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 991 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
992 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
993 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 994 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
995 | ac_useropt_orig=$ac_useropt |
996 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
997 | case $ac_user_opts in | |
998 | *" | |
999 | "enable_$ac_useropt" | |
1000 | "*) ;; | |
1001 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1002 | ac_unrecognized_sep=', ';; | |
1003 | esac | |
1004 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
1005 | |
1006 | -docdir | --docdir | --docdi | --doc | --do) | |
1007 | ac_prev=docdir ;; | |
1008 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1009 | docdir=$ac_optarg ;; | |
1010 | ||
1011 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1012 | ac_prev=dvidir ;; | |
1013 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1014 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1015 | |
1016 | -enable-* | --enable-*) | |
ec6a6fbe | 1017 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1018 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1019 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1020 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
ad6254c5 | 1021 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1022 | ac_useropt_orig=$ac_useropt |
1023 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1024 | case $ac_user_opts in | |
1025 | *" | |
1026 | "enable_$ac_useropt" | |
1027 | "*) ;; | |
1028 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1029 | ac_unrecognized_sep=', ';; | |
1030 | esac | |
1031 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1032 | |
1033 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1034 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1035 | | --exec | --exe | --ex) | |
1036 | ac_prev=exec_prefix ;; | |
1037 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1038 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1039 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1040 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1041 | |
1042 | -gas | --gas | --ga | --g) | |
1043 | # Obsolete; use --with-gas. | |
1044 | with_gas=yes ;; | |
1045 | ||
ad6254c5 AK |
1046 | -help | --help | --hel | --he | -h) |
1047 | ac_init_help=long ;; | |
1048 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1049 | ac_init_help=recursive ;; | |
1050 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1051 | ac_init_help=short ;; | |
795ca3e5 AK |
1052 | |
1053 | -host | --host | --hos | --ho) | |
ad6254c5 | 1054 | ac_prev=host_alias ;; |
795ca3e5 | 1055 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1056 | host_alias=$ac_optarg ;; |
795ca3e5 | 1057 | |
7a197a62 AK |
1058 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1059 | ac_prev=htmldir ;; | |
1060 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1061 | | --ht=*) | |
1062 | htmldir=$ac_optarg ;; | |
1063 | ||
795ca3e5 AK |
1064 | -includedir | --includedir | --includedi | --included | --include \ |
1065 | | --includ | --inclu | --incl | --inc) | |
1066 | ac_prev=includedir ;; | |
1067 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1068 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1069 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1070 | |
1071 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1072 | ac_prev=infodir ;; | |
1073 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1074 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1075 | |
1076 | -libdir | --libdir | --libdi | --libd) | |
1077 | ac_prev=libdir ;; | |
1078 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1079 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1080 | |
1081 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1082 | | --libexe | --libex | --libe) | |
1083 | ac_prev=libexecdir ;; | |
1084 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1085 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1086 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1087 | |
7a197a62 AK |
1088 | -localedir | --localedir | --localedi | --localed | --locale) |
1089 | ac_prev=localedir ;; | |
1090 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1091 | localedir=$ac_optarg ;; | |
1092 | ||
795ca3e5 | 1093 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1094 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1095 | ac_prev=localstatedir ;; |
1096 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1097 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1098 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1099 | |
1100 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1101 | ac_prev=mandir ;; | |
1102 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1103 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1104 | |
1105 | -nfp | --nfp | --nf) | |
1106 | # Obsolete; use --without-fp. | |
1107 | with_fp=no ;; | |
1108 | ||
1109 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1110 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1111 | no_create=yes ;; |
1112 | ||
1113 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1114 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1115 | no_recursion=yes ;; | |
1116 | ||
1117 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1118 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1119 | | --oldin | --oldi | --old | --ol | --o) | |
1120 | ac_prev=oldincludedir ;; | |
1121 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1122 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1123 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1124 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1125 | |
1126 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1127 | ac_prev=prefix ;; | |
1128 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1129 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1130 | |
1131 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1132 | | --program-pre | --program-pr | --program-p) | |
1133 | ac_prev=program_prefix ;; | |
1134 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1135 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1136 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1137 | |
1138 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1139 | | --program-suf | --program-su | --program-s) | |
1140 | ac_prev=program_suffix ;; | |
1141 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1142 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1143 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1144 | |
1145 | -program-transform-name | --program-transform-name \ | |
1146 | | --program-transform-nam | --program-transform-na \ | |
1147 | | --program-transform-n | --program-transform- \ | |
1148 | | --program-transform | --program-transfor \ | |
1149 | | --program-transfo | --program-transf \ | |
1150 | | --program-trans | --program-tran \ | |
1151 | | --progr-tra | --program-tr | --program-t) | |
1152 | ac_prev=program_transform_name ;; | |
1153 | -program-transform-name=* | --program-transform-name=* \ | |
1154 | | --program-transform-nam=* | --program-transform-na=* \ | |
1155 | | --program-transform-n=* | --program-transform-=* \ | |
1156 | | --program-transform=* | --program-transfor=* \ | |
1157 | | --program-transfo=* | --program-transf=* \ | |
1158 | | --program-trans=* | --program-tran=* \ | |
1159 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1160 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1161 | |
7a197a62 AK |
1162 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1163 | ac_prev=pdfdir ;; | |
1164 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1165 | pdfdir=$ac_optarg ;; | |
1166 | ||
1167 | -psdir | --psdir | --psdi | --psd | --ps) | |
1168 | ac_prev=psdir ;; | |
1169 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1170 | psdir=$ac_optarg ;; | |
1171 | ||
795ca3e5 AK |
1172 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1173 | | -silent | --silent | --silen | --sile | --sil) | |
1174 | silent=yes ;; | |
1175 | ||
1176 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1177 | ac_prev=sbindir ;; | |
1178 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1179 | | --sbi=* | --sb=*) | |
ad6254c5 | 1180 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1181 | |
1182 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1183 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1184 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1185 | | --sha | --sh) | |
1186 | ac_prev=sharedstatedir ;; | |
1187 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1188 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1189 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1190 | | --sha=* | --sh=*) | |
ad6254c5 | 1191 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1192 | |
1193 | -site | --site | --sit) | |
1194 | ac_prev=site ;; | |
1195 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1196 | site=$ac_optarg ;; |
795ca3e5 AK |
1197 | |
1198 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1199 | ac_prev=srcdir ;; | |
1200 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1201 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1202 | |
1203 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1204 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1205 | ac_prev=sysconfdir ;; | |
1206 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1207 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1208 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1209 | |
1210 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1211 | ac_prev=target_alias ;; |
795ca3e5 | 1212 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1213 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1214 | |
1215 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1216 | verbose=yes ;; | |
1217 | ||
ad6254c5 AK |
1218 | -version | --version | --versio | --versi | --vers | -V) |
1219 | ac_init_version=: ;; | |
795ca3e5 AK |
1220 | |
1221 | -with-* | --with-*) | |
ec6a6fbe | 1222 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1223 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1224 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1225 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1226 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1227 | ac_useropt_orig=$ac_useropt |
1228 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1229 | case $ac_user_opts in | |
1230 | *" | |
1231 | "with_$ac_useropt" | |
1232 | "*) ;; | |
1233 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1234 | ac_unrecognized_sep=', ';; | |
1235 | esac | |
1236 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1237 | |
1238 | -without-* | --without-*) | |
ec6a6fbe | 1239 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1240 | # Reject names that are not valid shell variable names. |
ec6a6fbe AK |
1241 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1242 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
ad6254c5 | 1243 | { (exit 1); exit 1; }; } |
ec6a6fbe AK |
1244 | ac_useropt_orig=$ac_useropt |
1245 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1246 | case $ac_user_opts in | |
1247 | *" | |
1248 | "with_$ac_useropt" | |
1249 | "*) ;; | |
1250 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1251 | ac_unrecognized_sep=', ';; | |
1252 | esac | |
1253 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1254 | |
1255 | --x) | |
1256 | # Obsolete; use --with-x. | |
1257 | with_x=yes ;; | |
1258 | ||
1259 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1260 | | --x-incl | --x-inc | --x-in | --x-i) | |
1261 | ac_prev=x_includes ;; | |
1262 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1263 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1264 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1265 | |
1266 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1267 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1268 | ac_prev=x_libraries ;; | |
1269 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1270 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1271 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1272 | |
ec6a6fbe | 1273 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
ad6254c5 AK |
1274 | Try \`$0 --help' for more information." >&2 |
1275 | { (exit 1); exit 1; }; } | |
795ca3e5 AK |
1276 | ;; |
1277 | ||
ad6254c5 AK |
1278 | *=*) |
1279 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1280 | # Reject names that are not valid shell variable names. | |
1281 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
ec6a6fbe | 1282 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
ad6254c5 | 1283 | { (exit 1); exit 1; }; } |
7a197a62 | 1284 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1285 | export $ac_envvar ;; |
1286 | ||
795ca3e5 | 1287 | *) |
ad6254c5 | 1288 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1289 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1290 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1291 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1292 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1293 | ;; |
1294 | ||
1295 | esac | |
1296 | done | |
1297 | ||
1298 | if test -n "$ac_prev"; then | |
ad6254c5 | 1299 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
ec6a6fbe | 1300 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
ad6254c5 | 1301 | { (exit 1); exit 1; }; } |
795ca3e5 | 1302 | fi |
795ca3e5 | 1303 | |
ec6a6fbe AK |
1304 | if test -n "$ac_unrecognized_opts"; then |
1305 | case $enable_option_checking in | |
1306 | no) ;; | |
1307 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1308 | { (exit 1); exit 1; }; } ;; | |
1309 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1310 | esac | |
1311 | fi | |
1312 | ||
1313 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1314 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1315 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1316 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1317 | libdir localedir mandir | |
795ca3e5 | 1318 | do |
7a197a62 | 1319 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1320 | # Remove trailing slashes. |
1321 | case $ac_val in | |
1322 | */ ) | |
1323 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1324 | eval $ac_var=\$ac_val;; | |
1325 | esac | |
1326 | # Be sure to have absolute directory names. | |
ad6254c5 | 1327 | case $ac_val in |
7a197a62 AK |
1328 | [\\/$]* | ?:[\\/]* ) continue;; |
1329 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1330 | esac |
ec6a6fbe | 1331 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
7a197a62 | 1332 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
1333 | done |
1334 | ||
ad6254c5 AK |
1335 | # There might be people who depend on the old broken behavior: `$host' |
1336 | # used to hold the argument of --host etc. | |
1337 | # FIXME: To remove some day. | |
1338 | build=$build_alias | |
1339 | host=$host_alias | |
1340 | target=$target_alias | |
1341 | ||
1342 | # FIXME: To remove some day. | |
1343 | if test "x$host_alias" != x; then | |
1344 | if test "x$build_alias" = x; then | |
1345 | cross_compiling=maybe | |
ec6a6fbe | 1346 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
ad6254c5 AK |
1347 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1348 | elif test "x$build_alias" != "x$host_alias"; then | |
1349 | cross_compiling=yes | |
1350 | fi | |
1351 | fi | |
8106cdd5 | 1352 | |
ad6254c5 AK |
1353 | ac_tool_prefix= |
1354 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1355 | ||
1356 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1357 | |
795ca3e5 | 1358 | |
7a197a62 AK |
1359 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1360 | ac_ls_di=`ls -di .` && | |
1361 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
ec6a6fbe | 1362 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
7a197a62 AK |
1363 | { (exit 1); exit 1; }; } |
1364 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
ec6a6fbe | 1365 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
7a197a62 AK |
1366 | { (exit 1); exit 1; }; } |
1367 | ||
1368 | ||
795ca3e5 AK |
1369 | # Find the source files, if location was not specified. |
1370 | if test -z "$srcdir"; then | |
1371 | ac_srcdir_defaulted=yes | |
7a197a62 | 1372 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1373 | ac_confdir=`$as_dirname -- "$as_myself" || |
1374 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1375 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1376 | X"$as_myself" : 'X\(//\)$' \| \ | |
1377 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1378 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1379 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1380 | s//\1/ | |
1381 | q | |
1382 | } | |
1383 | /^X\(\/\/\)[^/].*/{ | |
1384 | s//\1/ | |
1385 | q | |
1386 | } | |
1387 | /^X\(\/\/\)$/{ | |
1388 | s//\1/ | |
1389 | q | |
1390 | } | |
1391 | /^X\(\/\).*/{ | |
1392 | s//\1/ | |
1393 | q | |
1394 | } | |
1395 | s/.*/./; q'` | |
795ca3e5 | 1396 | srcdir=$ac_confdir |
7a197a62 | 1397 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1398 | srcdir=.. |
1399 | fi | |
1400 | else | |
1401 | ac_srcdir_defaulted=no | |
1402 | fi | |
7a197a62 AK |
1403 | if test ! -r "$srcdir/$ac_unique_file"; then |
1404 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
ec6a6fbe | 1405 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
ad6254c5 | 1406 | { (exit 1); exit 1; }; } |
795ca3e5 | 1407 | fi |
7a197a62 AK |
1408 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1409 | ac_abs_confdir=`( | |
ec6a6fbe | 1410 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
ad6254c5 | 1411 | { (exit 1); exit 1; }; } |
7a197a62 AK |
1412 | pwd)` |
1413 | # When building in place, set srcdir=. | |
1414 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1415 | srcdir=. | |
1416 | fi | |
1417 | # Remove unnecessary trailing slashes from srcdir. | |
1418 | # Double slashes in file names in object file debugging info | |
1419 | # mess up M-x gdb in Emacs. | |
1420 | case $srcdir in | |
1421 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1422 | esac | |
1423 | for ac_var in $ac_precious_vars; do | |
1424 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1425 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1426 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1427 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1428 | done | |
ad6254c5 AK |
1429 | |
1430 | # | |
1431 | # Report the --help message. | |
1432 | # | |
1433 | if test "$ac_init_help" = "long"; then | |
1434 | # Omit some internal or obsolete options to make the list less imposing. | |
1435 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1436 | cat <<_ACEOF | |
1437 | \`configure' configures this package to adapt to many kinds of systems. | |
1438 | ||
1439 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1440 | ||
1441 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1442 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1443 | ||
1444 | Defaults for the options are specified in brackets. | |
1445 | ||
1446 | Configuration: | |
1447 | -h, --help display this help and exit | |
1448 | --help=short display options specific to this package | |
1449 | --help=recursive display the short help of all the included packages | |
1450 | -V, --version display version information and exit | |
1451 | -q, --quiet, --silent do not print \`checking...' messages | |
1452 | --cache-file=FILE cache test results in FILE [disabled] | |
1453 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1454 | -n, --no-create do not create output files | |
1455 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1456 | ||
ad6254c5 AK |
1457 | Installation directories: |
1458 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1459 | [$ac_default_prefix] |
ad6254c5 | 1460 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1461 | [PREFIX] |
ad6254c5 AK |
1462 | |
1463 | By default, \`make install' will install all the files in | |
1464 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1465 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1466 | for instance \`--prefix=\$HOME'. | |
1467 | ||
1468 | For better control, use the options below. | |
1469 | ||
1470 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1471 | --bindir=DIR user executables [EPREFIX/bin] |
1472 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1473 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1474 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1475 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1476 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1477 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1478 | --includedir=DIR C header files [PREFIX/include] | |
1479 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1480 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1481 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1482 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1483 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1484 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1485 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1486 | --htmldir=DIR html documentation [DOCDIR] | |
1487 | --dvidir=DIR dvi documentation [DOCDIR] | |
1488 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1489 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1490 | _ACEOF |
1491 | ||
1492 | cat <<\_ACEOF | |
1493 | ||
1494 | System types: | |
1495 | --build=BUILD configure for building on BUILD [guessed] | |
1496 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1497 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1498 | _ACEOF | |
1499 | fi | |
1500 | ||
1501 | if test -n "$ac_init_help"; then | |
1502 | ||
1503 | cat <<\_ACEOF | |
1504 | ||
1505 | Optional Features: | |
ec6a6fbe | 1506 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1507 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1508 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
9c961554 MB |
1509 | --enable-static_link Use this to link the tools to their libraries |
1510 | statically. Default is dynamic linking | |
ad6254c5 AK |
1511 | --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if |
1512 | device-mapper is missing from the kernel | |
1b523347 | 1513 | --disable-readline Disable readline support |
89044bc0 | 1514 | --enable-realtime Enable realtime clock support |
66fd4529 | 1515 | --enable-cmirrord Enable the cluster mirror log daemon |
ad6254c5 | 1516 | --enable-debug Enable debugging |
5556819a | 1517 | --enable-profiling Gather gcov profiling data |
93bd259b | 1518 | --disable-devmapper Disable LVM2 device-mapper interaction |
a5f46f6a AK |
1519 | --enable-udev_sync Enable synchronisation with udev processing |
1520 | --enable-udev_rules Install rule files needed for udev synchronisation | |
93bd259b | 1521 | --enable-compat Enable support for old device-mapper versions |
95eaa683 AK |
1522 | --enable-units-compat Enable output compatibility with old versions that |
1523 | that don't use KiB-style unit suffixes | |
93bd259b | 1524 | --disable-driver Disable calls to device-mapper in the kernel |
ad6254c5 | 1525 | --disable-o_direct Disable O_DIRECT |
572fefeb | 1526 | --enable-applib Build application library |
ad6254c5 | 1527 | --enable-cmdlib Build shared command library |
93bd259b | 1528 | --enable-pkgconfig Install pkgconfig support |
c9274524 | 1529 | --disable-fsadm Disable fsadm |
15d91f5a | 1530 | --enable-dmeventd Enable the device-mapper event daemon |
d0191583 | 1531 | --disable-selinux Disable selinux support |
ad6254c5 AK |
1532 | --enable-nls Enable Native Language Support |
1533 | ||
1534 | Optional Packages: | |
1535 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1536 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
39dabc84 FDN |
1537 | --with-user=USER Set the owner of installed files [USER=] |
1538 | --with-group=GROUP Set the group owner of installed files [GROUP=] | |
24bbc4d7 AK |
1539 | --with-device-uid=UID Set the owner used for new device nodes [UID=0] |
1540 | --with-device-gid=UID Set the group used for new device nodes [GID=0] | |
93bd259b | 1541 | --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600] |
ad6254c5 AK |
1542 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
1543 | TYPE=internal | |
1544 | --with-pool=TYPE GFS pool read-only support: internal/shared/none | |
1545 | TYPE=internal | |
1546 | --with-cluster=TYPE Cluster LVM locking support: internal/shared/none | |
1547 | TYPE=internal | |
1548 | --with-snapshots=TYPE Snapshot support: internal/shared/none | |
1549 | TYPE=internal | |
1550 | --with-mirrors=TYPE Mirror support: internal/shared/none | |
1551 | TYPE=internal | |
a946372e | 1552 | --with-clvmd=TYPE Build cluster LVM Daemon. |
8c222979 | 1553 | The following cluster manager combinations are valid: |
a946372e AK |
1554 | * cman,gulm (RHEL4 or equivalent) |
1555 | * cman (RHEL5 or equivalent) | |
1556 | * cman,corosync,openais (or selection of them) | |
1557 | * all (autodetect) | |
1558 | * none (disable build) | |
a266258f | 1559 | TYPE=none |
66fd4529 | 1560 | --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid] |
d0191583 JM |
1561 | --with-optimisation=OPT C optimisation flag [OPT=-O2] |
1562 | --with-localedir=DIR Translation files in DIR [PREFIX/share/locale] | |
a5f46f6a AK |
1563 | --with-confdir=DIR Configuration files in DIR [/etc] |
1564 | --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin] | |
68f2de6d AK |
1565 | --with-usrlibdir=DIR |
1566 | --with-usrsbindir=DIR | |
a5f46f6a | 1567 | --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX] |
78ce7acc | 1568 | --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d] |
93bd259b | 1569 | --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid] |
a5f46f6a | 1570 | --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd] |
93bd259b | 1571 | --with-interface=IFACE Choose kernel interface (ioctl) [ioctl] |
ad6254c5 AK |
1572 | |
1573 | Some influential environment variables: | |
1574 | CC C compiler command | |
1575 | CFLAGS C compiler flags | |
1576 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1577 | nonstandard directory <lib dir> | |
25fbec5b | 1578 | LIBS libraries to pass to the linker, e.g. -l<library> |
7a197a62 AK |
1579 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1580 | you have headers in a nonstandard directory <include dir> | |
ad6254c5 | 1581 | CPP C preprocessor |
e2997b73 | 1582 | PKG_CONFIG path to pkg-config utility |
a946372e AK |
1583 | PKGCONFIGINIT_CFLAGS |
1584 | C compiler flags for PKGCONFIGINIT, overriding pkg-config | |
1585 | PKGCONFIGINIT_LIBS | |
1586 | linker flags for PKGCONFIGINIT, overriding pkg-config | |
1587 | CCS_CFLAGS C compiler flags for CCS, overriding pkg-config | |
1588 | CCS_LIBS linker flags for CCS, overriding pkg-config | |
1589 | GULM_CFLAGS C compiler flags for GULM, overriding pkg-config | |
1590 | GULM_LIBS linker flags for GULM, overriding pkg-config | |
1591 | CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config | |
1592 | CMAN_LIBS linker flags for CMAN, overriding pkg-config | |
1593 | COROSYNC_CFLAGS | |
1594 | C compiler flags for COROSYNC, overriding pkg-config | |
1595 | COROSYNC_LIBS | |
1596 | linker flags for COROSYNC, overriding pkg-config | |
e2997b73 AK |
1597 | QUORUM_CFLAGS |
1598 | C compiler flags for QUORUM, overriding pkg-config | |
1599 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
a946372e AK |
1600 | SALCK_CFLAGS |
1601 | C compiler flags for SALCK, overriding pkg-config | |
1602 | SALCK_LIBS linker flags for SALCK, overriding pkg-config | |
e2997b73 AK |
1603 | CONFDB_CFLAGS |
1604 | C compiler flags for CONFDB, overriding pkg-config | |
1605 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
1606 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1607 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
a946372e AK |
1608 | DLM_CFLAGS C compiler flags for DLM, overriding pkg-config |
1609 | DLM_LIBS linker flags for DLM, overriding pkg-config | |
90c80887 AK |
1610 | SACKPT_CFLAGS |
1611 | C compiler flags for SACKPT, overriding pkg-config | |
1612 | SACKPT_LIBS linker flags for SACKPT, overriding pkg-config | |
ad6254c5 AK |
1613 | |
1614 | Use these variables to override the choices made by `configure' or to help | |
1615 | it to find libraries and programs with nonstandard names/locations. | |
1616 | ||
1617 | _ACEOF | |
7a197a62 | 1618 | ac_status=$? |
ad6254c5 AK |
1619 | fi |
1620 | ||
1621 | if test "$ac_init_help" = "recursive"; then | |
1622 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1623 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1624 | test -d "$ac_dir" || |
1625 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1626 | continue | |
ad6254c5 AK |
1627 | ac_builddir=. |
1628 | ||
7a197a62 AK |
1629 | case "$ac_dir" in |
1630 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1631 | *) | |
ec6a6fbe | 1632 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1633 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1634 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1635 | case $ac_top_builddir_sub in |
1636 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1637 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1638 | esac ;; | |
1639 | esac | |
1640 | ac_abs_top_builddir=$ac_pwd | |
1641 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1642 | # for backward compatibility: | |
1643 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1644 | |
1645 | case $srcdir in | |
7a197a62 | 1646 | .) # We are building in place. |
ad6254c5 | 1647 | ac_srcdir=. |
7a197a62 AK |
1648 | ac_top_srcdir=$ac_top_builddir_sub |
1649 | ac_abs_top_srcdir=$ac_pwd ;; | |
1650 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1651 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1652 | ac_top_srcdir=$srcdir |
1653 | ac_abs_top_srcdir=$srcdir ;; | |
1654 | *) # Relative name. | |
1655 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1656 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1657 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1658 | esac |
7a197a62 AK |
1659 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1660 | ||
1661 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1662 | # Check for guested configure. | |
1663 | if test -f "$ac_srcdir/configure.gnu"; then | |
1664 | echo && | |
1665 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1666 | elif test -f "$ac_srcdir/configure"; then | |
1667 | echo && | |
1668 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1669 | else |
ec6a6fbe | 1670 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1671 | fi || ac_status=$? |
1672 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1673 | done |
1674 | fi | |
1675 | ||
7a197a62 | 1676 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1677 | if $ac_init_version; then |
1678 | cat <<\_ACEOF | |
7a197a62 | 1679 | configure |
ec6a6fbe | 1680 | generated by GNU Autoconf 2.63 |
ad6254c5 | 1681 | |
7a197a62 | 1682 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
ec6a6fbe | 1683 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
1684 | This configure script is free software; the Free Software Foundation |
1685 | gives unlimited permission to copy, distribute and modify it. | |
1686 | _ACEOF | |
7a197a62 | 1687 | exit |
ad6254c5 | 1688 | fi |
7a197a62 | 1689 | cat >config.log <<_ACEOF |
ad6254c5 AK |
1690 | This file contains any messages produced by compilers while |
1691 | running configure, to aid debugging if configure makes a mistake. | |
1692 | ||
1693 | It was created by $as_me, which was | |
ec6a6fbe | 1694 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
1695 | |
1696 | $ $0 $@ | |
1697 | ||
1698 | _ACEOF | |
7a197a62 | 1699 | exec 5>>config.log |
ad6254c5 AK |
1700 | { |
1701 | cat <<_ASUNAME | |
1702 | ## --------- ## | |
1703 | ## Platform. ## | |
1704 | ## --------- ## | |
1705 | ||
1706 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1707 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1708 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1709 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1710 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1711 | ||
1712 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1713 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1714 | ||
1715 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1716 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1717 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
7a197a62 | 1718 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
ad6254c5 AK |
1719 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1720 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1721 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1722 | ||
1723 | _ASUNAME | |
1724 | ||
1725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1726 | for as_dir in $PATH | |
1727 | do | |
1728 | IFS=$as_save_IFS | |
1729 | test -z "$as_dir" && as_dir=. | |
ec6a6fbe | 1730 | $as_echo "PATH: $as_dir" |
ad6254c5 | 1731 | done |
7a197a62 | 1732 | IFS=$as_save_IFS |
ad6254c5 AK |
1733 | |
1734 | } >&5 | |
1735 | ||
1736 | cat >&5 <<_ACEOF | |
1737 | ||
1738 | ||
1739 | ## ----------- ## | |
1740 | ## Core tests. ## | |
1741 | ## ----------- ## | |
1742 | ||
1743 | _ACEOF | |
1744 | ||
1745 | ||
1746 | # Keep a trace of the command line. | |
1747 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1748 | # Strip out --silent because we don't want to record it for future runs. | |
1749 | # Also quote any args containing shell meta-characters. | |
1750 | # Make two passes to allow for proper duplicate-argument suppression. | |
1751 | ac_configure_args= | |
1752 | ac_configure_args0= | |
1753 | ac_configure_args1= | |
ad6254c5 AK |
1754 | ac_must_keep_next=false |
1755 | for ac_pass in 1 2 | |
1756 | do | |
1757 | for ac_arg | |
1758 | do | |
1759 | case $ac_arg in | |
1760 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1761 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1762 | | -silent | --silent | --silen | --sile | --sil) | |
1763 | continue ;; | |
7a197a62 | 1764 | *\'*) |
ec6a6fbe | 1765 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
1766 | esac |
1767 | case $ac_pass in | |
1768 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1769 | 2) | |
1770 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1771 | if test $ac_must_keep_next = true; then | |
8a2fc586 | 1772 | ac_must_keep_next=false # Got value, back to normal. |
ad6254c5 | 1773 | else |
8a2fc586 AK |
1774 | case $ac_arg in |
1775 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1776 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1777 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1778 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1779 | case "$ac_configure_args0 " in | |
1780 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1781 | esac | |
1782 | ;; | |
1783 | -* ) ac_must_keep_next=true ;; | |
1784 | esac | |
ad6254c5 | 1785 | fi |
7a197a62 | 1786 | ac_configure_args="$ac_configure_args '$ac_arg'" |
ad6254c5 AK |
1787 | ;; |
1788 | esac | |
1789 | done | |
1790 | done | |
1791 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1792 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1793 | ||
1794 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1795 | # config.log. We remove comments because anyway the quotes in there | |
1796 | # would cause problems or look ugly. | |
7a197a62 AK |
1797 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1798 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
ad6254c5 AK |
1799 | trap 'exit_status=$? |
1800 | # Save into config.log some information that might help in debugging. | |
1801 | { | |
1802 | echo | |
1803 | ||
1804 | cat <<\_ASBOX | |
1805 | ## ---------------- ## | |
1806 | ## Cache variables. ## | |
1807 | ## ---------------- ## | |
1808 | _ASBOX | |
1809 | echo | |
1810 | # The following way of writing the cache mishandles newlines in values, | |
7a197a62 AK |
1811 | ( |
1812 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1813 | eval ac_val=\$$ac_var | |
1814 | case $ac_val in #( | |
1815 | *${as_nl}*) | |
1816 | case $ac_var in #( | |
ec6a6fbe AK |
1817 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
1818 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
1819 | esac |
1820 | case $ac_var in #( | |
1821 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 1822 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
1823 | *) $as_unset $ac_var ;; |
1824 | esac ;; | |
1825 | esac | |
1826 | done | |
ad6254c5 | 1827 | (set) 2>&1 | |
7a197a62 AK |
1828 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1829 | *${as_nl}ac_space=\ *) | |
ad6254c5 | 1830 | sed -n \ |
7a197a62 AK |
1831 | "s/'\''/'\''\\\\'\'''\''/g; |
1832 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1833 | ;; #( | |
ad6254c5 | 1834 | *) |
7a197a62 | 1835 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 1836 | ;; |
7a197a62 AK |
1837 | esac | |
1838 | sort | |
1839 | ) | |
ad6254c5 AK |
1840 | echo |
1841 | ||
1842 | cat <<\_ASBOX | |
1843 | ## ----------------- ## | |
1844 | ## Output variables. ## | |
1845 | ## ----------------- ## | |
1846 | _ASBOX | |
1847 | echo | |
1848 | for ac_var in $ac_subst_vars | |
1849 | do | |
7a197a62 AK |
1850 | eval ac_val=\$$ac_var |
1851 | case $ac_val in | |
ec6a6fbe | 1852 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1853 | esac |
ec6a6fbe | 1854 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1855 | done | sort |
1856 | echo | |
1857 | ||
1858 | if test -n "$ac_subst_files"; then | |
1859 | cat <<\_ASBOX | |
7a197a62 AK |
1860 | ## ------------------- ## |
1861 | ## File substitutions. ## | |
1862 | ## ------------------- ## | |
ad6254c5 AK |
1863 | _ASBOX |
1864 | echo | |
1865 | for ac_var in $ac_subst_files | |
1866 | do | |
7a197a62 AK |
1867 | eval ac_val=\$$ac_var |
1868 | case $ac_val in | |
ec6a6fbe | 1869 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7a197a62 | 1870 | esac |
ec6a6fbe | 1871 | $as_echo "$ac_var='\''$ac_val'\''" |
ad6254c5 AK |
1872 | done | sort |
1873 | echo | |
1874 | fi | |
1875 | ||
1876 | if test -s confdefs.h; then | |
1877 | cat <<\_ASBOX | |
1878 | ## ----------- ## | |
1879 | ## confdefs.h. ## | |
1880 | ## ----------- ## | |
1881 | _ASBOX | |
1882 | echo | |
7a197a62 | 1883 | cat confdefs.h |
ad6254c5 AK |
1884 | echo |
1885 | fi | |
1886 | test "$ac_signal" != 0 && | |
ec6a6fbe AK |
1887 | $as_echo "$as_me: caught signal $ac_signal" |
1888 | $as_echo "$as_me: exit $exit_status" | |
ad6254c5 | 1889 | } >&5 |
7a197a62 AK |
1890 | rm -f core *.core core.conftest.* && |
1891 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
ad6254c5 | 1892 | exit $exit_status |
7a197a62 | 1893 | ' 0 |
ad6254c5 AK |
1894 | for ac_signal in 1 2 13 15; do |
1895 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1896 | done | |
1897 | ac_signal=0 | |
1898 | ||
1899 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7a197a62 | 1900 | rm -f -r conftest* confdefs.h |
ad6254c5 AK |
1901 | |
1902 | # Predefined preprocessor variables. | |
1903 | ||
1904 | cat >>confdefs.h <<_ACEOF | |
1905 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1906 | _ACEOF | |
1907 | ||
1908 | ||
1909 | cat >>confdefs.h <<_ACEOF | |
1910 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1911 | _ACEOF | |
1912 | ||
1913 | ||
1914 | cat >>confdefs.h <<_ACEOF | |
1915 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1916 | _ACEOF | |
8106cdd5 | 1917 | |
ad6254c5 AK |
1918 | |
1919 | cat >>confdefs.h <<_ACEOF | |
1920 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1921 | _ACEOF | |
1922 | ||
1923 | ||
1924 | cat >>confdefs.h <<_ACEOF | |
1925 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1926 | _ACEOF | |
1927 | ||
1928 | ||
1929 | # Let the site file select an alternate cache file if it wants to. | |
ec6a6fbe AK |
1930 | # Prefer an explicitly selected file to automatically selected ones. |
1931 | ac_site_file1=NONE | |
1932 | ac_site_file2=NONE | |
7a197a62 | 1933 | if test -n "$CONFIG_SITE"; then |
ec6a6fbe | 1934 | ac_site_file1=$CONFIG_SITE |
7a197a62 | 1935 | elif test "x$prefix" != xNONE; then |
ec6a6fbe AK |
1936 | ac_site_file1=$prefix/share/config.site |
1937 | ac_site_file2=$prefix/etc/config.site | |
7a197a62 | 1938 | else |
ec6a6fbe AK |
1939 | ac_site_file1=$ac_default_prefix/share/config.site |
1940 | ac_site_file2=$ac_default_prefix/etc/config.site | |
795ca3e5 | 1941 | fi |
ec6a6fbe | 1942 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7a197a62 | 1943 | do |
ec6a6fbe | 1944 | test "x$ac_site_file" = xNONE && continue |
795ca3e5 | 1945 | if test -r "$ac_site_file"; then |
ec6a6fbe AK |
1946 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1947 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
ad6254c5 | 1948 | sed 's/^/| /' "$ac_site_file" >&5 |
795ca3e5 AK |
1949 | . "$ac_site_file" |
1950 | fi | |
1951 | done | |
1952 | ||
1953 | if test -r "$cache_file"; then | |
ad6254c5 AK |
1954 | # Some versions of bash will fail to source /dev/null (special |
1955 | # files actually), so we avoid doing that. | |
1956 | if test -f "$cache_file"; then | |
ec6a6fbe AK |
1957 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1958 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
ad6254c5 | 1959 | case $cache_file in |
7a197a62 AK |
1960 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1961 | *) . "./$cache_file";; | |
ad6254c5 AK |
1962 | esac |
1963 | fi | |
795ca3e5 | 1964 | else |
ec6a6fbe AK |
1965 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1966 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
ad6254c5 AK |
1967 | >$cache_file |
1968 | fi | |
1969 | ||
1970 | # Check that the precious variables saved in the cache have kept the same | |
1971 | # value. | |
1972 | ac_cache_corrupted=false | |
7a197a62 | 1973 | for ac_var in $ac_precious_vars; do |
ad6254c5 AK |
1974 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1975 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7a197a62 AK |
1976 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1977 | eval ac_new_val=\$ac_env_${ac_var}_value | |
ad6254c5 AK |
1978 | case $ac_old_set,$ac_new_set in |
1979 | set,) | |
ec6a6fbe AK |
1980 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1981 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
ad6254c5 AK |
1982 | ac_cache_corrupted=: ;; |
1983 | ,set) | |
ec6a6fbe AK |
1984 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1985 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
ad6254c5 AK |
1986 | ac_cache_corrupted=: ;; |
1987 | ,);; | |
1988 | *) | |
1989 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ec6a6fbe AK |
1990 | # differences in whitespace do not lead to failure. |
1991 | ac_old_val_w=`echo x $ac_old_val` | |
1992 | ac_new_val_w=`echo x $ac_new_val` | |
1993 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1994 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1995 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1996 | ac_cache_corrupted=: | |
1997 | else | |
1998 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1999 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2000 | eval $ac_var=\$ac_old_val | |
2001 | fi | |
2002 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
2003 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2004 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
2005 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
ad6254c5 AK |
2006 | fi;; |
2007 | esac | |
2008 | # Pass precious variables to config.status. | |
2009 | if test "$ac_new_set" = set; then | |
2010 | case $ac_new_val in | |
ec6a6fbe | 2011 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
ad6254c5 AK |
2012 | *) ac_arg=$ac_var=$ac_new_val ;; |
2013 | esac | |
2014 | case " $ac_configure_args " in | |
2015 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2016 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
2017 | esac | |
2018 | fi | |
2019 | done | |
2020 | if $ac_cache_corrupted; then | |
ec6a6fbe AK |
2021 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2022 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2023 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
2024 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2025 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
2026 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
ad6254c5 | 2027 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
2028 | fi |
2029 | ||
ad6254c5 AK |
2030 | |
2031 | ||
2032 | ||
2033 | ||
2034 | ||
2035 | ||
2036 | ||
2037 | ||
2038 | ||
2039 | ||
2040 | ||
2041 | ||
2042 | ||
2043 | ||
2044 | ||
2045 | ||
7a197a62 AK |
2046 | ac_ext=c |
2047 | ac_cpp='$CPP $CPPFLAGS' | |
2048 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2049 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2050 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 2051 | |
795ca3e5 AK |
2052 | |
2053 | ||
7a197a62 | 2054 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
72b2cb61 AK |
2055 | |
2056 | ||
80992638 | 2057 | ################################################################################ |
795ca3e5 | 2058 | ac_aux_dir= |
7a197a62 AK |
2059 | for ac_dir in autoconf "$srcdir"/autoconf; do |
2060 | if test -f "$ac_dir/install-sh"; then | |
795ca3e5 AK |
2061 | ac_aux_dir=$ac_dir |
2062 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2063 | break | |
7a197a62 | 2064 | elif test -f "$ac_dir/install.sh"; then |
795ca3e5 AK |
2065 | ac_aux_dir=$ac_dir |
2066 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2067 | break | |
7a197a62 | 2068 | elif test -f "$ac_dir/shtool"; then |
ad6254c5 AK |
2069 | ac_aux_dir=$ac_dir |
2070 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2071 | break | |
795ca3e5 AK |
2072 | fi |
2073 | done | |
2074 | if test -z "$ac_aux_dir"; then | |
ec6a6fbe AK |
2075 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
2076 | $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} | |
ad6254c5 | 2077 | { (exit 1); exit 1; }; } |
795ca3e5 | 2078 | fi |
7a197a62 AK |
2079 | |
2080 | # These three variables are undocumented and unsupported, | |
2081 | # and are intended to be withdrawn in a future Autoconf release. | |
2082 | # They can cause serious problems if a builder's source tree is in a directory | |
2083 | # whose full name contains unusual characters. | |
2084 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2085 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2086 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2087 | ||
8ce0cbda AK |
2088 | |
2089 | ||
ad6254c5 | 2090 | ################################################################################ |
8ce0cbda | 2091 | # Make sure we can run config.sub. |
7a197a62 | 2092 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
ec6a6fbe AK |
2093 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2094 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
ad6254c5 AK |
2095 | { (exit 1); exit 1; }; } |
2096 | ||
ec6a6fbe AK |
2097 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
2098 | $as_echo_n "checking build system type... " >&6; } | |
ad6254c5 | 2099 | if test "${ac_cv_build+set}" = set; then |
ec6a6fbe | 2100 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2101 | else |
7a197a62 AK |
2102 | ac_build_alias=$build_alias |
2103 | test "x$ac_build_alias" = x && | |
2104 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2105 | test "x$ac_build_alias" = x && | |
ec6a6fbe AK |
2106 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2107 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
ad6254c5 | 2108 | { (exit 1); exit 1; }; } |
7a197a62 | 2109 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
ec6a6fbe AK |
2110 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2111 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
ad6254c5 AK |
2112 | { (exit 1); exit 1; }; } |
2113 | ||
2114 | fi | |
ec6a6fbe AK |
2115 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2116 | $as_echo "$ac_cv_build" >&6; } | |
7a197a62 AK |
2117 | case $ac_cv_build in |
2118 | *-*-*) ;; | |
ec6a6fbe AK |
2119 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2120 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | |
7a197a62 AK |
2121 | { (exit 1); exit 1; }; };; |
2122 | esac | |
ad6254c5 | 2123 | build=$ac_cv_build |
7a197a62 AK |
2124 | ac_save_IFS=$IFS; IFS='-' |
2125 | set x $ac_cv_build | |
2126 | shift | |
2127 | build_cpu=$1 | |
2128 | build_vendor=$2 | |
2129 | shift; shift | |
2130 | # Remember, the first character of IFS is used to create $*, | |
2131 | # except with old shells: | |
2132 | build_os=$* | |
2133 | IFS=$ac_save_IFS | |
2134 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2135 | |
2136 | ||
ec6a6fbe AK |
2137 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
2138 | $as_echo_n "checking host system type... " >&6; } | |
ad6254c5 | 2139 | if test "${ac_cv_host+set}" = set; then |
ec6a6fbe | 2140 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2141 | else |
7a197a62 AK |
2142 | if test "x$host_alias" = x; then |
2143 | ac_cv_host=$ac_cv_build | |
2144 | else | |
2145 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
ec6a6fbe AK |
2146 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2147 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
ad6254c5 | 2148 | { (exit 1); exit 1; }; } |
7a197a62 | 2149 | fi |
ad6254c5 AK |
2150 | |
2151 | fi | |
ec6a6fbe AK |
2152 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2153 | $as_echo "$ac_cv_host" >&6; } | |
7a197a62 AK |
2154 | case $ac_cv_host in |
2155 | *-*-*) ;; | |
ec6a6fbe AK |
2156 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2157 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | |
7a197a62 AK |
2158 | { (exit 1); exit 1; }; };; |
2159 | esac | |
ad6254c5 | 2160 | host=$ac_cv_host |
7a197a62 AK |
2161 | ac_save_IFS=$IFS; IFS='-' |
2162 | set x $ac_cv_host | |
2163 | shift | |
2164 | host_cpu=$1 | |
2165 | host_vendor=$2 | |
2166 | shift; shift | |
2167 | # Remember, the first character of IFS is used to create $*, | |
2168 | # except with old shells: | |
2169 | host_os=$* | |
2170 | IFS=$ac_save_IFS | |
2171 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2172 | |
2173 | ||
ec6a6fbe AK |
2174 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
2175 | $as_echo_n "checking target system type... " >&6; } | |
ad6254c5 | 2176 | if test "${ac_cv_target+set}" = set; then |
ec6a6fbe | 2177 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2178 | else |
7a197a62 AK |
2179 | if test "x$target_alias" = x; then |
2180 | ac_cv_target=$ac_cv_host | |
2181 | else | |
2182 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
ec6a6fbe AK |
2183 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
2184 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
ad6254c5 | 2185 | { (exit 1); exit 1; }; } |
7a197a62 | 2186 | fi |
8ce0cbda | 2187 | |
ad6254c5 | 2188 | fi |
ec6a6fbe AK |
2189 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2190 | $as_echo "$ac_cv_target" >&6; } | |
7a197a62 AK |
2191 | case $ac_cv_target in |
2192 | *-*-*) ;; | |
ec6a6fbe AK |
2193 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
2194 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} | |
7a197a62 AK |
2195 | { (exit 1); exit 1; }; };; |
2196 | esac | |
ad6254c5 | 2197 | target=$ac_cv_target |
7a197a62 AK |
2198 | ac_save_IFS=$IFS; IFS='-' |
2199 | set x $ac_cv_target | |
2200 | shift | |
2201 | target_cpu=$1 | |
2202 | target_vendor=$2 | |
2203 | shift; shift | |
2204 | # Remember, the first character of IFS is used to create $*, | |
2205 | # except with old shells: | |
2206 | target_os=$* | |
2207 | IFS=$ac_save_IFS | |
2208 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8ce0cbda | 2209 | |
8ce0cbda | 2210 | |
ad6254c5 AK |
2211 | # The aliases save the names the user supplied, while $host etc. |
2212 | # will get canonicalized. | |
2213 | test -n "$target_alias" && | |
8ce0cbda AK |
2214 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2215 | NONENONEs,x,x, && | |
2216 | program_prefix=${target_alias}- | |
2217 | ||
8ce0cbda AK |
2218 | case "$host_os" in |
2219 | linux*) | |
7f54ef36 | 2220 | CFLAGS="$CFLAGS" |
8ce0cbda AK |
2221 | COPTIMISE_FLAG="-O2" |
2222 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2223 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2224 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2225 | LDDEPS="$LDDEPS .export.sym" | |
2226 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
d0191583 | 2227 | LIB_SUFFIX=so |
8ce0cbda AK |
2228 | DEVMAPPER=yes |
2229 | ODIRECT=yes | |
d0191583 | 2230 | DM_IOCTLS=yes |
8ce0cbda AK |
2231 | SELINUX=yes |
2232 | CLUSTER=internal | |
93bd259b | 2233 | FSADM=yes |
d0191583 | 2234 | ;; |
8ce0cbda AK |
2235 | darwin*) |
2236 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2237 | COPTIMISE_FLAG="-O2" | |
2238 | CLDFLAGS="$CLDFLAGS" | |
2239 | CLDWHOLEARCHIVE="-all_load" | |
2240 | CLDNOWHOLEARCHIVE= | |
d0191583 | 2241 | LIB_SUFFIX=dylib |
a653923f | 2242 | DEVMAPPER=yes |
8ce0cbda | 2243 | ODIRECT=no |
d0191583 | 2244 | DM_IOCTLS=no |
8ce0cbda AK |
2245 | SELINUX=no |
2246 | CLUSTER=none | |
d0191583 JM |
2247 | FSADM=no |
2248 | ;; | |
8ce0cbda AK |
2249 | esac |
2250 | ||
80992638 | 2251 | ################################################################################ |
ec6a6fbe AK |
2252 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
2253 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5951ef33 | 2254 | if test "${ac_cv_path_SED+set}" = set; then |
ec6a6fbe | 2255 | $as_echo_n "(cached) " >&6 |
5951ef33 AK |
2256 | else |
2257 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2258 | for ac_i in 1 2 3 4 5 6 7; do | |
2259 | ac_script="$ac_script$as_nl$ac_script" | |
2260 | done | |
ec6a6fbe | 2261 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
5951ef33 | 2262 | $as_unset ac_script || ac_script= |
ec6a6fbe | 2263 | if test -z "$SED"; then |
5951ef33 | 2264 | ac_path_SED_found=false |
ec6a6fbe AK |
2265 | # Loop through the user's path and test for each of PROGNAME-LIST |
2266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5951ef33 AK |
2267 | for as_dir in $PATH |
2268 | do | |
2269 | IFS=$as_save_IFS | |
2270 | test -z "$as_dir" && as_dir=. | |
2271 | for ac_prog in sed gsed; do | |
ec6a6fbe AK |
2272 | for ac_exec_ext in '' $ac_executable_extensions; do |
2273 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2274 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2275 | # Check for GNU ac_path_SED and select it if it is found. | |
5951ef33 AK |
2276 | # Check for GNU $ac_path_SED |
2277 | case `"$ac_path_SED" --version 2>&1` in | |
2278 | *GNU*) | |
2279 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2280 | *) | |
2281 | ac_count=0 | |
ec6a6fbe | 2282 | $as_echo_n 0123456789 >"conftest.in" |
5951ef33 AK |
2283 | while : |
2284 | do | |
2285 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2286 | mv "conftest.tmp" "conftest.in" | |
2287 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 2288 | $as_echo '' >> "conftest.nl" |
5951ef33 AK |
2289 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
2290 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2291 | ac_count=`expr $ac_count + 1` | |
2292 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2293 | # Best one so far, save it but keep looking for a better one | |
2294 | ac_cv_path_SED="$ac_path_SED" | |
2295 | ac_path_SED_max=$ac_count | |
2296 | fi | |
2297 | # 10*(2^10) chars as input seems more than enough | |
2298 | test $ac_count -gt 10 && break | |
2299 | done | |
2300 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2301 | esac | |
2302 | ||
ec6a6fbe AK |
2303 | $ac_path_SED_found && break 3 |
2304 | done | |
5951ef33 AK |
2305 | done |
2306 | done | |
5951ef33 | 2307 | IFS=$as_save_IFS |
ec6a6fbe AK |
2308 | if test -z "$ac_cv_path_SED"; then |
2309 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 | |
2310 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} | |
5951ef33 | 2311 | { (exit 1); exit 1; }; } |
ec6a6fbe | 2312 | fi |
5951ef33 AK |
2313 | else |
2314 | ac_cv_path_SED=$SED | |
2315 | fi | |
2316 | ||
2317 | fi | |
ec6a6fbe AK |
2318 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
2319 | $as_echo "$ac_cv_path_SED" >&6; } | |
5951ef33 AK |
2320 | SED="$ac_cv_path_SED" |
2321 | rm -f conftest.sed | |
2322 | ||
ad6254c5 | 2323 | for ac_prog in gawk mawk nawk awk |
795ca3e5 | 2324 | do |
ad6254c5 | 2325 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
795ca3e5 | 2326 | set dummy $ac_prog; ac_word=$2 |
ec6a6fbe AK |
2327 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2328 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2329 | if test "${ac_cv_prog_AWK+set}" = set; then |
ec6a6fbe | 2330 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2331 | else |
2332 | if test -n "$AWK"; then | |
2333 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2334 | else | |
ad6254c5 AK |
2335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2336 | for as_dir in $PATH | |
2337 | do | |
2338 | IFS=$as_save_IFS | |
2339 | test -z "$as_dir" && as_dir=. | |
2340 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2341 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2342 | ac_cv_prog_AWK="$ac_prog" |
ec6a6fbe | 2343 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2344 | break 2 |
2345 | fi | |
2346 | done | |
2347 | done | |
7a197a62 | 2348 | IFS=$as_save_IFS |
ad6254c5 | 2349 | |
795ca3e5 AK |
2350 | fi |
2351 | fi | |
ad6254c5 | 2352 | AWK=$ac_cv_prog_AWK |
795ca3e5 | 2353 | if test -n "$AWK"; then |
ec6a6fbe AK |
2354 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
2355 | $as_echo "$AWK" >&6; } | |
795ca3e5 | 2356 | else |
ec6a6fbe AK |
2357 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2358 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2359 | fi |
2360 | ||
7a197a62 | 2361 | |
ad6254c5 AK |
2362 | test -n "$AWK" && break |
2363 | done | |
2364 | ||
2365 | ac_ext=c | |
2366 | ac_cpp='$CPP $CPPFLAGS' | |
2367 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2368 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2369 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2370 | if test -n "$ac_tool_prefix"; then | |
2371 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2372 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
ec6a6fbe AK |
2373 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2374 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2375 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2376 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2377 | else |
2378 | if test -n "$CC"; then | |
2379 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2380 | else | |
2381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2382 | for as_dir in $PATH | |
2383 | do | |
2384 | IFS=$as_save_IFS | |
2385 | test -z "$as_dir" && as_dir=. | |
2386 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2387 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2388 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
ec6a6fbe | 2389 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2390 | break 2 |
2391 | fi | |
2392 | done | |
8106cdd5 | 2393 | done |
7a197a62 | 2394 | IFS=$as_save_IFS |
8106cdd5 | 2395 | |
ad6254c5 AK |
2396 | fi |
2397 | fi | |
2398 | CC=$ac_cv_prog_CC | |
2399 | if test -n "$CC"; then | |
ec6a6fbe AK |
2400 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2401 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2402 | else |
ec6a6fbe AK |
2403 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2404 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2405 | fi |
2406 | ||
7a197a62 | 2407 | |
ad6254c5 AK |
2408 | fi |
2409 | if test -z "$ac_cv_prog_CC"; then | |
2410 | ac_ct_CC=$CC | |
2411 | # Extract the first word of "gcc", so it can be a program name with args. | |
8106cdd5 | 2412 | set dummy gcc; ac_word=$2 |
ec6a6fbe AK |
2413 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2414 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2415 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2416 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2417 | else |
2418 | if test -n "$ac_ct_CC"; then | |
2419 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2420 | else | |
2421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2422 | for as_dir in $PATH | |
2423 | do | |
2424 | IFS=$as_save_IFS | |
2425 | test -z "$as_dir" && as_dir=. | |
2426 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2427 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2428 | ac_cv_prog_ac_ct_CC="gcc" |
ec6a6fbe | 2429 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2430 | break 2 |
2431 | fi | |
2432 | done | |
2433 | done | |
7a197a62 | 2434 | IFS=$as_save_IFS |
ad6254c5 AK |
2435 | |
2436 | fi | |
2437 | fi | |
2438 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2439 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2440 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2441 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2442 | else |
ec6a6fbe AK |
2443 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2444 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2445 | fi |
2446 | ||
7a197a62 AK |
2447 | if test "x$ac_ct_CC" = x; then |
2448 | CC="" | |
2449 | else | |
2450 | case $cross_compiling:$ac_tool_warned in | |
2451 | yes:) | |
ec6a6fbe AK |
2452 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2453 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2454 | ac_tool_warned=yes ;; |
2455 | esac | |
2456 | CC=$ac_ct_CC | |
2457 | fi | |
ad6254c5 AK |
2458 | else |
2459 | CC="$ac_cv_prog_CC" | |
2460 | fi | |
2461 | ||
2462 | if test -z "$CC"; then | |
7a197a62 AK |
2463 | if test -n "$ac_tool_prefix"; then |
2464 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
ad6254c5 | 2465 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
ec6a6fbe AK |
2466 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2467 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2468 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2469 | $as_echo_n "(cached) " >&6 |
8106cdd5 AK |
2470 | else |
2471 | if test -n "$CC"; then | |
2472 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2473 | else | |
ad6254c5 AK |
2474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2475 | for as_dir in $PATH | |
2476 | do | |
2477 | IFS=$as_save_IFS | |
2478 | test -z "$as_dir" && as_dir=. | |
2479 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2480 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2481 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
ec6a6fbe | 2482 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2483 | break 2 |
2484 | fi | |
2485 | done | |
2486 | done | |
7a197a62 | 2487 | IFS=$as_save_IFS |
ad6254c5 | 2488 | |
8106cdd5 AK |
2489 | fi |
2490 | fi | |
ad6254c5 | 2491 | CC=$ac_cv_prog_CC |
8106cdd5 | 2492 | if test -n "$CC"; then |
ec6a6fbe AK |
2493 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2494 | $as_echo "$CC" >&6; } | |
ad6254c5 | 2495 | else |
ec6a6fbe AK |
2496 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2497 | $as_echo "no" >&6; } | |
ad6254c5 AK |
2498 | fi |
2499 | ||
8106cdd5 | 2500 | |
7a197a62 | 2501 | fi |
ad6254c5 | 2502 | fi |
795ca3e5 AK |
2503 | if test -z "$CC"; then |
2504 | # Extract the first word of "cc", so it can be a program name with args. | |
2505 | set dummy cc; ac_word=$2 | |
ec6a6fbe AK |
2506 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2507 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2508 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2509 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2510 | else |
2511 | if test -n "$CC"; then | |
2512 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2513 | else | |
795ca3e5 | 2514 | ac_prog_rejected=no |
ad6254c5 AK |
2515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2516 | for as_dir in $PATH | |
2517 | do | |
2518 | IFS=$as_save_IFS | |
2519 | test -z "$as_dir" && as_dir=. | |
2520 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2521 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 AK |
2522 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2523 | ac_prog_rejected=yes | |
2524 | continue | |
2525 | fi | |
2526 | ac_cv_prog_CC="cc" | |
ec6a6fbe | 2527 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2528 | break 2 |
2529 | fi | |
2530 | done | |
2531 | done | |
7a197a62 | 2532 | IFS=$as_save_IFS |
ad6254c5 | 2533 | |
795ca3e5 AK |
2534 | if test $ac_prog_rejected = yes; then |
2535 | # We found a bogon in the path, so make sure we never use it. | |
2536 | set dummy $ac_cv_prog_CC | |
2537 | shift | |
ad6254c5 | 2538 | if test $# != 0; then |
795ca3e5 AK |
2539 | # We chose a different compiler from the bogus one. |
2540 | # However, it has the same basename, so the bogon will be chosen | |
2541 | # first if we set CC to just the basename; use the full file name. | |
2542 | shift | |
ad6254c5 | 2543 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
795ca3e5 AK |
2544 | fi |
2545 | fi | |
2546 | fi | |
2547 | fi | |
ad6254c5 | 2548 | CC=$ac_cv_prog_CC |
795ca3e5 | 2549 | if test -n "$CC"; then |
ec6a6fbe AK |
2550 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2551 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2552 | else |
ec6a6fbe AK |
2553 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2554 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2555 | fi |
2556 | ||
7a197a62 | 2557 | |
ad6254c5 AK |
2558 | fi |
2559 | if test -z "$CC"; then | |
2560 | if test -n "$ac_tool_prefix"; then | |
7a197a62 | 2561 | for ac_prog in cl.exe |
ad6254c5 AK |
2562 | do |
2563 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2564 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2565 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2566 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2567 | if test "${ac_cv_prog_CC+set}" = set; then |
ec6a6fbe | 2568 | $as_echo_n "(cached) " >&6 |
795ca3e5 AK |
2569 | else |
2570 | if test -n "$CC"; then | |
2571 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2572 | else | |
ad6254c5 AK |
2573 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2574 | for as_dir in $PATH | |
2575 | do | |
2576 | IFS=$as_save_IFS | |
2577 | test -z "$as_dir" && as_dir=. | |
2578 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2579 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2580 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
ec6a6fbe | 2581 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
2582 | break 2 |
2583 | fi | |
2584 | done | |
2585 | done | |
7a197a62 | 2586 | IFS=$as_save_IFS |
ad6254c5 | 2587 | |
795ca3e5 AK |
2588 | fi |
2589 | fi | |
ad6254c5 | 2590 | CC=$ac_cv_prog_CC |
795ca3e5 | 2591 | if test -n "$CC"; then |
ec6a6fbe AK |
2592 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
2593 | $as_echo "$CC" >&6; } | |
795ca3e5 | 2594 | else |
ec6a6fbe AK |
2595 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2596 | $as_echo "no" >&6; } | |
795ca3e5 | 2597 | fi |
ad6254c5 | 2598 | |
7a197a62 | 2599 | |
ad6254c5 AK |
2600 | test -n "$CC" && break |
2601 | done | |
2602 | fi | |
2603 | if test -z "$CC"; then | |
2604 | ac_ct_CC=$CC | |
7a197a62 | 2605 | for ac_prog in cl.exe |
ad6254c5 AK |
2606 | do |
2607 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2608 | set dummy $ac_prog; ac_word=$2 | |
ec6a6fbe AK |
2609 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2610 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 2611 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
ec6a6fbe | 2612 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2613 | else |
2614 | if test -n "$ac_ct_CC"; then | |
2615 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2616 | else | |
2617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2618 | for as_dir in $PATH | |
2619 | do | |
2620 | IFS=$as_save_IFS | |
2621 | test -z "$as_dir" && as_dir=. | |
2622 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 2623 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 2624 | ac_cv_prog_ac_ct_CC="$ac_prog" |
ec6a6fbe | 2625 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 | 2626 | break 2 |
795ca3e5 | 2627 | fi |
ad6254c5 AK |
2628 | done |
2629 | done | |
7a197a62 | 2630 | IFS=$as_save_IFS |
ad6254c5 AK |
2631 | |
2632 | fi | |
2633 | fi | |
2634 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2635 | if test -n "$ac_ct_CC"; then | |
ec6a6fbe AK |
2636 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2637 | $as_echo "$ac_ct_CC" >&6; } | |
ad6254c5 | 2638 | else |
ec6a6fbe AK |
2639 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
2640 | $as_echo "no" >&6; } | |
795ca3e5 AK |
2641 | fi |
2642 | ||
7a197a62 | 2643 | |
ad6254c5 AK |
2644 | test -n "$ac_ct_CC" && break |
2645 | done | |
795ca3e5 | 2646 | |
7a197a62 AK |
2647 | if test "x$ac_ct_CC" = x; then |
2648 | CC="" | |
2649 | else | |
2650 | case $cross_compiling:$ac_tool_warned in | |
2651 | yes:) | |
ec6a6fbe AK |
2652 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
2653 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7a197a62 AK |
2654 | ac_tool_warned=yes ;; |
2655 | esac | |
2656 | CC=$ac_ct_CC | |
2657 | fi | |
ad6254c5 AK |
2658 | fi |
2659 | ||
2660 | fi | |
2661 | ||
2662 | ||
ec6a6fbe AK |
2663 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2664 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2665 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
ad6254c5 | 2666 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2667 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
ad6254c5 | 2668 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2669 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2670 | |
2671 | # Provide some information about the compiler. | |
ec6a6fbe AK |
2672 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2673 | set X $ac_compile | |
2674 | ac_compiler=$2 | |
7a197a62 AK |
2675 | { (ac_try="$ac_compiler --version >&5" |
2676 | case "(($ac_try" in | |
2677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2678 | *) ac_try_echo=$ac_try;; | |
2679 | esac | |
ec6a6fbe AK |
2680 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2681 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2682 | (eval "$ac_compiler --version >&5") 2>&5 |
ad6254c5 | 2683 | ac_status=$? |
ec6a6fbe | 2684 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2685 | (exit $ac_status); } |
7a197a62 AK |
2686 | { (ac_try="$ac_compiler -v >&5" |
2687 | case "(($ac_try" in | |
2688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2689 | *) ac_try_echo=$ac_try;; | |
2690 | esac | |
ec6a6fbe AK |
2691 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2692 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2693 | (eval "$ac_compiler -v >&5") 2>&5 |
ad6254c5 | 2694 | ac_status=$? |
ec6a6fbe | 2695 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2696 | (exit $ac_status); } |
7a197a62 AK |
2697 | { (ac_try="$ac_compiler -V >&5" |
2698 | case "(($ac_try" in | |
2699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2700 | *) ac_try_echo=$ac_try;; | |
2701 | esac | |
ec6a6fbe AK |
2702 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2703 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2704 | (eval "$ac_compiler -V >&5") 2>&5 |
ad6254c5 | 2705 | ac_status=$? |
ec6a6fbe | 2706 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2707 | (exit $ac_status); } |
2708 | ||
2709 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2710 | /* confdefs.h. */ |
2711 | _ACEOF | |
2712 | cat confdefs.h >>conftest.$ac_ext | |
2713 | cat >>conftest.$ac_ext <<_ACEOF | |
2714 | /* end confdefs.h. */ | |
2715 | ||
2716 | int | |
2717 | main () | |
2718 | { | |
2719 | ||
2720 | ; | |
2721 | return 0; | |
2722 | } | |
2723 | _ACEOF | |
2724 | ac_clean_files_save=$ac_clean_files | |
ec6a6fbe | 2725 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
ad6254c5 AK |
2726 | # Try to create an executable without -o first, disregard a.out. |
2727 | # It will help us diagnose broken compilers, and finding out an intuition | |
2728 | # of exeext. | |
ec6a6fbe AK |
2729 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2730 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2731 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2732 | ||
2733 | # The possible output files: | |
2734 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2735 | ||
7a197a62 AK |
2736 | ac_rmfiles= |
2737 | for ac_file in $ac_files | |
2738 | do | |
2739 | case $ac_file in | |
ec6a6fbe | 2740 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7a197a62 AK |
2741 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2742 | esac | |
2743 | done | |
2744 | rm -f $ac_rmfiles | |
2745 | ||
2746 | if { (ac_try="$ac_link_default" | |
2747 | case "(($ac_try" in | |
2748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2749 | *) ac_try_echo=$ac_try;; | |
2750 | esac | |
ec6a6fbe AK |
2751 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2752 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2753 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 2754 | ac_status=$? |
ec6a6fbe | 2755 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2756 | (exit $ac_status); }; then |
7a197a62 AK |
2757 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2758 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2759 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2760 | # so that the user can short-circuit this test for compilers unknown to | |
2761 | # Autoconf. | |
25fbec5b | 2762 | for ac_file in $ac_files '' |
ad6254c5 AK |
2763 | do |
2764 | test -f "$ac_file" || continue | |
2765 | case $ac_file in | |
ec6a6fbe | 2766 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
8a2fc586 | 2767 | ;; |
ad6254c5 | 2768 | [ab].out ) |
8a2fc586 AK |
2769 | # We found the default executable, but exeext='' is most |
2770 | # certainly right. | |
2771 | break;; | |
ad6254c5 | 2772 | *.* ) |
7a197a62 AK |
2773 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2774 | then :; else | |
2775 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2776 | fi | |
2777 | # We set ac_cv_exeext here because the later test for it is not | |
2778 | # safe: cross compilers may not add the suffix if given an `-o' | |
2779 | # argument, so we may need to know it at that point already. | |
2780 | # Even if this section looks crufty: it has the advantage of | |
2781 | # actually working. | |
8a2fc586 | 2782 | break;; |
ad6254c5 | 2783 | * ) |
8a2fc586 | 2784 | break;; |
ad6254c5 AK |
2785 | esac |
2786 | done | |
7a197a62 AK |
2787 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2788 | ||
ad6254c5 | 2789 | else |
25fbec5b AK |
2790 | ac_file='' |
2791 | fi | |
2792 | ||
ec6a6fbe AK |
2793 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
2794 | $as_echo "$ac_file" >&6; } | |
25fbec5b | 2795 | if test -z "$ac_file"; then |
ec6a6fbe | 2796 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2797 | sed 's/^/| /' conftest.$ac_ext >&5 |
2798 | ||
ec6a6fbe AK |
2799 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2800 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2801 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
ad6254c5 | 2802 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2803 | $as_echo "$as_me: error: C compiler cannot create executables |
ad6254c5 | 2804 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2805 | { (exit 77); exit 77; }; }; } |
ad6254c5 AK |
2806 | fi |
2807 | ||
2808 | ac_exeext=$ac_cv_exeext | |
ad6254c5 | 2809 | |
7a197a62 | 2810 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2811 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2812 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2813 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
ad6254c5 AK |
2814 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2815 | # If not cross compiling, check that we can run a simple program. | |
2816 | if test "$cross_compiling" != yes; then | |
2817 | if { ac_try='./$ac_file' | |
7a197a62 AK |
2818 | { (case "(($ac_try" in |
2819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2820 | *) ac_try_echo=$ac_try;; | |
2821 | esac | |
ec6a6fbe AK |
2822 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2823 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2824 | (eval "$ac_try") 2>&5 |
ad6254c5 | 2825 | ac_status=$? |
ec6a6fbe | 2826 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2827 | (exit $ac_status); }; }; then |
2828 | cross_compiling=no | |
795ca3e5 | 2829 | else |
ad6254c5 AK |
2830 | if test "$cross_compiling" = maybe; then |
2831 | cross_compiling=yes | |
2832 | else | |
ec6a6fbe AK |
2833 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2834 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2835 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
ad6254c5 AK |
2836 | If you meant to cross compile, use \`--host'. |
2837 | See \`config.log' for more details." >&5 | |
ec6a6fbe | 2838 | $as_echo "$as_me: error: cannot run C compiled programs. |
ad6254c5 AK |
2839 | If you meant to cross compile, use \`--host'. |
2840 | See \`config.log' for more details." >&2;} | |
ec6a6fbe | 2841 | { (exit 1); exit 1; }; }; } |
ad6254c5 | 2842 | fi |
795ca3e5 | 2843 | fi |
80992638 | 2844 | fi |
ec6a6fbe AK |
2845 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
2846 | $as_echo "yes" >&6; } | |
ad6254c5 | 2847 | |
ec6a6fbe | 2848 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
ad6254c5 | 2849 | ac_clean_files=$ac_clean_files_save |
7a197a62 | 2850 | # Check that the compiler produces executables we can run. If not, either |
ad6254c5 | 2851 | # the compiler is broken, or we cross compile. |
ec6a6fbe AK |
2852 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2853 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2854 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2855 | $as_echo "$cross_compiling" >&6; } | |
7a197a62 | 2856 | |
ec6a6fbe AK |
2857 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2858 | $as_echo_n "checking for suffix of executables... " >&6; } | |
7a197a62 AK |
2859 | if { (ac_try="$ac_link" |
2860 | case "(($ac_try" in | |
2861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2862 | *) ac_try_echo=$ac_try;; | |
2863 | esac | |
ec6a6fbe AK |
2864 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2865 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2866 | (eval "$ac_link") 2>&5 |
ad6254c5 | 2867 | ac_status=$? |
ec6a6fbe | 2868 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
2869 | (exit $ac_status); }; then |
2870 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2871 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2872 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2873 | # `rm'. | |
2874 | for ac_file in conftest.exe conftest conftest.*; do | |
2875 | test -f "$ac_file" || continue | |
2876 | case $ac_file in | |
ec6a6fbe | 2877 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
ad6254c5 | 2878 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
8a2fc586 | 2879 | break;; |
ad6254c5 AK |
2880 | * ) break;; |
2881 | esac | |
2882 | done | |
80992638 | 2883 | else |
ec6a6fbe AK |
2884 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2885 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2886 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
ad6254c5 | 2887 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2888 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
ad6254c5 | 2889 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2890 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2891 | fi |
2892 | ||
2893 | rm -f conftest$ac_cv_exeext | |
ec6a6fbe AK |
2894 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2895 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 AK |
2896 | |
2897 | rm -f conftest.$ac_ext | |
2898 | EXEEXT=$ac_cv_exeext | |
2899 | ac_exeext=$EXEEXT | |
ec6a6fbe AK |
2900 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2901 | $as_echo_n "checking for suffix of object files... " >&6; } | |
ad6254c5 | 2902 | if test "${ac_cv_objext+set}" = set; then |
ec6a6fbe | 2903 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2904 | else |
ad6254c5 | 2905 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
2906 | /* confdefs.h. */ |
2907 | _ACEOF | |
2908 | cat confdefs.h >>conftest.$ac_ext | |
2909 | cat >>conftest.$ac_ext <<_ACEOF | |
2910 | /* end confdefs.h. */ | |
2911 | ||
2912 | int | |
2913 | main () | |
2914 | { | |
2915 | ||
2916 | ; | |
2917 | return 0; | |
2918 | } | |
2919 | _ACEOF | |
2920 | rm -f conftest.o conftest.obj | |
7a197a62 AK |
2921 | if { (ac_try="$ac_compile" |
2922 | case "(($ac_try" in | |
2923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2924 | *) ac_try_echo=$ac_try;; | |
2925 | esac | |
ec6a6fbe AK |
2926 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2927 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2928 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 2929 | ac_status=$? |
ec6a6fbe | 2930 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 2931 | (exit $ac_status); }; then |
7a197a62 AK |
2932 | for ac_file in conftest.o conftest.obj conftest.*; do |
2933 | test -f "$ac_file" || continue; | |
ad6254c5 | 2934 | case $ac_file in |
ec6a6fbe | 2935 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
ad6254c5 AK |
2936 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2937 | break;; | |
2938 | esac | |
2939 | done | |
2940 | else | |
ec6a6fbe | 2941 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2942 | sed 's/^/| /' conftest.$ac_ext >&5 |
2943 | ||
ec6a6fbe AK |
2944 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2945 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2946 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
ad6254c5 | 2947 | See \`config.log' for more details." >&5 |
ec6a6fbe | 2948 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
ad6254c5 | 2949 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 2950 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
2951 | fi |
2952 | ||
2953 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2954 | fi | |
ec6a6fbe AK |
2955 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2956 | $as_echo "$ac_cv_objext" >&6; } | |
ad6254c5 AK |
2957 | OBJEXT=$ac_cv_objext |
2958 | ac_objext=$OBJEXT | |
ec6a6fbe AK |
2959 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2960 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
ad6254c5 | 2961 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
ec6a6fbe | 2962 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
2963 | else |
2964 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
2965 | /* confdefs.h. */ |
2966 | _ACEOF | |
2967 | cat confdefs.h >>conftest.$ac_ext | |
2968 | cat >>conftest.$ac_ext <<_ACEOF | |
2969 | /* end confdefs.h. */ | |
2970 | ||
2971 | int | |
2972 | main () | |
2973 | { | |
2974 | #ifndef __GNUC__ | |
2975 | choke me | |
2976 | #endif | |
80992638 | 2977 | |
ad6254c5 AK |
2978 | ; |
2979 | return 0; | |
2980 | } | |
2981 | _ACEOF | |
2982 | rm -f conftest.$ac_objext | |
7a197a62 AK |
2983 | if { (ac_try="$ac_compile" |
2984 | case "(($ac_try" in | |
2985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2986 | *) ac_try_echo=$ac_try;; | |
2987 | esac | |
ec6a6fbe AK |
2988 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
2989 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 2990 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 2991 | ac_status=$? |
8a2fc586 AK |
2992 | grep -v '^ *+' conftest.er1 >conftest.err |
2993 | rm -f conftest.er1 | |
2994 | cat conftest.err >&5 | |
ec6a6fbe | 2995 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
2996 | (exit $ac_status); } && { |
2997 | test -z "$ac_c_werror_flag" || | |
2998 | test ! -s conftest.err | |
2999 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 3000 | ac_compiler_gnu=yes |
80992638 | 3001 | else |
ec6a6fbe | 3002 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3003 | sed 's/^/| /' conftest.$ac_ext >&5 |
3004 | ||
7a197a62 | 3005 | ac_compiler_gnu=no |
8106cdd5 | 3006 | fi |
7a197a62 AK |
3007 | |
3008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 3009 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
80992638 | 3010 | |
ad6254c5 | 3011 | fi |
ec6a6fbe AK |
3012 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3013 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3014 | if test $ac_compiler_gnu = yes; then | |
3015 | GCC=yes | |
3016 | else | |
3017 | GCC= | |
3018 | fi | |
ad6254c5 AK |
3019 | ac_test_CFLAGS=${CFLAGS+set} |
3020 | ac_save_CFLAGS=$CFLAGS | |
ec6a6fbe AK |
3021 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3022 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
ad6254c5 | 3023 | if test "${ac_cv_prog_cc_g+set}" = set; then |
ec6a6fbe | 3024 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 3025 | else |
7a197a62 AK |
3026 | ac_save_c_werror_flag=$ac_c_werror_flag |
3027 | ac_c_werror_flag=yes | |
3028 | ac_cv_prog_cc_g=no | |
3029 | CFLAGS="-g" | |
3030 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3031 | /* confdefs.h. */ |
3032 | _ACEOF | |
3033 | cat confdefs.h >>conftest.$ac_ext | |
3034 | cat >>conftest.$ac_ext <<_ACEOF | |
3035 | /* end confdefs.h. */ | |
3036 | ||
3037 | int | |
3038 | main () | |
3039 | { | |
3040 | ||
3041 | ; | |
3042 | return 0; | |
3043 | } | |
3044 | _ACEOF | |
3045 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3046 | if { (ac_try="$ac_compile" |
3047 | case "(($ac_try" in | |
3048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3049 | *) ac_try_echo=$ac_try;; | |
3050 | esac | |
ec6a6fbe AK |
3051 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3052 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3053 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3054 | ac_status=$? |
8a2fc586 AK |
3055 | grep -v '^ *+' conftest.er1 >conftest.err |
3056 | rm -f conftest.er1 | |
3057 | cat conftest.err >&5 | |
ec6a6fbe | 3058 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3059 | (exit $ac_status); } && { |
3060 | test -z "$ac_c_werror_flag" || | |
3061 | test ! -s conftest.err | |
3062 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3063 | ac_cv_prog_cc_g=yes |
3064 | else | |
ec6a6fbe | 3065 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3066 | sed 's/^/| /' conftest.$ac_ext >&5 |
3067 | ||
3068 | CFLAGS="" | |
3069 | cat >conftest.$ac_ext <<_ACEOF | |
3070 | /* confdefs.h. */ | |
3071 | _ACEOF | |
3072 | cat confdefs.h >>conftest.$ac_ext | |
3073 | cat >>conftest.$ac_ext <<_ACEOF | |
3074 | /* end confdefs.h. */ | |
3075 | ||
3076 | int | |
3077 | main () | |
3078 | { | |
3079 | ||
3080 | ; | |
3081 | return 0; | |
3082 | } | |
3083 | _ACEOF | |
3084 | rm -f conftest.$ac_objext | |
3085 | if { (ac_try="$ac_compile" | |
3086 | case "(($ac_try" in | |
3087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3088 | *) ac_try_echo=$ac_try;; | |
3089 | esac | |
ec6a6fbe AK |
3090 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3091 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3092 | (eval "$ac_compile") 2>conftest.er1 |
8a2fc586 | 3093 | ac_status=$? |
7a197a62 AK |
3094 | grep -v '^ *+' conftest.er1 >conftest.err |
3095 | rm -f conftest.er1 | |
3096 | cat conftest.err >&5 | |
ec6a6fbe | 3097 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3098 | (exit $ac_status); } && { |
3099 | test -z "$ac_c_werror_flag" || | |
3100 | test ! -s conftest.err | |
3101 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
3102 | : |
3103 | else | |
ec6a6fbe | 3104 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
3105 | sed 's/^/| /' conftest.$ac_ext >&5 |
3106 | ||
3107 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3108 | CFLAGS="-g" | |
3109 | cat >conftest.$ac_ext <<_ACEOF | |
3110 | /* confdefs.h. */ | |
3111 | _ACEOF | |
3112 | cat confdefs.h >>conftest.$ac_ext | |
3113 | cat >>conftest.$ac_ext <<_ACEOF | |
3114 | /* end confdefs.h. */ | |
3115 | ||
3116 | int | |
3117 | main () | |
3118 | { | |
3119 | ||
3120 | ; | |
3121 | return 0; | |
3122 | } | |
3123 | _ACEOF | |
3124 | rm -f conftest.$ac_objext | |
3125 | if { (ac_try="$ac_compile" | |
3126 | case "(($ac_try" in | |
3127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3128 | *) ac_try_echo=$ac_try;; | |
3129 | esac | |
ec6a6fbe AK |
3130 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3131 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3132 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3133 | ac_status=$? |
7a197a62 AK |
3134 | grep -v '^ *+' conftest.er1 >conftest.err |
3135 | rm -f conftest.er1 | |
3136 | cat conftest.err >&5 | |
ec6a6fbe | 3137 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3138 | (exit $ac_status); } && { |
3139 | test -z "$ac_c_werror_flag" || | |
3140 | test ! -s conftest.err | |
3141 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
3142 | ac_cv_prog_cc_g=yes |
3143 | else | |
ec6a6fbe | 3144 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 3145 | sed 's/^/| /' conftest.$ac_ext >&5 |
80992638 | 3146 | |
7a197a62 AK |
3147 | |
3148 | fi | |
3149 | ||
3150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3151 | fi | |
3152 | ||
3153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8106cdd5 | 3154 | fi |
7a197a62 AK |
3155 | |
3156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3157 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ad6254c5 | 3158 | fi |
ec6a6fbe AK |
3159 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3160 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
795ca3e5 | 3161 | if test "$ac_test_CFLAGS" = set; then |
ad6254c5 | 3162 | CFLAGS=$ac_save_CFLAGS |
795ca3e5 AK |
3163 | elif test $ac_cv_prog_cc_g = yes; then |
3164 | if test "$GCC" = yes; then | |
3165 | CFLAGS="-g -O2" | |
3166 | else | |
3167 | CFLAGS="-g" | |
3168 | fi | |
3169 | else | |
3170 | if test "$GCC" = yes; then | |
3171 | CFLAGS="-O2" | |
3172 | else | |
3173 | CFLAGS= | |
3174 | fi | |
3175 | fi | |
ec6a6fbe AK |
3176 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3177 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
7a197a62 | 3178 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
ec6a6fbe | 3179 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3180 | else |
7a197a62 | 3181 | ac_cv_prog_cc_c89=no |
ad6254c5 AK |
3182 | ac_save_CC=$CC |
3183 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3184 | /* confdefs.h. */ |
3185 | _ACEOF | |
3186 | cat confdefs.h >>conftest.$ac_ext | |
3187 | cat >>conftest.$ac_ext <<_ACEOF | |
3188 | /* end confdefs.h. */ | |
3189 | #include <stdarg.h> | |
3190 | #include <stdio.h> | |
3191 | #include <sys/types.h> | |
3192 | #include <sys/stat.h> | |
3193 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3194 | struct buf { int x; }; | |
3195 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3196 | static char *e (p, i) | |
3197 | char **p; | |
3198 | int i; | |
3199 | { | |
3200 | return p[i]; | |
3201 | } | |
3202 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3203 | { | |
3204 | char *s; | |
3205 | va_list v; | |
3206 | va_start (v,p); | |
3207 | s = g (p, va_arg (v,int)); | |
3208 | va_end (v); | |
3209 | return s; | |
3210 | } | |
8a2fc586 AK |
3211 | |
3212 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3213 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3214 | These don't provoke an error unfortunately, instead are silently treated | |
7a197a62 | 3215 | as 'x'. The following induces an error, until -std is added to get |
8a2fc586 AK |
3216 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3217 | array size at least. It's necessary to write '\x00'==0 to get something | |
7a197a62 | 3218 | that's true only with -std. */ |
8a2fc586 AK |
3219 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3220 | ||
7a197a62 AK |
3221 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3222 | inside strings and character constants. */ | |
3223 | #define FOO(x) 'x' | |
3224 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3225 | ||
ad6254c5 AK |
3226 | int test (int i, double x); |
3227 | struct s1 {int (*f) (int a);}; | |
3228 | struct s2 {int (*f) (double a);}; | |
3229 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3230 | int argc; | |
3231 | char **argv; | |
3232 | int | |
3233 | main () | |
3234 | { | |
3235 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3236 | ; | |
3237 | return 0; | |
3238 | } | |
3239 | _ACEOF | |
7a197a62 AK |
3240 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3241 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
ad6254c5 AK |
3242 | do |
3243 | CC="$ac_save_CC $ac_arg" | |
3244 | rm -f conftest.$ac_objext | |
7a197a62 AK |
3245 | if { (ac_try="$ac_compile" |
3246 | case "(($ac_try" in | |
3247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3248 | *) ac_try_echo=$ac_try;; | |
3249 | esac | |
ec6a6fbe AK |
3250 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3251 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 3252 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 3253 | ac_status=$? |
8a2fc586 AK |
3254 | grep -v '^ *+' conftest.er1 >conftest.err |
3255 | rm -f conftest.er1 | |
3256 | cat conftest.err >&5 | |
ec6a6fbe | 3257 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
3258 | (exit $ac_status); } && { |
3259 | test -z "$ac_c_werror_flag" || | |
3260 | test ! -s conftest.err | |
3261 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 3262 | ac_cv_prog_cc_c89=$ac_arg |
ad6254c5 | 3263 | else |
ec6a6fbe | 3264 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3265 | sed 's/^/| /' conftest.$ac_ext >&5 |
3266 | ||
7a197a62 | 3267 | |
ad6254c5 | 3268 | fi |
7a197a62 AK |
3269 | |
3270 | rm -f core conftest.err conftest.$ac_objext | |
3271 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
ad6254c5 | 3272 | done |
7a197a62 | 3273 | rm -f conftest.$ac_ext |
ad6254c5 AK |
3274 | CC=$ac_save_CC |
3275 | ||
3276 | fi | |
7a197a62 AK |
3277 | # AC_CACHE_VAL |
3278 | case "x$ac_cv_prog_cc_c89" in | |
3279 | x) | |
ec6a6fbe AK |
3280 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
3281 | $as_echo "none needed" >&6; } ;; | |
7a197a62 | 3282 | xno) |
ec6a6fbe AK |
3283 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
3284 | $as_echo "unsupported" >&6; } ;; | |
ad6254c5 | 3285 | *) |
7a197a62 | 3286 | CC="$CC $ac_cv_prog_cc_c89" |
ec6a6fbe AK |
3287 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3288 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
ad6254c5 AK |
3289 | esac |
3290 | ||
ad6254c5 | 3291 | |
ad6254c5 AK |
3292 | ac_ext=c |
3293 | ac_cpp='$CPP $CPPFLAGS' | |
3294 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3295 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3296 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
795ca3e5 | 3297 | |
d0191583 JM |
3298 | |
3299 | ||
3300 | ac_ext=c | |
3301 | ac_cpp='$CPP $CPPFLAGS' | |
3302 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3303 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3304 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ec6a6fbe AK |
3305 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3306 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
d0191583 JM |
3307 | # On Suns, sometimes $CPP names a directory. |
3308 | if test -n "$CPP" && test -d "$CPP"; then | |
3309 | CPP= | |
3310 | fi | |
3311 | if test -z "$CPP"; then | |
3312 | if test "${ac_cv_prog_CPP+set}" = set; then | |
ec6a6fbe | 3313 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3314 | else |
d0191583 JM |
3315 | # Double quotes because CPP needs to be expanded |
3316 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3317 | do | |
3318 | ac_preproc_ok=false | |
3319 | for ac_c_preproc_warn_flag in '' yes | |
ad6254c5 | 3320 | do |
d0191583 JM |
3321 | # Use a header file that comes with gcc, so configuring glibc |
3322 | # with a fresh cross-compiler works. | |
3323 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3324 | # <limits.h> exists even on freestanding compilers. | |
3325 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3326 | # not just through cpp. "Syntax error" is here to catch this case. | |
3327 | cat >conftest.$ac_ext <<_ACEOF | |
3328 | /* confdefs.h. */ | |
3329 | _ACEOF | |
3330 | cat confdefs.h >>conftest.$ac_ext | |
3331 | cat >>conftest.$ac_ext <<_ACEOF | |
3332 | /* end confdefs.h. */ | |
3333 | #ifdef __STDC__ | |
3334 | # include <limits.h> | |
3335 | #else | |
3336 | # include <assert.h> | |
3337 | #endif | |
3338 | Syntax error | |
3339 | _ACEOF | |
3340 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3341 | case "(($ac_try" in | |
3342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3343 | *) ac_try_echo=$ac_try;; | |
ad6254c5 | 3344 | esac |
ec6a6fbe AK |
3345 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3346 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3347 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3348 | ac_status=$? | |
3349 | grep -v '^ *+' conftest.er1 >conftest.err | |
3350 | rm -f conftest.er1 | |
3351 | cat conftest.err >&5 | |
ec6a6fbe | 3352 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3353 | (exit $ac_status); } >/dev/null && { |
3354 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3355 | test ! -s conftest.err | |
3356 | }; then | |
3357 | : | |
3358 | else | |
ec6a6fbe | 3359 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3360 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3361 | |
d0191583 JM |
3362 | # Broken: fails on valid input. |
3363 | continue | |
795ca3e5 | 3364 | fi |
795ca3e5 | 3365 | |
d0191583 | 3366 | rm -f conftest.err conftest.$ac_ext |
795ca3e5 | 3367 | |
d0191583 JM |
3368 | # OK, works on sane cases. Now check whether nonexistent headers |
3369 | # can be detected and how. | |
3370 | cat >conftest.$ac_ext <<_ACEOF | |
3371 | /* confdefs.h. */ | |
3372 | _ACEOF | |
3373 | cat confdefs.h >>conftest.$ac_ext | |
3374 | cat >>conftest.$ac_ext <<_ACEOF | |
3375 | /* end confdefs.h. */ | |
3376 | #include <ac_nonexistent.h> | |
3377 | _ACEOF | |
3378 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3379 | case "(($ac_try" in | |
3380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3381 | *) ac_try_echo=$ac_try;; | |
3382 | esac | |
ec6a6fbe AK |
3383 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3384 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3385 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3386 | ac_status=$? | |
3387 | grep -v '^ *+' conftest.er1 >conftest.err | |
3388 | rm -f conftest.er1 | |
3389 | cat conftest.err >&5 | |
ec6a6fbe | 3390 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3391 | (exit $ac_status); } >/dev/null && { |
3392 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3393 | test ! -s conftest.err | |
3394 | }; then | |
3395 | # Broken: success on invalid input. | |
3396 | continue | |
3397 | else | |
ec6a6fbe | 3398 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3399 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 3400 | |
d0191583 JM |
3401 | # Passes both tests. |
3402 | ac_preproc_ok=: | |
3403 | break | |
3404 | fi | |
795ca3e5 | 3405 | |
d0191583 JM |
3406 | rm -f conftest.err conftest.$ac_ext |
3407 | ||
3408 | done | |
3409 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3410 | rm -f conftest.err conftest.$ac_ext | |
3411 | if $ac_preproc_ok; then | |
3412 | break | |
795ca3e5 AK |
3413 | fi |
3414 | ||
d0191583 JM |
3415 | done |
3416 | ac_cv_prog_CPP=$CPP | |
3417 | ||
3418 | fi | |
3419 | CPP=$ac_cv_prog_CPP | |
795ca3e5 | 3420 | else |
d0191583 JM |
3421 | ac_cv_prog_CPP=$CPP |
3422 | fi | |
ec6a6fbe AK |
3423 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
3424 | $as_echo "$CPP" >&6; } | |
d0191583 JM |
3425 | ac_preproc_ok=false |
3426 | for ac_c_preproc_warn_flag in '' yes | |
3427 | do | |
3428 | # Use a header file that comes with gcc, so configuring glibc | |
3429 | # with a fresh cross-compiler works. | |
3430 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3431 | # <limits.h> exists even on freestanding compilers. | |
3432 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3433 | # not just through cpp. "Syntax error" is here to catch this case. | |
3434 | cat >conftest.$ac_ext <<_ACEOF | |
3435 | /* confdefs.h. */ | |
ad6254c5 | 3436 | _ACEOF |
d0191583 JM |
3437 | cat confdefs.h >>conftest.$ac_ext |
3438 | cat >>conftest.$ac_ext <<_ACEOF | |
3439 | /* end confdefs.h. */ | |
3440 | #ifdef __STDC__ | |
3441 | # include <limits.h> | |
3442 | #else | |
3443 | # include <assert.h> | |
3444 | #endif | |
3445 | Syntax error | |
3446 | _ACEOF | |
3447 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3448 | case "(($ac_try" in | |
3449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3450 | *) ac_try_echo=$ac_try;; | |
7a197a62 | 3451 | esac |
ec6a6fbe AK |
3452 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3453 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3454 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3455 | ac_status=$? | |
3456 | grep -v '^ *+' conftest.er1 >conftest.err | |
3457 | rm -f conftest.er1 | |
3458 | cat conftest.err >&5 | |
ec6a6fbe | 3459 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3460 | (exit $ac_status); } >/dev/null && { |
3461 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3462 | test ! -s conftest.err | |
3463 | }; then | |
3464 | : | |
795ca3e5 | 3465 | else |
ec6a6fbe | 3466 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
3467 | sed 's/^/| /' conftest.$ac_ext >&5 |
3468 | ||
3469 | # Broken: fails on valid input. | |
3470 | continue | |
795ca3e5 AK |
3471 | fi |
3472 | ||
d0191583 JM |
3473 | rm -f conftest.err conftest.$ac_ext |
3474 | ||
3475 | # OK, works on sane cases. Now check whether nonexistent headers | |
3476 | # can be detected and how. | |
3477 | cat >conftest.$ac_ext <<_ACEOF | |
3478 | /* confdefs.h. */ | |
3479 | _ACEOF | |
3480 | cat confdefs.h >>conftest.$ac_ext | |
3481 | cat >>conftest.$ac_ext <<_ACEOF | |
3482 | /* end confdefs.h. */ | |
3483 | #include <ac_nonexistent.h> | |
3484 | _ACEOF | |
3485 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3486 | case "(($ac_try" in | |
3487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3488 | *) ac_try_echo=$ac_try;; | |
3489 | esac | |
ec6a6fbe AK |
3490 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
3491 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
3492 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3493 | ac_status=$? | |
3494 | grep -v '^ *+' conftest.er1 >conftest.err | |
3495 | rm -f conftest.er1 | |
3496 | cat conftest.err >&5 | |
ec6a6fbe | 3497 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
3498 | (exit $ac_status); } >/dev/null && { |
3499 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3500 | test ! -s conftest.err | |
3501 | }; then | |
3502 | # Broken: success on invalid input. | |
3503 | continue | |
795ca3e5 | 3504 | else |
ec6a6fbe | 3505 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 3506 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 3507 | |
d0191583 JM |
3508 | # Passes both tests. |
3509 | ac_preproc_ok=: | |
3510 | break | |
795ca3e5 | 3511 | fi |
d0191583 JM |
3512 | |
3513 | rm -f conftest.err conftest.$ac_ext | |
3514 | ||
3515 | done | |
3516 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3517 | rm -f conftest.err conftest.$ac_ext | |
3518 | if $ac_preproc_ok; then | |
3519 | : | |
8106cdd5 | 3520 | else |
ec6a6fbe AK |
3521 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3522 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3523 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
d0191583 | 3524 | See \`config.log' for more details." >&5 |
ec6a6fbe | 3525 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
d0191583 | 3526 | See \`config.log' for more details." >&2;} |
ec6a6fbe | 3527 | { (exit 1); exit 1; }; }; } |
8106cdd5 AK |
3528 | fi |
3529 | ||
d0191583 JM |
3530 | ac_ext=c |
3531 | ac_cpp='$CPP $CPPFLAGS' | |
3532 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3533 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3534 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3535 | ||
7a197a62 | 3536 | |
ec6a6fbe AK |
3537 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3538 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5556819a | 3539 | if test "${ac_cv_path_GREP+set}" = set; then |
ec6a6fbe | 3540 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3541 | else |
ec6a6fbe | 3542 | if test -z "$GREP"; then |
d0191583 | 3543 | ac_path_GREP_found=false |
ec6a6fbe AK |
3544 | # Loop through the user's path and test for each of PROGNAME-LIST |
3545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3546 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
ad6254c5 AK |
3547 | do |
3548 | IFS=$as_save_IFS | |
3549 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3550 | for ac_prog in grep ggrep; do |
ec6a6fbe AK |
3551 | for ac_exec_ext in '' $ac_executable_extensions; do |
3552 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3553 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3554 | # Check for GNU ac_path_GREP and select it if it is found. | |
d0191583 JM |
3555 | # Check for GNU $ac_path_GREP |
3556 | case `"$ac_path_GREP" --version 2>&1` in | |
3557 | *GNU*) | |
3558 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3559 | *) | |
3560 | ac_count=0 | |
ec6a6fbe | 3561 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3562 | while : |
3563 | do | |
3564 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3565 | mv "conftest.tmp" "conftest.in" | |
3566 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3567 | $as_echo 'GREP' >> "conftest.nl" |
d0191583 JM |
3568 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3569 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3570 | ac_count=`expr $ac_count + 1` | |
3571 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3572 | # Best one so far, save it but keep looking for a better one | |
3573 | ac_cv_path_GREP="$ac_path_GREP" | |
3574 | ac_path_GREP_max=$ac_count | |
3575 | fi | |
3576 | # 10*(2^10) chars as input seems more than enough | |
3577 | test $ac_count -gt 10 && break | |
3578 | done | |
3579 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3580 | esac | |
3581 | ||
ec6a6fbe AK |
3582 | $ac_path_GREP_found && break 3 |
3583 | done | |
d0191583 | 3584 | done |
ad6254c5 | 3585 | done |
7a197a62 | 3586 | IFS=$as_save_IFS |
ec6a6fbe AK |
3587 | if test -z "$ac_cv_path_GREP"; then |
3588 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3589 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3590 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3591 | fi |
80992638 | 3592 | else |
d0191583 | 3593 | ac_cv_path_GREP=$GREP |
8106cdd5 | 3594 | fi |
8106cdd5 | 3595 | |
80992638 | 3596 | fi |
ec6a6fbe AK |
3597 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3598 | $as_echo "$ac_cv_path_GREP" >&6; } | |
d0191583 | 3599 | GREP="$ac_cv_path_GREP" |
795ca3e5 | 3600 | |
d0191583 | 3601 | |
ec6a6fbe AK |
3602 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
3603 | $as_echo_n "checking for egrep... " >&6; } | |
d0191583 | 3604 | if test "${ac_cv_path_EGREP+set}" = set; then |
ec6a6fbe | 3605 | $as_echo_n "(cached) " >&6 |
8a2fc586 | 3606 | else |
d0191583 JM |
3607 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3608 | then ac_cv_path_EGREP="$GREP -E" | |
3609 | else | |
ec6a6fbe | 3610 | if test -z "$EGREP"; then |
d0191583 | 3611 | ac_path_EGREP_found=false |
ec6a6fbe AK |
3612 | # Loop through the user's path and test for each of PROGNAME-LIST |
3613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d0191583 | 3614 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
8a2fc586 AK |
3615 | do |
3616 | IFS=$as_save_IFS | |
3617 | test -z "$as_dir" && as_dir=. | |
d0191583 | 3618 | for ac_prog in egrep; do |
ec6a6fbe AK |
3619 | for ac_exec_ext in '' $ac_executable_extensions; do |
3620 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3621 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3622 | # Check for GNU ac_path_EGREP and select it if it is found. | |
d0191583 JM |
3623 | # Check for GNU $ac_path_EGREP |
3624 | case `"$ac_path_EGREP" --version 2>&1` in | |
3625 | *GNU*) | |
3626 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3627 | *) | |
3628 | ac_count=0 | |
ec6a6fbe | 3629 | $as_echo_n 0123456789 >"conftest.in" |
d0191583 JM |
3630 | while : |
3631 | do | |
3632 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3633 | mv "conftest.tmp" "conftest.in" | |
3634 | cp "conftest.in" "conftest.nl" | |
ec6a6fbe | 3635 | $as_echo 'EGREP' >> "conftest.nl" |
d0191583 JM |
3636 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3637 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3638 | ac_count=`expr $ac_count + 1` | |
3639 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3640 | # Best one so far, save it but keep looking for a better one | |
3641 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3642 | ac_path_EGREP_max=$ac_count | |
3643 | fi | |
3644 | # 10*(2^10) chars as input seems more than enough | |
3645 | test $ac_count -gt 10 && break | |
3646 | done | |
3647 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
8a2fc586 | 3648 | esac |
8a2fc586 | 3649 | |
ec6a6fbe AK |
3650 | $ac_path_EGREP_found && break 3 |
3651 | done | |
d0191583 | 3652 | done |
8a2fc586 | 3653 | done |
7a197a62 | 3654 | IFS=$as_save_IFS |
ec6a6fbe AK |
3655 | if test -z "$ac_cv_path_EGREP"; then |
3656 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3657 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
d0191583 | 3658 | { (exit 1); exit 1; }; } |
ec6a6fbe | 3659 | fi |
d0191583 JM |
3660 | else |
3661 | ac_cv_path_EGREP=$EGREP | |
3662 | fi | |
ad6254c5 | 3663 | |
d0191583 JM |
3664 | fi |
3665 | fi | |
ec6a6fbe AK |
3666 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3667 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
d0191583 | 3668 | EGREP="$ac_cv_path_EGREP" |
ad6254c5 AK |
3669 | |
3670 | ||
d0191583 | 3671 | if test $ac_cv_c_compiler_gnu = yes; then |
ec6a6fbe AK |
3672 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3673 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
d0191583 | 3674 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
ec6a6fbe | 3675 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 3676 | else |
d0191583 | 3677 | ac_pattern="Autoconf.*'x'" |
ad6254c5 | 3678 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
3679 | /* confdefs.h. */ |
3680 | _ACEOF | |
3681 | cat confdefs.h >>conftest.$ac_ext | |
3682 | cat >>conftest.$ac_ext <<_ACEOF | |
3683 | /* end confdefs.h. */ | |
d0191583 JM |
3684 | #include <sgtty.h> |
3685 | Autoconf TIOCGETP | |
ad6254c5 | 3686 | _ACEOF |
d0191583 JM |
3687 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3688 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3689 | ac_cv_prog_gcc_traditional=yes | |
8106cdd5 | 3690 | else |
d0191583 | 3691 | ac_cv_prog_gcc_traditional=no |
80992638 | 3692 | fi |
d0191583 | 3693 | rm -f conftest* |
ad6254c5 | 3694 | |
8106cdd5 | 3695 | |
d0191583 JM |
3696 | if test $ac_cv_prog_gcc_traditional = no; then |
3697 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
3698 | /* confdefs.h. */ |
3699 | _ACEOF | |
3700 | cat confdefs.h >>conftest.$ac_ext | |
3701 | cat >>conftest.$ac_ext <<_ACEOF | |
3702 | /* end confdefs.h. */ | |
d0191583 JM |
3703 | #include <termio.h> |
3704 | Autoconf TCGETA | |
ad6254c5 | 3705 | _ACEOF |
d0191583 JM |
3706 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3707 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3708 | ac_cv_prog_gcc_traditional=yes | |
7a197a62 | 3709 | fi |
d0191583 | 3710 | rm -f conftest* |
795ca3e5 | 3711 | |
d0191583 | 3712 | fi |
795ca3e5 | 3713 | fi |
ec6a6fbe AK |
3714 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3715 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
d0191583 JM |
3716 | if test $ac_cv_prog_gcc_traditional = yes; then |
3717 | CC="$CC -traditional" | |
3718 | fi | |
795ca3e5 AK |
3719 | fi |
3720 | ||
d0191583 JM |
3721 | # Find a good install program. We prefer a C program (faster), |
3722 | # so one script is as good as another. But avoid the broken or | |
3723 | # incompatible versions: | |
3724 | # SysV /etc/install, /usr/sbin/install | |
3725 | # SunOS /usr/etc/install | |
3726 | # IRIX /sbin/install | |
3727 | # AIX /bin/install | |
3728 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3729 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3730 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3731 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3732 | # OS/2's system install, which has a completely different semantic | |
3733 | # ./install, which can be erroneously created by make from ./install.sh. | |
ec6a6fbe AK |
3734 | # Reject install programs that cannot install multiple files. |
3735 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3736 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
d0191583 JM |
3737 | if test -z "$INSTALL"; then |
3738 | if test "${ac_cv_path_install+set}" = set; then | |
ec6a6fbe | 3739 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3740 | else |
d0191583 JM |
3741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3742 | for as_dir in $PATH | |
3743 | do | |
3744 | IFS=$as_save_IFS | |
3745 | test -z "$as_dir" && as_dir=. | |
3746 | # Account for people who put trailing slashes in PATH elements. | |
3747 | case $as_dir/ in | |
3748 | ./ | .// | /cC/* | \ | |
3749 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3750 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3751 | /usr/ucb/* ) ;; | |
3752 | *) | |
3753 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3754 | # Don't use installbsd from OSF since it installs stuff as root | |
3755 | # by default. | |
3756 | for ac_prog in ginstall scoinst install; do | |
3757 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3758 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3759 | if test $ac_prog = install && | |
3760 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3761 | # AIX install. It has an incompatible calling convention. | |
3762 | : | |
3763 | elif test $ac_prog = install && | |
3764 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3765 | # program-specific install script used by HP pwplus--don't use. | |
3766 | : | |
3767 | else | |
ec6a6fbe AK |
3768 | rm -rf conftest.one conftest.two conftest.dir |
3769 | echo one > conftest.one | |
3770 | echo two > conftest.two | |
3771 | mkdir conftest.dir | |
3772 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3773 | test -s conftest.one && test -s conftest.two && | |
3774 | test -s conftest.dir/conftest.one && | |
3775 | test -s conftest.dir/conftest.two | |
3776 | then | |
3777 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3778 | break 3 | |
3779 | fi | |
d0191583 JM |
3780 | fi |
3781 | fi | |
3782 | done | |
3783 | done | |
3784 | ;; | |
3785 | esac | |
ec6a6fbe | 3786 | |
d0191583 JM |
3787 | done |
3788 | IFS=$as_save_IFS | |
80992638 | 3789 | |
ec6a6fbe | 3790 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
3791 | |
3792 | fi | |
3793 | if test "${ac_cv_path_install+set}" = set; then | |
3794 | INSTALL=$ac_cv_path_install | |
7a197a62 | 3795 | else |
d0191583 JM |
3796 | # As a last resort, use the slow shell script. Don't cache a |
3797 | # value for INSTALL within a source directory, because that will | |
3798 | # break other packages using the cache if that directory is | |
3799 | # removed, or if the value is a relative name. | |
3800 | INSTALL=$ac_install_sh | |
7a197a62 | 3801 | fi |
d0191583 | 3802 | fi |
ec6a6fbe AK |
3803 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3804 | $as_echo "$INSTALL" >&6; } | |
ad6254c5 | 3805 | |
d0191583 JM |
3806 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3807 | # It thinks the first close brace ends the variable substitution. | |
3808 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ad6254c5 | 3809 | |
d0191583 | 3810 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
80992638 | 3811 | |
d0191583 JM |
3812 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3813 | ||
ec6a6fbe AK |
3814 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3815 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d0191583 JM |
3816 | LN_S=$as_ln_s |
3817 | if test "$LN_S" = "ln -s"; then | |
ec6a6fbe AK |
3818 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3819 | $as_echo "yes" >&6; } | |
d0191583 | 3820 | else |
ec6a6fbe AK |
3821 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3822 | $as_echo "no, using $LN_S" >&6; } | |
795ca3e5 | 3823 | fi |
d0191583 | 3824 | |
ec6a6fbe AK |
3825 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3826 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3827 | set x ${MAKE-make} | |
3828 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0191583 | 3829 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 3830 | $as_echo_n "(cached) " >&6 |
7a197a62 | 3831 | else |
d0191583 JM |
3832 | cat >conftest.make <<\_ACEOF |
3833 | SHELL = /bin/sh | |
3834 | all: | |
3835 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3836 | _ACEOF | |
3837 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3838 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3839 | *@@@%%%=?*=@@@%%%*) | |
3840 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3841 | *) | |
3842 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3843 | esac | |
3844 | rm -f conftest.make | |
ad6254c5 | 3845 | fi |
d0191583 | 3846 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
ec6a6fbe AK |
3847 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
3848 | $as_echo "yes" >&6; } | |
d0191583 JM |
3849 | SET_MAKE= |
3850 | else | |
ec6a6fbe AK |
3851 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3852 | $as_echo "no" >&6; } | |
d0191583 | 3853 | SET_MAKE="MAKE=${MAKE-make}" |
795ca3e5 | 3854 | fi |
8106cdd5 | 3855 | |
ec6a6fbe AK |
3856 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
3857 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
5556819a AK |
3858 | if test -z "$MKDIR_P"; then |
3859 | if test "${ac_cv_path_mkdir+set}" = set; then | |
ec6a6fbe | 3860 | $as_echo_n "(cached) " >&6 |
5556819a AK |
3861 | else |
3862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3863 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3864 | do | |
3865 | IFS=$as_save_IFS | |
3866 | test -z "$as_dir" && as_dir=. | |
3867 | for ac_prog in mkdir gmkdir; do | |
3868 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3869 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3870 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3871 | 'mkdir (GNU coreutils) '* | \ | |
3872 | 'mkdir (coreutils) '* | \ | |
3873 | 'mkdir (fileutils) '4.1*) | |
3874 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3875 | break 3;; | |
3876 | esac | |
3877 | done | |
3878 | done | |
3879 | done | |
3880 | IFS=$as_save_IFS | |
3881 | ||
3882 | fi | |
3883 | ||
3884 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3885 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3886 | else | |
3887 | # As a last resort, use the slow shell script. Don't cache a | |
3888 | # value for MKDIR_P within a source directory, because that will | |
3889 | # break other packages using the cache if that directory is | |
3890 | # removed, or if the value is a relative name. | |
3891 | test -d ./--version && rmdir ./--version | |
3892 | MKDIR_P="$ac_install_sh -d" | |
3893 | fi | |
3894 | fi | |
ec6a6fbe AK |
3895 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
3896 | $as_echo "$MKDIR_P" >&6; } | |
5556819a | 3897 | |
d0191583 JM |
3898 | if test -n "$ac_tool_prefix"; then |
3899 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3900 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
ec6a6fbe AK |
3901 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3902 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3903 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
ec6a6fbe | 3904 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3905 | else |
3906 | if test -n "$RANLIB"; then | |
3907 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3908 | else | |
3909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3910 | for as_dir in $PATH | |
3911 | do | |
3912 | IFS=$as_save_IFS | |
3913 | test -z "$as_dir" && as_dir=. | |
3914 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3915 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3916 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
ec6a6fbe | 3917 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3918 | break 2 |
3919 | fi | |
3920 | done | |
3921 | done | |
3922 | IFS=$as_save_IFS | |
8106cdd5 | 3923 | |
795ca3e5 | 3924 | fi |
d0191583 JM |
3925 | fi |
3926 | RANLIB=$ac_cv_prog_RANLIB | |
3927 | if test -n "$RANLIB"; then | |
ec6a6fbe AK |
3928 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3929 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 3930 | else |
ec6a6fbe AK |
3931 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3932 | $as_echo "no" >&6; } | |
d0191583 JM |
3933 | fi |
3934 | ||
8106cdd5 | 3935 | |
ad6254c5 | 3936 | fi |
d0191583 JM |
3937 | if test -z "$ac_cv_prog_RANLIB"; then |
3938 | ac_ct_RANLIB=$RANLIB | |
3939 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3940 | set dummy ranlib; ac_word=$2 | |
ec6a6fbe AK |
3941 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3942 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3943 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
ec6a6fbe | 3944 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3945 | else |
d0191583 JM |
3946 | if test -n "$ac_ct_RANLIB"; then |
3947 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3948 | else | |
3949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3950 | for as_dir in $PATH | |
8106cdd5 | 3951 | do |
d0191583 JM |
3952 | IFS=$as_save_IFS |
3953 | test -z "$as_dir" && as_dir=. | |
3954 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3955 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3956 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
ec6a6fbe | 3957 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
3958 | break 2 |
3959 | fi | |
3960 | done | |
3961 | done | |
3962 | IFS=$as_save_IFS | |
3963 | ||
3964 | fi | |
3965 | fi | |
3966 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3967 | if test -n "$ac_ct_RANLIB"; then | |
ec6a6fbe AK |
3968 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3969 | $as_echo "$ac_ct_RANLIB" >&6; } | |
ad6254c5 | 3970 | else |
ec6a6fbe AK |
3971 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
3972 | $as_echo "no" >&6; } | |
d0191583 | 3973 | fi |
ad6254c5 | 3974 | |
d0191583 JM |
3975 | if test "x$ac_ct_RANLIB" = x; then |
3976 | RANLIB=":" | |
3977 | else | |
3978 | case $cross_compiling:$ac_tool_warned in | |
3979 | yes:) | |
ec6a6fbe AK |
3980 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
3981 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0191583 JM |
3982 | ac_tool_warned=yes ;; |
3983 | esac | |
3984 | RANLIB=$ac_ct_RANLIB | |
3985 | fi | |
3986 | else | |
3987 | RANLIB="$ac_cv_prog_RANLIB" | |
ad6254c5 | 3988 | fi |
7a197a62 | 3989 | |
d0191583 JM |
3990 | # Extract the first word of "cflow", so it can be a program name with args. |
3991 | set dummy cflow; ac_word=$2 | |
ec6a6fbe AK |
3992 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3993 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 3994 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then |
ec6a6fbe | 3995 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
3996 | else |
3997 | case $CFLOW_CMD in | |
3998 | [\\/]* | ?:[\\/]*) | |
3999 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
4000 | ;; | |
4001 | *) | |
4002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4003 | for as_dir in $PATH | |
4004 | do | |
4005 | IFS=$as_save_IFS | |
4006 | test -z "$as_dir" && as_dir=. | |
4007 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4008 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4009 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4010 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4011 | break 2 |
4012 | fi | |
4013 | done | |
4014 | done | |
4015 | IFS=$as_save_IFS | |
ad6254c5 | 4016 | |
d0191583 | 4017 | ;; |
7a197a62 | 4018 | esac |
d0191583 JM |
4019 | fi |
4020 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
4021 | if test -n "$CFLOW_CMD"; then | |
ec6a6fbe AK |
4022 | { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5 |
4023 | $as_echo "$CFLOW_CMD" >&6; } | |
80992638 | 4024 | else |
ec6a6fbe AK |
4025 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4026 | $as_echo "no" >&6; } | |
795ca3e5 | 4027 | fi |
7a197a62 | 4028 | |
ad6254c5 | 4029 | |
d0191583 JM |
4030 | # Extract the first word of "cscope", so it can be a program name with args. |
4031 | set dummy cscope; ac_word=$2 | |
ec6a6fbe AK |
4032 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4033 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0191583 | 4034 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then |
ec6a6fbe | 4035 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4036 | else |
4037 | case $CSCOPE_CMD in | |
4038 | [\\/]* | ?:[\\/]*) | |
4039 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
4040 | ;; | |
4041 | *) | |
4042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4043 | for as_dir in $PATH | |
4044 | do | |
4045 | IFS=$as_save_IFS | |
4046 | test -z "$as_dir" && as_dir=. | |
4047 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4048 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4049 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 4050 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0191583 JM |
4051 | break 2 |
4052 | fi | |
795ca3e5 | 4053 | done |
d0191583 JM |
4054 | done |
4055 | IFS=$as_save_IFS | |
795ca3e5 | 4056 | |
d0191583 JM |
4057 | ;; |
4058 | esac | |
ad6254c5 | 4059 | fi |
d0191583 JM |
4060 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
4061 | if test -n "$CSCOPE_CMD"; then | |
ec6a6fbe AK |
4062 | { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5 |
4063 | $as_echo "$CSCOPE_CMD" >&6; } | |
795ca3e5 | 4064 | else |
ec6a6fbe AK |
4065 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
4066 | $as_echo "no" >&6; } | |
795ca3e5 | 4067 | fi |
ad6254c5 | 4068 | |
7a197a62 | 4069 | |
ad6254c5 | 4070 | |
d0191583 JM |
4071 | ################################################################################ |
4072 | ||
4073 | ||
4074 | ||
4075 | ||
4076 | ||
4077 | ac_header_dirent=no | |
4078 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
ec6a6fbe AK |
4079 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
4080 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
4081 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
d0191583 | 4082 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4083 | $as_echo_n "(cached) " >&6 |
d0191583 | 4084 | else |
ad6254c5 | 4085 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4086 | /* confdefs.h. */ |
4087 | _ACEOF | |
4088 | cat confdefs.h >>conftest.$ac_ext | |
4089 | cat >>conftest.$ac_ext <<_ACEOF | |
4090 | /* end confdefs.h. */ | |
d0191583 JM |
4091 | #include <sys/types.h> |
4092 | #include <$ac_hdr> | |
4093 | ||
4094 | int | |
4095 | main () | |
4096 | { | |
4097 | if ((DIR *) 0) | |
4098 | return 0; | |
4099 | ; | |
4100 | return 0; | |
4101 | } | |
ad6254c5 | 4102 | _ACEOF |
d0191583 JM |
4103 | rm -f conftest.$ac_objext |
4104 | if { (ac_try="$ac_compile" | |
7a197a62 AK |
4105 | case "(($ac_try" in |
4106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4107 | *) ac_try_echo=$ac_try;; | |
4108 | esac | |
ec6a6fbe AK |
4109 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4110 | $as_echo "$ac_try_echo") >&5 | |
d0191583 | 4111 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 AK |
4112 | ac_status=$? |
4113 | grep -v '^ *+' conftest.er1 >conftest.err | |
4114 | rm -f conftest.er1 | |
4115 | cat conftest.err >&5 | |
ec6a6fbe | 4116 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4117 | (exit $ac_status); } && { |
4118 | test -z "$ac_c_werror_flag" || | |
25fbec5b | 4119 | test ! -s conftest.err |
d0191583 JM |
4120 | } && test -s conftest.$ac_objext; then |
4121 | eval "$as_ac_Header=yes" | |
ad6254c5 | 4122 | else |
ec6a6fbe | 4123 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4124 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4125 | |
d0191583 | 4126 | eval "$as_ac_Header=no" |
795ca3e5 | 4127 | fi |
7a197a62 | 4128 | |
d0191583 | 4129 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
795ca3e5 | 4130 | fi |
ec6a6fbe AK |
4131 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4132 | $as_echo "$as_val"'` | |
4133 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4134 | $as_echo "$ac_res" >&6; } | |
4135 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4136 | $as_echo "$as_val"'` | |
4137 | if test "x$as_val" = x""yes; then | |
d0191583 | 4138 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4139 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
d0191583 | 4140 | _ACEOF |
795ca3e5 | 4141 | |
d0191583 JM |
4142 | ac_header_dirent=$ac_hdr; break |
4143 | fi | |
ad6254c5 | 4144 | |
d0191583 JM |
4145 | done |
4146 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4147 | if test $ac_header_dirent = dirent.h; then | |
ec6a6fbe AK |
4148 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4149 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4150 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4151 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4152 | else |
d0191583 JM |
4153 | ac_func_search_save_LIBS=$LIBS |
4154 | cat >conftest.$ac_ext <<_ACEOF | |
4155 | /* confdefs.h. */ | |
4156 | _ACEOF | |
4157 | cat confdefs.h >>conftest.$ac_ext | |
4158 | cat >>conftest.$ac_ext <<_ACEOF | |
4159 | /* end confdefs.h. */ | |
ad6254c5 | 4160 | |
d0191583 JM |
4161 | /* Override any GCC internal prototype to avoid an error. |
4162 | Use char because int might match the return type of a GCC | |
4163 | builtin and then its argument prototype would still apply. */ | |
4164 | #ifdef __cplusplus | |
4165 | extern "C" | |
4166 | #endif | |
4167 | char opendir (); | |
4168 | int | |
4169 | main () | |
4170 | { | |
4171 | return opendir (); | |
4172 | ; | |
4173 | return 0; | |
4174 | } | |
4175 | _ACEOF | |
4176 | for ac_lib in '' dir; do | |
4177 | if test -z "$ac_lib"; then | |
4178 | ac_res="none required" | |
4179 | else | |
4180 | ac_res=-l$ac_lib | |
4181 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4182 | fi | |
4183 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4184 | if { (ac_try="$ac_link" | |
4185 | case "(($ac_try" in | |
4186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4187 | *) ac_try_echo=$ac_try;; | |
4188 | esac | |
ec6a6fbe AK |
4189 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4190 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4191 | (eval "$ac_link") 2>conftest.er1 |
4192 | ac_status=$? | |
4193 | grep -v '^ *+' conftest.er1 >conftest.err | |
4194 | rm -f conftest.er1 | |
4195 | cat conftest.err >&5 | |
ec6a6fbe | 4196 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4197 | (exit $ac_status); } && { |
4198 | test -z "$ac_c_werror_flag" || | |
4199 | test ! -s conftest.err | |
ec6a6fbe AK |
4200 | } && test -s conftest$ac_exeext && { |
4201 | test "$cross_compiling" = yes || | |
4202 | $as_test_x conftest$ac_exeext | |
4203 | }; then | |
d0191583 JM |
4204 | ac_cv_search_opendir=$ac_res |
4205 | else | |
ec6a6fbe | 4206 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4207 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 4208 | |
ad6254c5 | 4209 | |
795ca3e5 | 4210 | fi |
ad6254c5 | 4211 | |
ec6a6fbe | 4212 | rm -rf conftest.dSYM |
d0191583 JM |
4213 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4214 | conftest$ac_exeext | |
4215 | if test "${ac_cv_search_opendir+set}" = set; then | |
4216 | break | |
7a197a62 | 4217 | fi |
d0191583 JM |
4218 | done |
4219 | if test "${ac_cv_search_opendir+set}" = set; then | |
4220 | : | |
7a197a62 | 4221 | else |
d0191583 | 4222 | ac_cv_search_opendir=no |
7a197a62 | 4223 | fi |
d0191583 JM |
4224 | rm conftest.$ac_ext |
4225 | LIBS=$ac_func_search_save_LIBS | |
7a197a62 | 4226 | fi |
ec6a6fbe AK |
4227 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4228 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4229 | ac_res=$ac_cv_search_opendir |
4230 | if test "$ac_res" != no; then | |
4231 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4232 | |
d0191583 | 4233 | fi |
7a197a62 | 4234 | |
7a197a62 | 4235 | else |
ec6a6fbe AK |
4236 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
4237 | $as_echo_n "checking for library containing opendir... " >&6; } | |
d0191583 | 4238 | if test "${ac_cv_search_opendir+set}" = set; then |
ec6a6fbe | 4239 | $as_echo_n "(cached) " >&6 |
7a197a62 | 4240 | else |
d0191583 JM |
4241 | ac_func_search_save_LIBS=$LIBS |
4242 | cat >conftest.$ac_ext <<_ACEOF | |
4243 | /* confdefs.h. */ | |
4244 | _ACEOF | |
4245 | cat confdefs.h >>conftest.$ac_ext | |
4246 | cat >>conftest.$ac_ext <<_ACEOF | |
4247 | /* end confdefs.h. */ | |
7a197a62 | 4248 | |
d0191583 JM |
4249 | /* Override any GCC internal prototype to avoid an error. |
4250 | Use char because int might match the return type of a GCC | |
4251 | builtin and then its argument prototype would still apply. */ | |
4252 | #ifdef __cplusplus | |
4253 | extern "C" | |
4254 | #endif | |
4255 | char opendir (); | |
4256 | int | |
4257 | main () | |
4258 | { | |
4259 | return opendir (); | |
4260 | ; | |
4261 | return 0; | |
4262 | } | |
4263 | _ACEOF | |
4264 | for ac_lib in '' x; do | |
4265 | if test -z "$ac_lib"; then | |
4266 | ac_res="none required" | |
4267 | else | |
4268 | ac_res=-l$ac_lib | |
4269 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4270 | fi | |
4271 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4272 | if { (ac_try="$ac_link" | |
4273 | case "(($ac_try" in | |
4274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4275 | *) ac_try_echo=$ac_try;; | |
4276 | esac | |
ec6a6fbe AK |
4277 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4278 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4279 | (eval "$ac_link") 2>conftest.er1 |
4280 | ac_status=$? | |
4281 | grep -v '^ *+' conftest.er1 >conftest.err | |
4282 | rm -f conftest.er1 | |
4283 | cat conftest.err >&5 | |
ec6a6fbe | 4284 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4285 | (exit $ac_status); } && { |
4286 | test -z "$ac_c_werror_flag" || | |
4287 | test ! -s conftest.err | |
ec6a6fbe AK |
4288 | } && test -s conftest$ac_exeext && { |
4289 | test "$cross_compiling" = yes || | |
4290 | $as_test_x conftest$ac_exeext | |
4291 | }; then | |
d0191583 JM |
4292 | ac_cv_search_opendir=$ac_res |
4293 | else | |
ec6a6fbe | 4294 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 4295 | sed 's/^/| /' conftest.$ac_ext >&5 |
7a197a62 AK |
4296 | |
4297 | ||
4298 | fi | |
4299 | ||
ec6a6fbe | 4300 | rm -rf conftest.dSYM |
d0191583 JM |
4301 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4302 | conftest$ac_exeext | |
4303 | if test "${ac_cv_search_opendir+set}" = set; then | |
4304 | break | |
7a197a62 | 4305 | fi |
d0191583 JM |
4306 | done |
4307 | if test "${ac_cv_search_opendir+set}" = set; then | |
4308 | : | |
7a197a62 | 4309 | else |
d0191583 | 4310 | ac_cv_search_opendir=no |
7a197a62 | 4311 | fi |
d0191583 JM |
4312 | rm conftest.$ac_ext |
4313 | LIBS=$ac_func_search_save_LIBS | |
4314 | fi | |
ec6a6fbe AK |
4315 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4316 | $as_echo "$ac_cv_search_opendir" >&6; } | |
d0191583 JM |
4317 | ac_res=$ac_cv_search_opendir |
4318 | if test "$ac_res" != no; then | |
4319 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7a197a62 | 4320 | |
7a197a62 | 4321 | fi |
7a197a62 | 4322 | |
d0191583 | 4323 | fi |
7a197a62 | 4324 | |
ec6a6fbe AK |
4325 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4326 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7a197a62 | 4327 | if test "${ac_cv_header_stdc+set}" = set; then |
ec6a6fbe | 4328 | $as_echo_n "(cached) " >&6 |
7a197a62 AK |
4329 | else |
4330 | cat >conftest.$ac_ext <<_ACEOF | |
4331 | /* confdefs.h. */ | |
4332 | _ACEOF | |
4333 | cat confdefs.h >>conftest.$ac_ext | |
4334 | cat >>conftest.$ac_ext <<_ACEOF | |
4335 | /* end confdefs.h. */ | |
4336 | #include <stdlib.h> | |
4337 | #include <stdarg.h> | |
4338 | #include <string.h> | |
4339 | #include <float.h> | |
4340 | ||
4341 | int | |
4342 | main () | |
4343 | { | |
4344 | ||
4345 | ; | |
4346 | return 0; | |
4347 | } | |
4348 | _ACEOF | |
4349 | rm -f conftest.$ac_objext | |
4350 | if { (ac_try="$ac_compile" | |
4351 | case "(($ac_try" in | |
4352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4353 | *) ac_try_echo=$ac_try;; | |
4354 | esac | |
ec6a6fbe AK |
4355 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4356 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 AK |
4357 | (eval "$ac_compile") 2>conftest.er1 |
4358 | ac_status=$? | |
4359 | grep -v '^ *+' conftest.er1 >conftest.err | |
4360 | rm -f conftest.er1 | |
4361 | cat conftest.err >&5 | |
ec6a6fbe | 4362 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4363 | (exit $ac_status); } && { |
4364 | test -z "$ac_c_werror_flag" || | |
4365 | test ! -s conftest.err | |
4366 | } && test -s conftest.$ac_objext; then | |
7a197a62 AK |
4367 | ac_cv_header_stdc=yes |
4368 | else | |
ec6a6fbe | 4369 | $as_echo "$as_me: failed program was:" >&5 |
7a197a62 AK |
4370 | sed 's/^/| /' conftest.$ac_ext >&5 |
4371 | ||
4372 | ac_cv_header_stdc=no | |
4373 | fi | |
4374 | ||
4375 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4376 | ||
4377 | if test $ac_cv_header_stdc = yes; then | |
4378 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
ad6254c5 | 4379 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4380 | /* confdefs.h. */ |
4381 | _ACEOF | |
4382 | cat confdefs.h >>conftest.$ac_ext | |
4383 | cat >>conftest.$ac_ext <<_ACEOF | |
4384 | /* end confdefs.h. */ | |
4385 | #include <string.h> | |
8106cdd5 | 4386 | |
ad6254c5 AK |
4387 | _ACEOF |
4388 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4389 | $EGREP "memchr" >/dev/null 2>&1; then | |
4390 | : | |
4391 | else | |
4392 | ac_cv_header_stdc=no | |
80992638 | 4393 | fi |
ad6254c5 | 4394 | rm -f conftest* |
795ca3e5 AK |
4395 | |
4396 | fi | |
4397 | ||
ad6254c5 AK |
4398 | if test $ac_cv_header_stdc = yes; then |
4399 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4400 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
4401 | /* confdefs.h. */ |
4402 | _ACEOF | |
4403 | cat confdefs.h >>conftest.$ac_ext | |
4404 | cat >>conftest.$ac_ext <<_ACEOF | |
4405 | /* end confdefs.h. */ | |
80992638 | 4406 | #include <stdlib.h> |
ad6254c5 AK |
4407 | |
4408 | _ACEOF | |
80992638 | 4409 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
4410 | $EGREP "free" >/dev/null 2>&1; then |
4411 | : | |
795ca3e5 | 4412 | else |
ad6254c5 | 4413 | ac_cv_header_stdc=no |
795ca3e5 | 4414 | fi |
80992638 | 4415 | rm -f conftest* |
8106cdd5 | 4416 | |
795ca3e5 AK |
4417 | fi |
4418 | ||
ad6254c5 AK |
4419 | if test $ac_cv_header_stdc = yes; then |
4420 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4421 | if test "$cross_compiling" = yes; then | |
4422 | : | |
795ca3e5 | 4423 | else |
ad6254c5 | 4424 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4425 | /* confdefs.h. */ |
4426 | _ACEOF | |
4427 | cat confdefs.h >>conftest.$ac_ext | |
4428 | cat >>conftest.$ac_ext <<_ACEOF | |
4429 | /* end confdefs.h. */ | |
4430 | #include <ctype.h> | |
7a197a62 | 4431 | #include <stdlib.h> |
ad6254c5 AK |
4432 | #if ((' ' & 0x0FF) == 0x020) |
4433 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4434 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4435 | #else | |
4436 | # define ISLOWER(c) \ | |
8a2fc586 AK |
4437 | (('a' <= (c) && (c) <= 'i') \ |
4438 | || ('j' <= (c) && (c) <= 'r') \ | |
4439 | || ('s' <= (c) && (c) <= 'z')) | |
ad6254c5 | 4440 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
80992638 | 4441 | #endif |
ad6254c5 AK |
4442 | |
4443 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4444 | int | |
4445 | main () | |
4446 | { | |
4447 | int i; | |
4448 | for (i = 0; i < 256; i++) | |
4449 | if (XOR (islower (i), ISLOWER (i)) | |
8a2fc586 | 4450 | || toupper (i) != TOUPPER (i)) |
7a197a62 AK |
4451 | return 2; |
4452 | return 0; | |
ad6254c5 AK |
4453 | } |
4454 | _ACEOF | |
4455 | rm -f conftest$ac_exeext | |
7a197a62 AK |
4456 | if { (ac_try="$ac_link" |
4457 | case "(($ac_try" in | |
4458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4459 | *) ac_try_echo=$ac_try;; | |
4460 | esac | |
ec6a6fbe AK |
4461 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4462 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4463 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4464 | ac_status=$? |
ec6a6fbe | 4465 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 4466 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
4467 | { (case "(($ac_try" in |
4468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4469 | *) ac_try_echo=$ac_try;; | |
4470 | esac | |
ec6a6fbe AK |
4471 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4472 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4473 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4474 | ac_status=$? |
ec6a6fbe | 4475 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
4476 | (exit $ac_status); }; }; then |
4477 | : | |
795ca3e5 | 4478 | else |
ec6a6fbe AK |
4479 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
4480 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 | 4481 | sed 's/^/| /' conftest.$ac_ext >&5 |
8106cdd5 | 4482 | |
ad6254c5 AK |
4483 | ( exit $ac_status ) |
4484 | ac_cv_header_stdc=no | |
80992638 | 4485 | fi |
ec6a6fbe | 4486 | rm -rf conftest.dSYM |
7a197a62 | 4487 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 4488 | fi |
7a197a62 AK |
4489 | |
4490 | ||
ad6254c5 AK |
4491 | fi |
4492 | fi | |
ec6a6fbe AK |
4493 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4494 | $as_echo "$ac_cv_header_stdc" >&6; } | |
ad6254c5 AK |
4495 | if test $ac_cv_header_stdc = yes; then |
4496 | ||
4497 | cat >>confdefs.h <<\_ACEOF | |
4498 | #define STDC_HEADERS 1 | |
4499 | _ACEOF | |
795ca3e5 AK |
4500 | |
4501 | fi | |
4502 | ||
ec6a6fbe AK |
4503 | { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4504 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
ad6254c5 | 4505 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
ec6a6fbe | 4506 | $as_echo_n "(cached) " >&6 |
8106cdd5 | 4507 | else |
ad6254c5 | 4508 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4509 | /* confdefs.h. */ |
4510 | _ACEOF | |
4511 | cat confdefs.h >>conftest.$ac_ext | |
4512 | cat >>conftest.$ac_ext <<_ACEOF | |
4513 | /* end confdefs.h. */ | |
80992638 | 4514 | #include <sys/types.h> |
ad6254c5 AK |
4515 | #include <sys/wait.h> |
4516 | #ifndef WEXITSTATUS | |
7a197a62 | 4517 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
ad6254c5 AK |
4518 | #endif |
4519 | #ifndef WIFEXITED | |
4520 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4521 | #endif | |
4522 | ||
4523 | int | |
4524 | main () | |
4525 | { | |
4526 | int s; | |
4527 | wait (&s); | |
4528 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4529 | ; | |
4530 | return 0; | |
4531 | } | |
4532 | _ACEOF | |
4533 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4534 | if { (ac_try="$ac_compile" |
4535 | case "(($ac_try" in | |
4536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4537 | *) ac_try_echo=$ac_try;; | |
4538 | esac | |
ec6a6fbe AK |
4539 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4540 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4541 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4542 | ac_status=$? |
8a2fc586 AK |
4543 | grep -v '^ *+' conftest.er1 >conftest.err |
4544 | rm -f conftest.er1 | |
4545 | cat conftest.err >&5 | |
ec6a6fbe | 4546 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4547 | (exit $ac_status); } && { |
4548 | test -z "$ac_c_werror_flag" || | |
4549 | test ! -s conftest.err | |
4550 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
4551 | ac_cv_header_sys_wait_h=yes |
4552 | else | |
ec6a6fbe | 4553 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4554 | sed 's/^/| /' conftest.$ac_ext >&5 |
4555 | ||
7a197a62 | 4556 | ac_cv_header_sys_wait_h=no |
8106cdd5 | 4557 | fi |
7a197a62 AK |
4558 | |
4559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4560 | fi |
ec6a6fbe AK |
4561 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
4562 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
ad6254c5 | 4563 | if test $ac_cv_header_sys_wait_h = yes; then |
8106cdd5 | 4564 | |
ad6254c5 AK |
4565 | cat >>confdefs.h <<\_ACEOF |
4566 | #define HAVE_SYS_WAIT_H 1 | |
4567 | _ACEOF | |
795ca3e5 AK |
4568 | |
4569 | fi | |
4570 | ||
ec6a6fbe AK |
4571 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
4572 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
ad6254c5 | 4573 | if test "${ac_cv_header_time+set}" = set; then |
ec6a6fbe | 4574 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 4575 | else |
ad6254c5 | 4576 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4577 | /* confdefs.h. */ |
4578 | _ACEOF | |
4579 | cat confdefs.h >>conftest.$ac_ext | |
4580 | cat >>conftest.$ac_ext <<_ACEOF | |
4581 | /* end confdefs.h. */ | |
795ca3e5 AK |
4582 | #include <sys/types.h> |
4583 | #include <sys/time.h> | |
4584 | #include <time.h> | |
ad6254c5 AK |
4585 | |
4586 | int | |
4587 | main () | |
4588 | { | |
4589 | if ((struct tm *) 0) | |
4590 | return 0; | |
4591 | ; | |
4592 | return 0; | |
4593 | } | |
4594 | _ACEOF | |
4595 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4596 | if { (ac_try="$ac_compile" |
4597 | case "(($ac_try" in | |
4598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4599 | *) ac_try_echo=$ac_try;; | |
4600 | esac | |
ec6a6fbe AK |
4601 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4602 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4603 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4604 | ac_status=$? |
8a2fc586 AK |
4605 | grep -v '^ *+' conftest.er1 >conftest.err |
4606 | rm -f conftest.er1 | |
4607 | cat conftest.err >&5 | |
ec6a6fbe | 4608 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4609 | (exit $ac_status); } && { |
4610 | test -z "$ac_c_werror_flag" || | |
4611 | test ! -s conftest.err | |
4612 | } && test -s conftest.$ac_objext; then | |
795ca3e5 AK |
4613 | ac_cv_header_time=yes |
4614 | else | |
ec6a6fbe | 4615 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4616 | sed 's/^/| /' conftest.$ac_ext >&5 |
4617 | ||
7a197a62 | 4618 | ac_cv_header_time=no |
795ca3e5 | 4619 | fi |
7a197a62 AK |
4620 | |
4621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
795ca3e5 | 4622 | fi |
ec6a6fbe AK |
4623 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
4624 | $as_echo "$ac_cv_header_time" >&6; } | |
80992638 | 4625 | if test $ac_cv_header_time = yes; then |
ad6254c5 AK |
4626 | |
4627 | cat >>confdefs.h <<\_ACEOF | |
795ca3e5 | 4628 | #define TIME_WITH_SYS_TIME 1 |
ad6254c5 | 4629 | _ACEOF |
b896caa1 | 4630 | |
8106cdd5 | 4631 | fi |
b896caa1 | 4632 | |
b896caa1 | 4633 | |
d0191583 JM |
4634 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4635 | ||
4636 | ||
4637 | ||
4638 | ||
4639 | ||
4640 | ||
4641 | ||
4642 | ||
4643 | ||
4644 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4645 | inttypes.h stdint.h unistd.h | |
4646 | do | |
ec6a6fbe AK |
4647 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4648 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4649 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4650 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4651 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4652 | else |
4653 | cat >conftest.$ac_ext <<_ACEOF | |
4654 | /* confdefs.h. */ | |
4655 | _ACEOF | |
4656 | cat confdefs.h >>conftest.$ac_ext | |
4657 | cat >>conftest.$ac_ext <<_ACEOF | |
4658 | /* end confdefs.h. */ | |
4659 | $ac_includes_default | |
4660 | ||
4661 | #include <$ac_header> | |
4662 | _ACEOF | |
4663 | rm -f conftest.$ac_objext | |
4664 | if { (ac_try="$ac_compile" | |
4665 | case "(($ac_try" in | |
4666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4667 | *) ac_try_echo=$ac_try;; | |
4668 | esac | |
ec6a6fbe AK |
4669 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4670 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4671 | (eval "$ac_compile") 2>conftest.er1 |
4672 | ac_status=$? | |
4673 | grep -v '^ *+' conftest.er1 >conftest.err | |
4674 | rm -f conftest.er1 | |
4675 | cat conftest.err >&5 | |
ec6a6fbe | 4676 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4677 | (exit $ac_status); } && { |
4678 | test -z "$ac_c_werror_flag" || | |
4679 | test ! -s conftest.err | |
4680 | } && test -s conftest.$ac_objext; then | |
4681 | eval "$as_ac_Header=yes" | |
4682 | else | |
ec6a6fbe | 4683 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4684 | sed 's/^/| /' conftest.$ac_ext >&5 |
4685 | ||
4686 | eval "$as_ac_Header=no" | |
4687 | fi | |
4688 | ||
4689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4690 | fi | |
ec6a6fbe AK |
4691 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4692 | $as_echo "$as_val"'` | |
4693 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4694 | $as_echo "$ac_res" >&6; } | |
4695 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
4696 | $as_echo "$as_val"'` | |
4697 | if test "x$as_val" = x""yes; then | |
d0191583 | 4698 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4699 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d0191583 JM |
4700 | _ACEOF |
4701 | ||
4702 | fi | |
4703 | ||
4704 | done | |
4705 | ||
b896caa1 | 4706 | |
b896caa1 AK |
4707 | |
4708 | ||
795ca3e5 | 4709 | |
8106cdd5 | 4710 | |
80992638 | 4711 | |
795ca3e5 | 4712 | |
a38df97f | 4713 | |
80992638 | 4714 | |
d0191583 JM |
4715 | |
4716 | ||
4717 | ||
4718 | ||
4719 | ||
4720 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4721 | libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h | |
ad6254c5 | 4722 | do |
ec6a6fbe | 4723 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
d0191583 | 4724 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4725 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4726 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4727 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4728 | $as_echo_n "(cached) " >&6 |
d0191583 | 4729 | fi |
ec6a6fbe AK |
4730 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4731 | $as_echo "$as_val"'` | |
4732 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4733 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 4734 | else |
d0191583 | 4735 | # Is the header compilable? |
ec6a6fbe AK |
4736 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4737 | $as_echo_n "checking $ac_header usability... " >&6; } | |
d0191583 | 4738 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4739 | /* confdefs.h. */ |
4740 | _ACEOF | |
4741 | cat confdefs.h >>conftest.$ac_ext | |
4742 | cat >>conftest.$ac_ext <<_ACEOF | |
4743 | /* end confdefs.h. */ | |
4744 | $ac_includes_default | |
ad6254c5 AK |
4745 | #include <$ac_header> |
4746 | _ACEOF | |
4747 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4748 | if { (ac_try="$ac_compile" |
4749 | case "(($ac_try" in | |
4750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4751 | *) ac_try_echo=$ac_try;; | |
4752 | esac | |
ec6a6fbe AK |
4753 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4754 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4755 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4756 | ac_status=$? |
8a2fc586 AK |
4757 | grep -v '^ *+' conftest.er1 >conftest.err |
4758 | rm -f conftest.er1 | |
4759 | cat conftest.err >&5 | |
ec6a6fbe | 4760 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4761 | (exit $ac_status); } && { |
4762 | test -z "$ac_c_werror_flag" || | |
4763 | test ! -s conftest.err | |
4764 | } && test -s conftest.$ac_objext; then | |
d0191583 | 4765 | ac_header_compiler=yes |
ad6254c5 | 4766 | else |
ec6a6fbe | 4767 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 4768 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 4769 | |
d0191583 | 4770 | ac_header_compiler=no |
ad6254c5 | 4771 | fi |
7a197a62 AK |
4772 | |
4773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4774 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4775 | $as_echo "$ac_header_compiler" >&6; } | |
d0191583 JM |
4776 | |
4777 | # Is the header present? | |
ec6a6fbe AK |
4778 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4779 | $as_echo_n "checking $ac_header presence... " >&6; } | |
d0191583 JM |
4780 | cat >conftest.$ac_ext <<_ACEOF |
4781 | /* confdefs.h. */ | |
4782 | _ACEOF | |
4783 | cat confdefs.h >>conftest.$ac_ext | |
4784 | cat >>conftest.$ac_ext <<_ACEOF | |
4785 | /* end confdefs.h. */ | |
4786 | #include <$ac_header> | |
4787 | _ACEOF | |
4788 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4789 | case "(($ac_try" in | |
4790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4791 | *) ac_try_echo=$ac_try;; | |
4792 | esac | |
ec6a6fbe AK |
4793 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4794 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
4795 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4796 | ac_status=$? | |
4797 | grep -v '^ *+' conftest.er1 >conftest.err | |
4798 | rm -f conftest.er1 | |
4799 | cat conftest.err >&5 | |
ec6a6fbe | 4800 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
4801 | (exit $ac_status); } >/dev/null && { |
4802 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4803 | test ! -s conftest.err | |
4804 | }; then | |
4805 | ac_header_preproc=yes | |
4806 | else | |
ec6a6fbe | 4807 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
4808 | sed 's/^/| /' conftest.$ac_ext >&5 |
4809 | ||
4810 | ac_header_preproc=no | |
4811 | fi | |
4812 | ||
4813 | rm -f conftest.err conftest.$ac_ext | |
ec6a6fbe AK |
4814 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4815 | $as_echo "$ac_header_preproc" >&6; } | |
d0191583 JM |
4816 | |
4817 | # So? What about this header? | |
4818 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4819 | yes:no: ) | |
ec6a6fbe AK |
4820 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4821 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4822 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4823 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
d0191583 JM |
4824 | ac_header_preproc=yes |
4825 | ;; | |
4826 | no:yes:* ) | |
ec6a6fbe AK |
4827 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4828 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4829 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4830 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4831 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4832 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4833 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4834 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4835 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4836 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4837 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4838 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
d0191583 JM |
4839 | |
4840 | ;; | |
4841 | esac | |
ec6a6fbe AK |
4842 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4843 | $as_echo_n "checking for $ac_header... " >&6; } | |
d0191583 | 4844 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4845 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
4846 | else |
4847 | eval "$as_ac_Header=\$ac_header_preproc" | |
a38df97f | 4848 | fi |
ec6a6fbe AK |
4849 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4850 | $as_echo "$as_val"'` | |
4851 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4852 | $as_echo "$ac_res" >&6; } | |
d0191583 JM |
4853 | |
4854 | fi | |
ec6a6fbe AK |
4855 | as_val=`eval 'as_val=${'$as_ac_Header'} |
4856 | $as_echo "$as_val"'` | |
4857 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 4858 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 4859 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 4860 | _ACEOF |
a38df97f | 4861 | |
d0191583 | 4862 | else |
ec6a6fbe AK |
4863 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
4864 | $as_echo "$as_me: error: bailing out" >&2;} | |
d0191583 | 4865 | { (exit 1); exit 1; }; } |
80992638 AK |
4866 | fi |
4867 | ||
ad6254c5 AK |
4868 | done |
4869 | ||
7d1552c9 | 4870 | |
d0191583 JM |
4871 | case "$host_os" in |
4872 | linux*) | |
7d1552c9 | 4873 | |
80992638 | 4874 | |
5a52dca9 | 4875 | |
d0191583 | 4876 | for ac_header in asm/byteorder.h linux/fs.h malloc.h |
ad6254c5 | 4877 | do |
ec6a6fbe | 4878 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 4879 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
4880 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4881 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4882 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 4883 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 4884 | fi |
ec6a6fbe AK |
4885 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
4886 | $as_echo "$as_val"'` | |
4887 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4888 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
4889 | else |
4890 | # Is the header compilable? | |
ec6a6fbe AK |
4891 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4892 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 4893 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4894 | /* confdefs.h. */ |
4895 | _ACEOF | |
4896 | cat confdefs.h >>conftest.$ac_ext | |
4897 | cat >>conftest.$ac_ext <<_ACEOF | |
4898 | /* end confdefs.h. */ | |
4899 | $ac_includes_default | |
4900 | #include <$ac_header> | |
4901 | _ACEOF | |
4902 | rm -f conftest.$ac_objext | |
7a197a62 AK |
4903 | if { (ac_try="$ac_compile" |
4904 | case "(($ac_try" in | |
4905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4906 | *) ac_try_echo=$ac_try;; | |
4907 | esac | |
ec6a6fbe AK |
4908 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4909 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4910 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 4911 | ac_status=$? |
8a2fc586 AK |
4912 | grep -v '^ *+' conftest.er1 >conftest.err |
4913 | rm -f conftest.er1 | |
4914 | cat conftest.err >&5 | |
ec6a6fbe | 4915 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4916 | (exit $ac_status); } && { |
4917 | test -z "$ac_c_werror_flag" || | |
4918 | test ! -s conftest.err | |
4919 | } && test -s conftest.$ac_objext; then | |
fc54be10 AK |
4920 | ac_header_compiler=yes |
4921 | else | |
ec6a6fbe | 4922 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
4923 | sed 's/^/| /' conftest.$ac_ext >&5 |
4924 | ||
4925 | ac_header_compiler=no | |
4926 | fi | |
4927 | ||
4928 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
4929 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4930 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
4931 | |
4932 | # Is the header present? | |
ec6a6fbe AK |
4933 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4934 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 4935 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
4936 | /* confdefs.h. */ |
4937 | _ACEOF | |
4938 | cat confdefs.h >>conftest.$ac_ext | |
4939 | cat >>conftest.$ac_ext <<_ACEOF | |
4940 | /* end confdefs.h. */ | |
4941 | #include <$ac_header> | |
4942 | _ACEOF | |
7a197a62 AK |
4943 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4944 | case "(($ac_try" in | |
4945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4946 | *) ac_try_echo=$ac_try;; | |
4947 | esac | |
ec6a6fbe AK |
4948 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
4949 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 4950 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
4951 | ac_status=$? |
4952 | grep -v '^ *+' conftest.er1 >conftest.err | |
4953 | rm -f conftest.er1 | |
4954 | cat conftest.err >&5 | |
ec6a6fbe | 4955 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
4956 | (exit $ac_status); } >/dev/null && { |
4957 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4958 | test ! -s conftest.err | |
4959 | }; then | |
ad6254c5 AK |
4960 | ac_header_preproc=yes |
4961 | else | |
ec6a6fbe | 4962 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
4963 | sed 's/^/| /' conftest.$ac_ext >&5 |
4964 | ||
4965 | ac_header_preproc=no | |
4966 | fi | |
7a197a62 | 4967 | |
ad6254c5 | 4968 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
4969 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4970 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
4971 | |
4972 | # So? What about this header? | |
8a2fc586 AK |
4973 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4974 | yes:no: ) | |
ec6a6fbe AK |
4975 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4976 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4977 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4978 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 4979 | ac_header_preproc=yes |
ad6254c5 | 4980 | ;; |
8a2fc586 | 4981 | no:yes:* ) |
ec6a6fbe AK |
4982 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4983 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4984 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4985 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4986 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4987 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4988 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4989 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4990 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4991 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4992 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4993 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 4994 | |
ad6254c5 AK |
4995 | ;; |
4996 | esac | |
ec6a6fbe AK |
4997 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4998 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 4999 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5000 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5001 | else |
8a2fc586 | 5002 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5003 | fi |
ec6a6fbe AK |
5004 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5005 | $as_echo "$as_val"'` | |
5006 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5007 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5008 | |
5009 | fi | |
ec6a6fbe AK |
5010 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5011 | $as_echo "$as_val"'` | |
5012 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5013 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5014 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5015 | _ACEOF |
b896caa1 | 5016 | |
d8ac0fbc | 5017 | else |
ec6a6fbe AK |
5018 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5019 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5020 | { (exit 1); exit 1; }; } |
80992638 AK |
5021 | fi |
5022 | ||
ad6254c5 | 5023 | done |
d0191583 JM |
5024 | ;; |
5025 | darwin*) | |
d8ac0fbc | 5026 | |
d8ac0fbc | 5027 | |
d0191583 | 5028 | for ac_header in machine/endian.h sys/disk.h |
ad6254c5 | 5029 | do |
ec6a6fbe | 5030 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5031 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5032 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5033 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5034 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5035 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5036 | fi |
ec6a6fbe AK |
5037 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5038 | $as_echo "$as_val"'` | |
5039 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5040 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5041 | else |
5042 | # Is the header compilable? | |
ec6a6fbe AK |
5043 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5044 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5045 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5046 | /* confdefs.h. */ |
5047 | _ACEOF | |
5048 | cat confdefs.h >>conftest.$ac_ext | |
5049 | cat >>conftest.$ac_ext <<_ACEOF | |
5050 | /* end confdefs.h. */ | |
5051 | $ac_includes_default | |
5052 | #include <$ac_header> | |
5053 | _ACEOF | |
5054 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5055 | if { (ac_try="$ac_compile" |
5056 | case "(($ac_try" in | |
5057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5058 | *) ac_try_echo=$ac_try;; | |
5059 | esac | |
ec6a6fbe AK |
5060 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5061 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5062 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5063 | ac_status=$? |
8a2fc586 AK |
5064 | grep -v '^ *+' conftest.er1 >conftest.err |
5065 | rm -f conftest.er1 | |
5066 | cat conftest.err >&5 | |
ec6a6fbe | 5067 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5068 | (exit $ac_status); } && { |
5069 | test -z "$ac_c_werror_flag" || | |
5070 | test ! -s conftest.err | |
5071 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5072 | ac_header_compiler=yes |
5073 | else | |
ec6a6fbe | 5074 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5075 | sed 's/^/| /' conftest.$ac_ext >&5 |
5076 | ||
7a197a62 | 5077 | ac_header_compiler=no |
ad6254c5 | 5078 | fi |
7a197a62 AK |
5079 | |
5080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5081 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5082 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5083 | |
5084 | # Is the header present? | |
ec6a6fbe AK |
5085 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5086 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5087 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5088 | /* confdefs.h. */ |
5089 | _ACEOF | |
5090 | cat confdefs.h >>conftest.$ac_ext | |
5091 | cat >>conftest.$ac_ext <<_ACEOF | |
5092 | /* end confdefs.h. */ | |
5093 | #include <$ac_header> | |
5094 | _ACEOF | |
7a197a62 AK |
5095 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5096 | case "(($ac_try" in | |
5097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5098 | *) ac_try_echo=$ac_try;; | |
5099 | esac | |
ec6a6fbe AK |
5100 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5101 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5102 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5103 | ac_status=$? |
5104 | grep -v '^ *+' conftest.er1 >conftest.err | |
5105 | rm -f conftest.er1 | |
5106 | cat conftest.err >&5 | |
ec6a6fbe | 5107 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5108 | (exit $ac_status); } >/dev/null && { |
5109 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5110 | test ! -s conftest.err | |
5111 | }; then | |
ad6254c5 AK |
5112 | ac_header_preproc=yes |
5113 | else | |
ec6a6fbe | 5114 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5115 | sed 's/^/| /' conftest.$ac_ext >&5 |
5116 | ||
5117 | ac_header_preproc=no | |
5118 | fi | |
7a197a62 | 5119 | |
ad6254c5 | 5120 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5121 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5122 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5123 | |
5124 | # So? What about this header? | |
8a2fc586 AK |
5125 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5126 | yes:no: ) | |
ec6a6fbe AK |
5127 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5128 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5129 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5130 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5131 | ac_header_preproc=yes |
ad6254c5 | 5132 | ;; |
8a2fc586 | 5133 | no:yes:* ) |
ec6a6fbe AK |
5134 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5135 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5136 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5137 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5138 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5139 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5140 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5141 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5142 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5143 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5144 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5145 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5146 | |
ad6254c5 AK |
5147 | ;; |
5148 | esac | |
ec6a6fbe AK |
5149 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5150 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5151 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5152 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5153 | else |
8a2fc586 | 5154 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 5155 | fi |
ec6a6fbe AK |
5156 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5157 | $as_echo "$as_val"'` | |
5158 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5159 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5160 | |
5161 | fi | |
ec6a6fbe AK |
5162 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5163 | $as_echo "$as_val"'` | |
5164 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5165 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5166 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5167 | _ACEOF |
4922197a | 5168 | |
4922197a | 5169 | else |
ec6a6fbe AK |
5170 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5171 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5172 | { (exit 1); exit 1; }; } |
80992638 AK |
5173 | fi |
5174 | ||
ad6254c5 | 5175 | done |
d0191583 JM |
5176 | ;; |
5177 | esac | |
4922197a | 5178 | |
4922197a | 5179 | |
4922197a | 5180 | |
ad6254c5 AK |
5181 | |
5182 | ||
d0191583 JM |
5183 | |
5184 | ||
5185 | ||
5186 | ||
5187 | ||
5188 | ||
5189 | ||
5190 | ||
5191 | ||
5192 | ||
5193 | ||
5194 | ||
5195 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
5196 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
5197 | sys/types.h unistd.h | |
ad6254c5 | 5198 | do |
ec6a6fbe | 5199 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5200 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5201 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5202 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5203 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5204 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5205 | fi |
ec6a6fbe AK |
5206 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5207 | $as_echo "$as_val"'` | |
5208 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5209 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 5210 | else |
ad6254c5 | 5211 | # Is the header compilable? |
ec6a6fbe AK |
5212 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5213 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5214 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5215 | /* confdefs.h. */ |
5216 | _ACEOF | |
5217 | cat confdefs.h >>conftest.$ac_ext | |
5218 | cat >>conftest.$ac_ext <<_ACEOF | |
5219 | /* end confdefs.h. */ | |
5220 | $ac_includes_default | |
5221 | #include <$ac_header> | |
5222 | _ACEOF | |
5223 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5224 | if { (ac_try="$ac_compile" |
5225 | case "(($ac_try" in | |
5226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5227 | *) ac_try_echo=$ac_try;; | |
5228 | esac | |
ec6a6fbe AK |
5229 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5230 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5231 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5232 | ac_status=$? |
8a2fc586 AK |
5233 | grep -v '^ *+' conftest.er1 >conftest.err |
5234 | rm -f conftest.er1 | |
5235 | cat conftest.err >&5 | |
ec6a6fbe | 5236 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5237 | (exit $ac_status); } && { |
5238 | test -z "$ac_c_werror_flag" || | |
5239 | test ! -s conftest.err | |
5240 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5241 | ac_header_compiler=yes |
5242 | else | |
ec6a6fbe | 5243 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5244 | sed 's/^/| /' conftest.$ac_ext >&5 |
5245 | ||
7a197a62 | 5246 | ac_header_compiler=no |
ad6254c5 | 5247 | fi |
7a197a62 AK |
5248 | |
5249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5250 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5251 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5252 | |
5253 | # Is the header present? | |
ec6a6fbe AK |
5254 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5255 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5256 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5257 | /* confdefs.h. */ |
5258 | _ACEOF | |
5259 | cat confdefs.h >>conftest.$ac_ext | |
5260 | cat >>conftest.$ac_ext <<_ACEOF | |
5261 | /* end confdefs.h. */ | |
5262 | #include <$ac_header> | |
5263 | _ACEOF | |
7a197a62 AK |
5264 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5265 | case "(($ac_try" in | |
5266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5267 | *) ac_try_echo=$ac_try;; | |
5268 | esac | |
ec6a6fbe AK |
5269 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5270 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5271 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5272 | ac_status=$? |
5273 | grep -v '^ *+' conftest.er1 >conftest.err | |
5274 | rm -f conftest.er1 | |
5275 | cat conftest.err >&5 | |
ec6a6fbe | 5276 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5277 | (exit $ac_status); } >/dev/null && { |
5278 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5279 | test ! -s conftest.err | |
5280 | }; then | |
ad6254c5 AK |
5281 | ac_header_preproc=yes |
5282 | else | |
ec6a6fbe | 5283 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5284 | sed 's/^/| /' conftest.$ac_ext >&5 |
5285 | ||
5286 | ac_header_preproc=no | |
5287 | fi | |
7a197a62 | 5288 | |
ad6254c5 | 5289 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5290 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5291 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5292 | |
5293 | # So? What about this header? | |
8a2fc586 AK |
5294 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5295 | yes:no: ) | |
ec6a6fbe AK |
5296 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5297 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5298 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5299 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5300 | ac_header_preproc=yes |
ad6254c5 | 5301 | ;; |
8a2fc586 | 5302 | no:yes:* ) |
ec6a6fbe AK |
5303 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5304 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5305 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5306 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5307 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5308 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5309 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5310 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5311 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5312 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5313 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5314 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5315 | |
ad6254c5 AK |
5316 | ;; |
5317 | esac | |
ec6a6fbe AK |
5318 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5319 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5320 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5321 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5322 | else |
8a2fc586 | 5323 | eval "$as_ac_Header=\$ac_header_preproc" |
80992638 | 5324 | fi |
ec6a6fbe AK |
5325 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5326 | $as_echo "$as_val"'` | |
5327 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5328 | $as_echo "$ac_res" >&6; } | |
80992638 | 5329 | |
ad6254c5 | 5330 | fi |
ec6a6fbe AK |
5331 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5332 | $as_echo "$as_val"'` | |
5333 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5334 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5335 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 5336 | _ACEOF |
795ca3e5 | 5337 | |
795ca3e5 | 5338 | else |
ec6a6fbe AK |
5339 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
5340 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 5341 | { (exit 1); exit 1; }; } |
80992638 AK |
5342 | fi |
5343 | ||
ad6254c5 | 5344 | done |
ad6254c5 | 5345 | |
795ca3e5 | 5346 | |
d0191583 JM |
5347 | |
5348 | for ac_header in termios.h sys/statvfs.h | |
ad6254c5 | 5349 | do |
ec6a6fbe | 5350 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 5351 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
5352 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5353 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5354 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5355 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5356 | fi |
ec6a6fbe AK |
5357 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5358 | $as_echo "$as_val"'` | |
5359 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5360 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
5361 | else |
5362 | # Is the header compilable? | |
ec6a6fbe AK |
5363 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5364 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 5365 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5366 | /* confdefs.h. */ |
5367 | _ACEOF | |
5368 | cat confdefs.h >>conftest.$ac_ext | |
5369 | cat >>conftest.$ac_ext <<_ACEOF | |
5370 | /* end confdefs.h. */ | |
5371 | $ac_includes_default | |
5372 | #include <$ac_header> | |
5373 | _ACEOF | |
5374 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5375 | if { (ac_try="$ac_compile" |
5376 | case "(($ac_try" in | |
5377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5378 | *) ac_try_echo=$ac_try;; | |
5379 | esac | |
ec6a6fbe AK |
5380 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5381 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5382 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5383 | ac_status=$? |
8a2fc586 AK |
5384 | grep -v '^ *+' conftest.er1 >conftest.err |
5385 | rm -f conftest.er1 | |
5386 | cat conftest.err >&5 | |
ec6a6fbe | 5387 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5388 | (exit $ac_status); } && { |
5389 | test -z "$ac_c_werror_flag" || | |
5390 | test ! -s conftest.err | |
5391 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5392 | ac_header_compiler=yes |
5393 | else | |
ec6a6fbe | 5394 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5395 | sed 's/^/| /' conftest.$ac_ext >&5 |
5396 | ||
7a197a62 | 5397 | ac_header_compiler=no |
ad6254c5 | 5398 | fi |
7a197a62 AK |
5399 | |
5400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5401 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5402 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
5403 | |
5404 | # Is the header present? | |
ec6a6fbe AK |
5405 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5406 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 5407 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5408 | /* confdefs.h. */ |
5409 | _ACEOF | |
5410 | cat confdefs.h >>conftest.$ac_ext | |
5411 | cat >>conftest.$ac_ext <<_ACEOF | |
5412 | /* end confdefs.h. */ | |
5413 | #include <$ac_header> | |
5414 | _ACEOF | |
7a197a62 AK |
5415 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5416 | case "(($ac_try" in | |
5417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5418 | *) ac_try_echo=$ac_try;; | |
5419 | esac | |
ec6a6fbe AK |
5420 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5421 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5422 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
5423 | ac_status=$? |
5424 | grep -v '^ *+' conftest.er1 >conftest.err | |
5425 | rm -f conftest.er1 | |
5426 | cat conftest.err >&5 | |
ec6a6fbe | 5427 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5428 | (exit $ac_status); } >/dev/null && { |
5429 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5430 | test ! -s conftest.err | |
5431 | }; then | |
ad6254c5 AK |
5432 | ac_header_preproc=yes |
5433 | else | |
ec6a6fbe | 5434 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5435 | sed 's/^/| /' conftest.$ac_ext >&5 |
5436 | ||
5437 | ac_header_preproc=no | |
5438 | fi | |
7a197a62 | 5439 | |
ad6254c5 | 5440 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
5441 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5442 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
5443 | |
5444 | # So? What about this header? | |
8a2fc586 AK |
5445 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5446 | yes:no: ) | |
ec6a6fbe AK |
5447 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5448 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5449 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5450 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 5451 | ac_header_preproc=yes |
ad6254c5 | 5452 | ;; |
8a2fc586 | 5453 | no:yes:* ) |
ec6a6fbe AK |
5454 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5455 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5456 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5457 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5458 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5459 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5460 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5461 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5462 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5463 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5464 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5465 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 5466 | |
ad6254c5 AK |
5467 | ;; |
5468 | esac | |
ec6a6fbe AK |
5469 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5470 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 5471 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 5472 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 5473 | else |
8a2fc586 | 5474 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 5475 | fi |
ec6a6fbe AK |
5476 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
5477 | $as_echo "$as_val"'` | |
5478 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5479 | $as_echo "$ac_res" >&6; } | |
b896caa1 | 5480 | |
ad6254c5 | 5481 | fi |
ec6a6fbe AK |
5482 | as_val=`eval 'as_val=${'$as_ac_Header'} |
5483 | $as_echo "$as_val"'` | |
5484 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 5485 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 5486 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
5487 | _ACEOF |
5488 | ||
80992638 AK |
5489 | fi |
5490 | ||
ad6254c5 | 5491 | done |
d0191583 | 5492 | |
d3c8211f | 5493 | |
80992638 | 5494 | ################################################################################ |
ec6a6fbe AK |
5495 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5496 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
ad6254c5 | 5497 | if test "${ac_cv_c_const+set}" = set; then |
ec6a6fbe | 5498 | $as_echo_n "(cached) " >&6 |
d3c8211f | 5499 | else |
ad6254c5 | 5500 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
5501 | /* confdefs.h. */ |
5502 | _ACEOF | |
5503 | cat confdefs.h >>conftest.$ac_ext | |
5504 | cat >>conftest.$ac_ext <<_ACEOF | |
5505 | /* end confdefs.h. */ | |
5506 | ||
5507 | int | |
5508 | main () | |
5509 | { | |
5510 | /* FIXME: Include the comments suggested by Paul. */ | |
5511 | #ifndef __cplusplus | |
5512 | /* Ultrix mips cc rejects this. */ | |
5513 | typedef int charset[2]; | |
25fbec5b | 5514 | const charset cs; |
ad6254c5 | 5515 | /* SunOS 4.1.1 cc rejects this. */ |
25fbec5b AK |
5516 | char const *const *pcpcc; |
5517 | char **ppc; | |
ad6254c5 AK |
5518 | /* NEC SVR4.0.2 mips cc rejects this. */ |
5519 | struct point {int x, y;}; | |
5520 | static struct point const zero = {0,0}; | |
5521 | /* AIX XL C 1.02.0.0 rejects this. | |
5522 | It does not let you subtract one const X* pointer from another in | |
5523 | an arm of an if-expression whose if-part is not a constant | |
5524 | expression */ | |
5525 | const char *g = "string"; | |
25fbec5b | 5526 | pcpcc = &g + (g ? g-g : 0); |
ad6254c5 | 5527 | /* HPUX 7.0 cc rejects these. */ |
25fbec5b AK |
5528 | ++pcpcc; |
5529 | ppc = (char**) pcpcc; | |
5530 | pcpcc = (char const *const *) ppc; | |
ad6254c5 AK |
5531 | { /* SCO 3.2v4 cc rejects this. */ |
5532 | char *t; | |
5533 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5534 | ||
5535 | *t++ = 0; | |
7a197a62 | 5536 | if (s) return 0; |
ad6254c5 AK |
5537 | } |
5538 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5539 | int x[] = {25, 17}; | |
5540 | const int *foo = &x[0]; | |
5541 | ++foo; | |
5542 | } | |
5543 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5544 | typedef const int *iptr; | |
5545 | iptr p = 0; | |
5546 | ++p; | |
5547 | } | |
5548 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5549 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5550 | struct s { int j; const int *ap[3]; }; | |
5551 | struct s *b; b->j = 5; | |
5552 | } | |
5553 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5554 | const int foo = 10; | |
7a197a62 | 5555 | if (!foo) return 0; |
ad6254c5 | 5556 | } |
25fbec5b | 5557 | return !cs[0] && !zero.x; |
ad6254c5 AK |
5558 | #endif |
5559 | ||
5560 | ; | |
5561 | return 0; | |
5562 | } | |
5563 | _ACEOF | |
5564 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5565 | if { (ac_try="$ac_compile" |
5566 | case "(($ac_try" in | |
5567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5568 | *) ac_try_echo=$ac_try;; | |
5569 | esac | |
ec6a6fbe AK |
5570 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5571 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5572 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5573 | ac_status=$? |
8a2fc586 AK |
5574 | grep -v '^ *+' conftest.er1 >conftest.err |
5575 | rm -f conftest.er1 | |
5576 | cat conftest.err >&5 | |
ec6a6fbe | 5577 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5578 | (exit $ac_status); } && { |
5579 | test -z "$ac_c_werror_flag" || | |
5580 | test ! -s conftest.err | |
5581 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
5582 | ac_cv_c_const=yes |
5583 | else | |
ec6a6fbe | 5584 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
5585 | sed 's/^/| /' conftest.$ac_ext >&5 |
5586 | ||
7a197a62 | 5587 | ac_cv_c_const=no |
ad6254c5 | 5588 | fi |
7a197a62 AK |
5589 | |
5590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
80992638 | 5591 | fi |
ec6a6fbe AK |
5592 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5593 | $as_echo "$ac_cv_c_const" >&6; } | |
ad6254c5 | 5594 | if test $ac_cv_c_const = no; then |
80992638 | 5595 | |
ad6254c5 | 5596 | cat >>confdefs.h <<\_ACEOF |
ec6a6fbe | 5597 | #define const /**/ |
ad6254c5 | 5598 | _ACEOF |
80992638 | 5599 | |
d3c8211f | 5600 | fi |
d3c8211f | 5601 | |
ec6a6fbe AK |
5602 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 |
5603 | $as_echo_n "checking for inline... " >&6; } | |
ad6254c5 | 5604 | if test "${ac_cv_c_inline+set}" = set; then |
ec6a6fbe | 5605 | $as_echo_n "(cached) " >&6 |
8ef2b021 | 5606 | else |
ad6254c5 AK |
5607 | ac_cv_c_inline=no |
5608 | for ac_kw in inline __inline__ __inline; do | |
5609 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
5610 | /* confdefs.h. */ |
5611 | _ACEOF | |
5612 | cat confdefs.h >>conftest.$ac_ext | |
5613 | cat >>conftest.$ac_ext <<_ACEOF | |
5614 | /* end confdefs.h. */ | |
5615 | #ifndef __cplusplus | |
5616 | typedef int foo_t; | |
5617 | static $ac_kw foo_t static_foo () {return 0; } | |
5618 | $ac_kw foo_t foo () {return 0; } | |
5619 | #endif | |
80992638 | 5620 | |
ad6254c5 AK |
5621 | _ACEOF |
5622 | rm -f conftest.$ac_objext | |
7a197a62 AK |
5623 | if { (ac_try="$ac_compile" |
5624 | case "(($ac_try" in | |
5625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5626 | *) ac_try_echo=$ac_try;; | |
5627 | esac | |
ec6a6fbe AK |
5628 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5629 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 5630 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 5631 | ac_status=$? |
8a2fc586 AK |
5632 | grep -v '^ *+' conftest.er1 >conftest.err |
5633 | rm -f conftest.er1 | |
5634 | cat conftest.err >&5 | |
ec6a6fbe | 5635 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
5636 | (exit $ac_status); } && { |
5637 | test -z "$ac_c_werror_flag" || | |
5638 | test ! -s conftest.err | |
5639 | } && test -s conftest.$ac_objext; then | |
7a197a62 | 5640 | ac_cv_c_inline=$ac_kw |
ad6254c5 | 5641 | else |
ec6a6fbe | 5642 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 5643 | sed 's/^/| /' conftest.$ac_ext >&5 |
8ef2b021 | 5644 | |
7a197a62 | 5645 | |
8ce0cbda | 5646 | fi |
7a197a62 AK |
5647 | |
5648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5649 | test "$ac_cv_c_inline" != no && break | |
ad6254c5 | 5650 | done |
8ce0cbda | 5651 | |
8ce0cbda | 5652 | fi |
ec6a6fbe AK |
5653 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5654 | $as_echo "$ac_cv_c_inline" >&6; } | |
8a2fc586 AK |
5655 | |
5656 | ||
ad6254c5 AK |
5657 | case $ac_cv_c_inline in |
5658 | inline | yes) ;; | |
8a2fc586 AK |
5659 | *) |
5660 | case $ac_cv_c_inline in | |
5661 | no) ac_val=;; | |
5662 | *) ac_val=$ac_cv_c_inline;; | |
5663 | esac | |
5664 | cat >>confdefs.h <<_ACEOF | |
5665 | #ifndef __cplusplus | |
5666 | #define inline $ac_val | |
5667 | #endif | |
c1c065a3 | 5668 | _ACEOF |
d0191583 JM |
5669 | ;; |
5670 | esac | |
5671 | ||
ec6a6fbe AK |
5672 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
5673 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
d0191583 | 5674 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 5675 | $as_echo_n "(cached) " >&6 |
d0191583 JM |
5676 | else |
5677 | cat >conftest.$ac_ext <<_ACEOF | |
5678 | /* confdefs.h. */ | |
5679 | _ACEOF | |
5680 | cat confdefs.h >>conftest.$ac_ext | |
5681 | cat >>conftest.$ac_ext <<_ACEOF | |
5682 | /* end confdefs.h. */ | |
5683 | $ac_includes_default | |
5684 | int | |
5685 | main () | |
5686 | { | |
5687 | static struct stat ac_aggr; | |
5688 | if (ac_aggr.st_rdev) | |
5689 | return 0; | |
5690 | ; | |
5691 | return 0; | |
5692 | } | |
5693 | _ACEOF | |
5694 | rm -f conftest.$ac_objext | |
5695 | if { (ac_try="$ac_compile" | |
5696 | case "(($ac_try" in | |
5697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5698 | *) ac_try_echo=$ac_try;; | |
5699 | esac | |
ec6a6fbe AK |
5700 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5701 | $as_echo "$ac_try_echo") >&5 | |
5702 | (eval "$ac_compile") 2>conftest.er1 | |
5703 | ac_status=$? | |
5704 | grep -v '^ *+' conftest.er1 >conftest.err | |
5705 | rm -f conftest.er1 | |
5706 | cat conftest.err >&5 | |
5707 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5708 | (exit $ac_status); } && { | |
5709 | test -z "$ac_c_werror_flag" || | |
5710 | test ! -s conftest.err | |
5711 | } && test -s conftest.$ac_objext; then | |
5712 | ac_cv_member_struct_stat_st_rdev=yes | |
5713 | else | |
5714 | $as_echo "$as_me: failed program was:" >&5 | |
5715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5716 | ||
5717 | cat >conftest.$ac_ext <<_ACEOF | |
5718 | /* confdefs.h. */ | |
5719 | _ACEOF | |
5720 | cat confdefs.h >>conftest.$ac_ext | |
5721 | cat >>conftest.$ac_ext <<_ACEOF | |
5722 | /* end confdefs.h. */ | |
5723 | $ac_includes_default | |
5724 | int | |
5725 | main () | |
5726 | { | |
5727 | static struct stat ac_aggr; | |
5728 | if (sizeof ac_aggr.st_rdev) | |
5729 | return 0; | |
5730 | ; | |
5731 | return 0; | |
5732 | } | |
5733 | _ACEOF | |
5734 | rm -f conftest.$ac_objext | |
5735 | if { (ac_try="$ac_compile" | |
5736 | case "(($ac_try" in | |
5737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5738 | *) ac_try_echo=$ac_try;; | |
5739 | esac | |
5740 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5741 | $as_echo "$ac_try_echo") >&5 | |
5742 | (eval "$ac_compile") 2>conftest.er1 | |
5743 | ac_status=$? | |
5744 | grep -v '^ *+' conftest.er1 >conftest.err | |
5745 | rm -f conftest.er1 | |
5746 | cat conftest.err >&5 | |
5747 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5748 | (exit $ac_status); } && { | |
5749 | test -z "$ac_c_werror_flag" || | |
5750 | test ! -s conftest.err | |
5751 | } && test -s conftest.$ac_objext; then | |
5752 | ac_cv_member_struct_stat_st_rdev=yes | |
5753 | else | |
5754 | $as_echo "$as_me: failed program was:" >&5 | |
5755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5756 | ||
5757 | ac_cv_member_struct_stat_st_rdev=no | |
5758 | fi | |
5759 | ||
5760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5761 | fi | |
5762 | ||
5763 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5764 | fi | |
5765 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
5766 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
5767 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
5768 | ||
5769 | cat >>confdefs.h <<_ACEOF | |
5770 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5771 | _ACEOF | |
5772 | ||
5773 | ||
5774 | fi | |
5775 | ||
5776 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 | |
5777 | $as_echo_n "checking for off_t... " >&6; } | |
5778 | if test "${ac_cv_type_off_t+set}" = set; then | |
5779 | $as_echo_n "(cached) " >&6 | |
5780 | else | |
5781 | ac_cv_type_off_t=no | |
5782 | cat >conftest.$ac_ext <<_ACEOF | |
5783 | /* confdefs.h. */ | |
5784 | _ACEOF | |
5785 | cat confdefs.h >>conftest.$ac_ext | |
5786 | cat >>conftest.$ac_ext <<_ACEOF | |
5787 | /* end confdefs.h. */ | |
5788 | $ac_includes_default | |
5789 | int | |
5790 | main () | |
5791 | { | |
5792 | if (sizeof (off_t)) | |
5793 | return 0; | |
5794 | ; | |
5795 | return 0; | |
5796 | } | |
5797 | _ACEOF | |
5798 | rm -f conftest.$ac_objext | |
5799 | if { (ac_try="$ac_compile" | |
5800 | case "(($ac_try" in | |
5801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5802 | *) ac_try_echo=$ac_try;; | |
5803 | esac | |
5804 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5805 | $as_echo "$ac_try_echo") >&5 | |
5806 | (eval "$ac_compile") 2>conftest.er1 | |
5807 | ac_status=$? | |
5808 | grep -v '^ *+' conftest.er1 >conftest.err | |
5809 | rm -f conftest.er1 | |
5810 | cat conftest.err >&5 | |
5811 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5812 | (exit $ac_status); } && { | |
5813 | test -z "$ac_c_werror_flag" || | |
5814 | test ! -s conftest.err | |
5815 | } && test -s conftest.$ac_objext; then | |
5816 | cat >conftest.$ac_ext <<_ACEOF | |
5817 | /* confdefs.h. */ | |
5818 | _ACEOF | |
5819 | cat confdefs.h >>conftest.$ac_ext | |
5820 | cat >>conftest.$ac_ext <<_ACEOF | |
5821 | /* end confdefs.h. */ | |
5822 | $ac_includes_default | |
5823 | int | |
5824 | main () | |
5825 | { | |
5826 | if (sizeof ((off_t))) | |
5827 | return 0; | |
5828 | ; | |
5829 | return 0; | |
5830 | } | |
5831 | _ACEOF | |
5832 | rm -f conftest.$ac_objext | |
5833 | if { (ac_try="$ac_compile" | |
5834 | case "(($ac_try" in | |
5835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5836 | *) ac_try_echo=$ac_try;; | |
5837 | esac | |
5838 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5839 | $as_echo "$ac_try_echo") >&5 | |
5840 | (eval "$ac_compile") 2>conftest.er1 | |
5841 | ac_status=$? | |
5842 | grep -v '^ *+' conftest.er1 >conftest.err | |
5843 | rm -f conftest.er1 | |
5844 | cat conftest.err >&5 | |
5845 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5846 | (exit $ac_status); } && { | |
5847 | test -z "$ac_c_werror_flag" || | |
5848 | test ! -s conftest.err | |
5849 | } && test -s conftest.$ac_objext; then | |
5850 | : | |
5851 | else | |
5852 | $as_echo "$as_me: failed program was:" >&5 | |
5853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5854 | ||
5855 | ac_cv_type_off_t=yes | |
5856 | fi | |
5857 | ||
5858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5859 | else | |
5860 | $as_echo "$as_me: failed program was:" >&5 | |
5861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5862 | ||
5863 | ||
5864 | fi | |
5865 | ||
5866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5867 | fi | |
5868 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
5869 | $as_echo "$ac_cv_type_off_t" >&6; } | |
5870 | if test "x$ac_cv_type_off_t" = x""yes; then | |
5871 | : | |
5872 | else | |
5873 | ||
5874 | cat >>confdefs.h <<_ACEOF | |
5875 | #define off_t long int | |
5876 | _ACEOF | |
5877 | ||
5878 | fi | |
5879 | ||
5880 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 | |
5881 | $as_echo_n "checking for pid_t... " >&6; } | |
5882 | if test "${ac_cv_type_pid_t+set}" = set; then | |
5883 | $as_echo_n "(cached) " >&6 | |
5884 | else | |
5885 | ac_cv_type_pid_t=no | |
5886 | cat >conftest.$ac_ext <<_ACEOF | |
5887 | /* confdefs.h. */ | |
5888 | _ACEOF | |
5889 | cat confdefs.h >>conftest.$ac_ext | |
5890 | cat >>conftest.$ac_ext <<_ACEOF | |
5891 | /* end confdefs.h. */ | |
5892 | $ac_includes_default | |
5893 | int | |
5894 | main () | |
5895 | { | |
5896 | if (sizeof (pid_t)) | |
5897 | return 0; | |
5898 | ; | |
5899 | return 0; | |
5900 | } | |
5901 | _ACEOF | |
5902 | rm -f conftest.$ac_objext | |
5903 | if { (ac_try="$ac_compile" | |
5904 | case "(($ac_try" in | |
5905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5906 | *) ac_try_echo=$ac_try;; | |
5907 | esac | |
5908 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
5909 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5910 | (eval "$ac_compile") 2>conftest.er1 |
5911 | ac_status=$? | |
5912 | grep -v '^ *+' conftest.er1 >conftest.err | |
5913 | rm -f conftest.er1 | |
5914 | cat conftest.err >&5 | |
ec6a6fbe | 5915 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5916 | (exit $ac_status); } && { |
5917 | test -z "$ac_c_werror_flag" || | |
5918 | test ! -s conftest.err | |
5919 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5920 | cat >conftest.$ac_ext <<_ACEOF |
d0191583 JM |
5921 | /* confdefs.h. */ |
5922 | _ACEOF | |
5923 | cat confdefs.h >>conftest.$ac_ext | |
5924 | cat >>conftest.$ac_ext <<_ACEOF | |
5925 | /* end confdefs.h. */ | |
5926 | $ac_includes_default | |
5927 | int | |
5928 | main () | |
5929 | { | |
ec6a6fbe AK |
5930 | if (sizeof ((pid_t))) |
5931 | return 0; | |
d0191583 JM |
5932 | ; |
5933 | return 0; | |
5934 | } | |
5935 | _ACEOF | |
5936 | rm -f conftest.$ac_objext | |
5937 | if { (ac_try="$ac_compile" | |
5938 | case "(($ac_try" in | |
5939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5940 | *) ac_try_echo=$ac_try;; | |
5941 | esac | |
ec6a6fbe AK |
5942 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
5943 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
5944 | (eval "$ac_compile") 2>conftest.er1 |
5945 | ac_status=$? | |
5946 | grep -v '^ *+' conftest.er1 >conftest.err | |
5947 | rm -f conftest.er1 | |
5948 | cat conftest.err >&5 | |
ec6a6fbe | 5949 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
5950 | (exit $ac_status); } && { |
5951 | test -z "$ac_c_werror_flag" || | |
5952 | test ! -s conftest.err | |
5953 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 5954 | : |
d0191583 | 5955 | else |
ec6a6fbe | 5956 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
5957 | sed 's/^/| /' conftest.$ac_ext >&5 |
5958 | ||
ec6a6fbe | 5959 | ac_cv_type_pid_t=yes |
d0191583 JM |
5960 | fi |
5961 | ||
5962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
5963 | else |
5964 | $as_echo "$as_me: failed program was:" >&5 | |
5965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5966 | ||
5967 | ||
d0191583 JM |
5968 | fi |
5969 | ||
5970 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5971 | fi | |
ec6a6fbe AK |
5972 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5973 | $as_echo "$ac_cv_type_pid_t" >&6; } | |
5974 | if test "x$ac_cv_type_pid_t" = x""yes; then | |
5975 | : | |
5976 | else | |
d0191583 JM |
5977 | |
5978 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 5979 | #define pid_t int |
d0191583 JM |
5980 | _ACEOF |
5981 | ||
d0191583 | 5982 | fi |
8ce0cbda | 5983 | |
ec6a6fbe AK |
5984 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
5985 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
5986 | if test "${ac_cv_type_signal+set}" = set; then | |
5987 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 5988 | else |
b145d876 ZK |
5989 | cat >conftest.$ac_ext <<_ACEOF |
5990 | /* confdefs.h. */ | |
5991 | _ACEOF | |
5992 | cat confdefs.h >>conftest.$ac_ext | |
5993 | cat >>conftest.$ac_ext <<_ACEOF | |
5994 | /* end confdefs.h. */ | |
ec6a6fbe AK |
5995 | #include <sys/types.h> |
5996 | #include <signal.h> | |
5997 | ||
b145d876 ZK |
5998 | int |
5999 | main () | |
6000 | { | |
ec6a6fbe | 6001 | return *(signal (0, 0)) (0) == 1; |
ad6254c5 AK |
6002 | ; |
6003 | return 0; | |
6004 | } | |
6005 | _ACEOF | |
6006 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6007 | if { (ac_try="$ac_compile" |
6008 | case "(($ac_try" in | |
6009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6010 | *) ac_try_echo=$ac_try;; | |
6011 | esac | |
ec6a6fbe AK |
6012 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6013 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6014 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6015 | ac_status=$? |
8a2fc586 AK |
6016 | grep -v '^ *+' conftest.er1 >conftest.err |
6017 | rm -f conftest.er1 | |
6018 | cat conftest.err >&5 | |
ec6a6fbe | 6019 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6020 | (exit $ac_status); } && { |
6021 | test -z "$ac_c_werror_flag" || | |
6022 | test ! -s conftest.err | |
6023 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 6024 | ac_cv_type_signal=int |
b145d876 | 6025 | else |
ec6a6fbe | 6026 | $as_echo "$as_me: failed program was:" >&5 |
b145d876 ZK |
6027 | sed 's/^/| /' conftest.$ac_ext >&5 |
6028 | ||
ec6a6fbe | 6029 | ac_cv_type_signal=void |
ad6254c5 | 6030 | fi |
b145d876 ZK |
6031 | |
6032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6033 | fi | |
ec6a6fbe AK |
6034 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
6035 | $as_echo "$ac_cv_type_signal" >&6; } | |
80992638 | 6036 | |
ad6254c5 | 6037 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 6038 | #define RETSIGTYPE $ac_cv_type_signal |
ad6254c5 | 6039 | _ACEOF |
199e490e | 6040 | |
b896caa1 | 6041 | |
ec6a6fbe AK |
6042 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
6043 | $as_echo_n "checking for size_t... " >&6; } | |
6044 | if test "${ac_cv_type_size_t+set}" = set; then | |
6045 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 6046 | else |
ec6a6fbe AK |
6047 | ac_cv_type_size_t=no |
6048 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
6049 | /* confdefs.h. */ |
6050 | _ACEOF | |
6051 | cat confdefs.h >>conftest.$ac_ext | |
6052 | cat >>conftest.$ac_ext <<_ACEOF | |
6053 | /* end confdefs.h. */ | |
6054 | $ac_includes_default | |
6055 | int | |
6056 | main () | |
6057 | { | |
ec6a6fbe AK |
6058 | if (sizeof (size_t)) |
6059 | return 0; | |
ad6254c5 AK |
6060 | ; |
6061 | return 0; | |
6062 | } | |
6063 | _ACEOF | |
6064 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6065 | if { (ac_try="$ac_compile" |
6066 | case "(($ac_try" in | |
6067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6068 | *) ac_try_echo=$ac_try;; | |
6069 | esac | |
ec6a6fbe AK |
6070 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6071 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6072 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6073 | ac_status=$? |
8a2fc586 AK |
6074 | grep -v '^ *+' conftest.er1 >conftest.err |
6075 | rm -f conftest.er1 | |
6076 | cat conftest.err >&5 | |
ec6a6fbe | 6077 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6078 | (exit $ac_status); } && { |
6079 | test -z "$ac_c_werror_flag" || | |
6080 | test ! -s conftest.err | |
6081 | } && test -s conftest.$ac_objext; then | |
d0191583 JM |
6082 | cat >conftest.$ac_ext <<_ACEOF |
6083 | /* confdefs.h. */ | |
6084 | _ACEOF | |
6085 | cat confdefs.h >>conftest.$ac_ext | |
6086 | cat >>conftest.$ac_ext <<_ACEOF | |
6087 | /* end confdefs.h. */ | |
ec6a6fbe | 6088 | $ac_includes_default |
d0191583 JM |
6089 | int |
6090 | main () | |
6091 | { | |
ec6a6fbe AK |
6092 | if (sizeof ((size_t))) |
6093 | return 0; | |
d0191583 JM |
6094 | ; |
6095 | return 0; | |
6096 | } | |
6097 | _ACEOF | |
6098 | rm -f conftest.$ac_objext | |
6099 | if { (ac_try="$ac_compile" | |
6100 | case "(($ac_try" in | |
6101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6102 | *) ac_try_echo=$ac_try;; | |
6103 | esac | |
ec6a6fbe AK |
6104 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6105 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
6106 | (eval "$ac_compile") 2>conftest.er1 |
6107 | ac_status=$? | |
6108 | grep -v '^ *+' conftest.er1 >conftest.err | |
6109 | rm -f conftest.er1 | |
6110 | cat conftest.err >&5 | |
ec6a6fbe | 6111 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
6112 | (exit $ac_status); } && { |
6113 | test -z "$ac_c_werror_flag" || | |
6114 | test ! -s conftest.err | |
6115 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe | 6116 | : |
d0191583 | 6117 | else |
ec6a6fbe | 6118 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 JM |
6119 | sed 's/^/| /' conftest.$ac_ext >&5 |
6120 | ||
ec6a6fbe AK |
6121 | ac_cv_type_size_t=yes |
6122 | fi | |
6123 | ||
6124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6125 | else | |
6126 | $as_echo "$as_me: failed program was:" >&5 | |
6127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6128 | ||
6129 | ||
d0191583 JM |
6130 | fi |
6131 | ||
6132 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6133 | fi | |
ec6a6fbe AK |
6134 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
6135 | $as_echo "$ac_cv_type_size_t" >&6; } | |
6136 | if test "x$ac_cv_type_size_t" = x""yes; then | |
6137 | : | |
6138 | else | |
d0191583 JM |
6139 | |
6140 | cat >>confdefs.h <<_ACEOF | |
ec6a6fbe | 6141 | #define size_t unsigned int |
d0191583 JM |
6142 | _ACEOF |
6143 | ||
ec6a6fbe | 6144 | fi |
d0191583 | 6145 | |
ec6a6fbe AK |
6146 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
6147 | $as_echo_n "checking for mode_t... " >&6; } | |
6148 | if test "${ac_cv_type_mode_t+set}" = set; then | |
6149 | $as_echo_n "(cached) " >&6 | |
8106cdd5 | 6150 | else |
ec6a6fbe AK |
6151 | ac_cv_type_mode_t=no |
6152 | cat >conftest.$ac_ext <<_ACEOF | |
b145d876 ZK |
6153 | /* confdefs.h. */ |
6154 | _ACEOF | |
6155 | cat confdefs.h >>conftest.$ac_ext | |
6156 | cat >>conftest.$ac_ext <<_ACEOF | |
6157 | /* end confdefs.h. */ | |
6158 | $ac_includes_default | |
6159 | int | |
6160 | main () | |
6161 | { | |
ec6a6fbe AK |
6162 | if (sizeof (mode_t)) |
6163 | return 0; | |
ad6254c5 AK |
6164 | ; |
6165 | return 0; | |
6166 | } | |
6167 | _ACEOF | |
6168 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6169 | if { (ac_try="$ac_compile" |
6170 | case "(($ac_try" in | |
6171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6172 | *) ac_try_echo=$ac_try;; | |
6173 | esac | |
ec6a6fbe AK |
6174 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6175 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6176 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6177 | ac_status=$? |
8a2fc586 AK |
6178 | grep -v '^ *+' conftest.er1 >conftest.err |
6179 | rm -f conftest.er1 | |
6180 | cat conftest.err >&5 | |
ec6a6fbe | 6181 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6182 | (exit $ac_status); } && { |
6183 | test -z "$ac_c_werror_flag" || | |
6184 | test ! -s conftest.err | |
6185 | } && test -s conftest.$ac_objext; then | |
b145d876 ZK |
6186 | cat >conftest.$ac_ext <<_ACEOF |
6187 | /* confdefs.h. */ | |
6188 | _ACEOF | |
6189 | cat confdefs.h >>conftest.$ac_ext | |
6190 | cat >>conftest.$ac_ext <<_ACEOF | |
6191 | /* end confdefs.h. */ | |
6192 | $ac_includes_default | |
6193 | int | |
6194 | main () | |
6195 | { | |
ec6a6fbe AK |
6196 | if (sizeof ((mode_t))) |
6197 | return 0; | |
ad6254c5 AK |
6198 | ; |
6199 | return 0; | |
6200 | } | |
6201 | _ACEOF | |
6202 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6203 | if { (ac_try="$ac_compile" |
6204 | case "(($ac_try" in | |
6205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6206 | *) ac_try_echo=$ac_try;; | |
6207 | esac | |
ec6a6fbe AK |
6208 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6209 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6210 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6211 | ac_status=$? |
8a2fc586 AK |
6212 | grep -v '^ *+' conftest.er1 >conftest.err |
6213 | rm -f conftest.er1 | |
6214 | cat conftest.err >&5 | |
ec6a6fbe | 6215 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6216 | (exit $ac_status); } && { |
6217 | test -z "$ac_c_werror_flag" || | |
6218 | test ! -s conftest.err | |
6219 | } && test -s conftest.$ac_objext; then | |
ec6a6fbe AK |
6220 | : |
6221 | else | |
6222 | $as_echo "$as_me: failed program was:" >&5 | |
6223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6224 | ||
6225 | ac_cv_type_mode_t=yes | |
6226 | fi | |
6227 | ||
6228 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fddafd51 | 6229 | else |
ec6a6fbe | 6230 | $as_echo "$as_me: failed program was:" >&5 |
fddafd51 ZK |
6231 | sed 's/^/| /' conftest.$ac_ext >&5 |
6232 | ||
ec6a6fbe | 6233 | |
80992638 | 6234 | fi |
7a197a62 AK |
6235 | |
6236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6237 | fi |
ec6a6fbe AK |
6238 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
6239 | $as_echo "$ac_cv_type_mode_t" >&6; } | |
6240 | if test "x$ac_cv_type_mode_t" = x""yes; then | |
ad6254c5 AK |
6241 | : |
6242 | else | |
80992638 | 6243 | |
ad6254c5 AK |
6244 | cat >>confdefs.h <<_ACEOF |
6245 | #define mode_t int | |
6246 | _ACEOF | |
6247 | ||
6248 | fi | |
6249 | ||
ec6a6fbe AK |
6250 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
6251 | $as_echo_n "checking for struct stat.st_rdev... " >&6; } | |
ad6254c5 | 6252 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
ec6a6fbe | 6253 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6254 | else |
6255 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6256 | /* confdefs.h. */ |
6257 | _ACEOF | |
6258 | cat confdefs.h >>conftest.$ac_ext | |
6259 | cat >>conftest.$ac_ext <<_ACEOF | |
6260 | /* end confdefs.h. */ | |
6261 | $ac_includes_default | |
6262 | int | |
6263 | main () | |
6264 | { | |
6265 | static struct stat ac_aggr; | |
6266 | if (ac_aggr.st_rdev) | |
6267 | return 0; | |
6268 | ; | |
6269 | return 0; | |
6270 | } | |
6271 | _ACEOF | |
6272 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6273 | if { (ac_try="$ac_compile" |
6274 | case "(($ac_try" in | |
6275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6276 | *) ac_try_echo=$ac_try;; | |
6277 | esac | |
ec6a6fbe AK |
6278 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6279 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6280 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6281 | ac_status=$? |
8a2fc586 AK |
6282 | grep -v '^ *+' conftest.er1 >conftest.err |
6283 | rm -f conftest.er1 | |
6284 | cat conftest.err >&5 | |
ec6a6fbe | 6285 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6286 | (exit $ac_status); } && { |
6287 | test -z "$ac_c_werror_flag" || | |
6288 | test ! -s conftest.err | |
6289 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6290 | ac_cv_member_struct_stat_st_rdev=yes |
6291 | else | |
ec6a6fbe | 6292 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6293 | sed 's/^/| /' conftest.$ac_ext >&5 |
6294 | ||
7a197a62 | 6295 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6296 | /* confdefs.h. */ |
6297 | _ACEOF | |
6298 | cat confdefs.h >>conftest.$ac_ext | |
6299 | cat >>conftest.$ac_ext <<_ACEOF | |
6300 | /* end confdefs.h. */ | |
6301 | $ac_includes_default | |
6302 | int | |
6303 | main () | |
6304 | { | |
6305 | static struct stat ac_aggr; | |
6306 | if (sizeof ac_aggr.st_rdev) | |
6307 | return 0; | |
6308 | ; | |
6309 | return 0; | |
6310 | } | |
6311 | _ACEOF | |
6312 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6313 | if { (ac_try="$ac_compile" |
6314 | case "(($ac_try" in | |
6315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6316 | *) ac_try_echo=$ac_try;; | |
6317 | esac | |
ec6a6fbe AK |
6318 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6319 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6320 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6321 | ac_status=$? |
8a2fc586 AK |
6322 | grep -v '^ *+' conftest.er1 >conftest.err |
6323 | rm -f conftest.er1 | |
6324 | cat conftest.err >&5 | |
ec6a6fbe | 6325 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6326 | (exit $ac_status); } && { |
6327 | test -z "$ac_c_werror_flag" || | |
6328 | test ! -s conftest.err | |
6329 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6330 | ac_cv_member_struct_stat_st_rdev=yes |
6331 | else | |
ec6a6fbe | 6332 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6333 | sed 's/^/| /' conftest.$ac_ext >&5 |
6334 | ||
7a197a62 | 6335 | ac_cv_member_struct_stat_st_rdev=no |
ad6254c5 | 6336 | fi |
7a197a62 AK |
6337 | |
6338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6339 | fi |
7a197a62 AK |
6340 | |
6341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6342 | fi |
ec6a6fbe AK |
6343 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
6344 | $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; } | |
6345 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then | |
ad6254c5 AK |
6346 | |
6347 | cat >>confdefs.h <<_ACEOF | |
6348 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
6349 | _ACEOF | |
6350 | ||
6351 | ||
ad6254c5 AK |
6352 | fi |
6353 | ||
ec6a6fbe AK |
6354 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
6355 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
ad6254c5 | 6356 | if test "${ac_cv_struct_tm+set}" = set; then |
ec6a6fbe | 6357 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6358 | else |
6359 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6360 | /* confdefs.h. */ |
6361 | _ACEOF | |
6362 | cat confdefs.h >>conftest.$ac_ext | |
6363 | cat >>conftest.$ac_ext <<_ACEOF | |
6364 | /* end confdefs.h. */ | |
6365 | #include <sys/types.h> | |
6366 | #include <time.h> | |
6367 | ||
6368 | int | |
6369 | main () | |
6370 | { | |
25fbec5b AK |
6371 | struct tm tm; |
6372 | int *p = &tm.tm_sec; | |
ec6a6fbe | 6373 | return !p; |
ad6254c5 AK |
6374 | ; |
6375 | return 0; | |
6376 | } | |
6377 | _ACEOF | |
6378 | rm -f conftest.$ac_objext | |
7a197a62 AK |
6379 | if { (ac_try="$ac_compile" |
6380 | case "(($ac_try" in | |
6381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6382 | *) ac_try_echo=$ac_try;; | |
6383 | esac | |
ec6a6fbe AK |
6384 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6385 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6386 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 6387 | ac_status=$? |
8a2fc586 AK |
6388 | grep -v '^ *+' conftest.er1 >conftest.err |
6389 | rm -f conftest.er1 | |
6390 | cat conftest.err >&5 | |
ec6a6fbe | 6391 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6392 | (exit $ac_status); } && { |
6393 | test -z "$ac_c_werror_flag" || | |
6394 | test ! -s conftest.err | |
6395 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
6396 | ac_cv_struct_tm=time.h |
6397 | else | |
ec6a6fbe | 6398 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6399 | sed 's/^/| /' conftest.$ac_ext >&5 |
6400 | ||
7a197a62 | 6401 | ac_cv_struct_tm=sys/time.h |
ad6254c5 | 6402 | fi |
7a197a62 AK |
6403 | |
6404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 6405 | fi |
ec6a6fbe AK |
6406 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
6407 | $as_echo "$ac_cv_struct_tm" >&6; } | |
ad6254c5 AK |
6408 | if test $ac_cv_struct_tm = sys/time.h; then |
6409 | ||
6410 | cat >>confdefs.h <<\_ACEOF | |
6411 | #define TM_IN_SYS_TIME 1 | |
6412 | _ACEOF | |
6413 | ||
6414 | fi | |
809fae91 | 6415 | |
795ca3e5 | 6416 | |
80992638 | 6417 | ################################################################################ |
ad6254c5 AK |
6418 | |
6419 | ||
6420 | ||
6421 | ||
6422 | ||
6423 | ||
6424 | ||
6425 | ||
6426 | ||
6427 | ||
6428 | ||
6429 | ||
6430 | ||
6431 | ||
d0191583 JM |
6432 | |
6433 | ||
6434 | ||
6435 | for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \ | |
6436 | strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \ | |
6437 | uname | |
ad6254c5 | 6438 | do |
ec6a6fbe AK |
6439 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6440 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6441 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6442 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6443 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 6444 | else |
ad6254c5 | 6445 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
6446 | /* confdefs.h. */ |
6447 | _ACEOF | |
6448 | cat confdefs.h >>conftest.$ac_ext | |
6449 | cat >>conftest.$ac_ext <<_ACEOF | |
6450 | /* end confdefs.h. */ | |
8a2fc586 AK |
6451 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6452 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6453 | #define $ac_func innocuous_$ac_func | |
6454 | ||
ad6254c5 AK |
6455 | /* System header to define __stub macros and hopefully few prototypes, |
6456 | which can conflict with char $ac_func (); below. | |
6457 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6458 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6459 | |
ad6254c5 AK |
6460 | #ifdef __STDC__ |
6461 | # include <limits.h> | |
6462 | #else | |
6463 | # include <assert.h> | |
6464 | #endif | |
8a2fc586 AK |
6465 | |
6466 | #undef $ac_func | |
6467 | ||
7a197a62 AK |
6468 | /* Override any GCC internal prototype to avoid an error. |
6469 | Use char because int might match the return type of a GCC | |
6470 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6471 | #ifdef __cplusplus |
6472 | extern "C" | |
ad6254c5 | 6473 | #endif |
ad6254c5 AK |
6474 | char $ac_func (); |
6475 | /* The GNU C library defines this for functions which it implements | |
6476 | to always fail with ENOSYS. Some functions are actually named | |
6477 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6478 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6479 | choke me |
ad6254c5 AK |
6480 | #endif |
6481 | ||
6482 | int | |
6483 | main () | |
6484 | { | |
7a197a62 | 6485 | return $ac_func (); |
ad6254c5 AK |
6486 | ; |
6487 | return 0; | |
6488 | } | |
6489 | _ACEOF | |
6490 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6491 | if { (ac_try="$ac_link" |
6492 | case "(($ac_try" in | |
6493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6494 | *) ac_try_echo=$ac_try;; | |
6495 | esac | |
ec6a6fbe AK |
6496 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6497 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6498 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6499 | ac_status=$? |
8a2fc586 AK |
6500 | grep -v '^ *+' conftest.er1 >conftest.err |
6501 | rm -f conftest.er1 | |
6502 | cat conftest.err >&5 | |
ec6a6fbe | 6503 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6504 | (exit $ac_status); } && { |
6505 | test -z "$ac_c_werror_flag" || | |
6506 | test ! -s conftest.err | |
ec6a6fbe AK |
6507 | } && test -s conftest$ac_exeext && { |
6508 | test "$cross_compiling" = yes || | |
6509 | $as_test_x conftest$ac_exeext | |
6510 | }; then | |
fc54be10 AK |
6511 | eval "$as_ac_var=yes" |
6512 | else | |
ec6a6fbe | 6513 | $as_echo "$as_me: failed program was:" >&5 |
fc54be10 AK |
6514 | sed 's/^/| /' conftest.$ac_ext >&5 |
6515 | ||
6516 | eval "$as_ac_var=no" | |
6517 | fi | |
6518 | ||
ec6a6fbe | 6519 | rm -rf conftest.dSYM |
25fbec5b | 6520 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
fc54be10 AK |
6521 | conftest$ac_exeext conftest.$ac_ext |
6522 | fi | |
ec6a6fbe AK |
6523 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6524 | $as_echo "$as_val"'` | |
6525 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6526 | $as_echo "$ac_res" >&6; } | |
6527 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6528 | $as_echo "$as_val"'` | |
6529 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 6530 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 6531 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
6532 | _ACEOF |
6533 | ||
6534 | else | |
ec6a6fbe AK |
6535 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
6536 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
6537 | { (exit 1); exit 1; }; } |
6538 | fi | |
6539 | done | |
795ca3e5 | 6540 | |
a0f9708e AK |
6541 | |
6542 | for ac_func in siginterrupt | |
6543 | do | |
6544 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6545 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6546 | $as_echo_n "checking for $ac_func... " >&6; } | |
6547 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
6548 | $as_echo_n "(cached) " >&6 | |
6549 | else | |
6550 | cat >conftest.$ac_ext <<_ACEOF | |
6551 | /* confdefs.h. */ | |
6552 | _ACEOF | |
6553 | cat confdefs.h >>conftest.$ac_ext | |
6554 | cat >>conftest.$ac_ext <<_ACEOF | |
6555 | /* end confdefs.h. */ | |
6556 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6557 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6558 | #define $ac_func innocuous_$ac_func | |
6559 | ||
6560 | /* System header to define __stub macros and hopefully few prototypes, | |
6561 | which can conflict with char $ac_func (); below. | |
6562 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6563 | <limits.h> exists even on freestanding compilers. */ | |
6564 | ||
6565 | #ifdef __STDC__ | |
6566 | # include <limits.h> | |
6567 | #else | |
6568 | # include <assert.h> | |
6569 | #endif | |
6570 | ||
6571 | #undef $ac_func | |
6572 | ||
6573 | /* Override any GCC internal prototype to avoid an error. | |
6574 | Use char because int might match the return type of a GCC | |
6575 | builtin and then its argument prototype would still apply. */ | |
6576 | #ifdef __cplusplus | |
6577 | extern "C" | |
6578 | #endif | |
6579 | char $ac_func (); | |
6580 | /* The GNU C library defines this for functions which it implements | |
6581 | to always fail with ENOSYS. Some functions are actually named | |
6582 | something starting with __ and the normal name is an alias. */ | |
6583 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
6584 | choke me | |
6585 | #endif | |
6586 | ||
6587 | int | |
6588 | main () | |
6589 | { | |
6590 | return $ac_func (); | |
6591 | ; | |
6592 | return 0; | |
6593 | } | |
6594 | _ACEOF | |
6595 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6596 | if { (ac_try="$ac_link" | |
6597 | case "(($ac_try" in | |
6598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6599 | *) ac_try_echo=$ac_try;; | |
6600 | esac | |
6601 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
6602 | $as_echo "$ac_try_echo") >&5 | |
6603 | (eval "$ac_link") 2>conftest.er1 | |
6604 | ac_status=$? | |
6605 | grep -v '^ *+' conftest.er1 >conftest.err | |
6606 | rm -f conftest.er1 | |
6607 | cat conftest.err >&5 | |
6608 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6609 | (exit $ac_status); } && { | |
6610 | test -z "$ac_c_werror_flag" || | |
6611 | test ! -s conftest.err | |
6612 | } && test -s conftest$ac_exeext && { | |
6613 | test "$cross_compiling" = yes || | |
6614 | $as_test_x conftest$ac_exeext | |
6615 | }; then | |
6616 | eval "$as_ac_var=yes" | |
6617 | else | |
6618 | $as_echo "$as_me: failed program was:" >&5 | |
6619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6620 | ||
6621 | eval "$as_ac_var=no" | |
6622 | fi | |
6623 | ||
6624 | rm -rf conftest.dSYM | |
6625 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6626 | conftest$ac_exeext conftest.$ac_ext | |
6627 | fi | |
6628 | ac_res=`eval 'as_val=${'$as_ac_var'} | |
6629 | $as_echo "$as_val"'` | |
6630 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6631 | $as_echo "$ac_res" >&6; } | |
6632 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6633 | $as_echo "$as_val"'` | |
6634 | if test "x$as_val" = x""yes; then | |
6635 | cat >>confdefs.h <<_ACEOF | |
6636 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6637 | _ACEOF | |
6638 | ||
6639 | fi | |
6640 | done | |
6641 | ||
ad6254c5 AK |
6642 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
6643 | # for constant arguments. Useless! | |
ec6a6fbe AK |
6644 | { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6645 | $as_echo_n "checking for working alloca.h... " >&6; } | |
ad6254c5 | 6646 | if test "${ac_cv_working_alloca_h+set}" = set; then |
ec6a6fbe | 6647 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6648 | else |
6649 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6650 | /* confdefs.h. */ |
6651 | _ACEOF | |
6652 | cat confdefs.h >>conftest.$ac_ext | |
6653 | cat >>conftest.$ac_ext <<_ACEOF | |
6654 | /* end confdefs.h. */ | |
6655 | #include <alloca.h> | |
6656 | int | |
6657 | main () | |
6658 | { | |
6659 | char *p = (char *) alloca (2 * sizeof (int)); | |
7a197a62 | 6660 | if (p) return 0; |
ad6254c5 AK |
6661 | ; |
6662 | return 0; | |
6663 | } | |
6664 | _ACEOF | |
6665 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6666 | if { (ac_try="$ac_link" |
6667 | case "(($ac_try" in | |
6668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6669 | *) ac_try_echo=$ac_try;; | |
6670 | esac | |
ec6a6fbe AK |
6671 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6672 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6673 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6674 | ac_status=$? |
8a2fc586 AK |
6675 | grep -v '^ *+' conftest.er1 >conftest.err |
6676 | rm -f conftest.er1 | |
6677 | cat conftest.err >&5 | |
ec6a6fbe | 6678 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6679 | (exit $ac_status); } && { |
6680 | test -z "$ac_c_werror_flag" || | |
6681 | test ! -s conftest.err | |
ec6a6fbe AK |
6682 | } && test -s conftest$ac_exeext && { |
6683 | test "$cross_compiling" = yes || | |
6684 | $as_test_x conftest$ac_exeext | |
6685 | }; then | |
ad6254c5 AK |
6686 | ac_cv_working_alloca_h=yes |
6687 | else | |
ec6a6fbe | 6688 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 | 6689 | sed 's/^/| /' conftest.$ac_ext >&5 |
795ca3e5 | 6690 | |
7a197a62 | 6691 | ac_cv_working_alloca_h=no |
ad6254c5 | 6692 | fi |
7a197a62 | 6693 | |
ec6a6fbe | 6694 | rm -rf conftest.dSYM |
25fbec5b | 6695 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6696 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6697 | fi |
ec6a6fbe AK |
6698 | { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
6699 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
ad6254c5 AK |
6700 | if test $ac_cv_working_alloca_h = yes; then |
6701 | ||
6702 | cat >>confdefs.h <<\_ACEOF | |
6703 | #define HAVE_ALLOCA_H 1 | |
6704 | _ACEOF | |
6705 | ||
6706 | fi | |
6707 | ||
ec6a6fbe AK |
6708 | { $as_echo "$as_me:$LINENO: checking for alloca" >&5 |
6709 | $as_echo_n "checking for alloca... " >&6; } | |
ad6254c5 | 6710 | if test "${ac_cv_func_alloca_works+set}" = set; then |
ec6a6fbe | 6711 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6712 | else |
6713 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6714 | /* confdefs.h. */ |
6715 | _ACEOF | |
6716 | cat confdefs.h >>conftest.$ac_ext | |
6717 | cat >>conftest.$ac_ext <<_ACEOF | |
6718 | /* end confdefs.h. */ | |
6719 | #ifdef __GNUC__ | |
6720 | # define alloca __builtin_alloca | |
6721 | #else | |
6722 | # ifdef _MSC_VER | |
6723 | # include <malloc.h> | |
6724 | # define alloca _alloca | |
6725 | # else | |
25fbec5b | 6726 | # ifdef HAVE_ALLOCA_H |
ad6254c5 AK |
6727 | # include <alloca.h> |
6728 | # else | |
6729 | # ifdef _AIX | |
6730 | #pragma alloca | |
6731 | # else | |
6732 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6733 | char *alloca (); | |
6734 | # endif | |
6735 | # endif | |
6736 | # endif | |
6737 | # endif | |
6738 | #endif | |
6739 | ||
6740 | int | |
6741 | main () | |
6742 | { | |
6743 | char *p = (char *) alloca (1); | |
7a197a62 | 6744 | if (p) return 0; |
ad6254c5 AK |
6745 | ; |
6746 | return 0; | |
6747 | } | |
6748 | _ACEOF | |
6749 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6750 | if { (ac_try="$ac_link" |
6751 | case "(($ac_try" in | |
6752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6753 | *) ac_try_echo=$ac_try;; | |
6754 | esac | |
ec6a6fbe AK |
6755 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6756 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6757 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6758 | ac_status=$? |
8a2fc586 AK |
6759 | grep -v '^ *+' conftest.er1 >conftest.err |
6760 | rm -f conftest.er1 | |
6761 | cat conftest.err >&5 | |
ec6a6fbe | 6762 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6763 | (exit $ac_status); } && { |
6764 | test -z "$ac_c_werror_flag" || | |
6765 | test ! -s conftest.err | |
ec6a6fbe AK |
6766 | } && test -s conftest$ac_exeext && { |
6767 | test "$cross_compiling" = yes || | |
6768 | $as_test_x conftest$ac_exeext | |
6769 | }; then | |
ad6254c5 AK |
6770 | ac_cv_func_alloca_works=yes |
6771 | else | |
ec6a6fbe | 6772 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6773 | sed 's/^/| /' conftest.$ac_ext >&5 |
6774 | ||
7a197a62 | 6775 | ac_cv_func_alloca_works=no |
ad6254c5 | 6776 | fi |
7a197a62 | 6777 | |
ec6a6fbe | 6778 | rm -rf conftest.dSYM |
25fbec5b | 6779 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6780 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6781 | fi |
ec6a6fbe AK |
6782 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6783 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
ad6254c5 AK |
6784 | |
6785 | if test $ac_cv_func_alloca_works = yes; then | |
6786 | ||
6787 | cat >>confdefs.h <<\_ACEOF | |
6788 | #define HAVE_ALLOCA 1 | |
6789 | _ACEOF | |
6790 | ||
6791 | else | |
6792 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
6793 | # that cause trouble. Some versions do not even contain alloca or | |
6794 | # contain a buggy version. If you still want to use their alloca, | |
6795 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6796 | ||
7a197a62 | 6797 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ad6254c5 AK |
6798 | |
6799 | cat >>confdefs.h <<\_ACEOF | |
6800 | #define C_ALLOCA 1 | |
6801 | _ACEOF | |
6802 | ||
6803 | ||
ec6a6fbe AK |
6804 | { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6805 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
ad6254c5 | 6806 | if test "${ac_cv_os_cray+set}" = set; then |
ec6a6fbe | 6807 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6808 | else |
6809 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6810 | /* confdefs.h. */ |
6811 | _ACEOF | |
6812 | cat confdefs.h >>conftest.$ac_ext | |
6813 | cat >>conftest.$ac_ext <<_ACEOF | |
6814 | /* end confdefs.h. */ | |
7a197a62 | 6815 | #if defined CRAY && ! defined CRAY2 |
ad6254c5 AK |
6816 | webecray |
6817 | #else | |
6818 | wenotbecray | |
6819 | #endif | |
6820 | ||
6821 | _ACEOF | |
795ca3e5 | 6822 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad6254c5 AK |
6823 | $EGREP "webecray" >/dev/null 2>&1; then |
6824 | ac_cv_os_cray=yes | |
6825 | else | |
6826 | ac_cv_os_cray=no | |
795ca3e5 AK |
6827 | fi |
6828 | rm -f conftest* | |
6829 | ||
795ca3e5 | 6830 | fi |
ec6a6fbe AK |
6831 | { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6832 | $as_echo "$ac_cv_os_cray" >&6; } | |
ad6254c5 AK |
6833 | if test $ac_cv_os_cray = yes; then |
6834 | for ac_func in _getb67 GETB67 getb67; do | |
ec6a6fbe AK |
6835 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6836 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6837 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 6838 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 6839 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6840 | else |
6841 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6842 | /* confdefs.h. */ |
6843 | _ACEOF | |
6844 | cat confdefs.h >>conftest.$ac_ext | |
6845 | cat >>conftest.$ac_ext <<_ACEOF | |
6846 | /* end confdefs.h. */ | |
8a2fc586 AK |
6847 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6848 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6849 | #define $ac_func innocuous_$ac_func | |
6850 | ||
ad6254c5 AK |
6851 | /* System header to define __stub macros and hopefully few prototypes, |
6852 | which can conflict with char $ac_func (); below. | |
6853 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6854 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 6855 | |
ad6254c5 AK |
6856 | #ifdef __STDC__ |
6857 | # include <limits.h> | |
6858 | #else | |
6859 | # include <assert.h> | |
6860 | #endif | |
8a2fc586 AK |
6861 | |
6862 | #undef $ac_func | |
6863 | ||
7a197a62 AK |
6864 | /* Override any GCC internal prototype to avoid an error. |
6865 | Use char because int might match the return type of a GCC | |
6866 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
6867 | #ifdef __cplusplus |
6868 | extern "C" | |
ad6254c5 | 6869 | #endif |
ad6254c5 AK |
6870 | char $ac_func (); |
6871 | /* The GNU C library defines this for functions which it implements | |
6872 | to always fail with ENOSYS. Some functions are actually named | |
6873 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 6874 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 6875 | choke me |
ad6254c5 AK |
6876 | #endif |
6877 | ||
6878 | int | |
6879 | main () | |
6880 | { | |
7a197a62 | 6881 | return $ac_func (); |
ad6254c5 AK |
6882 | ; |
6883 | return 0; | |
6884 | } | |
6885 | _ACEOF | |
6886 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
6887 | if { (ac_try="$ac_link" |
6888 | case "(($ac_try" in | |
6889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6890 | *) ac_try_echo=$ac_try;; | |
6891 | esac | |
ec6a6fbe AK |
6892 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6893 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6894 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 6895 | ac_status=$? |
8a2fc586 AK |
6896 | grep -v '^ *+' conftest.er1 >conftest.err |
6897 | rm -f conftest.er1 | |
6898 | cat conftest.err >&5 | |
ec6a6fbe | 6899 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
6900 | (exit $ac_status); } && { |
6901 | test -z "$ac_c_werror_flag" || | |
6902 | test ! -s conftest.err | |
ec6a6fbe AK |
6903 | } && test -s conftest$ac_exeext && { |
6904 | test "$cross_compiling" = yes || | |
6905 | $as_test_x conftest$ac_exeext | |
6906 | }; then | |
ad6254c5 AK |
6907 | eval "$as_ac_var=yes" |
6908 | else | |
ec6a6fbe | 6909 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
6910 | sed 's/^/| /' conftest.$ac_ext >&5 |
6911 | ||
7a197a62 | 6912 | eval "$as_ac_var=no" |
ad6254c5 | 6913 | fi |
7a197a62 | 6914 | |
ec6a6fbe | 6915 | rm -rf conftest.dSYM |
25fbec5b | 6916 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 6917 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 6918 | fi |
ec6a6fbe AK |
6919 | ac_res=`eval 'as_val=${'$as_ac_var'} |
6920 | $as_echo "$as_val"'` | |
6921 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6922 | $as_echo "$ac_res" >&6; } | |
6923 | as_val=`eval 'as_val=${'$as_ac_var'} | |
6924 | $as_echo "$as_val"'` | |
6925 | if test "x$as_val" = x""yes; then | |
80992638 | 6926 | |
ad6254c5 AK |
6927 | cat >>confdefs.h <<_ACEOF |
6928 | #define CRAY_STACKSEG_END $ac_func | |
6929 | _ACEOF | |
6930 | ||
6931 | break | |
6932 | fi | |
6933 | ||
6934 | done | |
6935 | fi | |
6936 | ||
ec6a6fbe AK |
6937 | { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6938 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
ad6254c5 | 6939 | if test "${ac_cv_c_stack_direction+set}" = set; then |
ec6a6fbe | 6940 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
6941 | else |
6942 | if test "$cross_compiling" = yes; then | |
6943 | ac_cv_c_stack_direction=0 | |
6944 | else | |
6945 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
6946 | /* confdefs.h. */ |
6947 | _ACEOF | |
6948 | cat confdefs.h >>conftest.$ac_ext | |
6949 | cat >>conftest.$ac_ext <<_ACEOF | |
6950 | /* end confdefs.h. */ | |
7a197a62 | 6951 | $ac_includes_default |
ad6254c5 AK |
6952 | int |
6953 | find_stack_direction () | |
6954 | { | |
6955 | static char *addr = 0; | |
6956 | auto char dummy; | |
6957 | if (addr == 0) | |
6958 | { | |
6959 | addr = &dummy; | |
6960 | return find_stack_direction (); | |
6961 | } | |
6962 | else | |
6963 | return (&dummy > addr) ? 1 : -1; | |
6964 | } | |
6965 | ||
6966 | int | |
6967 | main () | |
6968 | { | |
7a197a62 | 6969 | return find_stack_direction () < 0; |
ad6254c5 AK |
6970 | } |
6971 | _ACEOF | |
6972 | rm -f conftest$ac_exeext | |
7a197a62 AK |
6973 | if { (ac_try="$ac_link" |
6974 | case "(($ac_try" in | |
6975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6976 | *) ac_try_echo=$ac_try;; | |
6977 | esac | |
ec6a6fbe AK |
6978 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6979 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6980 | (eval "$ac_link") 2>&5 |
ad6254c5 | 6981 | ac_status=$? |
ec6a6fbe | 6982 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 6983 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
6984 | { (case "(($ac_try" in |
6985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6986 | *) ac_try_echo=$ac_try;; | |
6987 | esac | |
ec6a6fbe AK |
6988 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
6989 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 6990 | (eval "$ac_try") 2>&5 |
ad6254c5 | 6991 | ac_status=$? |
ec6a6fbe | 6992 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
6993 | (exit $ac_status); }; }; then |
6994 | ac_cv_c_stack_direction=1 | |
6995 | else | |
ec6a6fbe AK |
6996 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
6997 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
6998 | sed 's/^/| /' conftest.$ac_ext >&5 |
6999 | ||
7000 | ( exit $ac_status ) | |
7001 | ac_cv_c_stack_direction=-1 | |
7002 | fi | |
ec6a6fbe | 7003 | rm -rf conftest.dSYM |
7a197a62 | 7004 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7005 | fi |
7a197a62 AK |
7006 | |
7007 | ||
ad6254c5 | 7008 | fi |
ec6a6fbe AK |
7009 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
7010 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
ad6254c5 AK |
7011 | |
7012 | cat >>confdefs.h <<_ACEOF | |
7013 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
7014 | _ACEOF | |
7015 | ||
7016 | ||
7017 | fi | |
7018 | ||
ec6a6fbe AK |
7019 | { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
7020 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
ad6254c5 | 7021 | if test "${ac_cv_func_closedir_void+set}" = set; then |
ec6a6fbe | 7022 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7023 | else |
7024 | if test "$cross_compiling" = yes; then | |
7025 | ac_cv_func_closedir_void=yes | |
7026 | else | |
7027 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7028 | /* confdefs.h. */ |
7029 | _ACEOF | |
7030 | cat confdefs.h >>conftest.$ac_ext | |
7031 | cat >>conftest.$ac_ext <<_ACEOF | |
7032 | /* end confdefs.h. */ | |
7033 | $ac_includes_default | |
7034 | #include <$ac_header_dirent> | |
7035 | #ifndef __cplusplus | |
7036 | int closedir (); | |
7037 | #endif | |
7038 | ||
7039 | int | |
7040 | main () | |
7041 | { | |
7a197a62 | 7042 | return closedir (opendir (".")) != 0; |
ad6254c5 AK |
7043 | ; |
7044 | return 0; | |
7045 | } | |
7046 | _ACEOF | |
7047 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7048 | if { (ac_try="$ac_link" |
7049 | case "(($ac_try" in | |
7050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7051 | *) ac_try_echo=$ac_try;; | |
7052 | esac | |
ec6a6fbe AK |
7053 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7054 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7055 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7056 | ac_status=$? |
ec6a6fbe | 7057 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7058 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7059 | { (case "(($ac_try" in |
7060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7061 | *) ac_try_echo=$ac_try;; | |
7062 | esac | |
ec6a6fbe AK |
7063 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7064 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7065 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7066 | ac_status=$? |
ec6a6fbe | 7067 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7068 | (exit $ac_status); }; }; then |
7069 | ac_cv_func_closedir_void=no | |
7070 | else | |
ec6a6fbe AK |
7071 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7072 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7073 | sed 's/^/| /' conftest.$ac_ext >&5 |
7074 | ||
7075 | ( exit $ac_status ) | |
7076 | ac_cv_func_closedir_void=yes | |
7077 | fi | |
ec6a6fbe | 7078 | rm -rf conftest.dSYM |
7a197a62 | 7079 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7080 | fi |
7a197a62 AK |
7081 | |
7082 | ||
ad6254c5 | 7083 | fi |
ec6a6fbe AK |
7084 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
7085 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
ad6254c5 AK |
7086 | if test $ac_cv_func_closedir_void = yes; then |
7087 | ||
7088 | cat >>confdefs.h <<\_ACEOF | |
7089 | #define CLOSEDIR_VOID 1 | |
7090 | _ACEOF | |
7091 | ||
7092 | fi | |
7093 | ||
7094 | ||
7a197a62 | 7095 | for ac_header in vfork.h |
ad6254c5 | 7096 | do |
ec6a6fbe | 7097 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7098 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7099 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7100 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7101 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7102 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7103 | fi |
ec6a6fbe AK |
7104 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7105 | $as_echo "$as_val"'` | |
7106 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7107 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7108 | else |
7109 | # Is the header compilable? | |
ec6a6fbe AK |
7110 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7111 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7112 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7113 | /* confdefs.h. */ |
7114 | _ACEOF | |
7115 | cat confdefs.h >>conftest.$ac_ext | |
7116 | cat >>conftest.$ac_ext <<_ACEOF | |
7117 | /* end confdefs.h. */ | |
7118 | $ac_includes_default | |
7119 | #include <$ac_header> | |
7120 | _ACEOF | |
7121 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7122 | if { (ac_try="$ac_compile" |
7123 | case "(($ac_try" in | |
7124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7125 | *) ac_try_echo=$ac_try;; | |
7126 | esac | |
ec6a6fbe AK |
7127 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7128 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7129 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7130 | ac_status=$? |
8a2fc586 AK |
7131 | grep -v '^ *+' conftest.er1 >conftest.err |
7132 | rm -f conftest.er1 | |
7133 | cat conftest.err >&5 | |
ec6a6fbe | 7134 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7135 | (exit $ac_status); } && { |
7136 | test -z "$ac_c_werror_flag" || | |
7137 | test ! -s conftest.err | |
7138 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7139 | ac_header_compiler=yes |
7140 | else | |
ec6a6fbe | 7141 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7142 | sed 's/^/| /' conftest.$ac_ext >&5 |
7143 | ||
7a197a62 | 7144 | ac_header_compiler=no |
ad6254c5 | 7145 | fi |
7a197a62 AK |
7146 | |
7147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7148 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7149 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7150 | |
7151 | # Is the header present? | |
ec6a6fbe AK |
7152 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7153 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7154 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7155 | /* confdefs.h. */ |
7156 | _ACEOF | |
7157 | cat confdefs.h >>conftest.$ac_ext | |
7158 | cat >>conftest.$ac_ext <<_ACEOF | |
7159 | /* end confdefs.h. */ | |
7160 | #include <$ac_header> | |
7161 | _ACEOF | |
7a197a62 AK |
7162 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7163 | case "(($ac_try" in | |
7164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7165 | *) ac_try_echo=$ac_try;; | |
7166 | esac | |
ec6a6fbe AK |
7167 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7168 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7169 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7170 | ac_status=$? |
7171 | grep -v '^ *+' conftest.er1 >conftest.err | |
7172 | rm -f conftest.er1 | |
7173 | cat conftest.err >&5 | |
ec6a6fbe | 7174 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7175 | (exit $ac_status); } >/dev/null && { |
7176 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7177 | test ! -s conftest.err | |
7178 | }; then | |
ad6254c5 AK |
7179 | ac_header_preproc=yes |
7180 | else | |
ec6a6fbe | 7181 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7182 | sed 's/^/| /' conftest.$ac_ext >&5 |
7183 | ||
7184 | ac_header_preproc=no | |
7185 | fi | |
7a197a62 | 7186 | |
ad6254c5 | 7187 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7188 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7189 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7190 | |
7191 | # So? What about this header? | |
8a2fc586 AK |
7192 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7193 | yes:no: ) | |
ec6a6fbe AK |
7194 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7195 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7196 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7197 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7198 | ac_header_preproc=yes |
ad6254c5 | 7199 | ;; |
8a2fc586 | 7200 | no:yes:* ) |
ec6a6fbe AK |
7201 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7202 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7203 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7204 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7205 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7206 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7207 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7208 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7209 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7210 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7211 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7212 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7213 | |
ad6254c5 AK |
7214 | ;; |
7215 | esac | |
ec6a6fbe AK |
7216 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7217 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7218 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7219 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7220 | else |
8a2fc586 | 7221 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7222 | fi |
ec6a6fbe AK |
7223 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7224 | $as_echo "$as_val"'` | |
7225 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7226 | $as_echo "$ac_res" >&6; } | |
ad6254c5 | 7227 | |
795ca3e5 | 7228 | fi |
ec6a6fbe AK |
7229 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7230 | $as_echo "$as_val"'` | |
7231 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7232 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7233 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7234 | _ACEOF |
7235 | ||
7236 | fi | |
7237 | ||
7238 | done | |
795ca3e5 | 7239 | |
ad6254c5 AK |
7240 | |
7241 | ||
7242 | for ac_func in fork vfork | |
7243 | do | |
ec6a6fbe AK |
7244 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7245 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7246 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 7247 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7248 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 7249 | else |
ad6254c5 | 7250 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7251 | /* confdefs.h. */ |
7252 | _ACEOF | |
7253 | cat confdefs.h >>conftest.$ac_ext | |
7254 | cat >>conftest.$ac_ext <<_ACEOF | |
7255 | /* end confdefs.h. */ | |
8a2fc586 AK |
7256 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7257 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7258 | #define $ac_func innocuous_$ac_func | |
7259 | ||
ad6254c5 AK |
7260 | /* System header to define __stub macros and hopefully few prototypes, |
7261 | which can conflict with char $ac_func (); below. | |
7262 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7263 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 7264 | |
ad6254c5 AK |
7265 | #ifdef __STDC__ |
7266 | # include <limits.h> | |
7267 | #else | |
7268 | # include <assert.h> | |
795ca3e5 | 7269 | #endif |
8a2fc586 AK |
7270 | |
7271 | #undef $ac_func | |
7272 | ||
7a197a62 AK |
7273 | /* Override any GCC internal prototype to avoid an error. |
7274 | Use char because int might match the return type of a GCC | |
7275 | builtin and then its argument prototype would still apply. */ | |
795ca3e5 | 7276 | #ifdef __cplusplus |
ad6254c5 | 7277 | extern "C" |
ad6254c5 | 7278 | #endif |
ad6254c5 AK |
7279 | char $ac_func (); |
7280 | /* The GNU C library defines this for functions which it implements | |
7281 | to always fail with ENOSYS. Some functions are actually named | |
7282 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 7283 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 7284 | choke me |
795ca3e5 AK |
7285 | #endif |
7286 | ||
ad6254c5 AK |
7287 | int |
7288 | main () | |
7289 | { | |
7a197a62 | 7290 | return $ac_func (); |
ad6254c5 AK |
7291 | ; |
7292 | return 0; | |
7293 | } | |
7294 | _ACEOF | |
7295 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
7296 | if { (ac_try="$ac_link" |
7297 | case "(($ac_try" in | |
7298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7299 | *) ac_try_echo=$ac_try;; | |
7300 | esac | |
ec6a6fbe AK |
7301 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7302 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7303 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 7304 | ac_status=$? |
8a2fc586 AK |
7305 | grep -v '^ *+' conftest.er1 >conftest.err |
7306 | rm -f conftest.er1 | |
7307 | cat conftest.err >&5 | |
ec6a6fbe | 7308 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7309 | (exit $ac_status); } && { |
7310 | test -z "$ac_c_werror_flag" || | |
7311 | test ! -s conftest.err | |
ec6a6fbe AK |
7312 | } && test -s conftest$ac_exeext && { |
7313 | test "$cross_compiling" = yes || | |
7314 | $as_test_x conftest$ac_exeext | |
7315 | }; then | |
ad6254c5 | 7316 | eval "$as_ac_var=yes" |
795ca3e5 | 7317 | else |
ec6a6fbe | 7318 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7319 | sed 's/^/| /' conftest.$ac_ext >&5 |
7320 | ||
7a197a62 | 7321 | eval "$as_ac_var=no" |
795ca3e5 | 7322 | fi |
7a197a62 | 7323 | |
ec6a6fbe | 7324 | rm -rf conftest.dSYM |
25fbec5b | 7325 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 7326 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 7327 | fi |
ec6a6fbe AK |
7328 | ac_res=`eval 'as_val=${'$as_ac_var'} |
7329 | $as_echo "$as_val"'` | |
7330 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7331 | $as_echo "$ac_res" >&6; } | |
7332 | as_val=`eval 'as_val=${'$as_ac_var'} | |
7333 | $as_echo "$as_val"'` | |
7334 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7335 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7336 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
7337 | _ACEOF |
7338 | ||
7339 | fi | |
7340 | done | |
7341 | ||
7342 | if test "x$ac_cv_func_fork" = xyes; then | |
ec6a6fbe AK |
7343 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
7344 | $as_echo_n "checking for working fork... " >&6; } | |
ad6254c5 | 7345 | if test "${ac_cv_func_fork_works+set}" = set; then |
ec6a6fbe | 7346 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7347 | else |
7348 | if test "$cross_compiling" = yes; then | |
7349 | ac_cv_func_fork_works=cross | |
7350 | else | |
7351 | cat >conftest.$ac_ext <<_ACEOF | |
7a197a62 AK |
7352 | /* confdefs.h. */ |
7353 | _ACEOF | |
7354 | cat confdefs.h >>conftest.$ac_ext | |
7355 | cat >>conftest.$ac_ext <<_ACEOF | |
7356 | /* end confdefs.h. */ | |
7357 | $ac_includes_default | |
7358 | int | |
7359 | main () | |
7360 | { | |
7361 | ||
7362 | /* By Ruediger Kuhlmann. */ | |
7363 | return fork () < 0; | |
7364 | ||
7365 | ; | |
7366 | return 0; | |
7367 | } | |
ad6254c5 AK |
7368 | _ACEOF |
7369 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7370 | if { (ac_try="$ac_link" |
7371 | case "(($ac_try" in | |
7372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7373 | *) ac_try_echo=$ac_try;; | |
7374 | esac | |
ec6a6fbe AK |
7375 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7376 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7377 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7378 | ac_status=$? |
ec6a6fbe | 7379 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7380 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7381 | { (case "(($ac_try" in |
7382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7383 | *) ac_try_echo=$ac_try;; | |
7384 | esac | |
ec6a6fbe AK |
7385 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7386 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7387 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7388 | ac_status=$? |
ec6a6fbe | 7389 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7390 | (exit $ac_status); }; }; then |
7391 | ac_cv_func_fork_works=yes | |
7392 | else | |
ec6a6fbe AK |
7393 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7394 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7395 | sed 's/^/| /' conftest.$ac_ext >&5 |
7396 | ||
7397 | ( exit $ac_status ) | |
7398 | ac_cv_func_fork_works=no | |
7399 | fi | |
ec6a6fbe | 7400 | rm -rf conftest.dSYM |
7a197a62 | 7401 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7402 | fi |
7a197a62 AK |
7403 | |
7404 | ||
ad6254c5 | 7405 | fi |
ec6a6fbe AK |
7406 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
7407 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
ad6254c5 AK |
7408 | |
7409 | else | |
7410 | ac_cv_func_fork_works=$ac_cv_func_fork | |
7411 | fi | |
7412 | if test "x$ac_cv_func_fork_works" = xcross; then | |
7413 | case $host in | |
7414 | *-*-amigaos* | *-*-msdosdjgpp*) | |
7415 | # Override, as these systems have only a dummy fork() stub | |
7416 | ac_cv_func_fork_works=no | |
7417 | ;; | |
7418 | *) | |
7419 | ac_cv_func_fork_works=yes | |
7420 | ;; | |
7421 | esac | |
ec6a6fbe AK |
7422 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
7423 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7424 | fi |
7425 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
7426 | if test "x$ac_cv_func_vfork" = xyes; then | |
ec6a6fbe AK |
7427 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
7428 | $as_echo_n "checking for working vfork... " >&6; } | |
ad6254c5 | 7429 | if test "${ac_cv_func_vfork_works+set}" = set; then |
ec6a6fbe | 7430 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7431 | else |
7432 | if test "$cross_compiling" = yes; then | |
7433 | ac_cv_func_vfork_works=cross | |
7434 | else | |
7435 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7436 | /* confdefs.h. */ |
7437 | _ACEOF | |
7438 | cat confdefs.h >>conftest.$ac_ext | |
7439 | cat >>conftest.$ac_ext <<_ACEOF | |
7440 | /* end confdefs.h. */ | |
7441 | /* Thanks to Paul Eggert for this test. */ | |
7a197a62 | 7442 | $ac_includes_default |
ad6254c5 | 7443 | #include <sys/wait.h> |
25fbec5b | 7444 | #ifdef HAVE_VFORK_H |
ad6254c5 AK |
7445 | # include <vfork.h> |
7446 | #endif | |
7447 | /* On some sparc systems, changes by the child to local and incoming | |
7448 | argument registers are propagated back to the parent. The compiler | |
7449 | is told about this with #include <vfork.h>, but some compilers | |
7450 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
7451 | static variable whose address is put into a register that is | |
7452 | clobbered by the vfork. */ | |
7453 | static void | |
7454 | #ifdef __cplusplus | |
7455 | sparc_address_test (int arg) | |
7456 | # else | |
7457 | sparc_address_test (arg) int arg; | |
7458 | #endif | |
7459 | { | |
7460 | static pid_t child; | |
7461 | if (!child) { | |
7462 | child = vfork (); | |
7463 | if (child < 0) { | |
7464 | perror ("vfork"); | |
7465 | _exit(2); | |
7466 | } | |
7467 | if (!child) { | |
7468 | arg = getpid(); | |
7469 | write(-1, "", 0); | |
7470 | _exit (arg); | |
7471 | } | |
7472 | } | |
7473 | } | |
7474 | ||
7475 | int | |
7476 | main () | |
7477 | { | |
7478 | pid_t parent = getpid (); | |
7479 | pid_t child; | |
7480 | ||
7481 | sparc_address_test (0); | |
7482 | ||
7483 | child = vfork (); | |
7484 | ||
7485 | if (child == 0) { | |
7486 | /* Here is another test for sparc vfork register problems. This | |
7487 | test uses lots of local variables, at least as many local | |
7488 | variables as main has allocated so far including compiler | |
7489 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
7490 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
7491 | reuse the register of parent for one of the local variables, | |
7492 | since it will think that parent can't possibly be used any more | |
7493 | in this routine. Assigning to the local variable will thus | |
7494 | munge parent in the parent process. */ | |
7495 | pid_t | |
7496 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
7497 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
7498 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
7499 | use the same hardware register for all 8 local variables. */ | |
7500 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
7501 | || p != p5 || p != p6 || p != p7) | |
7502 | _exit(1); | |
7503 | ||
7504 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
7505 | from child file descriptors. If the child closes a descriptor | |
7506 | before it execs or exits, this munges the parent's descriptor | |
7507 | as well. Test for this by closing stdout in the child. */ | |
7508 | _exit(close(fileno(stdout)) != 0); | |
7509 | } else { | |
7510 | int status; | |
7511 | struct stat st; | |
7512 | ||
7513 | while (wait(&status) != child) | |
7514 | ; | |
7a197a62 | 7515 | return ( |
ad6254c5 AK |
7516 | /* Was there some problem with vforking? */ |
7517 | child < 0 | |
7518 | ||
7519 | /* Did the child fail? (This shouldn't happen.) */ | |
7520 | || status | |
7521 | ||
7522 | /* Did the vfork/compiler bug occur? */ | |
7523 | || parent != getpid() | |
7524 | ||
7525 | /* Did the file descriptor bug occur? */ | |
7526 | || fstat(fileno(stdout), &st) != 0 | |
7527 | ); | |
7528 | } | |
7529 | } | |
7530 | _ACEOF | |
7531 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7532 | if { (ac_try="$ac_link" |
7533 | case "(($ac_try" in | |
7534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7535 | *) ac_try_echo=$ac_try;; | |
7536 | esac | |
ec6a6fbe AK |
7537 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7538 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7539 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7540 | ac_status=$? |
ec6a6fbe | 7541 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7542 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7543 | { (case "(($ac_try" in |
7544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7545 | *) ac_try_echo=$ac_try;; | |
7546 | esac | |
ec6a6fbe AK |
7547 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7548 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7549 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7550 | ac_status=$? |
ec6a6fbe | 7551 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7552 | (exit $ac_status); }; }; then |
7553 | ac_cv_func_vfork_works=yes | |
7554 | else | |
ec6a6fbe AK |
7555 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7556 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7557 | sed 's/^/| /' conftest.$ac_ext >&5 |
7558 | ||
7559 | ( exit $ac_status ) | |
7560 | ac_cv_func_vfork_works=no | |
7561 | fi | |
ec6a6fbe | 7562 | rm -rf conftest.dSYM |
7a197a62 | 7563 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7564 | fi |
7a197a62 AK |
7565 | |
7566 | ||
ad6254c5 | 7567 | fi |
ec6a6fbe AK |
7568 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
7569 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
ad6254c5 AK |
7570 | |
7571 | fi; | |
7572 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8a2fc586 | 7573 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
ec6a6fbe AK |
7574 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
7575 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
ad6254c5 AK |
7576 | fi |
7577 | ||
7578 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
7579 | ||
7580 | cat >>confdefs.h <<\_ACEOF | |
7581 | #define HAVE_WORKING_VFORK 1 | |
7582 | _ACEOF | |
7583 | ||
7584 | else | |
7585 | ||
7586 | cat >>confdefs.h <<\_ACEOF | |
7587 | #define vfork fork | |
7588 | _ACEOF | |
7589 | ||
7590 | fi | |
7591 | if test "x$ac_cv_func_fork_works" = xyes; then | |
7592 | ||
7593 | cat >>confdefs.h <<\_ACEOF | |
7594 | #define HAVE_WORKING_FORK 1 | |
7595 | _ACEOF | |
7596 | ||
7597 | fi | |
7598 | ||
ec6a6fbe AK |
7599 | { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
7600 | $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } | |
ad6254c5 | 7601 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
ec6a6fbe | 7602 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7603 | else |
7604 | rm -f conftest.sym conftest.file | |
7605 | echo >conftest.file | |
7606 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
7607 | if test "$cross_compiling" = yes; then | |
7608 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7609 | else | |
7610 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7611 | /* confdefs.h. */ |
7612 | _ACEOF | |
7613 | cat confdefs.h >>conftest.$ac_ext | |
7614 | cat >>conftest.$ac_ext <<_ACEOF | |
7615 | /* end confdefs.h. */ | |
7616 | $ac_includes_default | |
7617 | int | |
7618 | main () | |
7619 | { | |
7620 | struct stat sbuf; | |
7621 | /* Linux will dereference the symlink and fail. | |
8a2fc586 AK |
7622 | That is better in the sense that it means we will not |
7623 | have to compile and use the lstat wrapper. */ | |
7a197a62 | 7624 | return lstat ("conftest.sym/", &sbuf) == 0; |
ad6254c5 AK |
7625 | ; |
7626 | return 0; | |
7627 | } | |
7628 | _ACEOF | |
7629 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7630 | if { (ac_try="$ac_link" |
7631 | case "(($ac_try" in | |
7632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7633 | *) ac_try_echo=$ac_try;; | |
7634 | esac | |
ec6a6fbe AK |
7635 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7636 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7637 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7638 | ac_status=$? |
ec6a6fbe | 7639 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7640 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7641 | { (case "(($ac_try" in |
7642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7643 | *) ac_try_echo=$ac_try;; | |
7644 | esac | |
ec6a6fbe AK |
7645 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7646 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7647 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7648 | ac_status=$? |
ec6a6fbe | 7649 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7650 | (exit $ac_status); }; }; then |
7651 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
7652 | else | |
ec6a6fbe AK |
7653 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7654 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7655 | sed 's/^/| /' conftest.$ac_ext >&5 |
7656 | ||
7657 | ( exit $ac_status ) | |
7658 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7659 | fi | |
ec6a6fbe | 7660 | rm -rf conftest.dSYM |
7a197a62 | 7661 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7662 | fi |
7a197a62 AK |
7663 | |
7664 | ||
ad6254c5 AK |
7665 | else |
7666 | # If the `ln -s' command failed, then we probably don't even | |
7667 | # have an lstat function. | |
7668 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
7669 | fi | |
7670 | rm -f conftest.sym conftest.file | |
7671 | ||
7672 | fi | |
ec6a6fbe AK |
7673 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
7674 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ad6254c5 AK |
7675 | |
7676 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
7677 | ||
7678 | cat >>confdefs.h <<_ACEOF | |
7679 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
7680 | _ACEOF | |
7681 | ||
7682 | ||
7683 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
7a197a62 | 7684 | case " $LIBOBJS " in |
8a2fc586 | 7685 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7686 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7687 | ;; | |
8a2fc586 AK |
7688 | esac |
7689 | ||
ad6254c5 AK |
7690 | fi |
7691 | ||
ec6a6fbe AK |
7692 | { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
7693 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
ad6254c5 | 7694 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
ec6a6fbe | 7695 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7696 | else |
7697 | if test "$cross_compiling" = yes; then | |
7698 | ac_cv_func_lstat_empty_string_bug=yes | |
7699 | else | |
7700 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7701 | /* confdefs.h. */ |
7702 | _ACEOF | |
7703 | cat confdefs.h >>conftest.$ac_ext | |
7704 | cat >>conftest.$ac_ext <<_ACEOF | |
7705 | /* end confdefs.h. */ | |
7706 | $ac_includes_default | |
7707 | int | |
7708 | main () | |
7709 | { | |
7710 | struct stat sbuf; | |
7a197a62 | 7711 | return lstat ("", &sbuf) == 0; |
ad6254c5 AK |
7712 | ; |
7713 | return 0; | |
7714 | } | |
7715 | _ACEOF | |
7716 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7717 | if { (ac_try="$ac_link" |
7718 | case "(($ac_try" in | |
7719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7720 | *) ac_try_echo=$ac_try;; | |
7721 | esac | |
ec6a6fbe AK |
7722 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7723 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7724 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7725 | ac_status=$? |
ec6a6fbe | 7726 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7727 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7728 | { (case "(($ac_try" in |
7729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7730 | *) ac_try_echo=$ac_try;; | |
7731 | esac | |
ec6a6fbe AK |
7732 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7733 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7734 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7735 | ac_status=$? |
ec6a6fbe | 7736 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7737 | (exit $ac_status); }; }; then |
7a197a62 | 7738 | ac_cv_func_lstat_empty_string_bug=no |
ad6254c5 | 7739 | else |
ec6a6fbe AK |
7740 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7741 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7742 | sed 's/^/| /' conftest.$ac_ext >&5 |
7743 | ||
7744 | ( exit $ac_status ) | |
7a197a62 | 7745 | ac_cv_func_lstat_empty_string_bug=yes |
ad6254c5 | 7746 | fi |
ec6a6fbe | 7747 | rm -rf conftest.dSYM |
7a197a62 | 7748 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7749 | fi |
7a197a62 AK |
7750 | |
7751 | ||
ad6254c5 | 7752 | fi |
ec6a6fbe AK |
7753 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
7754 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ad6254c5 | 7755 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
7a197a62 | 7756 | case " $LIBOBJS " in |
8a2fc586 | 7757 | *" lstat.$ac_objext "* ) ;; |
7a197a62 AK |
7758 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
7759 | ;; | |
8a2fc586 AK |
7760 | esac |
7761 | ||
ad6254c5 AK |
7762 | |
7763 | cat >>confdefs.h <<_ACEOF | |
7764 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
7765 | _ACEOF | |
7766 | ||
7767 | fi | |
7768 | ||
7769 | ||
7770 | for ac_header in stdlib.h | |
7771 | do | |
ec6a6fbe | 7772 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 7773 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
7774 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7775 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7776 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7777 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7778 | fi |
ec6a6fbe AK |
7779 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7780 | $as_echo "$as_val"'` | |
7781 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7782 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7783 | else |
7784 | # Is the header compilable? | |
ec6a6fbe AK |
7785 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7786 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 7787 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7788 | /* confdefs.h. */ |
7789 | _ACEOF | |
7790 | cat confdefs.h >>conftest.$ac_ext | |
7791 | cat >>conftest.$ac_ext <<_ACEOF | |
7792 | /* end confdefs.h. */ | |
7793 | $ac_includes_default | |
7794 | #include <$ac_header> | |
7795 | _ACEOF | |
7796 | rm -f conftest.$ac_objext | |
7a197a62 AK |
7797 | if { (ac_try="$ac_compile" |
7798 | case "(($ac_try" in | |
7799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7800 | *) ac_try_echo=$ac_try;; | |
7801 | esac | |
ec6a6fbe AK |
7802 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7803 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7804 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 7805 | ac_status=$? |
8a2fc586 AK |
7806 | grep -v '^ *+' conftest.er1 >conftest.err |
7807 | rm -f conftest.er1 | |
7808 | cat conftest.err >&5 | |
ec6a6fbe | 7809 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7810 | (exit $ac_status); } && { |
7811 | test -z "$ac_c_werror_flag" || | |
7812 | test ! -s conftest.err | |
7813 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
7814 | ac_header_compiler=yes |
7815 | else | |
ec6a6fbe | 7816 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7817 | sed 's/^/| /' conftest.$ac_ext >&5 |
7818 | ||
7a197a62 | 7819 | ac_header_compiler=no |
ad6254c5 | 7820 | fi |
7a197a62 AK |
7821 | |
7822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
7823 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7824 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
7825 | |
7826 | # Is the header present? | |
ec6a6fbe AK |
7827 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7828 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 7829 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
7830 | /* confdefs.h. */ |
7831 | _ACEOF | |
7832 | cat confdefs.h >>conftest.$ac_ext | |
7833 | cat >>conftest.$ac_ext <<_ACEOF | |
7834 | /* end confdefs.h. */ | |
7835 | #include <$ac_header> | |
7836 | _ACEOF | |
7a197a62 AK |
7837 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7838 | case "(($ac_try" in | |
7839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7840 | *) ac_try_echo=$ac_try;; | |
7841 | esac | |
ec6a6fbe AK |
7842 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7843 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7844 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
7845 | ac_status=$? |
7846 | grep -v '^ *+' conftest.er1 >conftest.err | |
7847 | rm -f conftest.er1 | |
7848 | cat conftest.err >&5 | |
ec6a6fbe | 7849 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
7850 | (exit $ac_status); } >/dev/null && { |
7851 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7852 | test ! -s conftest.err | |
7853 | }; then | |
ad6254c5 AK |
7854 | ac_header_preproc=yes |
7855 | else | |
ec6a6fbe | 7856 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
7857 | sed 's/^/| /' conftest.$ac_ext >&5 |
7858 | ||
7859 | ac_header_preproc=no | |
7860 | fi | |
7a197a62 | 7861 | |
ad6254c5 | 7862 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
7863 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7864 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
7865 | |
7866 | # So? What about this header? | |
8a2fc586 AK |
7867 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7868 | yes:no: ) | |
ec6a6fbe AK |
7869 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7870 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7871 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7872 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 7873 | ac_header_preproc=yes |
ad6254c5 | 7874 | ;; |
8a2fc586 | 7875 | no:yes:* ) |
ec6a6fbe AK |
7876 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7877 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7878 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7879 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7880 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7881 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7882 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7883 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7884 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7885 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7886 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7887 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 7888 | |
ad6254c5 AK |
7889 | ;; |
7890 | esac | |
ec6a6fbe AK |
7891 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7892 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 7893 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 7894 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 7895 | else |
8a2fc586 | 7896 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 7897 | fi |
ec6a6fbe AK |
7898 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
7899 | $as_echo "$as_val"'` | |
7900 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7901 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
7902 | |
7903 | fi | |
ec6a6fbe AK |
7904 | as_val=`eval 'as_val=${'$as_ac_Header'} |
7905 | $as_echo "$as_val"'` | |
7906 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 7907 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 7908 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
7909 | _ACEOF |
7910 | ||
7911 | fi | |
7912 | ||
7913 | done | |
7914 | ||
ec6a6fbe AK |
7915 | { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
7916 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
ad6254c5 | 7917 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
ec6a6fbe | 7918 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
7919 | else |
7920 | if test "$cross_compiling" = yes; then | |
7921 | ac_cv_func_malloc_0_nonnull=no | |
7922 | else | |
7923 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
7924 | /* confdefs.h. */ |
7925 | _ACEOF | |
7926 | cat confdefs.h >>conftest.$ac_ext | |
7927 | cat >>conftest.$ac_ext <<_ACEOF | |
7928 | /* end confdefs.h. */ | |
25fbec5b | 7929 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
ad6254c5 AK |
7930 | # include <stdlib.h> |
7931 | #else | |
7932 | char *malloc (); | |
7933 | #endif | |
7934 | ||
7935 | int | |
7936 | main () | |
7937 | { | |
7a197a62 | 7938 | return ! malloc (0); |
ad6254c5 AK |
7939 | ; |
7940 | return 0; | |
7941 | } | |
7942 | _ACEOF | |
7943 | rm -f conftest$ac_exeext | |
7a197a62 AK |
7944 | if { (ac_try="$ac_link" |
7945 | case "(($ac_try" in | |
7946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7947 | *) ac_try_echo=$ac_try;; | |
7948 | esac | |
ec6a6fbe AK |
7949 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7950 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7951 | (eval "$ac_link") 2>&5 |
ad6254c5 | 7952 | ac_status=$? |
ec6a6fbe | 7953 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 7954 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
7955 | { (case "(($ac_try" in |
7956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7957 | *) ac_try_echo=$ac_try;; | |
7958 | esac | |
ec6a6fbe AK |
7959 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
7960 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 7961 | (eval "$ac_try") 2>&5 |
ad6254c5 | 7962 | ac_status=$? |
ec6a6fbe | 7963 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
7964 | (exit $ac_status); }; }; then |
7965 | ac_cv_func_malloc_0_nonnull=yes | |
7966 | else | |
ec6a6fbe AK |
7967 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
7968 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
7969 | sed 's/^/| /' conftest.$ac_ext >&5 |
7970 | ||
7971 | ( exit $ac_status ) | |
7972 | ac_cv_func_malloc_0_nonnull=no | |
7973 | fi | |
ec6a6fbe | 7974 | rm -rf conftest.dSYM |
7a197a62 | 7975 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 7976 | fi |
7a197a62 AK |
7977 | |
7978 | ||
ad6254c5 | 7979 | fi |
ec6a6fbe AK |
7980 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
7981 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
ad6254c5 AK |
7982 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
7983 | ||
7984 | cat >>confdefs.h <<\_ACEOF | |
7985 | #define HAVE_MALLOC 1 | |
7986 | _ACEOF | |
7987 | ||
7988 | else | |
7989 | cat >>confdefs.h <<\_ACEOF | |
7990 | #define HAVE_MALLOC 0 | |
7991 | _ACEOF | |
7992 | ||
7a197a62 | 7993 | case " $LIBOBJS " in |
8a2fc586 | 7994 | *" malloc.$ac_objext "* ) ;; |
7a197a62 AK |
7995 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
7996 | ;; | |
8a2fc586 AK |
7997 | esac |
7998 | ||
ad6254c5 AK |
7999 | |
8000 | cat >>confdefs.h <<\_ACEOF | |
8001 | #define malloc rpl_malloc | |
8002 | _ACEOF | |
8003 | ||
8004 | fi | |
8005 | ||
8006 | ||
8007 | ||
ec6a6fbe AK |
8008 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
8009 | $as_echo_n "checking for working memcmp... " >&6; } | |
ad6254c5 | 8010 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
ec6a6fbe | 8011 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8012 | else |
8013 | if test "$cross_compiling" = yes; then | |
8014 | ac_cv_func_memcmp_working=no | |
8015 | else | |
8016 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8017 | /* confdefs.h. */ |
8018 | _ACEOF | |
8019 | cat confdefs.h >>conftest.$ac_ext | |
8020 | cat >>conftest.$ac_ext <<_ACEOF | |
8021 | /* end confdefs.h. */ | |
8a2fc586 | 8022 | $ac_includes_default |
ad6254c5 AK |
8023 | int |
8024 | main () | |
8025 | { | |
8026 | ||
8027 | /* Some versions of memcmp are not 8-bit clean. */ | |
7a197a62 | 8028 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
ad6254c5 | 8029 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
7a197a62 | 8030 | return 1; |
ad6254c5 AK |
8031 | |
8032 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
8033 | or more and with at least one buffer not starting on a 4-byte boundary. | |
8034 | William Lewis provided this test program. */ | |
8035 | { | |
8036 | char foo[21]; | |
8037 | char bar[21]; | |
8038 | int i; | |
8039 | for (i = 0; i < 4; i++) | |
8040 | { | |
8a2fc586 AK |
8041 | char *a = foo + i; |
8042 | char *b = bar + i; | |
8043 | strcpy (a, "--------01111111"); | |
8044 | strcpy (b, "--------10000000"); | |
8045 | if (memcmp (a, b, 16) >= 0) | |
7a197a62 | 8046 | return 1; |
ad6254c5 | 8047 | } |
7a197a62 | 8048 | return 0; |
ad6254c5 AK |
8049 | } |
8050 | ||
8051 | ; | |
8052 | return 0; | |
8053 | } | |
8054 | _ACEOF | |
8055 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8056 | if { (ac_try="$ac_link" |
8057 | case "(($ac_try" in | |
8058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8059 | *) ac_try_echo=$ac_try;; | |
8060 | esac | |
ec6a6fbe AK |
8061 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8062 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8063 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8064 | ac_status=$? |
ec6a6fbe | 8065 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8066 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8067 | { (case "(($ac_try" in |
8068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8069 | *) ac_try_echo=$ac_try;; | |
8070 | esac | |
ec6a6fbe AK |
8071 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8072 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8073 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8074 | ac_status=$? |
ec6a6fbe | 8075 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8076 | (exit $ac_status); }; }; then |
8077 | ac_cv_func_memcmp_working=yes | |
8078 | else | |
ec6a6fbe AK |
8079 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8080 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8081 | sed 's/^/| /' conftest.$ac_ext >&5 |
8082 | ||
8083 | ( exit $ac_status ) | |
8084 | ac_cv_func_memcmp_working=no | |
8085 | fi | |
ec6a6fbe | 8086 | rm -rf conftest.dSYM |
7a197a62 | 8087 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8088 | fi |
7a197a62 AK |
8089 | |
8090 | ||
ad6254c5 | 8091 | fi |
ec6a6fbe AK |
8092 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
8093 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
7a197a62 | 8094 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8a2fc586 | 8095 | *" memcmp.$ac_objext "* ) ;; |
7a197a62 AK |
8096 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
8097 | ;; | |
8a2fc586 AK |
8098 | esac |
8099 | ||
ad6254c5 AK |
8100 | |
8101 | ||
8102 | ||
8103 | for ac_header in stdlib.h unistd.h | |
8104 | do | |
ec6a6fbe | 8105 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 8106 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
8107 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8108 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8109 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8110 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8111 | fi |
ec6a6fbe AK |
8112 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8113 | $as_echo "$as_val"'` | |
8114 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8115 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8116 | else |
8117 | # Is the header compilable? | |
ec6a6fbe AK |
8118 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8119 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 8120 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8121 | /* confdefs.h. */ |
8122 | _ACEOF | |
8123 | cat confdefs.h >>conftest.$ac_ext | |
8124 | cat >>conftest.$ac_ext <<_ACEOF | |
8125 | /* end confdefs.h. */ | |
8126 | $ac_includes_default | |
8127 | #include <$ac_header> | |
8128 | _ACEOF | |
8129 | rm -f conftest.$ac_objext | |
7a197a62 AK |
8130 | if { (ac_try="$ac_compile" |
8131 | case "(($ac_try" in | |
8132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8133 | *) ac_try_echo=$ac_try;; | |
8134 | esac | |
ec6a6fbe AK |
8135 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8136 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8137 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 8138 | ac_status=$? |
8a2fc586 AK |
8139 | grep -v '^ *+' conftest.er1 >conftest.err |
8140 | rm -f conftest.er1 | |
8141 | cat conftest.err >&5 | |
ec6a6fbe | 8142 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8143 | (exit $ac_status); } && { |
8144 | test -z "$ac_c_werror_flag" || | |
8145 | test ! -s conftest.err | |
8146 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
8147 | ac_header_compiler=yes |
8148 | else | |
ec6a6fbe | 8149 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8150 | sed 's/^/| /' conftest.$ac_ext >&5 |
8151 | ||
7a197a62 | 8152 | ac_header_compiler=no |
ad6254c5 | 8153 | fi |
7a197a62 AK |
8154 | |
8155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
8156 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8157 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
8158 | |
8159 | # Is the header present? | |
ec6a6fbe AK |
8160 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8161 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 8162 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
8163 | /* confdefs.h. */ |
8164 | _ACEOF | |
8165 | cat confdefs.h >>conftest.$ac_ext | |
8166 | cat >>conftest.$ac_ext <<_ACEOF | |
8167 | /* end confdefs.h. */ | |
8168 | #include <$ac_header> | |
8169 | _ACEOF | |
7a197a62 AK |
8170 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8171 | case "(($ac_try" in | |
8172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8173 | *) ac_try_echo=$ac_try;; | |
8174 | esac | |
ec6a6fbe AK |
8175 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8176 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8177 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
8178 | ac_status=$? |
8179 | grep -v '^ *+' conftest.er1 >conftest.err | |
8180 | rm -f conftest.er1 | |
8181 | cat conftest.err >&5 | |
ec6a6fbe | 8182 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8183 | (exit $ac_status); } >/dev/null && { |
8184 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
8185 | test ! -s conftest.err | |
8186 | }; then | |
ad6254c5 AK |
8187 | ac_header_preproc=yes |
8188 | else | |
ec6a6fbe | 8189 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8190 | sed 's/^/| /' conftest.$ac_ext >&5 |
8191 | ||
8192 | ac_header_preproc=no | |
8193 | fi | |
7a197a62 | 8194 | |
ad6254c5 | 8195 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
8196 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8197 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
8198 | |
8199 | # So? What about this header? | |
8a2fc586 AK |
8200 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8201 | yes:no: ) | |
ec6a6fbe AK |
8202 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8203 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8204 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8205 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 8206 | ac_header_preproc=yes |
ad6254c5 | 8207 | ;; |
8a2fc586 | 8208 | no:yes:* ) |
ec6a6fbe AK |
8209 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8210 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8211 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8212 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8213 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8214 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8215 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8216 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8217 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8218 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8219 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8220 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 8221 | |
ad6254c5 AK |
8222 | ;; |
8223 | esac | |
ec6a6fbe AK |
8224 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8225 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 8226 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8227 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8228 | else |
8a2fc586 | 8229 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 8230 | fi |
ec6a6fbe AK |
8231 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
8232 | $as_echo "$as_val"'` | |
8233 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8234 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
8235 | |
8236 | fi | |
ec6a6fbe AK |
8237 | as_val=`eval 'as_val=${'$as_ac_Header'} |
8238 | $as_echo "$as_val"'` | |
8239 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8240 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8241 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
8242 | _ACEOF |
8243 | ||
8244 | fi | |
8245 | ||
8246 | done | |
8247 | ||
8248 | ||
8249 | for ac_func in getpagesize | |
8250 | do | |
ec6a6fbe AK |
8251 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8252 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8253 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 8254 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8255 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8256 | else |
8257 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8258 | /* confdefs.h. */ |
8259 | _ACEOF | |
8260 | cat confdefs.h >>conftest.$ac_ext | |
8261 | cat >>conftest.$ac_ext <<_ACEOF | |
8262 | /* end confdefs.h. */ | |
8a2fc586 AK |
8263 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8264 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8265 | #define $ac_func innocuous_$ac_func | |
8266 | ||
ad6254c5 AK |
8267 | /* System header to define __stub macros and hopefully few prototypes, |
8268 | which can conflict with char $ac_func (); below. | |
8269 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8270 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8271 | |
ad6254c5 AK |
8272 | #ifdef __STDC__ |
8273 | # include <limits.h> | |
8274 | #else | |
8275 | # include <assert.h> | |
8276 | #endif | |
8a2fc586 AK |
8277 | |
8278 | #undef $ac_func | |
8279 | ||
7a197a62 AK |
8280 | /* Override any GCC internal prototype to avoid an error. |
8281 | Use char because int might match the return type of a GCC | |
8282 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8283 | #ifdef __cplusplus |
8284 | extern "C" | |
ad6254c5 | 8285 | #endif |
ad6254c5 AK |
8286 | char $ac_func (); |
8287 | /* The GNU C library defines this for functions which it implements | |
8288 | to always fail with ENOSYS. Some functions are actually named | |
8289 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8290 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 8291 | choke me |
ad6254c5 AK |
8292 | #endif |
8293 | ||
8294 | int | |
8295 | main () | |
8296 | { | |
7a197a62 | 8297 | return $ac_func (); |
ad6254c5 AK |
8298 | ; |
8299 | return 0; | |
8300 | } | |
8301 | _ACEOF | |
8302 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8303 | if { (ac_try="$ac_link" |
8304 | case "(($ac_try" in | |
8305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8306 | *) ac_try_echo=$ac_try;; | |
8307 | esac | |
ec6a6fbe AK |
8308 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8309 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8310 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8311 | ac_status=$? |
8a2fc586 AK |
8312 | grep -v '^ *+' conftest.er1 >conftest.err |
8313 | rm -f conftest.er1 | |
8314 | cat conftest.err >&5 | |
ec6a6fbe | 8315 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8316 | (exit $ac_status); } && { |
8317 | test -z "$ac_c_werror_flag" || | |
8318 | test ! -s conftest.err | |
ec6a6fbe AK |
8319 | } && test -s conftest$ac_exeext && { |
8320 | test "$cross_compiling" = yes || | |
8321 | $as_test_x conftest$ac_exeext | |
8322 | }; then | |
ad6254c5 AK |
8323 | eval "$as_ac_var=yes" |
8324 | else | |
ec6a6fbe | 8325 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8326 | sed 's/^/| /' conftest.$ac_ext >&5 |
8327 | ||
7a197a62 | 8328 | eval "$as_ac_var=no" |
ad6254c5 | 8329 | fi |
7a197a62 | 8330 | |
ec6a6fbe | 8331 | rm -rf conftest.dSYM |
25fbec5b | 8332 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8333 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8334 | fi |
ec6a6fbe AK |
8335 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8336 | $as_echo "$as_val"'` | |
8337 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8338 | $as_echo "$ac_res" >&6; } | |
8339 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8340 | $as_echo "$as_val"'` | |
8341 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 8342 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8343 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
8344 | _ACEOF |
8345 | ||
8346 | fi | |
8347 | done | |
8348 | ||
ec6a6fbe AK |
8349 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
8350 | $as_echo_n "checking for working mmap... " >&6; } | |
ad6254c5 | 8351 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
ec6a6fbe | 8352 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8353 | else |
8354 | if test "$cross_compiling" = yes; then | |
8355 | ac_cv_func_mmap_fixed_mapped=no | |
8356 | else | |
8357 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8358 | /* confdefs.h. */ |
8359 | _ACEOF | |
8360 | cat confdefs.h >>conftest.$ac_ext | |
8361 | cat >>conftest.$ac_ext <<_ACEOF | |
8362 | /* end confdefs.h. */ | |
8363 | $ac_includes_default | |
8364 | /* malloc might have been renamed as rpl_malloc. */ | |
8365 | #undef malloc | |
8366 | ||
8367 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
8368 | Here is a matrix of mmap possibilities: | |
8369 | mmap private not fixed | |
8370 | mmap private fixed at somewhere currently unmapped | |
8371 | mmap private fixed at somewhere already mapped | |
8372 | mmap shared not fixed | |
8373 | mmap shared fixed at somewhere currently unmapped | |
8374 | mmap shared fixed at somewhere already mapped | |
8375 | For private mappings, we should verify that changes cannot be read() | |
8376 | back from the file, nor mmap's back from the file at a different | |
8377 | address. (There have been systems where private was not correctly | |
8378 | implemented like the infamous i386 svr4.0, and systems where the | |
8379 | VM page cache was not coherent with the file system buffer cache | |
8380 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
8381 | For shared mappings, we should conversely verify that changes get | |
8382 | propagated back to all the places they're supposed to be. | |
8383 | ||
8384 | Grep wants private fixed already mapped. | |
8385 | The main things grep needs to know about mmap are: | |
8386 | * does it exist and is it safe to write into the mmap'd area | |
8387 | * how to use it (BSD variants) */ | |
8388 | ||
8389 | #include <fcntl.h> | |
8390 | #include <sys/mman.h> | |
8391 | ||
25fbec5b | 8392 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
ad6254c5 AK |
8393 | char *malloc (); |
8394 | #endif | |
8395 | ||
8396 | /* This mess was copied from the GNU getpagesize.h. */ | |
25fbec5b | 8397 | #ifndef HAVE_GETPAGESIZE |
ad6254c5 | 8398 | /* Assume that all systems that can run configure have sys/param.h. */ |
25fbec5b | 8399 | # ifndef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8400 | # define HAVE_SYS_PARAM_H 1 |
8401 | # endif | |
8402 | ||
8403 | # ifdef _SC_PAGESIZE | |
8404 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
8405 | # else /* no _SC_PAGESIZE */ | |
25fbec5b | 8406 | # ifdef HAVE_SYS_PARAM_H |
ad6254c5 AK |
8407 | # include <sys/param.h> |
8408 | # ifdef EXEC_PAGESIZE | |
8409 | # define getpagesize() EXEC_PAGESIZE | |
8410 | # else /* no EXEC_PAGESIZE */ | |
8411 | # ifdef NBPG | |
8412 | # define getpagesize() NBPG * CLSIZE | |
8413 | # ifndef CLSIZE | |
8414 | # define CLSIZE 1 | |
8415 | # endif /* no CLSIZE */ | |
8416 | # else /* no NBPG */ | |
8417 | # ifdef NBPC | |
8418 | # define getpagesize() NBPC | |
8419 | # else /* no NBPC */ | |
8420 | # ifdef PAGESIZE | |
8421 | # define getpagesize() PAGESIZE | |
8422 | # endif /* PAGESIZE */ | |
8423 | # endif /* no NBPC */ | |
8424 | # endif /* no NBPG */ | |
8425 | # endif /* no EXEC_PAGESIZE */ | |
8426 | # else /* no HAVE_SYS_PARAM_H */ | |
8427 | # define getpagesize() 8192 /* punt totally */ | |
8428 | # endif /* no HAVE_SYS_PARAM_H */ | |
8429 | # endif /* no _SC_PAGESIZE */ | |
8430 | ||
8431 | #endif /* no HAVE_GETPAGESIZE */ | |
8432 | ||
8433 | int | |
8434 | main () | |
8435 | { | |
8436 | char *data, *data2, *data3; | |
8437 | int i, pagesize; | |
8438 | int fd; | |
8439 | ||
8440 | pagesize = getpagesize (); | |
8441 | ||
8442 | /* First, make a file with some known garbage in it. */ | |
8443 | data = (char *) malloc (pagesize); | |
8444 | if (!data) | |
7a197a62 | 8445 | return 1; |
ad6254c5 AK |
8446 | for (i = 0; i < pagesize; ++i) |
8447 | *(data + i) = rand (); | |
8448 | umask (0); | |
8449 | fd = creat ("conftest.mmap", 0600); | |
8450 | if (fd < 0) | |
7a197a62 | 8451 | return 1; |
ad6254c5 | 8452 | if (write (fd, data, pagesize) != pagesize) |
7a197a62 | 8453 | return 1; |
ad6254c5 AK |
8454 | close (fd); |
8455 | ||
8456 | /* Next, try to mmap the file at a fixed address which already has | |
8457 | something else allocated at it. If we can, also make sure that | |
8458 | we see the same garbage. */ | |
8459 | fd = open ("conftest.mmap", O_RDWR); | |
8460 | if (fd < 0) | |
7a197a62 | 8461 | return 1; |
ad6254c5 AK |
8462 | data2 = (char *) malloc (2 * pagesize); |
8463 | if (!data2) | |
7a197a62 AK |
8464 | return 1; |
8465 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
ad6254c5 | 8466 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
8a2fc586 | 8467 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
7a197a62 | 8468 | return 1; |
ad6254c5 AK |
8469 | for (i = 0; i < pagesize; ++i) |
8470 | if (*(data + i) != *(data2 + i)) | |
7a197a62 | 8471 | return 1; |
ad6254c5 AK |
8472 | |
8473 | /* Finally, make sure that changes to the mapped area do not | |
8474 | percolate back to the file as seen by read(). (This is a bug on | |
8475 | some variants of i386 svr4.0.) */ | |
8476 | for (i = 0; i < pagesize; ++i) | |
8477 | *(data2 + i) = *(data2 + i) + 1; | |
8478 | data3 = (char *) malloc (pagesize); | |
8479 | if (!data3) | |
7a197a62 | 8480 | return 1; |
ad6254c5 | 8481 | if (read (fd, data3, pagesize) != pagesize) |
7a197a62 | 8482 | return 1; |
ad6254c5 AK |
8483 | for (i = 0; i < pagesize; ++i) |
8484 | if (*(data + i) != *(data3 + i)) | |
7a197a62 | 8485 | return 1; |
ad6254c5 | 8486 | close (fd); |
7a197a62 | 8487 | return 0; |
ad6254c5 AK |
8488 | } |
8489 | _ACEOF | |
8490 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8491 | if { (ac_try="$ac_link" |
8492 | case "(($ac_try" in | |
8493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8494 | *) ac_try_echo=$ac_try;; | |
8495 | esac | |
ec6a6fbe AK |
8496 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8497 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8498 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8499 | ac_status=$? |
ec6a6fbe | 8500 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8501 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8502 | { (case "(($ac_try" in |
8503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8504 | *) ac_try_echo=$ac_try;; | |
8505 | esac | |
ec6a6fbe AK |
8506 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8507 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8508 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8509 | ac_status=$? |
ec6a6fbe | 8510 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8511 | (exit $ac_status); }; }; then |
8512 | ac_cv_func_mmap_fixed_mapped=yes | |
8513 | else | |
ec6a6fbe AK |
8514 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8515 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8516 | sed 's/^/| /' conftest.$ac_ext >&5 |
8517 | ||
8518 | ( exit $ac_status ) | |
8519 | ac_cv_func_mmap_fixed_mapped=no | |
8520 | fi | |
ec6a6fbe | 8521 | rm -rf conftest.dSYM |
7a197a62 | 8522 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8523 | fi |
7a197a62 AK |
8524 | |
8525 | ||
ad6254c5 | 8526 | fi |
ec6a6fbe AK |
8527 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
8528 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
ad6254c5 AK |
8529 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
8530 | ||
8531 | cat >>confdefs.h <<\_ACEOF | |
8532 | #define HAVE_MMAP 1 | |
8533 | _ACEOF | |
8534 | ||
8535 | fi | |
8536 | rm -f conftest.mmap | |
8537 | ||
ec6a6fbe AK |
8538 | { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
8539 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
ad6254c5 | 8540 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
ec6a6fbe | 8541 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8542 | else |
8543 | if test "$cross_compiling" = yes; then | |
8544 | ac_cv_func_stat_empty_string_bug=yes | |
8545 | else | |
8546 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8547 | /* confdefs.h. */ |
8548 | _ACEOF | |
8549 | cat confdefs.h >>conftest.$ac_ext | |
8550 | cat >>conftest.$ac_ext <<_ACEOF | |
8551 | /* end confdefs.h. */ | |
8552 | $ac_includes_default | |
8553 | int | |
8554 | main () | |
8555 | { | |
8556 | struct stat sbuf; | |
7a197a62 | 8557 | return stat ("", &sbuf) == 0; |
ad6254c5 AK |
8558 | ; |
8559 | return 0; | |
8560 | } | |
8561 | _ACEOF | |
8562 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8563 | if { (ac_try="$ac_link" |
8564 | case "(($ac_try" in | |
8565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8566 | *) ac_try_echo=$ac_try;; | |
8567 | esac | |
ec6a6fbe AK |
8568 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8569 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8570 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8571 | ac_status=$? |
ec6a6fbe | 8572 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8573 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8574 | { (case "(($ac_try" in |
8575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8576 | *) ac_try_echo=$ac_try;; | |
8577 | esac | |
ec6a6fbe AK |
8578 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8579 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8580 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8581 | ac_status=$? |
ec6a6fbe | 8582 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8583 | (exit $ac_status); }; }; then |
7a197a62 | 8584 | ac_cv_func_stat_empty_string_bug=no |
ad6254c5 | 8585 | else |
ec6a6fbe AK |
8586 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8587 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8588 | sed 's/^/| /' conftest.$ac_ext >&5 |
8589 | ||
8590 | ( exit $ac_status ) | |
7a197a62 | 8591 | ac_cv_func_stat_empty_string_bug=yes |
ad6254c5 | 8592 | fi |
ec6a6fbe | 8593 | rm -rf conftest.dSYM |
7a197a62 | 8594 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8595 | fi |
7a197a62 AK |
8596 | |
8597 | ||
ad6254c5 | 8598 | fi |
ec6a6fbe AK |
8599 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
8600 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
ad6254c5 | 8601 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
7a197a62 | 8602 | case " $LIBOBJS " in |
8a2fc586 | 8603 | *" stat.$ac_objext "* ) ;; |
7a197a62 AK |
8604 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
8605 | ;; | |
8a2fc586 AK |
8606 | esac |
8607 | ||
ad6254c5 AK |
8608 | |
8609 | cat >>confdefs.h <<_ACEOF | |
8610 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
8611 | _ACEOF | |
8612 | ||
8613 | fi | |
8614 | ||
ec6a6fbe AK |
8615 | { $as_echo "$as_me:$LINENO: checking for working strtod" >&5 |
8616 | $as_echo_n "checking for working strtod... " >&6; } | |
ad6254c5 | 8617 | if test "${ac_cv_func_strtod+set}" = set; then |
ec6a6fbe | 8618 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8619 | else |
8620 | if test "$cross_compiling" = yes; then | |
8621 | ac_cv_func_strtod=no | |
8622 | else | |
8623 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8624 | /* confdefs.h. */ |
8625 | _ACEOF | |
8626 | cat confdefs.h >>conftest.$ac_ext | |
8627 | cat >>conftest.$ac_ext <<_ACEOF | |
8628 | /* end confdefs.h. */ | |
8629 | ||
7a197a62 AK |
8630 | $ac_includes_default |
8631 | #ifndef strtod | |
ad6254c5 | 8632 | double strtod (); |
7a197a62 | 8633 | #endif |
ad6254c5 AK |
8634 | int |
8635 | main() | |
8636 | { | |
8637 | { | |
8638 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
8639 | char *string = " +69"; | |
8640 | char *term; | |
8641 | double value; | |
8642 | value = strtod (string, &term); | |
8643 | if (value != 69 || term != (string + 4)) | |
7a197a62 | 8644 | return 1; |
ad6254c5 AK |
8645 | } |
8646 | ||
8647 | { | |
8648 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
8649 | terminating character under some conditions. */ | |
8650 | char *string = "NaN"; | |
8651 | char *term; | |
8652 | strtod (string, &term); | |
8653 | if (term != string && *(term - 1) == 0) | |
7a197a62 | 8654 | return 1; |
ad6254c5 | 8655 | } |
7a197a62 | 8656 | return 0; |
ad6254c5 AK |
8657 | } |
8658 | ||
8659 | _ACEOF | |
8660 | rm -f conftest$ac_exeext | |
7a197a62 AK |
8661 | if { (ac_try="$ac_link" |
8662 | case "(($ac_try" in | |
8663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8664 | *) ac_try_echo=$ac_try;; | |
8665 | esac | |
ec6a6fbe AK |
8666 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8667 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8668 | (eval "$ac_link") 2>&5 |
ad6254c5 | 8669 | ac_status=$? |
ec6a6fbe | 8670 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 | 8671 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7a197a62 AK |
8672 | { (case "(($ac_try" in |
8673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8674 | *) ac_try_echo=$ac_try;; | |
8675 | esac | |
ec6a6fbe AK |
8676 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8677 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8678 | (eval "$ac_try") 2>&5 |
ad6254c5 | 8679 | ac_status=$? |
ec6a6fbe | 8680 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad6254c5 AK |
8681 | (exit $ac_status); }; }; then |
8682 | ac_cv_func_strtod=yes | |
8683 | else | |
ec6a6fbe AK |
8684 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
8685 | $as_echo "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
8686 | sed 's/^/| /' conftest.$ac_ext >&5 |
8687 | ||
8688 | ( exit $ac_status ) | |
8689 | ac_cv_func_strtod=no | |
8690 | fi | |
ec6a6fbe | 8691 | rm -rf conftest.dSYM |
7a197a62 | 8692 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 8693 | fi |
7a197a62 AK |
8694 | |
8695 | ||
ad6254c5 | 8696 | fi |
ec6a6fbe AK |
8697 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
8698 | $as_echo "$ac_cv_func_strtod" >&6; } | |
ad6254c5 | 8699 | if test $ac_cv_func_strtod = no; then |
7a197a62 | 8700 | case " $LIBOBJS " in |
8a2fc586 | 8701 | *" strtod.$ac_objext "* ) ;; |
7a197a62 AK |
8702 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
8703 | ;; | |
8a2fc586 AK |
8704 | esac |
8705 | ||
ec6a6fbe AK |
8706 | { $as_echo "$as_me:$LINENO: checking for pow" >&5 |
8707 | $as_echo_n "checking for pow... " >&6; } | |
ad6254c5 | 8708 | if test "${ac_cv_func_pow+set}" = set; then |
ec6a6fbe | 8709 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8710 | else |
8711 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8712 | /* confdefs.h. */ |
8713 | _ACEOF | |
8714 | cat confdefs.h >>conftest.$ac_ext | |
8715 | cat >>conftest.$ac_ext <<_ACEOF | |
8716 | /* end confdefs.h. */ | |
8a2fc586 AK |
8717 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
8718 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8719 | #define pow innocuous_pow | |
8720 | ||
ad6254c5 AK |
8721 | /* System header to define __stub macros and hopefully few prototypes, |
8722 | which can conflict with char pow (); below. | |
8723 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8724 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 8725 | |
ad6254c5 AK |
8726 | #ifdef __STDC__ |
8727 | # include <limits.h> | |
8728 | #else | |
8729 | # include <assert.h> | |
8730 | #endif | |
8a2fc586 AK |
8731 | |
8732 | #undef pow | |
8733 | ||
7a197a62 AK |
8734 | /* Override any GCC internal prototype to avoid an error. |
8735 | Use char because int might match the return type of a GCC | |
8736 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8737 | #ifdef __cplusplus |
8738 | extern "C" | |
ad6254c5 | 8739 | #endif |
ad6254c5 AK |
8740 | char pow (); |
8741 | /* The GNU C library defines this for functions which it implements | |
8742 | to always fail with ENOSYS. Some functions are actually named | |
8743 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 8744 | #if defined __stub_pow || defined __stub___pow |
ad6254c5 | 8745 | choke me |
ad6254c5 AK |
8746 | #endif |
8747 | ||
8748 | int | |
8749 | main () | |
8750 | { | |
7a197a62 | 8751 | return pow (); |
ad6254c5 AK |
8752 | ; |
8753 | return 0; | |
8754 | } | |
8755 | _ACEOF | |
8756 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8757 | if { (ac_try="$ac_link" |
8758 | case "(($ac_try" in | |
8759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8760 | *) ac_try_echo=$ac_try;; | |
8761 | esac | |
ec6a6fbe AK |
8762 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8763 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8764 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8765 | ac_status=$? |
8a2fc586 AK |
8766 | grep -v '^ *+' conftest.er1 >conftest.err |
8767 | rm -f conftest.er1 | |
8768 | cat conftest.err >&5 | |
ec6a6fbe | 8769 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8770 | (exit $ac_status); } && { |
8771 | test -z "$ac_c_werror_flag" || | |
8772 | test ! -s conftest.err | |
ec6a6fbe AK |
8773 | } && test -s conftest$ac_exeext && { |
8774 | test "$cross_compiling" = yes || | |
8775 | $as_test_x conftest$ac_exeext | |
8776 | }; then | |
ad6254c5 AK |
8777 | ac_cv_func_pow=yes |
8778 | else | |
ec6a6fbe | 8779 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8780 | sed 's/^/| /' conftest.$ac_ext >&5 |
8781 | ||
7a197a62 | 8782 | ac_cv_func_pow=no |
ad6254c5 | 8783 | fi |
7a197a62 | 8784 | |
ec6a6fbe | 8785 | rm -rf conftest.dSYM |
25fbec5b | 8786 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8787 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8788 | fi |
ec6a6fbe AK |
8789 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
8790 | $as_echo "$ac_cv_func_pow" >&6; } | |
ad6254c5 AK |
8791 | |
8792 | if test $ac_cv_func_pow = no; then | |
ec6a6fbe AK |
8793 | { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
8794 | $as_echo_n "checking for pow in -lm... " >&6; } | |
ad6254c5 | 8795 | if test "${ac_cv_lib_m_pow+set}" = set; then |
ec6a6fbe | 8796 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
8797 | else |
8798 | ac_check_lib_save_LIBS=$LIBS | |
8799 | LIBS="-lm $LIBS" | |
8800 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
8801 | /* confdefs.h. */ |
8802 | _ACEOF | |
8803 | cat confdefs.h >>conftest.$ac_ext | |
8804 | cat >>conftest.$ac_ext <<_ACEOF | |
8805 | /* end confdefs.h. */ | |
8806 | ||
7a197a62 AK |
8807 | /* Override any GCC internal prototype to avoid an error. |
8808 | Use char because int might match the return type of a GCC | |
8809 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
8810 | #ifdef __cplusplus |
8811 | extern "C" | |
8812 | #endif | |
ad6254c5 AK |
8813 | char pow (); |
8814 | int | |
8815 | main () | |
8816 | { | |
7a197a62 | 8817 | return pow (); |
ad6254c5 AK |
8818 | ; |
8819 | return 0; | |
8820 | } | |
8821 | _ACEOF | |
8822 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
8823 | if { (ac_try="$ac_link" |
8824 | case "(($ac_try" in | |
8825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8826 | *) ac_try_echo=$ac_try;; | |
8827 | esac | |
ec6a6fbe AK |
8828 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8829 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 8830 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 8831 | ac_status=$? |
8a2fc586 AK |
8832 | grep -v '^ *+' conftest.er1 >conftest.err |
8833 | rm -f conftest.er1 | |
8834 | cat conftest.err >&5 | |
ec6a6fbe | 8835 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
8836 | (exit $ac_status); } && { |
8837 | test -z "$ac_c_werror_flag" || | |
8838 | test ! -s conftest.err | |
ec6a6fbe AK |
8839 | } && test -s conftest$ac_exeext && { |
8840 | test "$cross_compiling" = yes || | |
8841 | $as_test_x conftest$ac_exeext | |
8842 | }; then | |
ad6254c5 AK |
8843 | ac_cv_lib_m_pow=yes |
8844 | else | |
ec6a6fbe | 8845 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
8846 | sed 's/^/| /' conftest.$ac_ext >&5 |
8847 | ||
7a197a62 | 8848 | ac_cv_lib_m_pow=no |
ad6254c5 | 8849 | fi |
7a197a62 | 8850 | |
ec6a6fbe | 8851 | rm -rf conftest.dSYM |
25fbec5b | 8852 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 8853 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 8854 | LIBS=$ac_check_lib_save_LIBS |
d0191583 | 8855 | fi |
ec6a6fbe AK |
8856 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
8857 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
8858 | if test "x$ac_cv_lib_m_pow" = x""yes; then | |
d0191583 JM |
8859 | POW_LIB=-lm |
8860 | else | |
ec6a6fbe AK |
8861 | { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
8862 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
d0191583 | 8863 | fi |
72b2cb61 | 8864 | |
d0191583 | 8865 | fi |
72b2cb61 | 8866 | |
ad6254c5 AK |
8867 | fi |
8868 | ||
ad6254c5 | 8869 | |
d0191583 JM |
8870 | for ac_func in vprintf |
8871 | do | |
ec6a6fbe AK |
8872 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8873 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8874 | $as_echo_n "checking for $ac_func... " >&6; } | |
d0191583 | 8875 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 8876 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8877 | else |
d0191583 JM |
8878 | cat >conftest.$ac_ext <<_ACEOF |
8879 | /* confdefs.h. */ | |
8880 | _ACEOF | |
8881 | cat confdefs.h >>conftest.$ac_ext | |
8882 | cat >>conftest.$ac_ext <<_ACEOF | |
8883 | /* end confdefs.h. */ | |
8884 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8885 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8886 | #define $ac_func innocuous_$ac_func | |
7a197a62 | 8887 | |
d0191583 JM |
8888 | /* System header to define __stub macros and hopefully few prototypes, |
8889 | which can conflict with char $ac_func (); below. | |
8890 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8891 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8892 | |
d0191583 JM |
8893 | #ifdef __STDC__ |
8894 | # include <limits.h> | |
8895 | #else | |
8896 | # include <assert.h> | |
8897 | #endif | |
ad6254c5 | 8898 | |
d0191583 | 8899 | #undef $ac_func |
72b2cb61 | 8900 | |
d0191583 JM |
8901 | /* Override any GCC internal prototype to avoid an error. |
8902 | Use char because int might match the return type of a GCC | |
8903 | builtin and then its argument prototype would still apply. */ | |
8904 | #ifdef __cplusplus | |
8905 | extern "C" | |
8906 | #endif | |
8907 | char $ac_func (); | |
8908 | /* The GNU C library defines this for functions which it implements | |
8909 | to always fail with ENOSYS. Some functions are actually named | |
8910 | something starting with __ and the normal name is an alias. */ | |
8911 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
8912 | choke me | |
8913 | #endif | |
8914 | ||
8915 | int | |
8916 | main () | |
8917 | { | |
8918 | return $ac_func (); | |
8919 | ; | |
8920 | return 0; | |
8921 | } | |
72b2cb61 | 8922 | _ACEOF |
d0191583 JM |
8923 | rm -f conftest.$ac_objext conftest$ac_exeext |
8924 | if { (ac_try="$ac_link" | |
8925 | case "(($ac_try" in | |
8926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8927 | *) ac_try_echo=$ac_try;; | |
8928 | esac | |
ec6a6fbe AK |
8929 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
8930 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
8931 | (eval "$ac_link") 2>conftest.er1 |
8932 | ac_status=$? | |
8933 | grep -v '^ *+' conftest.er1 >conftest.err | |
8934 | rm -f conftest.er1 | |
8935 | cat conftest.err >&5 | |
ec6a6fbe | 8936 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
8937 | (exit $ac_status); } && { |
8938 | test -z "$ac_c_werror_flag" || | |
8939 | test ! -s conftest.err | |
ec6a6fbe AK |
8940 | } && test -s conftest$ac_exeext && { |
8941 | test "$cross_compiling" = yes || | |
8942 | $as_test_x conftest$ac_exeext | |
8943 | }; then | |
d0191583 JM |
8944 | eval "$as_ac_var=yes" |
8945 | else | |
ec6a6fbe | 8946 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 8947 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 8948 | |
d0191583 | 8949 | eval "$as_ac_var=no" |
ad6254c5 AK |
8950 | fi |
8951 | ||
ec6a6fbe | 8952 | rm -rf conftest.dSYM |
d0191583 JM |
8953 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8954 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 8955 | fi |
ec6a6fbe AK |
8956 | ac_res=`eval 'as_val=${'$as_ac_var'} |
8957 | $as_echo "$as_val"'` | |
8958 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8959 | $as_echo "$ac_res" >&6; } | |
8960 | as_val=`eval 'as_val=${'$as_ac_var'} | |
8961 | $as_echo "$as_val"'` | |
8962 | if test "x$as_val" = x""yes; then | |
d0191583 | 8963 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 8964 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d0191583 | 8965 | _ACEOF |
7a197a62 | 8966 | |
ec6a6fbe AK |
8967 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
8968 | $as_echo_n "checking for _doprnt... " >&6; } | |
d0191583 | 8969 | if test "${ac_cv_func__doprnt+set}" = set; then |
ec6a6fbe | 8970 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8971 | else |
d0191583 JM |
8972 | cat >conftest.$ac_ext <<_ACEOF |
8973 | /* confdefs.h. */ | |
8974 | _ACEOF | |
8975 | cat confdefs.h >>conftest.$ac_ext | |
8976 | cat >>conftest.$ac_ext <<_ACEOF | |
8977 | /* end confdefs.h. */ | |
8978 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. | |
8979 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8980 | #define _doprnt innocuous__doprnt | |
7a197a62 | 8981 | |
d0191583 JM |
8982 | /* System header to define __stub macros and hopefully few prototypes, |
8983 | which can conflict with char _doprnt (); below. | |
8984 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8985 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 8986 | |
d0191583 JM |
8987 | #ifdef __STDC__ |
8988 | # include <limits.h> | |
8989 | #else | |
8990 | # include <assert.h> | |
8991 | #endif | |
72b2cb61 | 8992 | |
d0191583 JM |
8993 | #undef _doprnt |
8994 | ||
8995 | /* Override any GCC internal prototype to avoid an error. | |
8996 | Use char because int might match the return type of a GCC | |
8997 | builtin and then its argument prototype would still apply. */ | |
8998 | #ifdef __cplusplus | |
8999 | extern "C" | |
9000 | #endif | |
9001 | char _doprnt (); | |
9002 | /* The GNU C library defines this for functions which it implements | |
9003 | to always fail with ENOSYS. Some functions are actually named | |
9004 | something starting with __ and the normal name is an alias. */ | |
9005 | #if defined __stub__doprnt || defined __stub____doprnt | |
9006 | choke me | |
9007 | #endif | |
9008 | ||
9009 | int | |
9010 | main () | |
9011 | { | |
9012 | return _doprnt (); | |
9013 | ; | |
9014 | return 0; | |
9015 | } | |
72b2cb61 | 9016 | _ACEOF |
d0191583 JM |
9017 | rm -f conftest.$ac_objext conftest$ac_exeext |
9018 | if { (ac_try="$ac_link" | |
9019 | case "(($ac_try" in | |
9020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9021 | *) ac_try_echo=$ac_try;; | |
9022 | esac | |
ec6a6fbe AK |
9023 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
9024 | $as_echo "$ac_try_echo") >&5 | |
d0191583 JM |
9025 | (eval "$ac_link") 2>conftest.er1 |
9026 | ac_status=$? | |
9027 | grep -v '^ *+' conftest.er1 >conftest.err | |
9028 | rm -f conftest.er1 | |
9029 | cat conftest.err >&5 | |
ec6a6fbe | 9030 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d0191583 JM |
9031 | (exit $ac_status); } && { |
9032 | test -z "$ac_c_werror_flag" || | |
9033 | test ! -s conftest.err | |
ec6a6fbe AK |
9034 | } && test -s conftest$ac_exeext && { |
9035 | test "$cross_compiling" = yes || | |
9036 | $as_test_x conftest$ac_exeext | |
9037 | }; then | |
d0191583 JM |
9038 | ac_cv_func__doprnt=yes |
9039 | else | |
ec6a6fbe | 9040 | $as_echo "$as_me: failed program was:" >&5 |
d0191583 | 9041 | sed 's/^/| /' conftest.$ac_ext >&5 |
72b2cb61 | 9042 | |
d0191583 | 9043 | ac_cv_func__doprnt=no |
ad6254c5 AK |
9044 | fi |
9045 | ||
ec6a6fbe | 9046 | rm -rf conftest.dSYM |
d0191583 JM |
9047 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9048 | conftest$ac_exeext conftest.$ac_ext | |
7a197a62 | 9049 | fi |
ec6a6fbe AK |
9050 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
9051 | $as_echo "$ac_cv_func__doprnt" >&6; } | |
9052 | if test "x$ac_cv_func__doprnt" = x""yes; then | |
7a197a62 | 9053 | |
d0191583 JM |
9054 | cat >>confdefs.h <<\_ACEOF |
9055 | #define HAVE_DOPRNT 1 | |
9056 | _ACEOF | |
ad6254c5 | 9057 | |
7a197a62 AK |
9058 | fi |
9059 | ||
d0191583 JM |
9060 | fi |
9061 | done | |
8b1a3214 | 9062 | |
ad6254c5 | 9063 | |
7a197a62 | 9064 | |
9c961554 | 9065 | ################################################################################ |
ec6a6fbe AK |
9066 | { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5 |
9067 | $as_echo_n "checking whether to use static linking... " >&6; } | |
9c961554 MB |
9068 | # Check whether --enable-static_link was given. |
9069 | if test "${enable_static_link+set}" = set; then | |
9070 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
9071 | else | |
9072 | STATIC_LINK=no | |
9073 | fi | |
9074 | ||
ec6a6fbe AK |
9075 | { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5 |
9076 | $as_echo "$STATIC_LINK" >&6; } | |
9c961554 | 9077 | |
d0191583 | 9078 | ################################################################################ |
ad6254c5 | 9079 | |
ad6254c5 AK |
9080 | |
9081 | ################################################################################ | |
ec6a6fbe AK |
9082 | { $as_echo "$as_me:$LINENO: checking file owner" >&5 |
9083 | $as_echo_n "checking file owner... " >&6; } | |
39dabc84 | 9084 | OWNER="" |
d0191583 JM |
9085 | |
9086 | ||
9087 | # Check whether --with-user was given. | |
9088 | if test "${with_user+set}" = set; then | |
9089 | withval=$with_user; OWNER="$withval" | |
7a197a62 AK |
9090 | fi |
9091 | ||
ec6a6fbe AK |
9092 | { $as_echo "$as_me:$LINENO: result: $OWNER" >&5 |
9093 | $as_echo "$OWNER" >&6; } | |
ad6254c5 | 9094 | |
d0191583 JM |
9095 | if test x$OWNER != x; then |
9096 | OWNER="-o $OWNER" | |
ad6254c5 AK |
9097 | fi |
9098 | ||
9099 | ################################################################################ | |
ec6a6fbe AK |
9100 | { $as_echo "$as_me:$LINENO: checking group owner" >&5 |
9101 | $as_echo_n "checking group owner... " >&6; } | |
39dabc84 | 9102 | GROUP="" |
ad6254c5 | 9103 | |
d0191583 JM |
9104 | # Check whether --with-group was given. |
9105 | if test "${with_group+set}" = set; then | |
9106 | withval=$with_group; GROUP="$withval" | |
7a197a62 AK |
9107 | fi |
9108 | ||
ec6a6fbe AK |
9109 | { $as_echo "$as_me:$LINENO: result: $GROUP" >&5 |
9110 | $as_echo "$GROUP" >&6; } | |
d0191583 JM |
9111 | |
9112 | if test x$GROUP != x; then | |
9113 | GROUP="-g $GROUP" | |
9114 | fi | |
ad6254c5 | 9115 | |
24bbc4d7 | 9116 | ################################################################################ |
ec6a6fbe AK |
9117 | { $as_echo "$as_me:$LINENO: checking device node uid" >&5 |
9118 | $as_echo_n "checking device node uid... " >&6; } | |
24bbc4d7 AK |
9119 | |
9120 | ||
9121 | # Check whether --with-device-uid was given. | |
9122 | if test "${with_device_uid+set}" = set; then | |
9123 | withval=$with_device_uid; DM_DEVICE_UID="$withval" | |
9124 | else | |
9125 | DM_DEVICE_UID="0" | |
9126 | fi | |
9127 | ||
ec6a6fbe AK |
9128 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5 |
9129 | $as_echo "$DM_DEVICE_UID" >&6; } | |
24bbc4d7 AK |
9130 | |
9131 | ################################################################################ | |
ec6a6fbe AK |
9132 | { $as_echo "$as_me:$LINENO: checking device node gid" >&5 |
9133 | $as_echo_n "checking device node gid... " >&6; } | |
24bbc4d7 AK |
9134 | |
9135 | ||
9136 | # Check whether --with-device-gid was given. | |
9137 | if test "${with_device_gid+set}" = set; then | |
9138 | withval=$with_device_gid; DM_DEVICE_GID="$withval" | |
9139 | else | |
9140 | DM_DEVICE_GID="0" | |
9141 | fi | |
9142 | ||
ec6a6fbe AK |
9143 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5 |
9144 | $as_echo "$DM_DEVICE_GID" >&6; } | |
24bbc4d7 | 9145 | |
93bd259b | 9146 | ################################################################################ |
ec6a6fbe AK |
9147 | { $as_echo "$as_me:$LINENO: checking device node mode" >&5 |
9148 | $as_echo_n "checking device node mode... " >&6; } | |
93bd259b AK |
9149 | |
9150 | ||
9151 | # Check whether --with-device-mode was given. | |
9152 | if test "${with_device_mode+set}" = set; then | |
9153 | withval=$with_device_mode; DM_DEVICE_MODE="$withval" | |
9154 | else | |
9155 | DM_DEVICE_MODE="0600" | |
9156 | fi | |
9157 | ||
ec6a6fbe AK |
9158 | { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5 |
9159 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
93bd259b | 9160 | |
ad6254c5 | 9161 | ################################################################################ |
ec6a6fbe AK |
9162 | { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5 |
9163 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
d0191583 JM |
9164 | # Check whether --enable-lvm1_fallback was given. |
9165 | if test "${enable_lvm1_fallback+set}" = set; then | |
9166 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
9167 | else | |
9168 | LVM1_FALLBACK=no | |
7a197a62 AK |
9169 | fi |
9170 | ||
ec6a6fbe AK |
9171 | { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5 |
9172 | $as_echo "$LVM1_FALLBACK" >&6; } | |
ad6254c5 | 9173 | |
d0191583 | 9174 | if test x$LVM1_FALLBACK = xyes; then |
72b2cb61 AK |
9175 | |
9176 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9177 | #define LVM1_FALLBACK 1 |
72b2cb61 AK |
9178 | _ACEOF |
9179 | ||
ad6254c5 AK |
9180 | fi |
9181 | ||
9182 | ################################################################################ | |
ec6a6fbe AK |
9183 | { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5 |
9184 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
d0191583 JM |
9185 | |
9186 | # Check whether --with-lvm1 was given. | |
9187 | if test "${with_lvm1+set}" = set; then | |
9188 | withval=$with_lvm1; LVM1="$withval" | |
9189 | else | |
9190 | LVM1="internal" | |
7a197a62 AK |
9191 | fi |
9192 | ||
ec6a6fbe AK |
9193 | { $as_echo "$as_me:$LINENO: result: $LVM1" >&5 |
9194 | $as_echo "$LVM1" >&6; } | |
ad6254c5 | 9195 | |
d0191583 | 9196 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; |
ec6a6fbe | 9197 | then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid |
d0191583 | 9198 | " >&5 |
ec6a6fbe | 9199 | $as_echo "$as_me: error: --with-lvm1 parameter invalid |
d0191583 JM |
9200 | " >&2;} |
9201 | { (exit 1); exit 1; }; } | |
9202 | fi; | |
9203 | ||
9204 | if test x$LVM1 = xinternal; then | |
72b2cb61 AK |
9205 | |
9206 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9207 | #define LVM1_INTERNAL 1 |
72b2cb61 AK |
9208 | _ACEOF |
9209 | ||
ad6254c5 AK |
9210 | fi |
9211 | ||
9212 | ################################################################################ | |
ec6a6fbe AK |
9213 | { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5 |
9214 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
d0191583 JM |
9215 | |
9216 | # Check whether --with-pool was given. | |
9217 | if test "${with_pool+set}" = set; then | |
9218 | withval=$with_pool; POOL="$withval" | |
ad6254c5 | 9219 | else |
d0191583 | 9220 | POOL="internal" |
7a197a62 AK |
9221 | fi |
9222 | ||
ec6a6fbe AK |
9223 | { $as_echo "$as_me:$LINENO: result: $POOL" >&5 |
9224 | $as_echo "$POOL" >&6; } | |
ad6254c5 | 9225 | |
d0191583 | 9226 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; |
ec6a6fbe | 9227 | then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid |
d0191583 | 9228 | " >&5 |
ec6a6fbe | 9229 | $as_echo "$as_me: error: --with-pool parameter invalid |
d0191583 JM |
9230 | " >&2;} |
9231 | { (exit 1); exit 1; }; } | |
9232 | fi; | |
7a197a62 | 9233 | |
d0191583 JM |
9234 | if test x$POOL = xinternal; then |
9235 | ||
9236 | cat >>confdefs.h <<\_ACEOF | |
9237 | #define POOL_INTERNAL 1 | |
9238 | _ACEOF | |
9239 | ||
9240 | fi | |
ad6254c5 | 9241 | |
06f62ad1 | 9242 | ################################################################################ |
ec6a6fbe AK |
9243 | { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5 |
9244 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
d0191583 JM |
9245 | |
9246 | # Check whether --with-cluster was given. | |
9247 | if test "${with_cluster+set}" = set; then | |
9248 | withval=$with_cluster; CLUSTER="$withval" | |
7a197a62 AK |
9249 | fi |
9250 | ||
ec6a6fbe AK |
9251 | { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5 |
9252 | $as_echo "$CLUSTER" >&6; } | |
06f62ad1 | 9253 | |
d0191583 | 9254 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
ec6a6fbe | 9255 | then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid |
06f62ad1 | 9256 | " >&5 |
ec6a6fbe | 9257 | $as_echo "$as_me: error: --with-cluster parameter invalid |
06f62ad1 AK |
9258 | " >&2;} |
9259 | { (exit 1); exit 1; }; } | |
d0191583 | 9260 | fi; |
06f62ad1 | 9261 | |
d0191583 | 9262 | if test x$CLUSTER = xinternal; then |
72b2cb61 AK |
9263 | |
9264 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 9265 | #define CLUSTER_LOCKING_INTERNAL 1 |
72b2cb61 AK |
9266 | _ACEOF |
9267 | ||
15d91f5a | 9268 | fi |
ad6254c5 AK |
9269 | |
9270 | ################################################################################ | |
ec6a6fbe AK |
9271 | { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5 |
9272 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
ad6254c5 | 9273 | |
d0191583 JM |
9274 | # Check whether --with-snapshots was given. |
9275 | if test "${with_snapshots+set}" = set; then | |
9276 | withval=$with_snapshots; SNAPSHOTS="$withval" | |
9277 | else | |
9278 | SNAPSHOTS="internal" | |
ad6254c5 AK |
9279 | fi |
9280 | ||
ec6a6fbe AK |
9281 | { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5 |
9282 | $as_echo "$SNAPSHOTS" >&6; } | |
ad6254c5 | 9283 | |
d0191583 | 9284 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
ec6a6fbe | 9285 | then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid |
d0191583 | 9286 | " >&5 |
ec6a6fbe | 9287 | $as_echo "$as_me: error: --with-snapshots parameter invalid |
d0191583 JM |
9288 | " >&2;} |
9289 | { (exit 1); exit 1; }; } | |
9290 | fi; | |
9291 | ||
9292 | if test x$SNAPSHOTS = xinternal; then | |
9293 | ||
9294 | cat >>confdefs.h <<\_ACEOF | |
9295 | #define SNAPSHOT_INTERNAL 1 | |
9296 | _ACEOF | |
ad6254c5 | 9297 | |
ad6254c5 | 9298 | fi |
7a197a62 | 9299 | |
d0191583 | 9300 | ################################################################################ |
ec6a6fbe AK |
9301 | { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5 |
9302 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
d0191583 JM |
9303 | |
9304 | # Check whether --with-mirrors was given. | |
9305 | if test "${with_mirrors+set}" = set; then | |
9306 | withval=$with_mirrors; MIRRORS="$withval" | |
9307 | else | |
9308 | MIRRORS="internal" | |
ad6254c5 | 9309 | fi |
ad6254c5 | 9310 | |
ec6a6fbe AK |
9311 | { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5 |
9312 | $as_echo "$MIRRORS" >&6; } | |
ad6254c5 | 9313 | |
d0191583 | 9314 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
ec6a6fbe | 9315 | then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid |
d0191583 | 9316 | " >&5 |
ec6a6fbe | 9317 | $as_echo "$as_me: error: --with-mirrors parameter invalid |
d0191583 JM |
9318 | " >&2;} |
9319 | { (exit 1); exit 1; }; } | |
9320 | fi; | |
ad6254c5 | 9321 | |
d0191583 | 9322 | if test x$MIRRORS = xinternal; then |
ad6254c5 | 9323 | |
d0191583 JM |
9324 | cat >>confdefs.h <<\_ACEOF |
9325 | #define MIRRORED_INTERNAL 1 | |
ad6254c5 | 9326 | _ACEOF |
8a2fc586 | 9327 | |
d0191583 | 9328 | fi |
8a2fc586 | 9329 | |
d0191583 | 9330 | ################################################################################ |
ec6a6fbe AK |
9331 | { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5 |
9332 | $as_echo_n "checking whether to enable readline... " >&6; } | |
d0191583 JM |
9333 | # Check whether --enable-readline was given. |
9334 | if test "${enable_readline+set}" = set; then | |
9335 | enableval=$enable_readline; READLINE=$enableval | |
9336 | else | |
06e459df | 9337 | READLINE=maybe |
d0191583 | 9338 | fi |
8a2fc586 | 9339 | |
ec6a6fbe AK |
9340 | { $as_echo "$as_me:$LINENO: result: $READLINE" >&5 |
9341 | $as_echo "$READLINE" >&6; } | |
8a2fc586 | 9342 | |
d0191583 | 9343 | ################################################################################ |
ec6a6fbe AK |
9344 | { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5 |
9345 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
d0191583 JM |
9346 | # Check whether --enable-realtime was given. |
9347 | if test "${enable_realtime+set}" = set; then | |
9348 | enableval=$enable_realtime; REALTIME=$enableval | |
ad6254c5 | 9349 | fi |
ad6254c5 | 9350 | |
ec6a6fbe AK |
9351 | { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5 |
9352 | $as_echo "$REALTIME" >&6; } | |
d0191583 JM |
9353 | |
9354 | ################################################################################ | |
90c80887 | 9355 | pkg_config_init() { |
e2997b73 AK |
9356 | |
9357 | ||
9358 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
9359 | if test -n "$ac_tool_prefix"; then | |
9360 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
9361 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
9362 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9363 | $as_echo_n "checking for $ac_word... " >&6; } | |
9364 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
9365 | $as_echo_n "(cached) " >&6 | |
9366 | else | |
9367 | case $PKG_CONFIG in | |
9368 | [\\/]* | ?:[\\/]*) | |
9369 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
9370 | ;; | |
9371 | *) | |
9372 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9373 | for as_dir in $PATH | |
9374 | do | |
9375 | IFS=$as_save_IFS | |
9376 | test -z "$as_dir" && as_dir=. | |
9377 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9378 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9379 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9380 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9381 | break 2 | |
9382 | fi | |
9383 | done | |
9384 | done | |
9385 | IFS=$as_save_IFS | |
9386 | ||
9387 | ;; | |
9388 | esac | |
9389 | fi | |
9390 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
9391 | if test -n "$PKG_CONFIG"; then | |
9392 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
9393 | $as_echo "$PKG_CONFIG" >&6; } | |
9394 | else | |
9395 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9396 | $as_echo "no" >&6; } | |
9397 | fi | |
9398 | ||
9399 | ||
9400 | fi | |
9401 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
9402 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
9403 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
9404 | set dummy pkg-config; ac_word=$2 | |
9405 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9406 | $as_echo_n "checking for $ac_word... " >&6; } | |
9407 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
9408 | $as_echo_n "(cached) " >&6 | |
9409 | else | |
9410 | case $ac_pt_PKG_CONFIG in | |
9411 | [\\/]* | ?:[\\/]*) | |
9412 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
9413 | ;; | |
9414 | *) | |
9415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9416 | for as_dir in $PATH | |
9417 | do | |
9418 | IFS=$as_save_IFS | |
9419 | test -z "$as_dir" && as_dir=. | |
9420 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9421 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9422 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9423 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9424 | break 2 | |
9425 | fi | |
9426 | done | |
9427 | done | |
9428 | IFS=$as_save_IFS | |
9429 | ||
9430 | ;; | |
9431 | esac | |
9432 | fi | |
9433 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
9434 | if test -n "$ac_pt_PKG_CONFIG"; then | |
9435 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
9436 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
9437 | else | |
9438 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9439 | $as_echo "no" >&6; } | |
9440 | fi | |
9441 | ||
9442 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
9443 | PKG_CONFIG="" | |
9444 | else | |
9445 | case $cross_compiling:$ac_tool_warned in | |
9446 | yes:) | |
9447 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9448 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9449 | ac_tool_warned=yes ;; | |
9450 | esac | |
9451 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
9452 | fi | |
9453 | else | |
9454 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
9455 | fi | |
9456 | ||
9457 | fi | |
9458 | if test -n "$PKG_CONFIG"; then | |
9459 | _pkg_min_version=0.9.0 | |
9460 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
9461 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
9462 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
9463 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
9464 | $as_echo "yes" >&6; } | |
9465 | else | |
9466 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9467 | $as_echo "no" >&6; } | |
9468 | PKG_CONFIG="" | |
9469 | fi | |
9470 | ||
9471 | fi | |
9472 | ||
9473 | pkg_failed=no | |
a946372e AK |
9474 | { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5 |
9475 | $as_echo_n "checking for PKGCONFIGINIT... " >&6; } | |
e2997b73 | 9476 | |
a946372e AK |
9477 | if test -n "$PKGCONFIGINIT_CFLAGS"; then |
9478 | pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS" | |
e2997b73 AK |
9479 | elif test -n "$PKG_CONFIG"; then |
9480 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9481 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
9482 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
9483 | ac_status=$? |
9484 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9485 | (exit $ac_status); }; then | |
a946372e | 9486 | pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
9487 | else |
9488 | pkg_failed=yes | |
9489 | fi | |
9490 | else | |
9491 | pkg_failed=untried | |
9492 | fi | |
a946372e AK |
9493 | if test -n "$PKGCONFIGINIT_LIBS"; then |
9494 | pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS" | |
e2997b73 AK |
9495 | elif test -n "$PKG_CONFIG"; then |
9496 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9497 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5 |
9498 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
e2997b73 AK |
9499 | ac_status=$? |
9500 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9501 | (exit $ac_status); }; then | |
a946372e | 9502 | pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null` |
e2997b73 AK |
9503 | else |
9504 | pkg_failed=yes | |
9505 | fi | |
9506 | else | |
9507 | pkg_failed=untried | |
9508 | fi | |
9509 | ||
9510 | ||
9511 | ||
9512 | if test $pkg_failed = yes; then | |
9513 | ||
9514 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9515 | _pkg_short_errors_supported=yes | |
9516 | else | |
9517 | _pkg_short_errors_supported=no | |
9518 | fi | |
9519 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 9520 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1` |
e2997b73 | 9521 | else |
a946372e | 9522 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1` |
e2997b73 AK |
9523 | fi |
9524 | # Put the nasty error message in config.log where it belongs | |
a946372e | 9525 | echo "$PKGCONFIGINIT_PKG_ERRORS" >&5 |
e2997b73 AK |
9526 | |
9527 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9528 | $as_echo "no" >&6; } | |
a946372e AK |
9529 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 |
9530 | $as_echo "pkg-config initialized" >&6; } | |
e2997b73 | 9531 | elif test $pkg_failed = untried; then |
a946372e AK |
9532 | { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5 |
9533 | $as_echo "pkg-config initialized" >&6; } | |
e2997b73 | 9534 | else |
a946372e AK |
9535 | PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS |
9536 | PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS | |
e2997b73 AK |
9537 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
9538 | $as_echo "yes" >&6; } | |
9539 | : | |
9540 | fi | |
90c80887 AK |
9541 | PKGCONFIG_INIT=1 |
9542 | } | |
9543 | ||
9544 | ################################################################################ | |
9545 | { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5 | |
9546 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
9547 | ||
9548 | # Check whether --with-clvmd was given. | |
9549 | if test "${with_clvmd+set}" = set; then | |
9550 | withval=$with_clvmd; CLVMD="$withval" | |
9551 | else | |
9552 | CLVMD="none" | |
9553 | fi | |
9554 | ||
9555 | if test x$CLVMD = xyes; then | |
9556 | CLVMD=all | |
9557 | fi | |
9558 | { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5 | |
9559 | $as_echo "$CLVMD" >&6; } | |
9560 | ||
9561 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then | |
9562 | CLUSTER=internal | |
9563 | fi | |
9564 | ||
9565 | if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then | |
9566 | pkg_config_init | |
9567 | fi | |
9568 | ||
9569 | ||
9570 | if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then | |
9571 | BUILDGULM=yes | |
9572 | fi | |
9573 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then | |
9574 | BUILDCOROSYNC=yes | |
9575 | fi | |
9576 | if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then | |
9577 | BUILDOPENAIS=yes | |
9578 | fi | |
9579 | if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then | |
9580 | BUILDCMAN=yes | |
9581 | fi | |
9582 | ||
9583 | if test x$BUILDGULM = xyes; then | |
9584 | if test x$BUILDCOROSYNC = xyes || \ | |
9585 | test x$BUILDOPENAIS = xyes; then | |
9586 | { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5 | |
9587 | $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;} | |
9588 | { (exit 1); exit 1; }; } | |
9589 | fi | |
a946372e | 9590 | fi |
e2997b73 | 9591 | |
a946372e AK |
9592 | soft_bailout() { |
9593 | NOTFOUND=1 | |
9594 | } | |
e2997b73 | 9595 | |
a946372e AK |
9596 | hard_bailout() { |
9597 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
9598 | $as_echo "$as_me: error: bailing out" >&2;} | |
9599 | { (exit 1); exit 1; }; } | |
9600 | } | |
9601 | ||
9602 | if test x$CLVMD = xall; then | |
9603 | bailout=soft_bailout | |
9604 | BUILDGULM=yes | |
9605 | BUILDCMAN=yes | |
9606 | BUILDCOROSYNC=yes | |
9607 | BUILDOPENAIS=yes | |
e2997b73 | 9608 | else |
a946372e | 9609 | bailout=hard_bailout |
e2997b73 | 9610 | fi |
a946372e AK |
9611 | |
9612 | check_lib_no_libs() { | |
9613 | lib_no_libs_arg1=$1 | |
9614 | shift | |
9615 | lib_no_libs_arg2=$1 | |
9616 | shift | |
9617 | lib_no_libs_args=$@ | |
9618 | ||
9619 | as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh` | |
9620 | { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5 | |
9621 | $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; } | |
9622 | if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then | |
9623 | $as_echo_n "(cached) " >&6 | |
9624 | else | |
9625 | ac_check_lib_save_LIBS=$LIBS | |
9626 | LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS" | |
9627 | cat >conftest.$ac_ext <<_ACEOF | |
9628 | /* confdefs.h. */ | |
9629 | _ACEOF | |
9630 | cat confdefs.h >>conftest.$ac_ext | |
9631 | cat >>conftest.$ac_ext <<_ACEOF | |
9632 | /* end confdefs.h. */ | |
9633 | ||
9634 | /* Override any GCC internal prototype to avoid an error. | |
9635 | Use char because int might match the return type of a GCC | |
9636 | builtin and then its argument prototype would still apply. */ | |
9637 | #ifdef __cplusplus | |
9638 | extern "C" | |
9639 | #endif | |
9640 | char $lib_no_libs_arg2 (); | |
9641 | int | |
9642 | main () | |
9643 | { | |
9644 | return $lib_no_libs_arg2 (); | |
9645 | ; | |
9646 | return 0; | |
9647 | } | |
9648 | _ACEOF | |
9649 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9650 | if { (ac_try="$ac_link" | |
9651 | case "(($ac_try" in | |
9652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9653 | *) ac_try_echo=$ac_try;; | |
9654 | esac | |
9655 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9656 | $as_echo "$ac_try_echo") >&5 | |
9657 | (eval "$ac_link") 2>conftest.er1 | |
e2997b73 | 9658 | ac_status=$? |
a946372e AK |
9659 | grep -v '^ *+' conftest.er1 >conftest.err |
9660 | rm -f conftest.er1 | |
9661 | cat conftest.err >&5 | |
e2997b73 | 9662 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a946372e AK |
9663 | (exit $ac_status); } && { |
9664 | test -z "$ac_c_werror_flag" || | |
9665 | test ! -s conftest.err | |
9666 | } && test -s conftest$ac_exeext && { | |
9667 | test "$cross_compiling" = yes || | |
9668 | $as_test_x conftest$ac_exeext | |
9669 | }; then | |
9670 | eval "$as_ac_Lib=yes" | |
e2997b73 | 9671 | else |
a946372e AK |
9672 | $as_echo "$as_me: failed program was:" >&5 |
9673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
e2997b73 | 9674 | |
a946372e AK |
9675 | eval "$as_ac_Lib=no" |
9676 | fi | |
e2997b73 | 9677 | |
a946372e AK |
9678 | rm -rf conftest.dSYM |
9679 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9680 | conftest$ac_exeext conftest.$ac_ext | |
9681 | LIBS=$ac_check_lib_save_LIBS | |
9682 | fi | |
9683 | ac_res=`eval 'as_val=${'$as_ac_Lib'} | |
9684 | $as_echo "$as_val"'` | |
9685 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9686 | $as_echo "$ac_res" >&6; } | |
9687 | as_val=`eval 'as_val=${'$as_ac_Lib'} | |
9688 | $as_echo "$as_val"'` | |
9689 | if test "x$as_val" = x""yes; then | |
9690 | cat >>confdefs.h <<_ACEOF | |
9691 | #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1 | |
9692 | _ACEOF | |
e2997b73 | 9693 | |
a946372e | 9694 | LIBS="-l$lib_no_libs_arg1 $LIBS" |
e2997b73 | 9695 | |
e2997b73 | 9696 | else |
a946372e | 9697 | $bailout |
e2997b73 | 9698 | fi |
e2997b73 | 9699 | |
a946372e AK |
9700 | LIBS=$ac_check_lib_save_LIBS |
9701 | } | |
9702 | ||
9703 | if test x$BUILDGULM = xyes; then | |
e2997b73 AK |
9704 | |
9705 | pkg_failed=no | |
a946372e AK |
9706 | { $as_echo "$as_me:$LINENO: checking for CCS" >&5 |
9707 | $as_echo_n "checking for CCS... " >&6; } | |
e2997b73 | 9708 | |
a946372e AK |
9709 | if test -n "$CCS_CFLAGS"; then |
9710 | pkg_cv_CCS_CFLAGS="$CCS_CFLAGS" | |
e2997b73 AK |
9711 | elif test -n "$PKG_CONFIG"; then |
9712 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9713 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
9714 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
9715 | ac_status=$? |
9716 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9717 | (exit $ac_status); }; then | |
a946372e | 9718 | pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null` |
e2997b73 AK |
9719 | else |
9720 | pkg_failed=yes | |
9721 | fi | |
9722 | else | |
9723 | pkg_failed=untried | |
9724 | fi | |
a946372e AK |
9725 | if test -n "$CCS_LIBS"; then |
9726 | pkg_cv_CCS_LIBS="$CCS_LIBS" | |
e2997b73 AK |
9727 | elif test -n "$PKG_CONFIG"; then |
9728 | if test -n "$PKG_CONFIG" && \ | |
a946372e AK |
9729 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5 |
9730 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
e2997b73 AK |
9731 | ac_status=$? |
9732 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9733 | (exit $ac_status); }; then | |
a946372e | 9734 | pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null` |
e2997b73 AK |
9735 | else |
9736 | pkg_failed=yes | |
9737 | fi | |
9738 | else | |
9739 | pkg_failed=untried | |
9740 | fi | |
9741 | ||
9742 | ||
9743 | ||
9744 | if test $pkg_failed = yes; then | |
9745 | ||
9746 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9747 | _pkg_short_errors_supported=yes | |
9748 | else | |
9749 | _pkg_short_errors_supported=no | |
9750 | fi | |
9751 | if test $_pkg_short_errors_supported = yes; then | |
a946372e | 9752 | CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1` |
e2997b73 | 9753 | else |
a946372e | 9754 | CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1` |
e2997b73 AK |
9755 | fi |
9756 | # Put the nasty error message in config.log where it belongs | |
a946372e | 9757 | echo "$CCS_PKG_ERRORS" >&5 |
e2997b73 AK |
9758 | |
9759 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
9760 | $as_echo "no" >&6; } | |
a946372e | 9761 | NOTFOUND=0 |
e2997b73 | 9762 | |
a946372e AK |
9763 | for ac_header in ccs.h |
9764 | do | |
9765 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9766 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9767 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9768 | $as_echo_n "checking for $ac_header... " >&6; } | |
9769 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9770 | $as_echo_n "(cached) " >&6 | |
d0191583 | 9771 | fi |
a946372e AK |
9772 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
9773 | $as_echo "$as_val"'` | |
9774 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9775 | $as_echo "$ac_res" >&6; } | |
fc54be10 | 9776 | else |
a946372e AK |
9777 | # Is the header compilable? |
9778 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9779 | $as_echo_n "checking $ac_header usability... " >&6; } | |
9780 | cat >conftest.$ac_ext <<_ACEOF | |
9781 | /* confdefs.h. */ | |
9782 | _ACEOF | |
9783 | cat confdefs.h >>conftest.$ac_ext | |
9784 | cat >>conftest.$ac_ext <<_ACEOF | |
9785 | /* end confdefs.h. */ | |
9786 | $ac_includes_default | |
9787 | #include <$ac_header> | |
9788 | _ACEOF | |
9789 | rm -f conftest.$ac_objext | |
9790 | if { (ac_try="$ac_compile" | |
9791 | case "(($ac_try" in | |
9792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9793 | *) ac_try_echo=$ac_try;; | |
9794 | esac | |
9795 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9796 | $as_echo "$ac_try_echo") >&5 | |
9797 | (eval "$ac_compile") 2>conftest.er1 | |
9798 | ac_status=$? | |
9799 | grep -v '^ *+' conftest.er1 >conftest.err | |
9800 | rm -f conftest.er1 | |
9801 | cat conftest.err >&5 | |
9802 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9803 | (exit $ac_status); } && { | |
9804 | test -z "$ac_c_werror_flag" || | |
9805 | test ! -s conftest.err | |
9806 | } && test -s conftest.$ac_objext; then | |
9807 | ac_header_compiler=yes | |
9808 | else | |
9809 | $as_echo "$as_me: failed program was:" >&5 | |
9810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d0191583 | 9811 | |
a946372e | 9812 | ac_header_compiler=no |
d0191583 JM |
9813 | fi |
9814 | ||
a946372e AK |
9815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9816 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9817 | $as_echo "$ac_header_compiler" >&6; } | |
fddafd51 | 9818 | |
a946372e AK |
9819 | # Is the header present? |
9820 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9821 | $as_echo_n "checking $ac_header presence... " >&6; } | |
9822 | cat >conftest.$ac_ext <<_ACEOF | |
9823 | /* confdefs.h. */ | |
9824 | _ACEOF | |
9825 | cat confdefs.h >>conftest.$ac_ext | |
9826 | cat >>conftest.$ac_ext <<_ACEOF | |
9827 | /* end confdefs.h. */ | |
9828 | #include <$ac_header> | |
9829 | _ACEOF | |
9830 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9831 | case "(($ac_try" in | |
9832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9833 | *) ac_try_echo=$ac_try;; | |
9834 | esac | |
9835 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9836 | $as_echo "$ac_try_echo") >&5 | |
9837 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9838 | ac_status=$? | |
9839 | grep -v '^ *+' conftest.er1 >conftest.err | |
9840 | rm -f conftest.er1 | |
9841 | cat conftest.err >&5 | |
9842 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9843 | (exit $ac_status); } >/dev/null && { | |
9844 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9845 | test ! -s conftest.err | |
9846 | }; then | |
9847 | ac_header_preproc=yes | |
9848 | else | |
9849 | $as_echo "$as_me: failed program was:" >&5 | |
9850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9851 | ||
9852 | ac_header_preproc=no | |
9853 | fi | |
9854 | ||
9855 | rm -f conftest.err conftest.$ac_ext | |
9856 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9857 | $as_echo "$ac_header_preproc" >&6; } | |
9858 | ||
9859 | # So? What about this header? | |
9860 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9861 | yes:no: ) | |
9862 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9863 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9864 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9865 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9866 | ac_header_preproc=yes | |
9867 | ;; | |
9868 | no:yes:* ) | |
9869 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9870 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9871 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9872 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9873 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9874 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9875 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9876 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9877 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9878 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9879 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9880 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9881 | ||
9882 | ;; | |
9883 | esac | |
9884 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9885 | $as_echo_n "checking for $ac_header... " >&6; } | |
9886 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9887 | $as_echo_n "(cached) " >&6 | |
9888 | else | |
9889 | eval "$as_ac_Header=\$ac_header_preproc" | |
9890 | fi | |
9891 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
9892 | $as_echo "$as_val"'` | |
9893 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9894 | $as_echo "$ac_res" >&6; } | |
9895 | ||
9896 | fi | |
9897 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
9898 | $as_echo "$as_val"'` | |
9899 | if test "x$as_val" = x""yes; then | |
9900 | cat >>confdefs.h <<_ACEOF | |
9901 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9902 | _ACEOF | |
9903 | ||
9904 | else | |
9905 | $bailout | |
9906 | fi | |
9907 | ||
9908 | done | |
9909 | ||
9910 | check_lib_no_libs ccs ccs_connect | |
9911 | if test $NOTFOUND = 0; then | |
9912 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
9913 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
9914 | CCS_LIBS="-lccs" | |
9915 | HAVE_CCS=yes | |
9916 | fi | |
9917 | elif test $pkg_failed = untried; then | |
9918 | NOTFOUND=0 | |
9919 | ||
9920 | for ac_header in ccs.h | |
9921 | do | |
9922 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9923 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9924 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9925 | $as_echo_n "checking for $ac_header... " >&6; } | |
9926 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
9927 | $as_echo_n "(cached) " >&6 | |
9928 | fi | |
9929 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
9930 | $as_echo "$as_val"'` | |
9931 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9932 | $as_echo "$ac_res" >&6; } | |
9933 | else | |
9934 | # Is the header compilable? | |
9935 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9936 | $as_echo_n "checking $ac_header usability... " >&6; } | |
9937 | cat >conftest.$ac_ext <<_ACEOF | |
9938 | /* confdefs.h. */ | |
9939 | _ACEOF | |
9940 | cat confdefs.h >>conftest.$ac_ext | |
9941 | cat >>conftest.$ac_ext <<_ACEOF | |
9942 | /* end confdefs.h. */ | |
9943 | $ac_includes_default | |
9944 | #include <$ac_header> | |
9945 | _ACEOF | |
9946 | rm -f conftest.$ac_objext | |
9947 | if { (ac_try="$ac_compile" | |
9948 | case "(($ac_try" in | |
9949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9950 | *) ac_try_echo=$ac_try;; | |
9951 | esac | |
9952 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9953 | $as_echo "$ac_try_echo") >&5 | |
9954 | (eval "$ac_compile") 2>conftest.er1 | |
9955 | ac_status=$? | |
9956 | grep -v '^ *+' conftest.er1 >conftest.err | |
9957 | rm -f conftest.er1 | |
9958 | cat conftest.err >&5 | |
9959 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9960 | (exit $ac_status); } && { | |
9961 | test -z "$ac_c_werror_flag" || | |
9962 | test ! -s conftest.err | |
9963 | } && test -s conftest.$ac_objext; then | |
9964 | ac_header_compiler=yes | |
9965 | else | |
9966 | $as_echo "$as_me: failed program was:" >&5 | |
9967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9968 | ||
9969 | ac_header_compiler=no | |
9970 | fi | |
9971 | ||
9972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9973 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9974 | $as_echo "$ac_header_compiler" >&6; } | |
9975 | ||
9976 | # Is the header present? | |
9977 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9978 | $as_echo_n "checking $ac_header presence... " >&6; } | |
9979 | cat >conftest.$ac_ext <<_ACEOF | |
9980 | /* confdefs.h. */ | |
9981 | _ACEOF | |
9982 | cat confdefs.h >>conftest.$ac_ext | |
9983 | cat >>conftest.$ac_ext <<_ACEOF | |
9984 | /* end confdefs.h. */ | |
9985 | #include <$ac_header> | |
9986 | _ACEOF | |
9987 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
9988 | case "(($ac_try" in | |
9989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9990 | *) ac_try_echo=$ac_try;; | |
9991 | esac | |
9992 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
9993 | $as_echo "$ac_try_echo") >&5 | |
9994 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
9995 | ac_status=$? | |
9996 | grep -v '^ *+' conftest.er1 >conftest.err | |
9997 | rm -f conftest.er1 | |
9998 | cat conftest.err >&5 | |
9999 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10000 | (exit $ac_status); } >/dev/null && { | |
10001 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10002 | test ! -s conftest.err | |
10003 | }; then | |
10004 | ac_header_preproc=yes | |
10005 | else | |
10006 | $as_echo "$as_me: failed program was:" >&5 | |
10007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10008 | ||
10009 | ac_header_preproc=no | |
10010 | fi | |
10011 | ||
10012 | rm -f conftest.err conftest.$ac_ext | |
10013 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10014 | $as_echo "$ac_header_preproc" >&6; } | |
10015 | ||
10016 | # So? What about this header? | |
10017 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10018 | yes:no: ) | |
10019 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10020 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10021 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10022 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10023 | ac_header_preproc=yes | |
10024 | ;; | |
10025 | no:yes:* ) | |
10026 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10027 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10028 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10029 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10030 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10031 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10032 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10033 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10034 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10035 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10036 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10037 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10038 | ||
10039 | ;; | |
10040 | esac | |
10041 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10042 | $as_echo_n "checking for $ac_header... " >&6; } | |
10043 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10044 | $as_echo_n "(cached) " >&6 | |
10045 | else | |
10046 | eval "$as_ac_Header=\$ac_header_preproc" | |
10047 | fi | |
10048 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10049 | $as_echo "$as_val"'` | |
10050 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10051 | $as_echo "$ac_res" >&6; } | |
10052 | ||
10053 | fi | |
10054 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10055 | $as_echo "$as_val"'` | |
10056 | if test "x$as_val" = x""yes; then | |
10057 | cat >>confdefs.h <<_ACEOF | |
10058 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10059 | _ACEOF | |
10060 | ||
10061 | else | |
10062 | $bailout | |
10063 | fi | |
10064 | ||
10065 | done | |
10066 | ||
10067 | check_lib_no_libs ccs ccs_connect | |
10068 | if test $NOTFOUND = 0; then | |
10069 | { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5 | |
10070 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
10071 | CCS_LIBS="-lccs" | |
10072 | HAVE_CCS=yes | |
10073 | fi | |
10074 | else | |
10075 | CCS_CFLAGS=$pkg_cv_CCS_CFLAGS | |
10076 | CCS_LIBS=$pkg_cv_CCS_LIBS | |
10077 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10078 | $as_echo "yes" >&6; } | |
10079 | HAVE_CCS=yes | |
10080 | fi | |
10081 | ||
10082 | pkg_failed=no | |
10083 | { $as_echo "$as_me:$LINENO: checking for GULM" >&5 | |
10084 | $as_echo_n "checking for GULM... " >&6; } | |
10085 | ||
10086 | if test -n "$GULM_CFLAGS"; then | |
10087 | pkg_cv_GULM_CFLAGS="$GULM_CFLAGS" | |
10088 | elif test -n "$PKG_CONFIG"; then | |
10089 | if test -n "$PKG_CONFIG" && \ | |
10090 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
10091 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
10092 | ac_status=$? | |
10093 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10094 | (exit $ac_status); }; then | |
10095 | pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null` | |
10096 | else | |
10097 | pkg_failed=yes | |
10098 | fi | |
10099 | else | |
10100 | pkg_failed=untried | |
10101 | fi | |
10102 | if test -n "$GULM_LIBS"; then | |
10103 | pkg_cv_GULM_LIBS="$GULM_LIBS" | |
10104 | elif test -n "$PKG_CONFIG"; then | |
10105 | if test -n "$PKG_CONFIG" && \ | |
10106 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5 | |
10107 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
10108 | ac_status=$? | |
10109 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10110 | (exit $ac_status); }; then | |
10111 | pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null` | |
10112 | else | |
10113 | pkg_failed=yes | |
10114 | fi | |
10115 | else | |
10116 | pkg_failed=untried | |
10117 | fi | |
10118 | ||
10119 | ||
10120 | ||
10121 | if test $pkg_failed = yes; then | |
10122 | ||
10123 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10124 | _pkg_short_errors_supported=yes | |
10125 | else | |
10126 | _pkg_short_errors_supported=no | |
10127 | fi | |
10128 | if test $_pkg_short_errors_supported = yes; then | |
10129 | GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1` | |
10130 | else | |
10131 | GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1` | |
10132 | fi | |
10133 | # Put the nasty error message in config.log where it belongs | |
10134 | echo "$GULM_PKG_ERRORS" >&5 | |
10135 | ||
10136 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10137 | $as_echo "no" >&6; } | |
10138 | NOTFOUND=0 | |
10139 | ||
10140 | for ac_header in libgulm.h | |
10141 | do | |
10142 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10143 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10144 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10145 | $as_echo_n "checking for $ac_header... " >&6; } | |
10146 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10147 | $as_echo_n "(cached) " >&6 | |
10148 | fi | |
10149 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10150 | $as_echo "$as_val"'` | |
10151 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10152 | $as_echo "$ac_res" >&6; } | |
10153 | else | |
10154 | # Is the header compilable? | |
10155 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10156 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10157 | cat >conftest.$ac_ext <<_ACEOF | |
10158 | /* confdefs.h. */ | |
10159 | _ACEOF | |
10160 | cat confdefs.h >>conftest.$ac_ext | |
10161 | cat >>conftest.$ac_ext <<_ACEOF | |
10162 | /* end confdefs.h. */ | |
10163 | $ac_includes_default | |
10164 | #include <$ac_header> | |
10165 | _ACEOF | |
10166 | rm -f conftest.$ac_objext | |
10167 | if { (ac_try="$ac_compile" | |
10168 | case "(($ac_try" in | |
10169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10170 | *) ac_try_echo=$ac_try;; | |
10171 | esac | |
10172 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10173 | $as_echo "$ac_try_echo") >&5 | |
10174 | (eval "$ac_compile") 2>conftest.er1 | |
10175 | ac_status=$? | |
10176 | grep -v '^ *+' conftest.er1 >conftest.err | |
10177 | rm -f conftest.er1 | |
10178 | cat conftest.err >&5 | |
10179 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10180 | (exit $ac_status); } && { | |
10181 | test -z "$ac_c_werror_flag" || | |
10182 | test ! -s conftest.err | |
10183 | } && test -s conftest.$ac_objext; then | |
10184 | ac_header_compiler=yes | |
10185 | else | |
10186 | $as_echo "$as_me: failed program was:" >&5 | |
10187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10188 | ||
10189 | ac_header_compiler=no | |
10190 | fi | |
10191 | ||
10192 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10193 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10194 | $as_echo "$ac_header_compiler" >&6; } | |
10195 | ||
10196 | # Is the header present? | |
10197 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10198 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10199 | cat >conftest.$ac_ext <<_ACEOF | |
10200 | /* confdefs.h. */ | |
10201 | _ACEOF | |
10202 | cat confdefs.h >>conftest.$ac_ext | |
10203 | cat >>conftest.$ac_ext <<_ACEOF | |
10204 | /* end confdefs.h. */ | |
10205 | #include <$ac_header> | |
10206 | _ACEOF | |
10207 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10208 | case "(($ac_try" in | |
10209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10210 | *) ac_try_echo=$ac_try;; | |
10211 | esac | |
10212 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10213 | $as_echo "$ac_try_echo") >&5 | |
10214 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10215 | ac_status=$? | |
10216 | grep -v '^ *+' conftest.er1 >conftest.err | |
10217 | rm -f conftest.er1 | |
10218 | cat conftest.err >&5 | |
10219 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10220 | (exit $ac_status); } >/dev/null && { | |
10221 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10222 | test ! -s conftest.err | |
10223 | }; then | |
10224 | ac_header_preproc=yes | |
10225 | else | |
10226 | $as_echo "$as_me: failed program was:" >&5 | |
10227 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10228 | ||
10229 | ac_header_preproc=no | |
10230 | fi | |
10231 | ||
10232 | rm -f conftest.err conftest.$ac_ext | |
10233 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10234 | $as_echo "$ac_header_preproc" >&6; } | |
10235 | ||
10236 | # So? What about this header? | |
10237 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10238 | yes:no: ) | |
10239 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10240 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10241 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10242 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10243 | ac_header_preproc=yes | |
10244 | ;; | |
10245 | no:yes:* ) | |
10246 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10247 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10248 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10249 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10250 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10251 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10252 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10253 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10254 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10255 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10256 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10257 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10258 | ||
10259 | ;; | |
10260 | esac | |
10261 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10262 | $as_echo_n "checking for $ac_header... " >&6; } | |
10263 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10264 | $as_echo_n "(cached) " >&6 | |
10265 | else | |
10266 | eval "$as_ac_Header=\$ac_header_preproc" | |
10267 | fi | |
10268 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10269 | $as_echo "$as_val"'` | |
10270 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10271 | $as_echo "$ac_res" >&6; } | |
10272 | ||
10273 | fi | |
10274 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10275 | $as_echo "$as_val"'` | |
10276 | if test "x$as_val" = x""yes; then | |
10277 | cat >>confdefs.h <<_ACEOF | |
10278 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10279 | _ACEOF | |
10280 | ||
10281 | else | |
10282 | $bailout | |
10283 | fi | |
10284 | ||
10285 | done | |
10286 | ||
10287 | check_lib_no_libs gulm lg_core_login | |
10288 | if test $NOTFOUND = 0; then | |
10289 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
10290 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
10291 | GULM_LIBS="-lgulm" | |
10292 | HAVE_GULM=yes | |
10293 | fi | |
10294 | elif test $pkg_failed = untried; then | |
10295 | NOTFOUND=0 | |
10296 | ||
10297 | for ac_header in libgulm.h | |
10298 | do | |
10299 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10300 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10301 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10302 | $as_echo_n "checking for $ac_header... " >&6; } | |
10303 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10304 | $as_echo_n "(cached) " >&6 | |
10305 | fi | |
10306 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10307 | $as_echo "$as_val"'` | |
10308 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10309 | $as_echo "$ac_res" >&6; } | |
10310 | else | |
10311 | # Is the header compilable? | |
10312 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10313 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10314 | cat >conftest.$ac_ext <<_ACEOF | |
10315 | /* confdefs.h. */ | |
10316 | _ACEOF | |
10317 | cat confdefs.h >>conftest.$ac_ext | |
10318 | cat >>conftest.$ac_ext <<_ACEOF | |
10319 | /* end confdefs.h. */ | |
10320 | $ac_includes_default | |
10321 | #include <$ac_header> | |
10322 | _ACEOF | |
10323 | rm -f conftest.$ac_objext | |
10324 | if { (ac_try="$ac_compile" | |
10325 | case "(($ac_try" in | |
10326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10327 | *) ac_try_echo=$ac_try;; | |
10328 | esac | |
10329 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10330 | $as_echo "$ac_try_echo") >&5 | |
10331 | (eval "$ac_compile") 2>conftest.er1 | |
10332 | ac_status=$? | |
10333 | grep -v '^ *+' conftest.er1 >conftest.err | |
10334 | rm -f conftest.er1 | |
10335 | cat conftest.err >&5 | |
10336 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10337 | (exit $ac_status); } && { | |
10338 | test -z "$ac_c_werror_flag" || | |
10339 | test ! -s conftest.err | |
10340 | } && test -s conftest.$ac_objext; then | |
10341 | ac_header_compiler=yes | |
10342 | else | |
10343 | $as_echo "$as_me: failed program was:" >&5 | |
10344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10345 | ||
10346 | ac_header_compiler=no | |
10347 | fi | |
10348 | ||
10349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10350 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10351 | $as_echo "$ac_header_compiler" >&6; } | |
10352 | ||
10353 | # Is the header present? | |
10354 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10355 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10356 | cat >conftest.$ac_ext <<_ACEOF | |
10357 | /* confdefs.h. */ | |
10358 | _ACEOF | |
10359 | cat confdefs.h >>conftest.$ac_ext | |
10360 | cat >>conftest.$ac_ext <<_ACEOF | |
10361 | /* end confdefs.h. */ | |
10362 | #include <$ac_header> | |
10363 | _ACEOF | |
10364 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10365 | case "(($ac_try" in | |
10366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10367 | *) ac_try_echo=$ac_try;; | |
10368 | esac | |
10369 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10370 | $as_echo "$ac_try_echo") >&5 | |
10371 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10372 | ac_status=$? | |
10373 | grep -v '^ *+' conftest.er1 >conftest.err | |
10374 | rm -f conftest.er1 | |
10375 | cat conftest.err >&5 | |
10376 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10377 | (exit $ac_status); } >/dev/null && { | |
10378 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10379 | test ! -s conftest.err | |
10380 | }; then | |
10381 | ac_header_preproc=yes | |
10382 | else | |
10383 | $as_echo "$as_me: failed program was:" >&5 | |
10384 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10385 | ||
10386 | ac_header_preproc=no | |
10387 | fi | |
10388 | ||
10389 | rm -f conftest.err conftest.$ac_ext | |
10390 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10391 | $as_echo "$ac_header_preproc" >&6; } | |
10392 | ||
10393 | # So? What about this header? | |
10394 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10395 | yes:no: ) | |
10396 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10397 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10398 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10399 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10400 | ac_header_preproc=yes | |
10401 | ;; | |
10402 | no:yes:* ) | |
10403 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10404 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10405 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10406 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10407 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10408 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10409 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10410 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10411 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10412 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10413 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10414 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10415 | ||
10416 | ;; | |
10417 | esac | |
10418 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10419 | $as_echo_n "checking for $ac_header... " >&6; } | |
10420 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10421 | $as_echo_n "(cached) " >&6 | |
10422 | else | |
10423 | eval "$as_ac_Header=\$ac_header_preproc" | |
10424 | fi | |
10425 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10426 | $as_echo "$as_val"'` | |
10427 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10428 | $as_echo "$ac_res" >&6; } | |
10429 | ||
10430 | fi | |
10431 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10432 | $as_echo "$as_val"'` | |
10433 | if test "x$as_val" = x""yes; then | |
10434 | cat >>confdefs.h <<_ACEOF | |
10435 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10436 | _ACEOF | |
10437 | ||
10438 | else | |
10439 | $bailout | |
10440 | fi | |
10441 | ||
10442 | done | |
10443 | ||
10444 | check_lib_no_libs gulm lg_core_login | |
10445 | if test $NOTFOUND = 0; then | |
10446 | { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5 | |
10447 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
10448 | GULM_LIBS="-lgulm" | |
10449 | HAVE_GULM=yes | |
10450 | fi | |
10451 | else | |
10452 | GULM_CFLAGS=$pkg_cv_GULM_CFLAGS | |
10453 | GULM_LIBS=$pkg_cv_GULM_LIBS | |
10454 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10455 | $as_echo "yes" >&6; } | |
10456 | HAVE_GULM=yes | |
10457 | fi | |
10458 | fi | |
10459 | ||
10460 | if test x$BUILDCMAN = xyes; then | |
10461 | ||
10462 | pkg_failed=no | |
10463 | { $as_echo "$as_me:$LINENO: checking for CMAN" >&5 | |
10464 | $as_echo_n "checking for CMAN... " >&6; } | |
10465 | ||
10466 | if test -n "$CMAN_CFLAGS"; then | |
10467 | pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS" | |
10468 | elif test -n "$PKG_CONFIG"; then | |
10469 | if test -n "$PKG_CONFIG" && \ | |
10470 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
10471 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
10472 | ac_status=$? | |
10473 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10474 | (exit $ac_status); }; then | |
10475 | pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null` | |
10476 | else | |
10477 | pkg_failed=yes | |
10478 | fi | |
10479 | else | |
10480 | pkg_failed=untried | |
10481 | fi | |
10482 | if test -n "$CMAN_LIBS"; then | |
10483 | pkg_cv_CMAN_LIBS="$CMAN_LIBS" | |
10484 | elif test -n "$PKG_CONFIG"; then | |
10485 | if test -n "$PKG_CONFIG" && \ | |
10486 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5 | |
10487 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
10488 | ac_status=$? | |
10489 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10490 | (exit $ac_status); }; then | |
10491 | pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null` | |
10492 | else | |
10493 | pkg_failed=yes | |
10494 | fi | |
10495 | else | |
10496 | pkg_failed=untried | |
10497 | fi | |
10498 | ||
10499 | ||
10500 | ||
10501 | if test $pkg_failed = yes; then | |
10502 | ||
10503 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10504 | _pkg_short_errors_supported=yes | |
10505 | else | |
10506 | _pkg_short_errors_supported=no | |
10507 | fi | |
10508 | if test $_pkg_short_errors_supported = yes; then | |
10509 | CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1` | |
10510 | else | |
10511 | CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1` | |
10512 | fi | |
10513 | # Put the nasty error message in config.log where it belongs | |
10514 | echo "$CMAN_PKG_ERRORS" >&5 | |
10515 | ||
10516 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10517 | $as_echo "no" >&6; } | |
10518 | NOTFOUND=0 | |
10519 | ||
10520 | for ac_header in libcman.h | |
10521 | do | |
10522 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10523 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10524 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10525 | $as_echo_n "checking for $ac_header... " >&6; } | |
10526 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10527 | $as_echo_n "(cached) " >&6 | |
10528 | fi | |
10529 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10530 | $as_echo "$as_val"'` | |
10531 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10532 | $as_echo "$ac_res" >&6; } | |
10533 | else | |
10534 | # Is the header compilable? | |
10535 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10536 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10537 | cat >conftest.$ac_ext <<_ACEOF | |
10538 | /* confdefs.h. */ | |
10539 | _ACEOF | |
10540 | cat confdefs.h >>conftest.$ac_ext | |
10541 | cat >>conftest.$ac_ext <<_ACEOF | |
10542 | /* end confdefs.h. */ | |
10543 | $ac_includes_default | |
10544 | #include <$ac_header> | |
10545 | _ACEOF | |
10546 | rm -f conftest.$ac_objext | |
10547 | if { (ac_try="$ac_compile" | |
10548 | case "(($ac_try" in | |
10549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10550 | *) ac_try_echo=$ac_try;; | |
10551 | esac | |
10552 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10553 | $as_echo "$ac_try_echo") >&5 | |
10554 | (eval "$ac_compile") 2>conftest.er1 | |
10555 | ac_status=$? | |
10556 | grep -v '^ *+' conftest.er1 >conftest.err | |
10557 | rm -f conftest.er1 | |
10558 | cat conftest.err >&5 | |
10559 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10560 | (exit $ac_status); } && { | |
10561 | test -z "$ac_c_werror_flag" || | |
10562 | test ! -s conftest.err | |
10563 | } && test -s conftest.$ac_objext; then | |
10564 | ac_header_compiler=yes | |
10565 | else | |
10566 | $as_echo "$as_me: failed program was:" >&5 | |
10567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10568 | ||
10569 | ac_header_compiler=no | |
10570 | fi | |
10571 | ||
10572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10573 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10574 | $as_echo "$ac_header_compiler" >&6; } | |
10575 | ||
10576 | # Is the header present? | |
10577 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10578 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10579 | cat >conftest.$ac_ext <<_ACEOF | |
10580 | /* confdefs.h. */ | |
10581 | _ACEOF | |
10582 | cat confdefs.h >>conftest.$ac_ext | |
10583 | cat >>conftest.$ac_ext <<_ACEOF | |
10584 | /* end confdefs.h. */ | |
10585 | #include <$ac_header> | |
10586 | _ACEOF | |
10587 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10588 | case "(($ac_try" in | |
10589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10590 | *) ac_try_echo=$ac_try;; | |
10591 | esac | |
10592 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10593 | $as_echo "$ac_try_echo") >&5 | |
10594 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10595 | ac_status=$? | |
10596 | grep -v '^ *+' conftest.er1 >conftest.err | |
10597 | rm -f conftest.er1 | |
10598 | cat conftest.err >&5 | |
10599 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10600 | (exit $ac_status); } >/dev/null && { | |
10601 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10602 | test ! -s conftest.err | |
10603 | }; then | |
10604 | ac_header_preproc=yes | |
10605 | else | |
10606 | $as_echo "$as_me: failed program was:" >&5 | |
10607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10608 | ||
10609 | ac_header_preproc=no | |
10610 | fi | |
10611 | ||
10612 | rm -f conftest.err conftest.$ac_ext | |
10613 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10614 | $as_echo "$ac_header_preproc" >&6; } | |
10615 | ||
10616 | # So? What about this header? | |
10617 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10618 | yes:no: ) | |
10619 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10620 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10621 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10622 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10623 | ac_header_preproc=yes | |
10624 | ;; | |
10625 | no:yes:* ) | |
10626 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10627 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10628 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10629 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10630 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10631 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10632 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10633 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10634 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10635 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10636 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10637 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10638 | ||
10639 | ;; | |
10640 | esac | |
10641 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10642 | $as_echo_n "checking for $ac_header... " >&6; } | |
10643 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10644 | $as_echo_n "(cached) " >&6 | |
10645 | else | |
10646 | eval "$as_ac_Header=\$ac_header_preproc" | |
10647 | fi | |
10648 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10649 | $as_echo "$as_val"'` | |
10650 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10651 | $as_echo "$ac_res" >&6; } | |
10652 | ||
10653 | fi | |
10654 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10655 | $as_echo "$as_val"'` | |
10656 | if test "x$as_val" = x""yes; then | |
10657 | cat >>confdefs.h <<_ACEOF | |
10658 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10659 | _ACEOF | |
10660 | ||
10661 | else | |
10662 | $bailout | |
10663 | fi | |
10664 | ||
10665 | done | |
10666 | ||
10667 | check_lib_no_libs cman cman_init | |
10668 | if test $NOTFOUND = 0; then | |
10669 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
10670 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
10671 | CMAN_LIBS="-lcman" | |
10672 | HAVE_CMAN=yes | |
10673 | fi | |
10674 | elif test $pkg_failed = untried; then | |
10675 | NOTFOUND=0 | |
10676 | ||
10677 | for ac_header in libcman.h | |
10678 | do | |
10679 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10680 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10681 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10682 | $as_echo_n "checking for $ac_header... " >&6; } | |
10683 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10684 | $as_echo_n "(cached) " >&6 | |
10685 | fi | |
10686 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10687 | $as_echo "$as_val"'` | |
10688 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10689 | $as_echo "$ac_res" >&6; } | |
10690 | else | |
10691 | # Is the header compilable? | |
10692 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10693 | $as_echo_n "checking $ac_header usability... " >&6; } | |
10694 | cat >conftest.$ac_ext <<_ACEOF | |
10695 | /* confdefs.h. */ | |
10696 | _ACEOF | |
10697 | cat confdefs.h >>conftest.$ac_ext | |
10698 | cat >>conftest.$ac_ext <<_ACEOF | |
10699 | /* end confdefs.h. */ | |
10700 | $ac_includes_default | |
10701 | #include <$ac_header> | |
10702 | _ACEOF | |
10703 | rm -f conftest.$ac_objext | |
10704 | if { (ac_try="$ac_compile" | |
10705 | case "(($ac_try" in | |
10706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10707 | *) ac_try_echo=$ac_try;; | |
10708 | esac | |
10709 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10710 | $as_echo "$ac_try_echo") >&5 | |
10711 | (eval "$ac_compile") 2>conftest.er1 | |
10712 | ac_status=$? | |
10713 | grep -v '^ *+' conftest.er1 >conftest.err | |
10714 | rm -f conftest.er1 | |
10715 | cat conftest.err >&5 | |
10716 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10717 | (exit $ac_status); } && { | |
10718 | test -z "$ac_c_werror_flag" || | |
10719 | test ! -s conftest.err | |
10720 | } && test -s conftest.$ac_objext; then | |
10721 | ac_header_compiler=yes | |
10722 | else | |
10723 | $as_echo "$as_me: failed program was:" >&5 | |
10724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10725 | ||
10726 | ac_header_compiler=no | |
10727 | fi | |
10728 | ||
10729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10730 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10731 | $as_echo "$ac_header_compiler" >&6; } | |
10732 | ||
10733 | # Is the header present? | |
10734 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10735 | $as_echo_n "checking $ac_header presence... " >&6; } | |
10736 | cat >conftest.$ac_ext <<_ACEOF | |
10737 | /* confdefs.h. */ | |
10738 | _ACEOF | |
10739 | cat confdefs.h >>conftest.$ac_ext | |
10740 | cat >>conftest.$ac_ext <<_ACEOF | |
10741 | /* end confdefs.h. */ | |
10742 | #include <$ac_header> | |
10743 | _ACEOF | |
10744 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
10745 | case "(($ac_try" in | |
10746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10747 | *) ac_try_echo=$ac_try;; | |
10748 | esac | |
10749 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
10750 | $as_echo "$ac_try_echo") >&5 | |
10751 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
10752 | ac_status=$? | |
10753 | grep -v '^ *+' conftest.er1 >conftest.err | |
10754 | rm -f conftest.er1 | |
10755 | cat conftest.err >&5 | |
10756 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10757 | (exit $ac_status); } >/dev/null && { | |
10758 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10759 | test ! -s conftest.err | |
10760 | }; then | |
10761 | ac_header_preproc=yes | |
10762 | else | |
10763 | $as_echo "$as_me: failed program was:" >&5 | |
10764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10765 | ||
10766 | ac_header_preproc=no | |
10767 | fi | |
10768 | ||
10769 | rm -f conftest.err conftest.$ac_ext | |
10770 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10771 | $as_echo "$ac_header_preproc" >&6; } | |
10772 | ||
10773 | # So? What about this header? | |
10774 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10775 | yes:no: ) | |
10776 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10777 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10778 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10779 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10780 | ac_header_preproc=yes | |
10781 | ;; | |
10782 | no:yes:* ) | |
10783 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10784 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10785 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10786 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10787 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10788 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10789 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10790 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10791 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10792 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10793 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10794 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10795 | ||
10796 | ;; | |
10797 | esac | |
10798 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10799 | $as_echo_n "checking for $ac_header... " >&6; } | |
10800 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
10801 | $as_echo_n "(cached) " >&6 | |
10802 | else | |
10803 | eval "$as_ac_Header=\$ac_header_preproc" | |
10804 | fi | |
10805 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
10806 | $as_echo "$as_val"'` | |
10807 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10808 | $as_echo "$ac_res" >&6; } | |
10809 | ||
10810 | fi | |
10811 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
10812 | $as_echo "$as_val"'` | |
10813 | if test "x$as_val" = x""yes; then | |
10814 | cat >>confdefs.h <<_ACEOF | |
10815 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10816 | _ACEOF | |
10817 | ||
10818 | else | |
10819 | $bailout | |
10820 | fi | |
10821 | ||
10822 | done | |
10823 | ||
10824 | check_lib_no_libs cman cman_init | |
10825 | if test $NOTFOUND = 0; then | |
10826 | { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5 | |
10827 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
10828 | CMAN_LIBS="-lcman" | |
10829 | HAVE_CMAN=yes | |
10830 | fi | |
10831 | else | |
10832 | CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS | |
10833 | CMAN_LIBS=$pkg_cv_CMAN_LIBS | |
10834 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10835 | $as_echo "yes" >&6; } | |
10836 | HAVE_CMAN=yes | |
10837 | fi | |
10838 | CHECKCONFDB=yes | |
10839 | CHECKDLM=yes | |
10840 | fi | |
10841 | ||
10842 | if test x$BUILDCOROSYNC = xyes || \ | |
10843 | test x$BUILDOPENAIS = xyes; then | |
10844 | ||
10845 | pkg_failed=no | |
10846 | { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5 | |
10847 | $as_echo_n "checking for COROSYNC... " >&6; } | |
10848 | ||
10849 | if test -n "$COROSYNC_CFLAGS"; then | |
10850 | pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS" | |
10851 | elif test -n "$PKG_CONFIG"; then | |
10852 | if test -n "$PKG_CONFIG" && \ | |
10853 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
10854 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
10855 | ac_status=$? | |
10856 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10857 | (exit $ac_status); }; then | |
10858 | pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null` | |
10859 | else | |
10860 | pkg_failed=yes | |
10861 | fi | |
10862 | else | |
10863 | pkg_failed=untried | |
10864 | fi | |
10865 | if test -n "$COROSYNC_LIBS"; then | |
10866 | pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS" | |
10867 | elif test -n "$PKG_CONFIG"; then | |
10868 | if test -n "$PKG_CONFIG" && \ | |
10869 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5 | |
10870 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
10871 | ac_status=$? | |
10872 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10873 | (exit $ac_status); }; then | |
10874 | pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null` | |
10875 | else | |
10876 | pkg_failed=yes | |
10877 | fi | |
10878 | else | |
10879 | pkg_failed=untried | |
10880 | fi | |
10881 | ||
10882 | ||
10883 | ||
10884 | if test $pkg_failed = yes; then | |
10885 | ||
10886 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10887 | _pkg_short_errors_supported=yes | |
10888 | else | |
10889 | _pkg_short_errors_supported=no | |
10890 | fi | |
10891 | if test $_pkg_short_errors_supported = yes; then | |
10892 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1` | |
10893 | else | |
10894 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1` | |
10895 | fi | |
10896 | # Put the nasty error message in config.log where it belongs | |
10897 | echo "$COROSYNC_PKG_ERRORS" >&5 | |
10898 | ||
10899 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10900 | $as_echo "no" >&6; } | |
10901 | $bailout | |
10902 | elif test $pkg_failed = untried; then | |
10903 | $bailout | |
10904 | else | |
10905 | COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS | |
10906 | COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS | |
10907 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10908 | $as_echo "yes" >&6; } | |
10909 | HAVE_COROSYNC=yes | |
10910 | fi | |
10911 | CHECKCONFDB=yes | |
10912 | fi | |
10913 | ||
10914 | if test x$BUILDCOROSYNC = xyes; then | |
10915 | ||
10916 | pkg_failed=no | |
10917 | { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5 | |
10918 | $as_echo_n "checking for QUORUM... " >&6; } | |
10919 | ||
10920 | if test -n "$QUORUM_CFLAGS"; then | |
10921 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
10922 | elif test -n "$PKG_CONFIG"; then | |
10923 | if test -n "$PKG_CONFIG" && \ | |
10924 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
10925 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
10926 | ac_status=$? | |
10927 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10928 | (exit $ac_status); }; then | |
10929 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
10930 | else | |
10931 | pkg_failed=yes | |
10932 | fi | |
10933 | else | |
10934 | pkg_failed=untried | |
10935 | fi | |
10936 | if test -n "$QUORUM_LIBS"; then | |
10937 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
10938 | elif test -n "$PKG_CONFIG"; then | |
10939 | if test -n "$PKG_CONFIG" && \ | |
10940 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5 | |
10941 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
10942 | ac_status=$? | |
10943 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10944 | (exit $ac_status); }; then | |
10945 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
10946 | else | |
10947 | pkg_failed=yes | |
10948 | fi | |
10949 | else | |
10950 | pkg_failed=untried | |
10951 | fi | |
10952 | ||
10953 | ||
10954 | ||
10955 | if test $pkg_failed = yes; then | |
10956 | ||
10957 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10958 | _pkg_short_errors_supported=yes | |
10959 | else | |
10960 | _pkg_short_errors_supported=no | |
10961 | fi | |
10962 | if test $_pkg_short_errors_supported = yes; then | |
10963 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
10964 | else | |
10965 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
10966 | fi | |
10967 | # Put the nasty error message in config.log where it belongs | |
10968 | echo "$QUORUM_PKG_ERRORS" >&5 | |
10969 | ||
10970 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
10971 | $as_echo "no" >&6; } | |
10972 | $bailout | |
10973 | elif test $pkg_failed = untried; then | |
10974 | $bailout | |
10975 | else | |
10976 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
10977 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
10978 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
10979 | $as_echo "yes" >&6; } | |
10980 | HAVE_QUORUM=yes | |
10981 | fi | |
10982 | CHECKCPG=yes | |
10983 | CHECKDLM=yes | |
10984 | fi | |
10985 | ||
10986 | if test x$BUILDOPENAIS = xyes; then | |
10987 | ||
10988 | pkg_failed=no | |
10989 | { $as_echo "$as_me:$LINENO: checking for SALCK" >&5 | |
10990 | $as_echo_n "checking for SALCK... " >&6; } | |
10991 | ||
10992 | if test -n "$SALCK_CFLAGS"; then | |
10993 | pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS" | |
10994 | elif test -n "$PKG_CONFIG"; then | |
10995 | if test -n "$PKG_CONFIG" && \ | |
10996 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
10997 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
10998 | ac_status=$? | |
10999 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11000 | (exit $ac_status); }; then | |
11001 | pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null` | |
11002 | else | |
11003 | pkg_failed=yes | |
11004 | fi | |
11005 | else | |
11006 | pkg_failed=untried | |
11007 | fi | |
11008 | if test -n "$SALCK_LIBS"; then | |
11009 | pkg_cv_SALCK_LIBS="$SALCK_LIBS" | |
11010 | elif test -n "$PKG_CONFIG"; then | |
11011 | if test -n "$PKG_CONFIG" && \ | |
11012 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5 | |
11013 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
11014 | ac_status=$? | |
11015 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11016 | (exit $ac_status); }; then | |
11017 | pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null` | |
11018 | else | |
11019 | pkg_failed=yes | |
11020 | fi | |
11021 | else | |
11022 | pkg_failed=untried | |
11023 | fi | |
11024 | ||
11025 | ||
11026 | ||
11027 | if test $pkg_failed = yes; then | |
11028 | ||
11029 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11030 | _pkg_short_errors_supported=yes | |
11031 | else | |
11032 | _pkg_short_errors_supported=no | |
11033 | fi | |
11034 | if test $_pkg_short_errors_supported = yes; then | |
11035 | SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1` | |
11036 | else | |
11037 | SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1` | |
11038 | fi | |
11039 | # Put the nasty error message in config.log where it belongs | |
11040 | echo "$SALCK_PKG_ERRORS" >&5 | |
11041 | ||
11042 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11043 | $as_echo "no" >&6; } | |
11044 | $bailout | |
11045 | elif test $pkg_failed = untried; then | |
11046 | $bailout | |
11047 | else | |
11048 | SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS | |
11049 | SALCK_LIBS=$pkg_cv_SALCK_LIBS | |
11050 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11051 | $as_echo "yes" >&6; } | |
11052 | HAVE_SALCK=yes | |
11053 | fi | |
11054 | CHECKCPG=yes | |
11055 | fi | |
11056 | ||
11057 | ||
11058 | ||
11059 | if test x$CHECKCONFDB = xyes; then | |
11060 | ||
11061 | pkg_failed=no | |
11062 | { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5 | |
11063 | $as_echo_n "checking for CONFDB... " >&6; } | |
11064 | ||
11065 | if test -n "$CONFDB_CFLAGS"; then | |
11066 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
11067 | elif test -n "$PKG_CONFIG"; then | |
11068 | if test -n "$PKG_CONFIG" && \ | |
11069 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
11070 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
11071 | ac_status=$? | |
11072 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11073 | (exit $ac_status); }; then | |
11074 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
11075 | else | |
11076 | pkg_failed=yes | |
11077 | fi | |
11078 | else | |
11079 | pkg_failed=untried | |
11080 | fi | |
11081 | if test -n "$CONFDB_LIBS"; then | |
11082 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
11083 | elif test -n "$PKG_CONFIG"; then | |
11084 | if test -n "$PKG_CONFIG" && \ | |
11085 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5 | |
11086 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
11087 | ac_status=$? | |
11088 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11089 | (exit $ac_status); }; then | |
11090 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
11091 | else | |
11092 | pkg_failed=yes | |
11093 | fi | |
11094 | else | |
11095 | pkg_failed=untried | |
11096 | fi | |
11097 | ||
11098 | ||
11099 | ||
11100 | if test $pkg_failed = yes; then | |
11101 | ||
11102 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11103 | _pkg_short_errors_supported=yes | |
11104 | else | |
11105 | _pkg_short_errors_supported=no | |
11106 | fi | |
11107 | if test $_pkg_short_errors_supported = yes; then | |
11108 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
11109 | else | |
11110 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
11111 | fi | |
11112 | # Put the nasty error message in config.log where it belongs | |
11113 | echo "$CONFDB_PKG_ERRORS" >&5 | |
11114 | ||
11115 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11116 | $as_echo "no" >&6; } | |
11117 | HAVE_CONFDB=no | |
11118 | elif test $pkg_failed = untried; then | |
11119 | HAVE_CONFDB=no | |
11120 | else | |
11121 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
11122 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
11123 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11124 | $as_echo "yes" >&6; } | |
11125 | HAVE_CONFDB=yes | |
11126 | fi | |
11127 | ||
11128 | ||
11129 | for ac_header in corosync/confdb.h | |
11130 | do | |
11131 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11132 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11133 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11134 | $as_echo_n "checking for $ac_header... " >&6; } | |
11135 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11136 | $as_echo_n "(cached) " >&6 | |
11137 | fi | |
11138 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11139 | $as_echo "$as_val"'` | |
11140 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11141 | $as_echo "$ac_res" >&6; } | |
11142 | else | |
11143 | # Is the header compilable? | |
11144 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11145 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11146 | cat >conftest.$ac_ext <<_ACEOF | |
11147 | /* confdefs.h. */ | |
11148 | _ACEOF | |
11149 | cat confdefs.h >>conftest.$ac_ext | |
11150 | cat >>conftest.$ac_ext <<_ACEOF | |
11151 | /* end confdefs.h. */ | |
11152 | $ac_includes_default | |
11153 | #include <$ac_header> | |
11154 | _ACEOF | |
11155 | rm -f conftest.$ac_objext | |
11156 | if { (ac_try="$ac_compile" | |
11157 | case "(($ac_try" in | |
11158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11159 | *) ac_try_echo=$ac_try;; | |
11160 | esac | |
11161 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11162 | $as_echo "$ac_try_echo") >&5 | |
11163 | (eval "$ac_compile") 2>conftest.er1 | |
11164 | ac_status=$? | |
11165 | grep -v '^ *+' conftest.er1 >conftest.err | |
11166 | rm -f conftest.er1 | |
11167 | cat conftest.err >&5 | |
11168 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11169 | (exit $ac_status); } && { | |
11170 | test -z "$ac_c_werror_flag" || | |
11171 | test ! -s conftest.err | |
11172 | } && test -s conftest.$ac_objext; then | |
11173 | ac_header_compiler=yes | |
11174 | else | |
11175 | $as_echo "$as_me: failed program was:" >&5 | |
11176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11177 | ||
11178 | ac_header_compiler=no | |
11179 | fi | |
11180 | ||
11181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11182 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11183 | $as_echo "$ac_header_compiler" >&6; } | |
11184 | ||
11185 | # Is the header present? | |
11186 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11187 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11188 | cat >conftest.$ac_ext <<_ACEOF | |
11189 | /* confdefs.h. */ | |
11190 | _ACEOF | |
11191 | cat confdefs.h >>conftest.$ac_ext | |
11192 | cat >>conftest.$ac_ext <<_ACEOF | |
11193 | /* end confdefs.h. */ | |
11194 | #include <$ac_header> | |
11195 | _ACEOF | |
11196 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11197 | case "(($ac_try" in | |
11198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11199 | *) ac_try_echo=$ac_try;; | |
11200 | esac | |
11201 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11202 | $as_echo "$ac_try_echo") >&5 | |
11203 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11204 | ac_status=$? | |
11205 | grep -v '^ *+' conftest.er1 >conftest.err | |
11206 | rm -f conftest.er1 | |
11207 | cat conftest.err >&5 | |
11208 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11209 | (exit $ac_status); } >/dev/null && { | |
11210 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11211 | test ! -s conftest.err | |
11212 | }; then | |
11213 | ac_header_preproc=yes | |
11214 | else | |
11215 | $as_echo "$as_me: failed program was:" >&5 | |
11216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11217 | ||
11218 | ac_header_preproc=no | |
11219 | fi | |
11220 | ||
11221 | rm -f conftest.err conftest.$ac_ext | |
11222 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11223 | $as_echo "$ac_header_preproc" >&6; } | |
11224 | ||
11225 | # So? What about this header? | |
11226 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11227 | yes:no: ) | |
11228 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11229 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11230 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11231 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11232 | ac_header_preproc=yes | |
11233 | ;; | |
11234 | no:yes:* ) | |
11235 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11236 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11237 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11238 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11239 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11240 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11241 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11242 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11243 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11244 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11245 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11246 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11247 | ||
11248 | ;; | |
11249 | esac | |
11250 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11251 | $as_echo_n "checking for $ac_header... " >&6; } | |
11252 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11253 | $as_echo_n "(cached) " >&6 | |
11254 | else | |
11255 | eval "$as_ac_Header=\$ac_header_preproc" | |
11256 | fi | |
11257 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11258 | $as_echo "$as_val"'` | |
11259 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11260 | $as_echo "$ac_res" >&6; } | |
11261 | ||
11262 | fi | |
11263 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11264 | $as_echo "$as_val"'` | |
11265 | if test "x$as_val" = x""yes; then | |
11266 | cat >>confdefs.h <<_ACEOF | |
11267 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11268 | _ACEOF | |
11269 | HAVE_CONFDB_H=yes | |
11270 | else | |
11271 | HAVE_CONFDB_H=no | |
11272 | fi | |
11273 | ||
11274 | done | |
11275 | ||
11276 | ||
11277 | if test x$HAVE_CONFDB != xyes && \ | |
11278 | test x$HAVE_CONFDB_H = xyes; then | |
11279 | check_lib_no_libs confdb confdb_initialize | |
11280 | { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5 | |
11281 | $as_echo "no pkg for confdb, using -lconfdb" >&6; } | |
11282 | CONFDB_LIBS="-lconfdb" | |
11283 | HAVE_CONFDB=yes | |
11284 | fi | |
11285 | ||
11286 | if test x$BUILDCOROSYNC = xyes && \ | |
11287 | test x$HAVE_CONFDB != xyes && | |
11288 | test x$CLVMD != xall; then | |
11289 | { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5 | |
11290 | $as_echo "$as_me: error: bailing out... confdb library is required" >&2;} | |
11291 | { (exit 1); exit 1; }; } | |
11292 | fi | |
11293 | fi | |
11294 | ||
11295 | if test x$CHECKCPG = xyes; then | |
11296 | ||
11297 | pkg_failed=no | |
11298 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
11299 | $as_echo_n "checking for CPG... " >&6; } | |
11300 | ||
11301 | if test -n "$CPG_CFLAGS"; then | |
11302 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
11303 | elif test -n "$PKG_CONFIG"; then | |
11304 | if test -n "$PKG_CONFIG" && \ | |
11305 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11306 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11307 | ac_status=$? | |
11308 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11309 | (exit $ac_status); }; then | |
11310 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
11311 | else | |
11312 | pkg_failed=yes | |
11313 | fi | |
11314 | else | |
11315 | pkg_failed=untried | |
11316 | fi | |
11317 | if test -n "$CPG_LIBS"; then | |
11318 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
11319 | elif test -n "$PKG_CONFIG"; then | |
11320 | if test -n "$PKG_CONFIG" && \ | |
11321 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11322 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11323 | ac_status=$? | |
11324 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11325 | (exit $ac_status); }; then | |
11326 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
11327 | else | |
11328 | pkg_failed=yes | |
11329 | fi | |
11330 | else | |
11331 | pkg_failed=untried | |
11332 | fi | |
11333 | ||
11334 | ||
11335 | ||
11336 | if test $pkg_failed = yes; then | |
11337 | ||
11338 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11339 | _pkg_short_errors_supported=yes | |
11340 | else | |
11341 | _pkg_short_errors_supported=no | |
11342 | fi | |
11343 | if test $_pkg_short_errors_supported = yes; then | |
11344 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
11345 | else | |
11346 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
11347 | fi | |
11348 | # Put the nasty error message in config.log where it belongs | |
11349 | echo "$CPG_PKG_ERRORS" >&5 | |
11350 | ||
11351 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11352 | $as_echo "no" >&6; } | |
11353 | $bailout | |
11354 | elif test $pkg_failed = untried; then | |
11355 | $bailout | |
11356 | else | |
11357 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
11358 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
11359 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11360 | $as_echo "yes" >&6; } | |
11361 | HAVE_CPG=yes | |
11362 | fi | |
11363 | fi | |
11364 | ||
11365 | if test x$CHECKDLM = xyes; then | |
11366 | ||
11367 | pkg_failed=no | |
11368 | { $as_echo "$as_me:$LINENO: checking for DLM" >&5 | |
11369 | $as_echo_n "checking for DLM... " >&6; } | |
11370 | ||
11371 | if test -n "$DLM_CFLAGS"; then | |
11372 | pkg_cv_DLM_CFLAGS="$DLM_CFLAGS" | |
11373 | elif test -n "$PKG_CONFIG"; then | |
11374 | if test -n "$PKG_CONFIG" && \ | |
11375 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
11376 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
11377 | ac_status=$? | |
11378 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11379 | (exit $ac_status); }; then | |
11380 | pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null` | |
11381 | else | |
11382 | pkg_failed=yes | |
11383 | fi | |
11384 | else | |
11385 | pkg_failed=untried | |
11386 | fi | |
11387 | if test -n "$DLM_LIBS"; then | |
11388 | pkg_cv_DLM_LIBS="$DLM_LIBS" | |
11389 | elif test -n "$PKG_CONFIG"; then | |
11390 | if test -n "$PKG_CONFIG" && \ | |
11391 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5 | |
11392 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
11393 | ac_status=$? | |
11394 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11395 | (exit $ac_status); }; then | |
11396 | pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null` | |
11397 | else | |
11398 | pkg_failed=yes | |
11399 | fi | |
11400 | else | |
11401 | pkg_failed=untried | |
11402 | fi | |
11403 | ||
11404 | ||
11405 | ||
11406 | if test $pkg_failed = yes; then | |
11407 | ||
11408 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11409 | _pkg_short_errors_supported=yes | |
11410 | else | |
11411 | _pkg_short_errors_supported=no | |
11412 | fi | |
11413 | if test $_pkg_short_errors_supported = yes; then | |
11414 | DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1` | |
11415 | else | |
11416 | DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1` | |
11417 | fi | |
11418 | # Put the nasty error message in config.log where it belongs | |
11419 | echo "$DLM_PKG_ERRORS" >&5 | |
11420 | ||
11421 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
11422 | $as_echo "no" >&6; } | |
11423 | NOTFOUND=0 | |
11424 | ||
11425 | for ac_header in libdlm.h | |
11426 | do | |
11427 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11428 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11429 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11430 | $as_echo_n "checking for $ac_header... " >&6; } | |
11431 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11432 | $as_echo_n "(cached) " >&6 | |
11433 | fi | |
11434 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11435 | $as_echo "$as_val"'` | |
11436 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11437 | $as_echo "$ac_res" >&6; } | |
11438 | else | |
11439 | # Is the header compilable? | |
11440 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11441 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11442 | cat >conftest.$ac_ext <<_ACEOF | |
11443 | /* confdefs.h. */ | |
11444 | _ACEOF | |
11445 | cat confdefs.h >>conftest.$ac_ext | |
11446 | cat >>conftest.$ac_ext <<_ACEOF | |
11447 | /* end confdefs.h. */ | |
11448 | $ac_includes_default | |
11449 | #include <$ac_header> | |
11450 | _ACEOF | |
11451 | rm -f conftest.$ac_objext | |
11452 | if { (ac_try="$ac_compile" | |
11453 | case "(($ac_try" in | |
11454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11455 | *) ac_try_echo=$ac_try;; | |
11456 | esac | |
11457 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11458 | $as_echo "$ac_try_echo") >&5 | |
11459 | (eval "$ac_compile") 2>conftest.er1 | |
11460 | ac_status=$? | |
11461 | grep -v '^ *+' conftest.er1 >conftest.err | |
11462 | rm -f conftest.er1 | |
11463 | cat conftest.err >&5 | |
11464 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11465 | (exit $ac_status); } && { | |
11466 | test -z "$ac_c_werror_flag" || | |
11467 | test ! -s conftest.err | |
11468 | } && test -s conftest.$ac_objext; then | |
11469 | ac_header_compiler=yes | |
11470 | else | |
11471 | $as_echo "$as_me: failed program was:" >&5 | |
11472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11473 | ||
11474 | ac_header_compiler=no | |
11475 | fi | |
11476 | ||
11477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11478 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11479 | $as_echo "$ac_header_compiler" >&6; } | |
11480 | ||
11481 | # Is the header present? | |
11482 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11483 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11484 | cat >conftest.$ac_ext <<_ACEOF | |
11485 | /* confdefs.h. */ | |
11486 | _ACEOF | |
11487 | cat confdefs.h >>conftest.$ac_ext | |
11488 | cat >>conftest.$ac_ext <<_ACEOF | |
11489 | /* end confdefs.h. */ | |
11490 | #include <$ac_header> | |
11491 | _ACEOF | |
11492 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11493 | case "(($ac_try" in | |
11494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11495 | *) ac_try_echo=$ac_try;; | |
11496 | esac | |
11497 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11498 | $as_echo "$ac_try_echo") >&5 | |
11499 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11500 | ac_status=$? | |
11501 | grep -v '^ *+' conftest.er1 >conftest.err | |
11502 | rm -f conftest.er1 | |
11503 | cat conftest.err >&5 | |
11504 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11505 | (exit $ac_status); } >/dev/null && { | |
11506 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11507 | test ! -s conftest.err | |
11508 | }; then | |
11509 | ac_header_preproc=yes | |
11510 | else | |
11511 | $as_echo "$as_me: failed program was:" >&5 | |
11512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11513 | ||
11514 | ac_header_preproc=no | |
11515 | fi | |
11516 | ||
11517 | rm -f conftest.err conftest.$ac_ext | |
11518 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11519 | $as_echo "$ac_header_preproc" >&6; } | |
11520 | ||
11521 | # So? What about this header? | |
11522 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11523 | yes:no: ) | |
11524 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11525 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11526 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11527 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11528 | ac_header_preproc=yes | |
11529 | ;; | |
11530 | no:yes:* ) | |
11531 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11532 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11533 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11534 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11535 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11536 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11537 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11538 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11539 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11540 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11541 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11542 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11543 | ||
11544 | ;; | |
11545 | esac | |
11546 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11547 | $as_echo_n "checking for $ac_header... " >&6; } | |
11548 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11549 | $as_echo_n "(cached) " >&6 | |
11550 | else | |
11551 | eval "$as_ac_Header=\$ac_header_preproc" | |
11552 | fi | |
11553 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11554 | $as_echo "$as_val"'` | |
11555 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11556 | $as_echo "$ac_res" >&6; } | |
11557 | ||
11558 | fi | |
11559 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11560 | $as_echo "$as_val"'` | |
11561 | if test "x$as_val" = x""yes; then | |
11562 | cat >>confdefs.h <<_ACEOF | |
11563 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11564 | _ACEOF | |
11565 | ||
11566 | else | |
11567 | $bailout | |
11568 | fi | |
11569 | ||
11570 | done | |
11571 | ||
11572 | check_lib_no_libs dlm dlm_lock -lpthread | |
11573 | if test $NOTFOUND = 0; then | |
11574 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
11575 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
11576 | DLM_LIBS="-ldlm -lpthread" | |
11577 | HAVE_DLM=yes | |
11578 | fi | |
11579 | elif test $pkg_failed = untried; then | |
11580 | NOTFOUND=0 | |
11581 | ||
11582 | for ac_header in libdlm.h | |
11583 | do | |
11584 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11585 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11586 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11587 | $as_echo_n "checking for $ac_header... " >&6; } | |
11588 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11589 | $as_echo_n "(cached) " >&6 | |
11590 | fi | |
11591 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11592 | $as_echo "$as_val"'` | |
11593 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11594 | $as_echo "$ac_res" >&6; } | |
11595 | else | |
11596 | # Is the header compilable? | |
11597 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11598 | $as_echo_n "checking $ac_header usability... " >&6; } | |
11599 | cat >conftest.$ac_ext <<_ACEOF | |
11600 | /* confdefs.h. */ | |
11601 | _ACEOF | |
11602 | cat confdefs.h >>conftest.$ac_ext | |
11603 | cat >>conftest.$ac_ext <<_ACEOF | |
11604 | /* end confdefs.h. */ | |
11605 | $ac_includes_default | |
11606 | #include <$ac_header> | |
11607 | _ACEOF | |
11608 | rm -f conftest.$ac_objext | |
11609 | if { (ac_try="$ac_compile" | |
11610 | case "(($ac_try" in | |
11611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11612 | *) ac_try_echo=$ac_try;; | |
11613 | esac | |
11614 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11615 | $as_echo "$ac_try_echo") >&5 | |
11616 | (eval "$ac_compile") 2>conftest.er1 | |
11617 | ac_status=$? | |
11618 | grep -v '^ *+' conftest.er1 >conftest.err | |
11619 | rm -f conftest.er1 | |
11620 | cat conftest.err >&5 | |
11621 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11622 | (exit $ac_status); } && { | |
11623 | test -z "$ac_c_werror_flag" || | |
11624 | test ! -s conftest.err | |
11625 | } && test -s conftest.$ac_objext; then | |
11626 | ac_header_compiler=yes | |
11627 | else | |
11628 | $as_echo "$as_me: failed program was:" >&5 | |
11629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11630 | ||
11631 | ac_header_compiler=no | |
11632 | fi | |
11633 | ||
11634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11635 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11636 | $as_echo "$ac_header_compiler" >&6; } | |
11637 | ||
11638 | # Is the header present? | |
11639 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11640 | $as_echo_n "checking $ac_header presence... " >&6; } | |
11641 | cat >conftest.$ac_ext <<_ACEOF | |
11642 | /* confdefs.h. */ | |
11643 | _ACEOF | |
11644 | cat confdefs.h >>conftest.$ac_ext | |
11645 | cat >>conftest.$ac_ext <<_ACEOF | |
11646 | /* end confdefs.h. */ | |
11647 | #include <$ac_header> | |
11648 | _ACEOF | |
11649 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
11650 | case "(($ac_try" in | |
11651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11652 | *) ac_try_echo=$ac_try;; | |
11653 | esac | |
11654 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
11655 | $as_echo "$ac_try_echo") >&5 | |
11656 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
11657 | ac_status=$? | |
11658 | grep -v '^ *+' conftest.er1 >conftest.err | |
11659 | rm -f conftest.er1 | |
11660 | cat conftest.err >&5 | |
11661 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11662 | (exit $ac_status); } >/dev/null && { | |
11663 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11664 | test ! -s conftest.err | |
11665 | }; then | |
11666 | ac_header_preproc=yes | |
11667 | else | |
11668 | $as_echo "$as_me: failed program was:" >&5 | |
11669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11670 | ||
11671 | ac_header_preproc=no | |
11672 | fi | |
11673 | ||
11674 | rm -f conftest.err conftest.$ac_ext | |
11675 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11676 | $as_echo "$ac_header_preproc" >&6; } | |
11677 | ||
11678 | # So? What about this header? | |
11679 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11680 | yes:no: ) | |
11681 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11682 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11683 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11684 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11685 | ac_header_preproc=yes | |
11686 | ;; | |
11687 | no:yes:* ) | |
11688 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11689 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11690 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11691 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11692 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11693 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11694 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11695 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11696 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11697 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11698 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11699 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11700 | ||
11701 | ;; | |
11702 | esac | |
11703 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11704 | $as_echo_n "checking for $ac_header... " >&6; } | |
11705 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
11706 | $as_echo_n "(cached) " >&6 | |
11707 | else | |
11708 | eval "$as_ac_Header=\$ac_header_preproc" | |
11709 | fi | |
11710 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
11711 | $as_echo "$as_val"'` | |
11712 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11713 | $as_echo "$ac_res" >&6; } | |
11714 | ||
11715 | fi | |
11716 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
11717 | $as_echo "$as_val"'` | |
11718 | if test "x$as_val" = x""yes; then | |
11719 | cat >>confdefs.h <<_ACEOF | |
11720 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11721 | _ACEOF | |
11722 | ||
11723 | else | |
11724 | $bailout | |
11725 | fi | |
11726 | ||
11727 | done | |
11728 | ||
11729 | check_lib_no_libs dlm dlm_lock -lpthread | |
11730 | if test $NOTFOUND = 0; then | |
11731 | { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5 | |
11732 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
11733 | DLM_LIBS="-ldlm -lpthread" | |
11734 | HAVE_DLM=yes | |
11735 | fi | |
11736 | else | |
11737 | DLM_CFLAGS=$pkg_cv_DLM_CFLAGS | |
11738 | DLM_LIBS=$pkg_cv_DLM_LIBS | |
11739 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11740 | $as_echo "yes" >&6; } | |
11741 | HAVE_DLM=yes | |
11742 | fi | |
11743 | fi | |
11744 | ||
11745 | if test x$CLVMD = xall; then | |
8c222979 | 11746 | CLVMD=none |
a946372e AK |
11747 | if test x$HAVE_CCS = xyes && \ |
11748 | test x$HAVE_GULM = xyes; then | |
8c222979 FDN |
11749 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5 |
11750 | $as_echo "Enabling clvmd gulm cluster manager" >&6; } | |
11751 | CLVMD="$CLVMD,gulm" | |
a946372e AK |
11752 | fi |
11753 | if test x$HAVE_CMAN = xyes && \ | |
11754 | test x$HAVE_DLM = xyes; then | |
8c222979 FDN |
11755 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5 |
11756 | $as_echo "Enabling clvmd cman cluster manager" >&6; } | |
11757 | CLVMD="$CLVMD,cman" | |
a946372e AK |
11758 | fi |
11759 | if test x$HAVE_COROSYNC = xyes && \ | |
11760 | test x$HAVE_QUORUM = xyes && \ | |
11761 | test x$HAVE_CPG = xyes && \ | |
11762 | test x$HAVE_DLM = xyes && \ | |
11763 | test x$HAVE_CONFDB = xyes; then | |
8c222979 FDN |
11764 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5 |
11765 | $as_echo "Enabling clvmd corosync cluster manager" >&6; } | |
11766 | CLVMD="$CLVMD,corosync" | |
a946372e AK |
11767 | fi |
11768 | if test x$HAVE_COROSYNC = xyes && \ | |
11769 | test x$HAVE_CPG = xyes && \ | |
11770 | test x$HAVE_SALCK = xyes; then | |
8c222979 FDN |
11771 | { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5 |
11772 | $as_echo "Enabling clvmd openais cluster manager" >&6; } | |
11773 | CLVMD="$CLVMD,openais" | |
11774 | fi | |
11775 | if test x$CLVMD = xnone; then | |
11776 | { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5 | |
11777 | $as_echo "Disabling clvmd build. No cluster manager detected." >&6; } | |
a946372e | 11778 | fi |
a946372e AK |
11779 | fi |
11780 | ||
11781 | ################################################################################ | |
66fd4529 AK |
11782 | { $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5 |
11783 | $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; } | |
11784 | # Check whether --enable-cmirrord was given. | |
11785 | if test "${enable_cmirrord+set}" = set; then | |
11786 | enableval=$enable_cmirrord; CMIRRORD=$enableval | |
11787 | else | |
11788 | CMIRRORD=no | |
11789 | fi | |
11790 | ||
11791 | { $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5 | |
11792 | $as_echo "$CMIRRORD" >&6; } | |
11793 | ||
11794 | BUILD_CMIRRORD=$CMIRRORD | |
11795 | ||
11796 | ################################################################################ | |
11797 | ||
11798 | ||
11799 | if test "x$BUILD_CMIRRORD" = xyes; then | |
11800 | ||
11801 | # Check whether --with-cmirrord-pidfile was given. | |
11802 | if test "${with_cmirrord_pidfile+set}" = set; then | |
11803 | withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF | |
11804 | #define CMIRRORD_PIDFILE "$withval" | |
11805 | _ACEOF | |
11806 | ||
11807 | else | |
11808 | cat >>confdefs.h <<_ACEOF | |
11809 | #define CMIRRORD_PIDFILE "/var/run/cmirrord.pid" | |
11810 | _ACEOF | |
11811 | ||
a946372e AK |
11812 | fi |
11813 | ||
66fd4529 | 11814 | fi |
a946372e | 11815 | |
66fd4529 AK |
11816 | ################################################################################ |
11817 | if [ "x$BUILD_CMIRRORD" = xyes ]; then | |
90c80887 AK |
11818 | if test x$PKGCONFIG_INIT != x1; then |
11819 | pkg_config_init | |
11820 | fi | |
11821 | ||
11822 | pkg_failed=no | |
11823 | { $as_echo "$as_me:$LINENO: checking for SACKPT" >&5 | |
11824 | $as_echo_n "checking for SACKPT... " >&6; } | |
11825 | ||
11826 | if test -n "$SACKPT_CFLAGS"; then | |
11827 | pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS" | |
11828 | elif test -n "$PKG_CONFIG"; then | |
11829 | if test -n "$PKG_CONFIG" && \ | |
11830 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
11831 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
11832 | ac_status=$? | |
11833 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11834 | (exit $ac_status); }; then | |
11835 | pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null` | |
11836 | else | |
11837 | pkg_failed=yes | |
11838 | fi | |
11839 | else | |
11840 | pkg_failed=untried | |
11841 | fi | |
11842 | if test -n "$SACKPT_LIBS"; then | |
11843 | pkg_cv_SACKPT_LIBS="$SACKPT_LIBS" | |
11844 | elif test -n "$PKG_CONFIG"; then | |
11845 | if test -n "$PKG_CONFIG" && \ | |
11846 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5 | |
11847 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
11848 | ac_status=$? | |
11849 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11850 | (exit $ac_status); }; then | |
11851 | pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null` | |
11852 | else | |
11853 | pkg_failed=yes | |
11854 | fi | |
11855 | else | |
11856 | pkg_failed=untried | |
11857 | fi | |
11858 | ||
11859 | ||
11860 | ||
11861 | if test $pkg_failed = yes; then | |
11862 | ||
11863 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11864 | _pkg_short_errors_supported=yes | |
11865 | else | |
11866 | _pkg_short_errors_supported=no | |
11867 | fi | |
11868 | if test $_pkg_short_errors_supported = yes; then | |
11869 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1` | |
11870 | else | |
11871 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1` | |
11872 | fi | |
11873 | # Put the nasty error message in config.log where it belongs | |
11874 | echo "$SACKPT_PKG_ERRORS" >&5 | |
11875 | ||
11876 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met: | |
11877 | ||
11878 | $SACKPT_PKG_ERRORS | |
11879 | ||
11880 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
11881 | installed software in a non-standard prefix. | |
11882 | ||
11883 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
11884 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
11885 | See the pkg-config man page for more details. | |
11886 | " >&5 | |
11887 | $as_echo "$as_me: error: Package requirements (libSaCkpt) were not met: | |
11888 | ||
11889 | $SACKPT_PKG_ERRORS | |
11890 | ||
11891 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
11892 | installed software in a non-standard prefix. | |
11893 | ||
11894 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
11895 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
11896 | See the pkg-config man page for more details. | |
11897 | " >&2;} | |
11898 | { (exit 1); exit 1; }; } | |
11899 | elif test $pkg_failed = untried; then | |
11900 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
11901 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11902 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
11903 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
11904 | path to pkg-config. | |
11905 | ||
11906 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
11907 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
11908 | See the pkg-config man page for more details. | |
11909 | ||
11910 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
11911 | See \`config.log' for more details." >&5 | |
11912 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
11913 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
11914 | path to pkg-config. | |
11915 | ||
11916 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
11917 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
11918 | See the pkg-config man page for more details. | |
11919 | ||
11920 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
11921 | See \`config.log' for more details." >&2;} | |
11922 | { (exit 1); exit 1; }; }; } | |
11923 | else | |
11924 | SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS | |
11925 | SACKPT_LIBS=$pkg_cv_SACKPT_LIBS | |
11926 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
11927 | $as_echo "yes" >&6; } | |
11928 | : | |
11929 | fi | |
11930 | if test x$HAVE_CPG != xyes; then | |
a946372e AK |
11931 | |
11932 | pkg_failed=no | |
11933 | { $as_echo "$as_me:$LINENO: checking for CPG" >&5 | |
11934 | $as_echo_n "checking for CPG... " >&6; } | |
11935 | ||
11936 | if test -n "$CPG_CFLAGS"; then | |
11937 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
11938 | elif test -n "$PKG_CONFIG"; then | |
11939 | if test -n "$PKG_CONFIG" && \ | |
11940 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11941 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11942 | ac_status=$? | |
11943 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11944 | (exit $ac_status); }; then | |
11945 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
11946 | else | |
11947 | pkg_failed=yes | |
11948 | fi | |
11949 | else | |
11950 | pkg_failed=untried | |
11951 | fi | |
11952 | if test -n "$CPG_LIBS"; then | |
11953 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
11954 | elif test -n "$PKG_CONFIG"; then | |
11955 | if test -n "$PKG_CONFIG" && \ | |
11956 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5 | |
11957 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11958 | ac_status=$? | |
11959 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11960 | (exit $ac_status); }; then | |
11961 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
11962 | else | |
11963 | pkg_failed=yes | |
11964 | fi | |
11965 | else | |
11966 | pkg_failed=untried | |
11967 | fi | |
11968 | ||
11969 | ||
11970 | ||
11971 | if test $pkg_failed = yes; then | |
11972 | ||
11973 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11974 | _pkg_short_errors_supported=yes | |
11975 | else | |
11976 | _pkg_short_errors_supported=no | |
11977 | fi | |
11978 | if test $_pkg_short_errors_supported = yes; then | |
11979 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
11980 | else | |
11981 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
11982 | fi | |
11983 | # Put the nasty error message in config.log where it belongs | |
11984 | echo "$CPG_PKG_ERRORS" >&5 | |
11985 | ||
90c80887 AK |
11986 | { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met: |
11987 | ||
11988 | $CPG_PKG_ERRORS | |
11989 | ||
11990 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
11991 | installed software in a non-standard prefix. | |
11992 | ||
11993 | Alternatively, you may set the environment variables CPG_CFLAGS | |
11994 | and CPG_LIBS to avoid the need to call pkg-config. | |
11995 | See the pkg-config man page for more details. | |
11996 | " >&5 | |
11997 | $as_echo "$as_me: error: Package requirements (libcpg) were not met: | |
11998 | ||
11999 | $CPG_PKG_ERRORS | |
12000 | ||
12001 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
12002 | installed software in a non-standard prefix. | |
12003 | ||
12004 | Alternatively, you may set the environment variables CPG_CFLAGS | |
12005 | and CPG_LIBS to avoid the need to call pkg-config. | |
12006 | See the pkg-config man page for more details. | |
12007 | " >&2;} | |
12008 | { (exit 1); exit 1; }; } | |
a946372e | 12009 | elif test $pkg_failed = untried; then |
90c80887 AK |
12010 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
12011 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12012 | { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it | |
12013 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
12014 | path to pkg-config. | |
12015 | ||
12016 | Alternatively, you may set the environment variables CPG_CFLAGS | |
12017 | and CPG_LIBS to avoid the need to call pkg-config. | |
12018 | See the pkg-config man page for more details. | |
12019 | ||
12020 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
12021 | See \`config.log' for more details." >&5 | |
12022 | $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it | |
12023 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
12024 | path to pkg-config. | |
12025 | ||
12026 | Alternatively, you may set the environment variables CPG_CFLAGS | |
12027 | and CPG_LIBS to avoid the need to call pkg-config. | |
12028 | See the pkg-config man page for more details. | |
12029 | ||
12030 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
12031 | See \`config.log' for more details." >&2;} | |
12032 | { (exit 1); exit 1; }; }; } | |
a946372e AK |
12033 | else |
12034 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
12035 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
12036 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
12037 | $as_echo "yes" >&6; } | |
12038 | : | |
12039 | fi | |
90c80887 | 12040 | fi |
a946372e AK |
12041 | fi |
12042 | ||
12043 | ################################################################################ | |
12044 | { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5 | |
12045 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
12046 | # Check whether --enable-debug was given. | |
12047 | if test "${enable_debug+set}" = set; then | |
12048 | enableval=$enable_debug; DEBUG=$enableval | |
12049 | else | |
12050 | DEBUG=no | |
12051 | fi | |
12052 | ||
12053 | { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5 | |
12054 | $as_echo "$DEBUG" >&6; } | |
12055 | ||
12056 | if test x$DEBUG = xyes; then | |
12057 | COPTIMISE_FLAG= | |
12058 | else | |
12059 | CSCOPE_CMD= | |
12060 | fi | |
12061 | ||
12062 | ################################################################################ | |
12063 | { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5 | |
12064 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
12065 | ||
12066 | # Check whether --with-optimisation was given. | |
12067 | if test "${with_optimisation+set}" = set; then | |
12068 | withval=$with_optimisation; COPTIMISE_FLAG="$withval" | |
12069 | fi | |
12070 | ||
12071 | { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5 | |
12072 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
12073 | ||
12074 | ################################################################################ | |
12075 | { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5 | |
12076 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
12077 | # Check whether --enable-profiling was given. | |
12078 | if test "${enable_profiling+set}" = set; then | |
5556819a | 12079 | enableval=$enable_profiling; PROFILING=$enableval |
fddafd51 | 12080 | else |
5556819a | 12081 | PROFILING=no |
fddafd51 ZK |
12082 | fi |
12083 | ||
ec6a6fbe AK |
12084 | { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5 |
12085 | $as_echo "$PROFILING" >&6; } | |
5556819a AK |
12086 | |
12087 | if test "x$PROFILING" = xyes; then | |
12088 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
12089 | # Extract the first word of "lcov", so it can be a program name with args. | |
fddafd51 | 12090 | set dummy lcov; ac_word=$2 |
ec6a6fbe AK |
12091 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12092 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 12093 | if test "${ac_cv_path_LCOV+set}" = set; then |
ec6a6fbe | 12094 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
12095 | else |
12096 | case $LCOV in | |
12097 | [\\/]* | ?:[\\/]*) | |
12098 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
12099 | ;; | |
12100 | *) | |
12101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12102 | for as_dir in $PATH | |
12103 | do | |
12104 | IFS=$as_save_IFS | |
12105 | test -z "$as_dir" && as_dir=. | |
12106 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12107 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12108 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 12109 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
12110 | break 2 |
12111 | fi | |
12112 | done | |
12113 | done | |
12114 | IFS=$as_save_IFS | |
12115 | ||
b145d876 | 12116 | test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no" |
fddafd51 ZK |
12117 | ;; |
12118 | esac | |
12119 | fi | |
12120 | LCOV=$ac_cv_path_LCOV | |
12121 | if test -n "$LCOV"; then | |
ec6a6fbe AK |
12122 | { $as_echo "$as_me:$LINENO: result: $LCOV" >&5 |
12123 | $as_echo "$LCOV" >&6; } | |
fddafd51 | 12124 | else |
ec6a6fbe AK |
12125 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12126 | $as_echo "no" >&6; } | |
fddafd51 ZK |
12127 | fi |
12128 | ||
12129 | ||
5556819a | 12130 | # Extract the first word of "genhtml", so it can be a program name with args. |
fddafd51 | 12131 | set dummy genhtml; ac_word=$2 |
ec6a6fbe AK |
12132 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12133 | $as_echo_n "checking for $ac_word... " >&6; } | |
fddafd51 | 12134 | if test "${ac_cv_path_GENHTML+set}" = set; then |
ec6a6fbe | 12135 | $as_echo_n "(cached) " >&6 |
fddafd51 ZK |
12136 | else |
12137 | case $GENHTML in | |
12138 | [\\/]* | ?:[\\/]*) | |
12139 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
12140 | ;; | |
12141 | *) | |
12142 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12143 | for as_dir in $PATH | |
12144 | do | |
12145 | IFS=$as_save_IFS | |
12146 | test -z "$as_dir" && as_dir=. | |
12147 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12148 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12149 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
ec6a6fbe | 12150 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fddafd51 ZK |
12151 | break 2 |
12152 | fi | |
12153 | done | |
12154 | done | |
12155 | IFS=$as_save_IFS | |
12156 | ||
b145d876 | 12157 | test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no" |
fddafd51 ZK |
12158 | ;; |
12159 | esac | |
12160 | fi | |
12161 | GENHTML=$ac_cv_path_GENHTML | |
12162 | if test -n "$GENHTML"; then | |
ec6a6fbe AK |
12163 | { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5 |
12164 | $as_echo "$GENHTML" >&6; } | |
fddafd51 | 12165 | else |
ec6a6fbe AK |
12166 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
12167 | $as_echo "no" >&6; } | |
fddafd51 ZK |
12168 | fi |
12169 | ||
12170 | ||
b145d876 | 12171 | if test "$LCOV" = no -o "$GENHTML" = no ; then |
ec6a6fbe AK |
12172 | { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5 |
12173 | $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;} | |
b145d876 ZK |
12174 | { (exit 1); exit 1; }; } |
12175 | fi | |
5556819a | 12176 | fi |
d0191583 JM |
12177 | |
12178 | ################################################################################ | |
ec6a6fbe AK |
12179 | { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5 |
12180 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
d0191583 JM |
12181 | # Check whether --enable-devmapper was given. |
12182 | if test "${enable_devmapper+set}" = set; then | |
12183 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
fc54be10 AK |
12184 | fi |
12185 | ||
ec6a6fbe AK |
12186 | { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5 |
12187 | $as_echo "$DEVMAPPER" >&6; } | |
d0191583 JM |
12188 | |
12189 | if test x$DEVMAPPER = xyes; then | |
ad6254c5 AK |
12190 | |
12191 | cat >>confdefs.h <<\_ACEOF | |
d0191583 | 12192 | #define DEVMAPPER_SUPPORT 1 |
ad6254c5 AK |
12193 | _ACEOF |
12194 | ||
12195 | fi | |
12196 | ||
a5f46f6a AK |
12197 | ################################################################################ |
12198 | { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5 | |
12199 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
12200 | # Check whether --enable-udev_sync was given. | |
12201 | if test "${enable_udev_sync+set}" = set; then | |
12202 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
12203 | else | |
12204 | UDEV_SYNC=no | |
12205 | fi | |
12206 | ||
12207 | { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5 | |
12208 | $as_echo "$UDEV_SYNC" >&6; } | |
12209 | ||
12210 | if test x$UDEV_SYNC = xyes; then | |
12211 | ||
12212 | cat >>confdefs.h <<\_ACEOF | |
12213 | #define UDEV_SYNC_SUPPORT 1 | |
12214 | _ACEOF | |
12215 | ||
12216 | fi | |
12217 | ||
12218 | { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5 | |
12219 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
12220 | # Check whether --enable-udev_rules was given. | |
12221 | if test "${enable_udev_rules+set}" = set; then | |
12222 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
12223 | else | |
12224 | UDEV_RULES=$UDEV_SYNC | |
12225 | fi | |
12226 | ||
12227 | { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5 | |
12228 | $as_echo "$UDEV_RULES" >&6; } | |
12229 | ||
90c80887 AK |
12230 | ################################################################################ |
12231 | ||
12232 | if test x$UDEV_SYNC = xyes; then | |
12233 | { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5 | |
12234 | $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; } | |
12235 | if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then | |
12236 | $as_echo_n "(cached) " >&6 | |
12237 | else | |
12238 | ac_check_lib_save_LIBS=$LIBS | |
12239 | LIBS="-ludev $LIBS" | |
12240 | cat >conftest.$ac_ext <<_ACEOF | |
12241 | /* confdefs.h. */ | |
12242 | _ACEOF | |
12243 | cat confdefs.h >>conftest.$ac_ext | |
12244 | cat >>conftest.$ac_ext <<_ACEOF | |
12245 | /* end confdefs.h. */ | |
12246 | ||
12247 | /* Override any GCC internal prototype to avoid an error. | |
12248 | Use char because int might match the return type of a GCC | |
12249 | builtin and then its argument prototype would still apply. */ | |
12250 | #ifdef __cplusplus | |
12251 | extern "C" | |
12252 | #endif | |
12253 | char udev_queue_get_udev_is_active (); | |
12254 | int | |
12255 | main () | |
12256 | { | |
12257 | return udev_queue_get_udev_is_active (); | |
12258 | ; | |
12259 | return 0; | |
12260 | } | |
12261 | _ACEOF | |
12262 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12263 | if { (ac_try="$ac_link" | |
12264 | case "(($ac_try" in | |
12265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12266 | *) ac_try_echo=$ac_try;; | |
12267 | esac | |
12268 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12269 | $as_echo "$ac_try_echo") >&5 | |
12270 | (eval "$ac_link") 2>conftest.er1 | |
12271 | ac_status=$? | |
12272 | grep -v '^ *+' conftest.er1 >conftest.err | |
12273 | rm -f conftest.er1 | |
12274 | cat conftest.err >&5 | |
12275 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12276 | (exit $ac_status); } && { | |
12277 | test -z "$ac_c_werror_flag" || | |
12278 | test ! -s conftest.err | |
12279 | } && test -s conftest$ac_exeext && { | |
12280 | test "$cross_compiling" = yes || | |
12281 | $as_test_x conftest$ac_exeext | |
12282 | }; then | |
12283 | ac_cv_lib_udev_udev_queue_get_udev_is_active=yes | |
12284 | else | |
12285 | $as_echo "$as_me: failed program was:" >&5 | |
12286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12287 | ||
12288 | ac_cv_lib_udev_udev_queue_get_udev_is_active=no | |
12289 | fi | |
12290 | ||
12291 | rm -rf conftest.dSYM | |
12292 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12293 | conftest$ac_exeext conftest.$ac_ext | |
12294 | LIBS=$ac_check_lib_save_LIBS | |
12295 | fi | |
12296 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5 | |
12297 | $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; } | |
12298 | if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then | |
12299 | HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=yes | |
12300 | else | |
12301 | HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=no | |
12302 | fi | |
12303 | ||
12304 | ||
12305 | if test x$HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE = xyes; then | |
12306 | ||
12307 | cat >>confdefs.h <<\_ACEOF | |
12308 | #define HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE 1 | |
12309 | _ACEOF | |
12310 | ||
db724a44 | 12311 | UDEV_LIBS="-ludev" |
0878503f | 12312 | else |
db724a44 | 12313 | UDEV_LIBS= |
0878503f PR |
12314 | { $as_echo "$as_me:$LINENO: WARNING: It won't be possible to get udev state. We will assume that udev is not running." >&5 |
12315 | $as_echo "$as_me: WARNING: It won't be possible to get udev state. We will assume that udev is not running." >&2;} | |
90c80887 AK |
12316 | fi |
12317 | fi | |
12318 | ||
93bd259b AK |
12319 | ################################################################################ |
12320 | # Check whether --enable-compat was given. | |
12321 | if test "${enable_compat+set}" = set; then | |
12322 | enableval=$enable_compat; DM_COMPAT=$enableval | |
12323 | else | |
12324 | DM_COMPAT=no | |
12325 | fi | |
12326 | ||
12327 | ||
95eaa683 AK |
12328 | ################################################################################ |
12329 | # Check whether --enable-units-compat was given. | |
12330 | if test "${enable_units_compat+set}" = set; then | |
12331 | enableval=$enable_units_compat; UNITS_COMPAT=$enableval | |
12332 | else | |
12333 | UNITS_COMPAT=no | |
12334 | fi | |
12335 | ||
12336 | ||
12337 | if test x$UNITS_COMPAT = xyes; then | |
12338 | ||
12339 | cat >>confdefs.h <<\_ACEOF | |
12340 | #define DEFAULT_SI_UNIT_CONSISTENCY 0 | |
12341 | _ACEOF | |
12342 | ||
12343 | fi | |
12344 | ||
93bd259b AK |
12345 | ################################################################################ |
12346 | # Check whether --enable-ioctl was given. | |
12347 | if test "${enable_ioctl+set}" = set; then | |
12348 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
12349 | fi | |
12350 | ||
12351 | ||
d0191583 | 12352 | ################################################################################ |
ec6a6fbe AK |
12353 | { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5 |
12354 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
d0191583 JM |
12355 | # Check whether --enable-o_direct was given. |
12356 | if test "${enable_o_direct+set}" = set; then | |
12357 | enableval=$enable_o_direct; ODIRECT=$enableval | |
ad6254c5 | 12358 | fi |
ad6254c5 | 12359 | |
ec6a6fbe AK |
12360 | { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5 |
12361 | $as_echo "$ODIRECT" >&6; } | |
ad6254c5 | 12362 | |
d0191583 | 12363 | if test x$ODIRECT = xyes; then |
ad6254c5 | 12364 | |
d0191583 JM |
12365 | cat >>confdefs.h <<\_ACEOF |
12366 | #define O_DIRECT_SUPPORT 1 | |
12367 | _ACEOF | |
ad6254c5 | 12368 | |
d0191583 | 12369 | fi |
ad6254c5 | 12370 | |
572fefeb AK |
12371 | ################################################################################ |
12372 | { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5 | |
12373 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
12374 | # Check whether --enable-applib was given. | |
12375 | if test "${enable_applib+set}" = set; then | |
12376 | enableval=$enable_applib; APPLIB=$enableval | |
12377 | else | |
12378 | APPLIB=no | |
12379 | fi | |
12380 | ||
12381 | { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5 | |
12382 | $as_echo "$APPLIB" >&6; } | |
12383 | ||
12384 | test x$APPLIB = xyes \ | |
12385 | && LVM2APP_LIB=-llvm2app \ | |
12386 | || LVM2APP_LIB= | |
12387 | ||
d0191583 | 12388 | ################################################################################ |
ec6a6fbe AK |
12389 | { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5 |
12390 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
d0191583 JM |
12391 | # Check whether --enable-cmdlib was given. |
12392 | if test "${enable_cmdlib+set}" = set; then | |
12393 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
ad6254c5 | 12394 | else |
d0191583 JM |
12395 | CMDLIB=no |
12396 | fi | |
8a2fc586 | 12397 | |
ec6a6fbe AK |
12398 | { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5 |
12399 | $as_echo "$CMDLIB" >&6; } | |
8a2fc586 | 12400 | |
2a9a80c9 | 12401 | test x$CMDLIB = xyes \ |
d179cc7a JM |
12402 | && LVM2CMD_LIB=-llvm2cmd \ |
12403 | || LVM2CMD_LIB= | |
12404 | ||
93bd259b AK |
12405 | ################################################################################ |
12406 | # Check whether --enable-pkgconfig was given. | |
12407 | if test "${enable_pkgconfig+set}" = set; then | |
12408 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
12409 | else | |
12410 | PKGCONFIG=no | |
12411 | fi | |
12412 | ||
2a9a80c9 | 12413 | |
d0191583 | 12414 | ################################################################################ |
ec6a6fbe AK |
12415 | { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5 |
12416 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
d0191583 JM |
12417 | # Check whether --enable-fsadm was given. |
12418 | if test "${enable_fsadm+set}" = set; then | |
12419 | enableval=$enable_fsadm; FSADM=$enableval | |
12420 | fi | |
8a2fc586 | 12421 | |
ec6a6fbe AK |
12422 | { $as_echo "$as_me:$LINENO: result: $FSADM" >&5 |
12423 | $as_echo "$FSADM" >&6; } | |
8a2fc586 | 12424 | |
d0191583 | 12425 | ################################################################################ |
ec6a6fbe AK |
12426 | { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5 |
12427 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
d0191583 JM |
12428 | # Check whether --enable-dmeventd was given. |
12429 | if test "${enable_dmeventd+set}" = set; then | |
12430 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
12431 | fi | |
ad6254c5 | 12432 | |
ec6a6fbe AK |
12433 | { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5 |
12434 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 12435 | |
93bd259b AK |
12436 | BUILD_DMEVENTD=$DMEVENTD |
12437 | ||
2a9a80c9 PR |
12438 | if test x$DMEVENTD = xyes; then |
12439 | if test x$MIRRORS != xinternal; then | |
ec6a6fbe | 12440 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 12441 | " >&5 |
ec6a6fbe | 12442 | $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal |
2a9a80c9 | 12443 | " >&2;} |
d0191583 | 12444 | { (exit 1); exit 1; }; } |
2a9a80c9 PR |
12445 | fi |
12446 | if test x$CMDLIB = xno; then | |
ec6a6fbe | 12447 | { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 | 12448 | " >&5 |
ec6a6fbe | 12449 | $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well |
2a9a80c9 PR |
12450 | " >&2;} |
12451 | { (exit 1); exit 1; }; } | |
12452 | fi | |
ad6254c5 | 12453 | fi |
7a197a62 | 12454 | |
d0191583 JM |
12455 | if test x$DMEVENTD = xyes; then |
12456 | ||
12457 | cat >>confdefs.h <<\_ACEOF | |
12458 | #define DMEVENTD 1 | |
ad6254c5 AK |
12459 | _ACEOF |
12460 | ||
ad6254c5 | 12461 | fi |
93bd259b AK |
12462 | |
12463 | ################################################################################ | |
12464 | ||
ec6a6fbe AK |
12465 | { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5 |
12466 | $as_echo_n "checking for getline in -lc... " >&6; } | |
93bd259b | 12467 | if test "${ac_cv_lib_c_getline+set}" = set; then |
ec6a6fbe | 12468 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
12469 | else |
12470 | ac_check_lib_save_LIBS=$LIBS | |
12471 | LIBS="-lc $LIBS" | |
12472 | cat >conftest.$ac_ext <<_ACEOF | |
12473 | /* confdefs.h. */ | |
12474 | _ACEOF | |
12475 | cat confdefs.h >>conftest.$ac_ext | |
12476 | cat >>conftest.$ac_ext <<_ACEOF | |
12477 | /* end confdefs.h. */ | |
12478 | ||
12479 | /* Override any GCC internal prototype to avoid an error. | |
12480 | Use char because int might match the return type of a GCC | |
12481 | builtin and then its argument prototype would still apply. */ | |
12482 | #ifdef __cplusplus | |
12483 | extern "C" | |
12484 | #endif | |
12485 | char getline (); | |
12486 | int | |
12487 | main () | |
12488 | { | |
12489 | return getline (); | |
12490 | ; | |
12491 | return 0; | |
12492 | } | |
12493 | _ACEOF | |
12494 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12495 | if { (ac_try="$ac_link" | |
12496 | case "(($ac_try" in | |
12497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12498 | *) ac_try_echo=$ac_try;; | |
12499 | esac | |
ec6a6fbe AK |
12500 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12501 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
12502 | (eval "$ac_link") 2>conftest.er1 |
12503 | ac_status=$? | |
12504 | grep -v '^ *+' conftest.er1 >conftest.err | |
12505 | rm -f conftest.er1 | |
12506 | cat conftest.err >&5 | |
ec6a6fbe | 12507 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
12508 | (exit $ac_status); } && { |
12509 | test -z "$ac_c_werror_flag" || | |
12510 | test ! -s conftest.err | |
ec6a6fbe AK |
12511 | } && test -s conftest$ac_exeext && { |
12512 | test "$cross_compiling" = yes || | |
12513 | $as_test_x conftest$ac_exeext | |
12514 | }; then | |
93bd259b AK |
12515 | ac_cv_lib_c_getline=yes |
12516 | else | |
ec6a6fbe | 12517 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
12518 | sed 's/^/| /' conftest.$ac_ext >&5 |
12519 | ||
12520 | ac_cv_lib_c_getline=no | |
12521 | fi | |
12522 | ||
ec6a6fbe | 12523 | rm -rf conftest.dSYM |
93bd259b AK |
12524 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
12525 | conftest$ac_exeext conftest.$ac_ext | |
12526 | LIBS=$ac_check_lib_save_LIBS | |
12527 | fi | |
ec6a6fbe AK |
12528 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5 |
12529 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
12530 | if test "x$ac_cv_lib_c_getline" = x""yes; then | |
93bd259b AK |
12531 | |
12532 | cat >>confdefs.h <<\_ACEOF | |
12533 | #define HAVE_GETLINE 1 | |
12534 | _ACEOF | |
12535 | ||
12536 | fi | |
12537 | ||
12538 | ||
12539 | ################################################################################ | |
12540 | ||
ec6a6fbe AK |
12541 | { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5 |
12542 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
93bd259b | 12543 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then |
ec6a6fbe | 12544 | $as_echo_n "(cached) " >&6 |
93bd259b AK |
12545 | else |
12546 | ac_check_lib_save_LIBS=$LIBS | |
12547 | LIBS="-lc $LIBS" | |
12548 | cat >conftest.$ac_ext <<_ACEOF | |
12549 | /* confdefs.h. */ | |
12550 | _ACEOF | |
12551 | cat confdefs.h >>conftest.$ac_ext | |
12552 | cat >>conftest.$ac_ext <<_ACEOF | |
12553 | /* end confdefs.h. */ | |
12554 | ||
12555 | /* Override any GCC internal prototype to avoid an error. | |
12556 | Use char because int might match the return type of a GCC | |
12557 | builtin and then its argument prototype would still apply. */ | |
12558 | #ifdef __cplusplus | |
12559 | extern "C" | |
12560 | #endif | |
12561 | char canonicalize_file_name (); | |
12562 | int | |
12563 | main () | |
12564 | { | |
12565 | return canonicalize_file_name (); | |
12566 | ; | |
12567 | return 0; | |
12568 | } | |
12569 | _ACEOF | |
12570 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12571 | if { (ac_try="$ac_link" | |
12572 | case "(($ac_try" in | |
12573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12574 | *) ac_try_echo=$ac_try;; | |
12575 | esac | |
ec6a6fbe AK |
12576 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12577 | $as_echo "$ac_try_echo") >&5 | |
93bd259b AK |
12578 | (eval "$ac_link") 2>conftest.er1 |
12579 | ac_status=$? | |
12580 | grep -v '^ *+' conftest.er1 >conftest.err | |
12581 | rm -f conftest.er1 | |
12582 | cat conftest.err >&5 | |
ec6a6fbe | 12583 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
93bd259b AK |
12584 | (exit $ac_status); } && { |
12585 | test -z "$ac_c_werror_flag" || | |
12586 | test ! -s conftest.err | |
ec6a6fbe AK |
12587 | } && test -s conftest$ac_exeext && { |
12588 | test "$cross_compiling" = yes || | |
12589 | $as_test_x conftest$ac_exeext | |
12590 | }; then | |
93bd259b AK |
12591 | ac_cv_lib_c_canonicalize_file_name=yes |
12592 | else | |
ec6a6fbe | 12593 | $as_echo "$as_me: failed program was:" >&5 |
93bd259b AK |
12594 | sed 's/^/| /' conftest.$ac_ext >&5 |
12595 | ||
12596 | ac_cv_lib_c_canonicalize_file_name=no | |
12597 | fi | |
12598 | ||
ec6a6fbe | 12599 | rm -rf conftest.dSYM |
93bd259b AK |
12600 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
12601 | conftest$ac_exeext conftest.$ac_ext | |
12602 | LIBS=$ac_check_lib_save_LIBS | |
12603 | fi | |
ec6a6fbe AK |
12604 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5 |
12605 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
12606 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then | |
93bd259b AK |
12607 | |
12608 | cat >>confdefs.h <<\_ACEOF | |
12609 | #define HAVE_CANONICALIZE_FILE_NAME 1 | |
12610 | _ACEOF | |
12611 | ||
12612 | fi | |
12613 | ||
12614 | ||
d0191583 JM |
12615 | ################################################################################ |
12616 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
12617 | then exec_prefix=""; | |
12618 | fi; | |
ad6254c5 | 12619 | |
ad6254c5 | 12620 | ################################################################################ |
ec6a6fbe AK |
12621 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
12622 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
ad6254c5 | 12623 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
ec6a6fbe | 12624 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
12625 | else |
12626 | ac_check_lib_save_LIBS=$LIBS | |
12627 | LIBS="-ldl $LIBS" | |
12628 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
12629 | /* confdefs.h. */ |
12630 | _ACEOF | |
12631 | cat confdefs.h >>conftest.$ac_ext | |
12632 | cat >>conftest.$ac_ext <<_ACEOF | |
12633 | /* end confdefs.h. */ | |
12634 | ||
7a197a62 AK |
12635 | /* Override any GCC internal prototype to avoid an error. |
12636 | Use char because int might match the return type of a GCC | |
12637 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
12638 | #ifdef __cplusplus |
12639 | extern "C" | |
12640 | #endif | |
ad6254c5 AK |
12641 | char dlopen (); |
12642 | int | |
12643 | main () | |
12644 | { | |
7a197a62 | 12645 | return dlopen (); |
ad6254c5 AK |
12646 | ; |
12647 | return 0; | |
12648 | } | |
12649 | _ACEOF | |
12650 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12651 | if { (ac_try="$ac_link" |
12652 | case "(($ac_try" in | |
12653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12654 | *) ac_try_echo=$ac_try;; | |
12655 | esac | |
ec6a6fbe AK |
12656 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12657 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12658 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 12659 | ac_status=$? |
8a2fc586 AK |
12660 | grep -v '^ *+' conftest.er1 >conftest.err |
12661 | rm -f conftest.er1 | |
12662 | cat conftest.err >&5 | |
ec6a6fbe | 12663 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12664 | (exit $ac_status); } && { |
12665 | test -z "$ac_c_werror_flag" || | |
12666 | test ! -s conftest.err | |
ec6a6fbe AK |
12667 | } && test -s conftest$ac_exeext && { |
12668 | test "$cross_compiling" = yes || | |
12669 | $as_test_x conftest$ac_exeext | |
12670 | }; then | |
ad6254c5 AK |
12671 | ac_cv_lib_dl_dlopen=yes |
12672 | else | |
ec6a6fbe | 12673 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12674 | sed 's/^/| /' conftest.$ac_ext >&5 |
12675 | ||
7a197a62 | 12676 | ac_cv_lib_dl_dlopen=no |
ad6254c5 | 12677 | fi |
7a197a62 | 12678 | |
ec6a6fbe | 12679 | rm -rf conftest.dSYM |
25fbec5b | 12680 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 12681 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
12682 | LIBS=$ac_check_lib_save_LIBS |
12683 | fi | |
ec6a6fbe AK |
12684 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
12685 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12686 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then | |
ad6254c5 | 12687 | |
72b2cb61 AK |
12688 | |
12689 | cat >>confdefs.h <<\_ACEOF | |
12690 | #define HAVE_LIBDL 1 | |
12691 | _ACEOF | |
12692 | ||
19a2c6e0 ZK |
12693 | DL_LIBS="-ldl" |
12694 | HAVE_LIBDL=yes | |
ad6254c5 | 12695 | else |
19a2c6e0 ZK |
12696 | |
12697 | DL_LIBS= | |
ad6254c5 AK |
12698 | HAVE_LIBDL=no |
12699 | fi | |
12700 | ||
19a2c6e0 | 12701 | |
ad6254c5 AK |
12702 | ################################################################################ |
12703 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
12704 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
12705 | \) -a "x$STATIC_LINK" = xyes ]; | |
ec6a6fbe | 12706 | then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically |
ad6254c5 | 12707 | " >&5 |
ec6a6fbe | 12708 | $as_echo "$as_me: error: Features cannot be 'shared' when building statically |
ad6254c5 AK |
12709 | " >&2;} |
12710 | { (exit 1); exit 1; }; } | |
12711 | fi | |
12712 | ||
f30875db ZK |
12713 | ################################################################################ |
12714 | if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then | |
12715 | { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5 | |
12716 | $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } | |
12717 | if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then | |
12718 | $as_echo_n "(cached) " >&6 | |
12719 | else | |
12720 | ac_check_lib_save_LIBS=$LIBS | |
12721 | LIBS="-lpthread $LIBS" | |
12722 | cat >conftest.$ac_ext <<_ACEOF | |
12723 | /* confdefs.h. */ | |
12724 | _ACEOF | |
12725 | cat confdefs.h >>conftest.$ac_ext | |
12726 | cat >>conftest.$ac_ext <<_ACEOF | |
12727 | /* end confdefs.h. */ | |
12728 | ||
12729 | /* Override any GCC internal prototype to avoid an error. | |
12730 | Use char because int might match the return type of a GCC | |
12731 | builtin and then its argument prototype would still apply. */ | |
12732 | #ifdef __cplusplus | |
12733 | extern "C" | |
12734 | #endif | |
12735 | char pthread_mutex_lock (); | |
12736 | int | |
12737 | main () | |
12738 | { | |
12739 | return pthread_mutex_lock (); | |
12740 | ; | |
12741 | return 0; | |
12742 | } | |
12743 | _ACEOF | |
12744 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12745 | if { (ac_try="$ac_link" | |
12746 | case "(($ac_try" in | |
12747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12748 | *) ac_try_echo=$ac_try;; | |
12749 | esac | |
12750 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
12751 | $as_echo "$ac_try_echo") >&5 | |
12752 | (eval "$ac_link") 2>conftest.er1 | |
12753 | ac_status=$? | |
12754 | grep -v '^ *+' conftest.er1 >conftest.err | |
12755 | rm -f conftest.er1 | |
12756 | cat conftest.err >&5 | |
12757 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12758 | (exit $ac_status); } && { | |
12759 | test -z "$ac_c_werror_flag" || | |
12760 | test ! -s conftest.err | |
12761 | } && test -s conftest$ac_exeext && { | |
12762 | test "$cross_compiling" = yes || | |
12763 | $as_test_x conftest$ac_exeext | |
12764 | }; then | |
12765 | ac_cv_lib_pthread_pthread_mutex_lock=yes | |
12766 | else | |
12767 | $as_echo "$as_me: failed program was:" >&5 | |
12768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12769 | ||
12770 | ac_cv_lib_pthread_pthread_mutex_lock=no | |
12771 | fi | |
12772 | ||
12773 | rm -rf conftest.dSYM | |
12774 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12775 | conftest$ac_exeext conftest.$ac_ext | |
12776 | LIBS=$ac_check_lib_save_LIBS | |
12777 | fi | |
12778 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 | |
12779 | $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } | |
12780 | if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then | |
12781 | PTHREAD_LIBS="-lpthread" | |
12782 | else | |
12783 | hard_bailout | |
12784 | fi | |
12785 | ||
12786 | fi | |
12787 | ||
d0191583 | 12788 | ################################################################################ |
ec6a6fbe AK |
12789 | { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5 |
12790 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
d0191583 JM |
12791 | # Check whether --enable-selinux was given. |
12792 | if test "${enable_selinux+set}" = set; then | |
12793 | enableval=$enable_selinux; SELINUX=$enableval | |
12794 | fi | |
12795 | ||
ec6a6fbe AK |
12796 | { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5 |
12797 | $as_echo "$SELINUX" >&6; } | |
d0191583 | 12798 | |
ad6254c5 AK |
12799 | ################################################################################ |
12800 | if test x$SELINUX = xyes; then | |
ec6a6fbe AK |
12801 | { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5 |
12802 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
8a2fc586 | 12803 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then |
ec6a6fbe | 12804 | $as_echo_n "(cached) " >&6 |
8a2fc586 AK |
12805 | else |
12806 | ac_check_lib_save_LIBS=$LIBS | |
12807 | LIBS="-lsepol $LIBS" | |
12808 | cat >conftest.$ac_ext <<_ACEOF | |
12809 | /* confdefs.h. */ | |
12810 | _ACEOF | |
12811 | cat confdefs.h >>conftest.$ac_ext | |
12812 | cat >>conftest.$ac_ext <<_ACEOF | |
12813 | /* end confdefs.h. */ | |
12814 | ||
7a197a62 AK |
12815 | /* Override any GCC internal prototype to avoid an error. |
12816 | Use char because int might match the return type of a GCC | |
12817 | builtin and then its argument prototype would still apply. */ | |
8a2fc586 AK |
12818 | #ifdef __cplusplus |
12819 | extern "C" | |
12820 | #endif | |
8a2fc586 AK |
12821 | char sepol_check_context (); |
12822 | int | |
12823 | main () | |
12824 | { | |
7a197a62 | 12825 | return sepol_check_context (); |
8a2fc586 AK |
12826 | ; |
12827 | return 0; | |
12828 | } | |
12829 | _ACEOF | |
12830 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12831 | if { (ac_try="$ac_link" |
12832 | case "(($ac_try" in | |
12833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12834 | *) ac_try_echo=$ac_try;; | |
12835 | esac | |
ec6a6fbe AK |
12836 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12837 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12838 | (eval "$ac_link") 2>conftest.er1 |
8a2fc586 AK |
12839 | ac_status=$? |
12840 | grep -v '^ *+' conftest.er1 >conftest.err | |
12841 | rm -f conftest.er1 | |
12842 | cat conftest.err >&5 | |
ec6a6fbe | 12843 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12844 | (exit $ac_status); } && { |
12845 | test -z "$ac_c_werror_flag" || | |
12846 | test ! -s conftest.err | |
ec6a6fbe AK |
12847 | } && test -s conftest$ac_exeext && { |
12848 | test "$cross_compiling" = yes || | |
12849 | $as_test_x conftest$ac_exeext | |
12850 | }; then | |
8a2fc586 AK |
12851 | ac_cv_lib_sepol_sepol_check_context=yes |
12852 | else | |
ec6a6fbe | 12853 | $as_echo "$as_me: failed program was:" >&5 |
8a2fc586 AK |
12854 | sed 's/^/| /' conftest.$ac_ext >&5 |
12855 | ||
7a197a62 | 12856 | ac_cv_lib_sepol_sepol_check_context=no |
8a2fc586 | 12857 | fi |
7a197a62 | 12858 | |
ec6a6fbe | 12859 | rm -rf conftest.dSYM |
25fbec5b | 12860 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 AK |
12861 | conftest$ac_exeext conftest.$ac_ext |
12862 | LIBS=$ac_check_lib_save_LIBS | |
12863 | fi | |
ec6a6fbe AK |
12864 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
12865 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
12866 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then | |
8a2fc586 | 12867 | |
d0191583 JM |
12868 | |
12869 | cat >>confdefs.h <<\_ACEOF | |
12870 | #define HAVE_SEPOL 1 | |
12871 | _ACEOF | |
12872 | ||
f8f6ec92 ZK |
12873 | SELINUX_LIBS="-lsepol" |
12874 | fi | |
12875 | ||
8a2fc586 | 12876 | |
ec6a6fbe AK |
12877 | { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
12878 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
ad6254c5 | 12879 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
ec6a6fbe | 12880 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
12881 | else |
12882 | ac_check_lib_save_LIBS=$LIBS | |
12883 | LIBS="-lselinux $LIBS" | |
12884 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
12885 | /* confdefs.h. */ |
12886 | _ACEOF | |
12887 | cat confdefs.h >>conftest.$ac_ext | |
12888 | cat >>conftest.$ac_ext <<_ACEOF | |
12889 | /* end confdefs.h. */ | |
12890 | ||
7a197a62 AK |
12891 | /* Override any GCC internal prototype to avoid an error. |
12892 | Use char because int might match the return type of a GCC | |
12893 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
12894 | #ifdef __cplusplus |
12895 | extern "C" | |
12896 | #endif | |
ad6254c5 AK |
12897 | char is_selinux_enabled (); |
12898 | int | |
12899 | main () | |
12900 | { | |
7a197a62 | 12901 | return is_selinux_enabled (); |
ad6254c5 AK |
12902 | ; |
12903 | return 0; | |
12904 | } | |
12905 | _ACEOF | |
12906 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
12907 | if { (ac_try="$ac_link" |
12908 | case "(($ac_try" in | |
12909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12910 | *) ac_try_echo=$ac_try;; | |
12911 | esac | |
ec6a6fbe AK |
12912 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12913 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 12914 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 12915 | ac_status=$? |
8a2fc586 AK |
12916 | grep -v '^ *+' conftest.er1 >conftest.err |
12917 | rm -f conftest.er1 | |
12918 | cat conftest.err >&5 | |
ec6a6fbe | 12919 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12920 | (exit $ac_status); } && { |
12921 | test -z "$ac_c_werror_flag" || | |
12922 | test ! -s conftest.err | |
ec6a6fbe AK |
12923 | } && test -s conftest$ac_exeext && { |
12924 | test "$cross_compiling" = yes || | |
12925 | $as_test_x conftest$ac_exeext | |
12926 | }; then | |
ad6254c5 AK |
12927 | ac_cv_lib_selinux_is_selinux_enabled=yes |
12928 | else | |
ec6a6fbe | 12929 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
12930 | sed 's/^/| /' conftest.$ac_ext >&5 |
12931 | ||
7a197a62 | 12932 | ac_cv_lib_selinux_is_selinux_enabled=no |
ad6254c5 | 12933 | fi |
7a197a62 | 12934 | |
ec6a6fbe | 12935 | rm -rf conftest.dSYM |
25fbec5b | 12936 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 12937 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
12938 | LIBS=$ac_check_lib_save_LIBS |
12939 | fi | |
ec6a6fbe AK |
12940 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
12941 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
12942 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then | |
ad6254c5 | 12943 | |
72b2cb61 | 12944 | |
f8f6ec92 ZK |
12945 | for ac_header in selinux/selinux.h |
12946 | do | |
12947 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12948 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
12949 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12950 | $as_echo_n "checking for $ac_header... " >&6; } | |
12951 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ec6a6fbe | 12952 | $as_echo_n "(cached) " >&6 |
f8f6ec92 ZK |
12953 | fi |
12954 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
12955 | $as_echo "$as_val"'` | |
12956 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12957 | $as_echo "$ac_res" >&6; } | |
66e941e8 | 12958 | else |
f8f6ec92 ZK |
12959 | # Is the header compilable? |
12960 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12961 | $as_echo_n "checking $ac_header usability... " >&6; } | |
66e941e8 JM |
12962 | cat >conftest.$ac_ext <<_ACEOF |
12963 | /* confdefs.h. */ | |
12964 | _ACEOF | |
12965 | cat confdefs.h >>conftest.$ac_ext | |
12966 | cat >>conftest.$ac_ext <<_ACEOF | |
12967 | /* end confdefs.h. */ | |
f8f6ec92 ZK |
12968 | $ac_includes_default |
12969 | #include <$ac_header> | |
66e941e8 | 12970 | _ACEOF |
f8f6ec92 ZK |
12971 | rm -f conftest.$ac_objext |
12972 | if { (ac_try="$ac_compile" | |
66e941e8 JM |
12973 | case "(($ac_try" in |
12974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12975 | *) ac_try_echo=$ac_try;; | |
12976 | esac | |
ec6a6fbe AK |
12977 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
12978 | $as_echo "$ac_try_echo") >&5 | |
f8f6ec92 | 12979 | (eval "$ac_compile") 2>conftest.er1 |
66e941e8 JM |
12980 | ac_status=$? |
12981 | grep -v '^ *+' conftest.er1 >conftest.err | |
12982 | rm -f conftest.er1 | |
12983 | cat conftest.err >&5 | |
ec6a6fbe | 12984 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
12985 | (exit $ac_status); } && { |
12986 | test -z "$ac_c_werror_flag" || | |
12987 | test ! -s conftest.err | |
f8f6ec92 ZK |
12988 | } && test -s conftest.$ac_objext; then |
12989 | ac_header_compiler=yes | |
12990 | else | |
12991 | $as_echo "$as_me: failed program was:" >&5 | |
12992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12993 | ||
12994 | ac_header_compiler=no | |
12995 | fi | |
12996 | ||
12997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12998 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12999 | $as_echo "$ac_header_compiler" >&6; } | |
13000 | ||
13001 | # Is the header present? | |
13002 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13003 | $as_echo_n "checking $ac_header presence... " >&6; } | |
13004 | cat >conftest.$ac_ext <<_ACEOF | |
13005 | /* confdefs.h. */ | |
13006 | _ACEOF | |
13007 | cat confdefs.h >>conftest.$ac_ext | |
13008 | cat >>conftest.$ac_ext <<_ACEOF | |
13009 | /* end confdefs.h. */ | |
13010 | #include <$ac_header> | |
13011 | _ACEOF | |
13012 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
13013 | case "(($ac_try" in | |
13014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13015 | *) ac_try_echo=$ac_try;; | |
13016 | esac | |
13017 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13018 | $as_echo "$ac_try_echo") >&5 | |
13019 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
13020 | ac_status=$? | |
13021 | grep -v '^ *+' conftest.er1 >conftest.err | |
13022 | rm -f conftest.er1 | |
13023 | cat conftest.err >&5 | |
13024 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13025 | (exit $ac_status); } >/dev/null && { | |
13026 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13027 | test ! -s conftest.err | |
ec6a6fbe | 13028 | }; then |
f8f6ec92 | 13029 | ac_header_preproc=yes |
66e941e8 | 13030 | else |
ec6a6fbe | 13031 | $as_echo "$as_me: failed program was:" >&5 |
66e941e8 JM |
13032 | sed 's/^/| /' conftest.$ac_ext >&5 |
13033 | ||
f8f6ec92 ZK |
13034 | ac_header_preproc=no |
13035 | fi | |
13036 | ||
13037 | rm -f conftest.err conftest.$ac_ext | |
13038 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13039 | $as_echo "$ac_header_preproc" >&6; } | |
13040 | ||
13041 | # So? What about this header? | |
13042 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13043 | yes:no: ) | |
13044 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13045 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13046 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13047 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13048 | ac_header_preproc=yes | |
13049 | ;; | |
13050 | no:yes:* ) | |
13051 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13052 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13053 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13054 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13055 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13056 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13057 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13058 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13059 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13060 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13061 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13062 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
66e941e8 | 13063 | |
f8f6ec92 ZK |
13064 | ;; |
13065 | esac | |
13066 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13067 | $as_echo_n "checking for $ac_header... " >&6; } | |
13068 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
13069 | $as_echo_n "(cached) " >&6 | |
13070 | else | |
13071 | eval "$as_ac_Header=\$ac_header_preproc" | |
66e941e8 | 13072 | fi |
f8f6ec92 ZK |
13073 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13074 | $as_echo "$as_val"'` | |
13075 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13076 | $as_echo "$ac_res" >&6; } | |
66e941e8 | 13077 | |
66e941e8 | 13078 | fi |
f8f6ec92 ZK |
13079 | as_val=`eval 'as_val=${'$as_ac_Header'} |
13080 | $as_echo "$as_val"'` | |
13081 | if test "x$as_val" = x""yes; then | |
13082 | cat >>confdefs.h <<_ACEOF | |
13083 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13084 | _ACEOF | |
13085 | ||
66e941e8 | 13086 | else |
f8f6ec92 | 13087 | hard_bailout |
66e941e8 | 13088 | fi |
f8f6ec92 ZK |
13089 | |
13090 | done | |
13091 | ||
13092 | ||
13093 | cat >>confdefs.h <<\_ACEOF | |
13094 | #define HAVE_SELINUX 1 | |
13095 | _ACEOF | |
13096 | ||
13097 | SELINUX_LIBS="-lselinux $SELINUX_LIBS" | |
13098 | HAVE_SELINUX=yes | |
13099 | else | |
13100 | ||
13101 | { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5 | |
13102 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
13103 | SELINUX_LIBS= | |
13104 | HAVE_SELINUX=no | |
66e941e8 JM |
13105 | fi |
13106 | ||
ad6254c5 AK |
13107 | fi |
13108 | ||
8b1a3214 AK |
13109 | ################################################################################ |
13110 | if test x$REALTIME = xyes; then | |
ec6a6fbe AK |
13111 | { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
13112 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
8b1a3214 | 13113 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
ec6a6fbe | 13114 | $as_echo_n "(cached) " >&6 |
8b1a3214 AK |
13115 | else |
13116 | ac_check_lib_save_LIBS=$LIBS | |
13117 | LIBS="-lrt $LIBS" | |
13118 | cat >conftest.$ac_ext <<_ACEOF | |
13119 | /* confdefs.h. */ | |
13120 | _ACEOF | |
13121 | cat confdefs.h >>conftest.$ac_ext | |
13122 | cat >>conftest.$ac_ext <<_ACEOF | |
13123 | /* end confdefs.h. */ | |
13124 | ||
7a197a62 AK |
13125 | /* Override any GCC internal prototype to avoid an error. |
13126 | Use char because int might match the return type of a GCC | |
13127 | builtin and then its argument prototype would still apply. */ | |
8b1a3214 AK |
13128 | #ifdef __cplusplus |
13129 | extern "C" | |
13130 | #endif | |
8b1a3214 AK |
13131 | char clock_gettime (); |
13132 | int | |
13133 | main () | |
13134 | { | |
7a197a62 | 13135 | return clock_gettime (); |
8b1a3214 AK |
13136 | ; |
13137 | return 0; | |
13138 | } | |
13139 | _ACEOF | |
13140 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13141 | if { (ac_try="$ac_link" |
13142 | case "(($ac_try" in | |
13143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13144 | *) ac_try_echo=$ac_try;; | |
13145 | esac | |
ec6a6fbe AK |
13146 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13147 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13148 | (eval "$ac_link") 2>conftest.er1 |
8b1a3214 AK |
13149 | ac_status=$? |
13150 | grep -v '^ *+' conftest.er1 >conftest.err | |
13151 | rm -f conftest.er1 | |
13152 | cat conftest.err >&5 | |
ec6a6fbe | 13153 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13154 | (exit $ac_status); } && { |
13155 | test -z "$ac_c_werror_flag" || | |
13156 | test ! -s conftest.err | |
ec6a6fbe AK |
13157 | } && test -s conftest$ac_exeext && { |
13158 | test "$cross_compiling" = yes || | |
13159 | $as_test_x conftest$ac_exeext | |
13160 | }; then | |
8b1a3214 AK |
13161 | ac_cv_lib_rt_clock_gettime=yes |
13162 | else | |
ec6a6fbe | 13163 | $as_echo "$as_me: failed program was:" >&5 |
8b1a3214 AK |
13164 | sed 's/^/| /' conftest.$ac_ext >&5 |
13165 | ||
7a197a62 | 13166 | ac_cv_lib_rt_clock_gettime=no |
8b1a3214 | 13167 | fi |
7a197a62 | 13168 | |
ec6a6fbe | 13169 | rm -rf conftest.dSYM |
25fbec5b | 13170 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8b1a3214 AK |
13171 | conftest$ac_exeext conftest.$ac_ext |
13172 | LIBS=$ac_check_lib_save_LIBS | |
13173 | fi | |
ec6a6fbe AK |
13174 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
13175 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
13176 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then | |
8b1a3214 AK |
13177 | HAVE_REALTIME=yes |
13178 | else | |
13179 | HAVE_REALTIME=no | |
13180 | fi | |
13181 | ||
8b1a3214 AK |
13182 | |
13183 | if test x$HAVE_REALTIME = xyes; then | |
13184 | ||
13185 | cat >>confdefs.h <<\_ACEOF | |
13186 | #define HAVE_REALTIME 1 | |
13187 | _ACEOF | |
13188 | ||
13189 | LIBS="-lrt $LIBS" | |
13190 | else | |
ec6a6fbe AK |
13191 | { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5 |
13192 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
8b1a3214 AK |
13193 | fi |
13194 | fi | |
13195 | ||
ad6254c5 AK |
13196 | ################################################################################ |
13197 | ||
13198 | for ac_header in getopt.h | |
13199 | do | |
ec6a6fbe | 13200 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 13201 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
13202 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13203 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13204 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13205 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13206 | fi |
ec6a6fbe AK |
13207 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13208 | $as_echo "$as_val"'` | |
13209 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13210 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13211 | else |
13212 | # Is the header compilable? | |
ec6a6fbe AK |
13213 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13214 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 13215 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13216 | /* confdefs.h. */ |
13217 | _ACEOF | |
13218 | cat confdefs.h >>conftest.$ac_ext | |
13219 | cat >>conftest.$ac_ext <<_ACEOF | |
13220 | /* end confdefs.h. */ | |
13221 | $ac_includes_default | |
13222 | #include <$ac_header> | |
13223 | _ACEOF | |
13224 | rm -f conftest.$ac_objext | |
7a197a62 AK |
13225 | if { (ac_try="$ac_compile" |
13226 | case "(($ac_try" in | |
13227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13228 | *) ac_try_echo=$ac_try;; | |
13229 | esac | |
ec6a6fbe AK |
13230 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13231 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13232 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 13233 | ac_status=$? |
8a2fc586 AK |
13234 | grep -v '^ *+' conftest.er1 >conftest.err |
13235 | rm -f conftest.er1 | |
13236 | cat conftest.err >&5 | |
ec6a6fbe | 13237 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13238 | (exit $ac_status); } && { |
13239 | test -z "$ac_c_werror_flag" || | |
13240 | test ! -s conftest.err | |
13241 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
13242 | ac_header_compiler=yes |
13243 | else | |
ec6a6fbe | 13244 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13245 | sed 's/^/| /' conftest.$ac_ext >&5 |
13246 | ||
7a197a62 | 13247 | ac_header_compiler=no |
ad6254c5 | 13248 | fi |
7a197a62 AK |
13249 | |
13250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
13251 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13252 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
13253 | |
13254 | # Is the header present? | |
ec6a6fbe AK |
13255 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13256 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 13257 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13258 | /* confdefs.h. */ |
13259 | _ACEOF | |
13260 | cat confdefs.h >>conftest.$ac_ext | |
13261 | cat >>conftest.$ac_ext <<_ACEOF | |
13262 | /* end confdefs.h. */ | |
13263 | #include <$ac_header> | |
13264 | _ACEOF | |
7a197a62 AK |
13265 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13266 | case "(($ac_try" in | |
13267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13268 | *) ac_try_echo=$ac_try;; | |
13269 | esac | |
ec6a6fbe AK |
13270 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13271 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13272 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
13273 | ac_status=$? |
13274 | grep -v '^ *+' conftest.er1 >conftest.err | |
13275 | rm -f conftest.er1 | |
13276 | cat conftest.err >&5 | |
ec6a6fbe | 13277 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13278 | (exit $ac_status); } >/dev/null && { |
13279 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13280 | test ! -s conftest.err | |
13281 | }; then | |
ad6254c5 AK |
13282 | ac_header_preproc=yes |
13283 | else | |
ec6a6fbe | 13284 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13285 | sed 's/^/| /' conftest.$ac_ext >&5 |
13286 | ||
13287 | ac_header_preproc=no | |
13288 | fi | |
7a197a62 | 13289 | |
ad6254c5 | 13290 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
13291 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13292 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
13293 | |
13294 | # So? What about this header? | |
8a2fc586 AK |
13295 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13296 | yes:no: ) | |
ec6a6fbe AK |
13297 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13298 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13299 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13300 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 13301 | ac_header_preproc=yes |
ad6254c5 | 13302 | ;; |
8a2fc586 | 13303 | no:yes:* ) |
ec6a6fbe AK |
13304 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13305 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13306 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13307 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13308 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13309 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13310 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13311 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13312 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13313 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13314 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13315 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 13316 | |
ad6254c5 AK |
13317 | ;; |
13318 | esac | |
ec6a6fbe AK |
13319 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13320 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13321 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13322 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13323 | else |
8a2fc586 | 13324 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 13325 | fi |
ec6a6fbe AK |
13326 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13327 | $as_echo "$as_val"'` | |
13328 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13329 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13330 | |
13331 | fi | |
ec6a6fbe AK |
13332 | as_val=`eval 'as_val=${'$as_ac_Header'} |
13333 | $as_echo "$as_val"'` | |
13334 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 13335 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 13336 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 13337 | _ACEOF |
72b2cb61 AK |
13338 | |
13339 | cat >>confdefs.h <<\_ACEOF | |
13340 | #define HAVE_GETOPTLONG 1 | |
13341 | _ACEOF | |
13342 | ||
ad6254c5 AK |
13343 | fi |
13344 | ||
13345 | done | |
13346 | ||
13347 | ||
13348 | ################################################################################ | |
06e459df | 13349 | if test x$READLINE != xno; then |
539f4a77 ZK |
13350 | lvm_saved_libs=$LIBS |
13351 | { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 | |
13352 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
13353 | if test "${ac_cv_search_tgetent+set}" = set; then | |
13354 | $as_echo_n "(cached) " >&6 | |
13355 | else | |
13356 | ac_func_search_save_LIBS=$LIBS | |
13357 | cat >conftest.$ac_ext <<_ACEOF | |
13358 | /* confdefs.h. */ | |
13359 | _ACEOF | |
13360 | cat confdefs.h >>conftest.$ac_ext | |
13361 | cat >>conftest.$ac_ext <<_ACEOF | |
13362 | /* end confdefs.h. */ | |
bc1024f8 | 13363 | |
539f4a77 ZK |
13364 | /* Override any GCC internal prototype to avoid an error. |
13365 | Use char because int might match the return type of a GCC | |
13366 | builtin and then its argument prototype would still apply. */ | |
13367 | #ifdef __cplusplus | |
13368 | extern "C" | |
13369 | #endif | |
13370 | char tgetent (); | |
13371 | int | |
13372 | main () | |
13373 | { | |
13374 | return tgetent (); | |
13375 | ; | |
13376 | return 0; | |
13377 | } | |
13378 | _ACEOF | |
13379 | for ac_lib in '' tinfo ncurses curses termcap termlib; do | |
13380 | if test -z "$ac_lib"; then | |
13381 | ac_res="none required" | |
13382 | else | |
13383 | ac_res=-l$ac_lib | |
13384 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13385 | fi | |
13386 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13387 | if { (ac_try="$ac_link" | |
13388 | case "(($ac_try" in | |
13389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13390 | *) ac_try_echo=$ac_try;; | |
13391 | esac | |
13392 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13393 | $as_echo "$ac_try_echo") >&5 | |
13394 | (eval "$ac_link") 2>conftest.er1 | |
13395 | ac_status=$? | |
13396 | grep -v '^ *+' conftest.er1 >conftest.err | |
13397 | rm -f conftest.er1 | |
13398 | cat conftest.err >&5 | |
13399 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13400 | (exit $ac_status); } && { | |
13401 | test -z "$ac_c_werror_flag" || | |
13402 | test ! -s conftest.err | |
13403 | } && test -s conftest$ac_exeext && { | |
13404 | test "$cross_compiling" = yes || | |
13405 | $as_test_x conftest$ac_exeext | |
13406 | }; then | |
13407 | ac_cv_search_tgetent=$ac_res | |
13408 | else | |
13409 | $as_echo "$as_me: failed program was:" >&5 | |
13410 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13411 | ||
13412 | ||
13413 | fi | |
13414 | ||
13415 | rm -rf conftest.dSYM | |
13416 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13417 | conftest$ac_exeext | |
13418 | if test "${ac_cv_search_tgetent+set}" = set; then | |
13419 | break | |
13420 | fi | |
13421 | done | |
13422 | if test "${ac_cv_search_tgetent+set}" = set; then | |
13423 | : | |
13424 | else | |
13425 | ac_cv_search_tgetent=no | |
13426 | fi | |
13427 | rm conftest.$ac_ext | |
13428 | LIBS=$ac_func_search_save_LIBS | |
13429 | fi | |
13430 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 | |
13431 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
13432 | ac_res=$ac_cv_search_tgetent | |
13433 | if test "$ac_res" != no; then | |
13434 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
13435 | READLINE_LIBS=$ac_cv_search_tgetent | |
13436 | else | |
13437 | ||
13438 | if test "$READLINE" = yes; then | |
13439 | { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the | |
13440 | --enable-readline option (which is enabled by default). Either disable readline | |
13441 | support with --disable-readline or download and install termcap from: | |
13442 | ftp.gnu.org/gnu/termcap | |
13443 | Note: if you are using precompiled packages you will also need the development | |
13444 | package as well (which may be called termcap-devel or something similar). | |
13445 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
13446 | not found either - but you could try installing that as well." >&5 | |
13447 | $as_echo "$as_me: error: termcap could not be found which is required for the | |
13448 | --enable-readline option (which is enabled by default). Either disable readline | |
13449 | support with --disable-readline or download and install termcap from: | |
13450 | ftp.gnu.org/gnu/termcap | |
13451 | Note: if you are using precompiled packages you will also need the development | |
13452 | package as well (which may be called termcap-devel or something similar). | |
13453 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
13454 | not found either - but you could try installing that as well." >&2;} | |
13455 | { (exit 1); exit 1; }; } | |
13456 | fi | |
13457 | fi | |
13458 | ||
13459 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 | |
ec6a6fbe | 13460 | $as_echo_n "checking for readline in -lreadline... " >&6; } |
ad6254c5 | 13461 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
ec6a6fbe | 13462 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
13463 | else |
13464 | ac_check_lib_save_LIBS=$LIBS | |
13465 | LIBS="-lreadline $LIBS" | |
13466 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
13467 | /* confdefs.h. */ |
13468 | _ACEOF | |
13469 | cat confdefs.h >>conftest.$ac_ext | |
13470 | cat >>conftest.$ac_ext <<_ACEOF | |
13471 | /* end confdefs.h. */ | |
13472 | ||
7a197a62 AK |
13473 | /* Override any GCC internal prototype to avoid an error. |
13474 | Use char because int might match the return type of a GCC | |
13475 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
13476 | #ifdef __cplusplus |
13477 | extern "C" | |
13478 | #endif | |
ad6254c5 AK |
13479 | char readline (); |
13480 | int | |
13481 | main () | |
13482 | { | |
7a197a62 | 13483 | return readline (); |
ad6254c5 AK |
13484 | ; |
13485 | return 0; | |
13486 | } | |
13487 | _ACEOF | |
13488 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13489 | if { (ac_try="$ac_link" |
13490 | case "(($ac_try" in | |
13491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13492 | *) ac_try_echo=$ac_try;; | |
13493 | esac | |
ec6a6fbe AK |
13494 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13495 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13496 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 13497 | ac_status=$? |
8a2fc586 AK |
13498 | grep -v '^ *+' conftest.er1 >conftest.err |
13499 | rm -f conftest.er1 | |
13500 | cat conftest.err >&5 | |
ec6a6fbe | 13501 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13502 | (exit $ac_status); } && { |
13503 | test -z "$ac_c_werror_flag" || | |
13504 | test ! -s conftest.err | |
ec6a6fbe AK |
13505 | } && test -s conftest$ac_exeext && { |
13506 | test "$cross_compiling" = yes || | |
13507 | $as_test_x conftest$ac_exeext | |
13508 | }; then | |
ad6254c5 AK |
13509 | ac_cv_lib_readline_readline=yes |
13510 | else | |
ec6a6fbe | 13511 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13512 | sed 's/^/| /' conftest.$ac_ext >&5 |
13513 | ||
7a197a62 | 13514 | ac_cv_lib_readline_readline=no |
ad6254c5 | 13515 | fi |
7a197a62 | 13516 | |
ec6a6fbe | 13517 | rm -rf conftest.dSYM |
25fbec5b | 13518 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 13519 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 AK |
13520 | LIBS=$ac_check_lib_save_LIBS |
13521 | fi | |
ec6a6fbe AK |
13522 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
13523 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
13524 | if test "x$ac_cv_lib_readline_readline" = x""yes; then | |
539f4a77 ZK |
13525 | |
13526 | ||
13527 | cat >>confdefs.h <<\_ACEOF | |
13528 | #define READLINE_SUPPORT 1 | |
bc1024f8 JM |
13529 | _ACEOF |
13530 | ||
539f4a77 ZK |
13531 | LIBS=$lvm_saved_libs |
13532 | { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5 | |
13533 | $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; } | |
13534 | if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then | |
13535 | $as_echo_n "(cached) " >&6 | |
13536 | else | |
13537 | ac_check_lib_save_LIBS=$LIBS | |
13538 | LIBS="-lreadline $LIBS" | |
13539 | cat >conftest.$ac_ext <<_ACEOF | |
13540 | /* confdefs.h. */ | |
13541 | _ACEOF | |
13542 | cat confdefs.h >>conftest.$ac_ext | |
13543 | cat >>conftest.$ac_ext <<_ACEOF | |
13544 | /* end confdefs.h. */ | |
bc1024f8 | 13545 | |
539f4a77 ZK |
13546 | /* Override any GCC internal prototype to avoid an error. |
13547 | Use char because int might match the return type of a GCC | |
13548 | builtin and then its argument prototype would still apply. */ | |
13549 | #ifdef __cplusplus | |
13550 | extern "C" | |
13551 | #endif | |
13552 | char rl_line_buffer (); | |
13553 | int | |
13554 | main () | |
13555 | { | |
13556 | return rl_line_buffer (); | |
13557 | ; | |
13558 | return 0; | |
13559 | } | |
13560 | _ACEOF | |
13561 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13562 | if { (ac_try="$ac_link" | |
13563 | case "(($ac_try" in | |
13564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13565 | *) ac_try_echo=$ac_try;; | |
13566 | esac | |
13567 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
13568 | $as_echo "$ac_try_echo") >&5 | |
13569 | (eval "$ac_link") 2>conftest.er1 | |
13570 | ac_status=$? | |
13571 | grep -v '^ *+' conftest.er1 >conftest.err | |
13572 | rm -f conftest.er1 | |
13573 | cat conftest.err >&5 | |
13574 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13575 | (exit $ac_status); } && { | |
13576 | test -z "$ac_c_werror_flag" || | |
13577 | test ! -s conftest.err | |
13578 | } && test -s conftest$ac_exeext && { | |
13579 | test "$cross_compiling" = yes || | |
13580 | $as_test_x conftest$ac_exeext | |
13581 | }; then | |
13582 | ac_cv_lib_readline_rl_line_buffer=yes | |
ad6254c5 | 13583 | else |
539f4a77 ZK |
13584 | $as_echo "$as_me: failed program was:" >&5 |
13585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13586 | ||
13587 | ac_cv_lib_readline_rl_line_buffer=no | |
06e459df JM |
13588 | fi |
13589 | ||
539f4a77 ZK |
13590 | rm -rf conftest.dSYM |
13591 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13592 | conftest$ac_exeext conftest.$ac_ext | |
13593 | LIBS=$ac_check_lib_save_LIBS | |
13594 | fi | |
13595 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5 | |
13596 | $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; } | |
13597 | if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then | |
13598 | READLINE_LIBS="-lreadline" | |
13599 | else | |
13600 | ||
13601 | { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5 | |
13602 | $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; } | |
13603 | READLINE_LIBS="-lreadline $READLINE_LIBS" | |
13604 | ||
13605 | fi | |
13606 | ||
13607 | else | |
13608 | ||
13609 | READLINE_LIBS= | |
13610 | if test "$READLINE" = yes; then | |
13611 | { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the | |
ad6254c5 AK |
13612 | --enable-readline option (which is enabled by default). Either disable readline |
13613 | support with --disable-readline or download and install readline from: | |
13614 | ftp.gnu.org/gnu/readline | |
13615 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 | 13616 | package as well (which may be called readline-devel or something similar)." >&5 |
ec6a6fbe | 13617 | $as_echo "$as_me: error: GNU Readline could not be found which is required for the |
ad6254c5 AK |
13618 | --enable-readline option (which is enabled by default). Either disable readline |
13619 | support with --disable-readline or download and install readline from: | |
13620 | ftp.gnu.org/gnu/readline | |
13621 | Note: if you are using precompiled packages you will also need the development | |
539f4a77 | 13622 | package as well (which may be called readline-devel or something similar)." >&2;} |
ad6254c5 | 13623 | { (exit 1); exit 1; }; } |
539f4a77 ZK |
13624 | fi |
13625 | fi | |
13626 | ||
13627 | LIBS="$READLINE_LIBS $lvm_saved_libs" | |
bc1024f8 JM |
13628 | |
13629 | for ac_func in rl_completion_matches | |
13630 | do | |
ec6a6fbe AK |
13631 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13632 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13633 | $as_echo_n "checking for $ac_func... " >&6; } | |
bc1024f8 | 13634 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13635 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
13636 | else |
13637 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
13638 | /* confdefs.h. */ |
13639 | _ACEOF | |
13640 | cat confdefs.h >>conftest.$ac_ext | |
13641 | cat >>conftest.$ac_ext <<_ACEOF | |
13642 | /* end confdefs.h. */ | |
bc1024f8 | 13643 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8a2fc586 | 13644 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
bc1024f8 | 13645 | #define $ac_func innocuous_$ac_func |
8a2fc586 | 13646 | |
ad6254c5 | 13647 | /* System header to define __stub macros and hopefully few prototypes, |
bc1024f8 | 13648 | which can conflict with char $ac_func (); below. |
ad6254c5 AK |
13649 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
13650 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 13651 | |
ad6254c5 AK |
13652 | #ifdef __STDC__ |
13653 | # include <limits.h> | |
13654 | #else | |
13655 | # include <assert.h> | |
13656 | #endif | |
8a2fc586 | 13657 | |
bc1024f8 | 13658 | #undef $ac_func |
8a2fc586 | 13659 | |
7a197a62 AK |
13660 | /* Override any GCC internal prototype to avoid an error. |
13661 | Use char because int might match the return type of a GCC | |
13662 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
13663 | #ifdef __cplusplus |
13664 | extern "C" | |
ad6254c5 | 13665 | #endif |
bc1024f8 | 13666 | char $ac_func (); |
ad6254c5 AK |
13667 | /* The GNU C library defines this for functions which it implements |
13668 | to always fail with ENOSYS. Some functions are actually named | |
13669 | something starting with __ and the normal name is an alias. */ | |
bc1024f8 | 13670 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 13671 | choke me |
ad6254c5 AK |
13672 | #endif |
13673 | ||
13674 | int | |
13675 | main () | |
13676 | { | |
bc1024f8 | 13677 | return $ac_func (); |
ad6254c5 AK |
13678 | ; |
13679 | return 0; | |
13680 | } | |
13681 | _ACEOF | |
13682 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
13683 | if { (ac_try="$ac_link" |
13684 | case "(($ac_try" in | |
13685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13686 | *) ac_try_echo=$ac_try;; | |
13687 | esac | |
ec6a6fbe AK |
13688 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13689 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13690 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 13691 | ac_status=$? |
8a2fc586 AK |
13692 | grep -v '^ *+' conftest.er1 >conftest.err |
13693 | rm -f conftest.er1 | |
13694 | cat conftest.err >&5 | |
ec6a6fbe | 13695 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13696 | (exit $ac_status); } && { |
13697 | test -z "$ac_c_werror_flag" || | |
13698 | test ! -s conftest.err | |
ec6a6fbe AK |
13699 | } && test -s conftest$ac_exeext && { |
13700 | test "$cross_compiling" = yes || | |
13701 | $as_test_x conftest$ac_exeext | |
13702 | }; then | |
bc1024f8 | 13703 | eval "$as_ac_var=yes" |
ad6254c5 | 13704 | else |
ec6a6fbe | 13705 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13706 | sed 's/^/| /' conftest.$ac_ext >&5 |
13707 | ||
bc1024f8 | 13708 | eval "$as_ac_var=no" |
ad6254c5 | 13709 | fi |
7a197a62 | 13710 | |
ec6a6fbe | 13711 | rm -rf conftest.dSYM |
25fbec5b | 13712 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 13713 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 13714 | fi |
ec6a6fbe AK |
13715 | ac_res=`eval 'as_val=${'$as_ac_var'} |
13716 | $as_echo "$as_val"'` | |
13717 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13718 | $as_echo "$ac_res" >&6; } | |
13719 | as_val=`eval 'as_val=${'$as_ac_var'} | |
13720 | $as_echo "$as_val"'` | |
13721 | if test "x$as_val" = x""yes; then | |
bc1024f8 | 13722 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 13723 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
72b2cb61 AK |
13724 | _ACEOF |
13725 | ||
13726 | fi | |
bc1024f8 | 13727 | done |
ad6254c5 | 13728 | |
539f4a77 | 13729 | LIBS=$lvm_saved_libs |
ad6254c5 AK |
13730 | fi |
13731 | ||
13732 | ################################################################################ | |
ec6a6fbe AK |
13733 | { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5 |
13734 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
7a197a62 | 13735 | # Check whether --enable-nls was given. |
ad6254c5 | 13736 | if test "${enable_nls+set}" = set; then |
7a197a62 | 13737 | enableval=$enable_nls; INTL=$enableval |
ad6254c5 AK |
13738 | else |
13739 | INTL=no | |
7a197a62 AK |
13740 | fi |
13741 | ||
ec6a6fbe AK |
13742 | { $as_echo "$as_me:$LINENO: result: $INTL" >&5 |
13743 | $as_echo "$INTL" >&6; } | |
ad6254c5 AK |
13744 | |
13745 | if test x$INTL = xyes; then | |
93bd259b | 13746 | # FIXME - Move this - can be device-mapper too |
ad6254c5 AK |
13747 | INTL_PACKAGE="lvm2" |
13748 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
13749 | set dummy msgfmt; ac_word=$2 | |
ec6a6fbe AK |
13750 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
13751 | $as_echo_n "checking for $ac_word... " >&6; } | |
ad6254c5 | 13752 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
ec6a6fbe | 13753 | $as_echo_n "(cached) " >&6 |
ad6254c5 AK |
13754 | else |
13755 | case $MSGFMT in | |
13756 | [\\/]* | ?:[\\/]*) | |
13757 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
13758 | ;; | |
13759 | *) | |
13760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13761 | for as_dir in $PATH | |
13762 | do | |
13763 | IFS=$as_save_IFS | |
13764 | test -z "$as_dir" && as_dir=. | |
13765 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 13766 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
ad6254c5 | 13767 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 13768 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ad6254c5 AK |
13769 | break 2 |
13770 | fi | |
13771 | done | |
13772 | done | |
7a197a62 | 13773 | IFS=$as_save_IFS |
ad6254c5 AK |
13774 | |
13775 | ;; | |
13776 | esac | |
13777 | fi | |
13778 | MSGFMT=$ac_cv_path_MSGFMT | |
ad6254c5 | 13779 | if test -n "$MSGFMT"; then |
ec6a6fbe AK |
13780 | { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
13781 | $as_echo "$MSGFMT" >&6; } | |
ad6254c5 | 13782 | else |
ec6a6fbe AK |
13783 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
13784 | $as_echo "no" >&6; } | |
ad6254c5 AK |
13785 | fi |
13786 | ||
7a197a62 | 13787 | |
ad6254c5 | 13788 | if [ "x$MSGFMT" == x ]; |
ec6a6fbe | 13789 | then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH |
ad6254c5 | 13790 | " >&5 |
ec6a6fbe | 13791 | $as_echo "$as_me: error: msgfmt not found in path $PATH |
ad6254c5 AK |
13792 | " >&2;} |
13793 | { (exit 1); exit 1; }; } | |
13794 | fi; | |
13795 | ||
13796 | ||
7a197a62 | 13797 | # Check whether --with-localedir was given. |
ad6254c5 | 13798 | if test "${with_localedir+set}" = set; then |
7a197a62 | 13799 | withval=$with_localedir; LOCALEDIR="$withval" |
ad6254c5 AK |
13800 | else |
13801 | LOCALEDIR='${prefix}/share/locale' | |
7a197a62 AK |
13802 | fi |
13803 | ||
ad6254c5 AK |
13804 | fi |
13805 | ||
13806 | ################################################################################ | |
13807 | ||
7a197a62 | 13808 | # Check whether --with-confdir was given. |
ad6254c5 | 13809 | if test "${with_confdir+set}" = set; then |
7a197a62 | 13810 | withval=$with_confdir; CONFDIR="$withval" |
ad6254c5 AK |
13811 | else |
13812 | CONFDIR='/etc' | |
7a197a62 AK |
13813 | fi |
13814 | ||
ad6254c5 AK |
13815 | |
13816 | ||
7a197a62 | 13817 | # Check whether --with-staticdir was given. |
ad6254c5 | 13818 | if test "${with_staticdir+set}" = set; then |
7a197a62 | 13819 | withval=$with_staticdir; STATICDIR="$withval" |
ad6254c5 AK |
13820 | else |
13821 | STATICDIR='${exec_prefix}/sbin' | |
7a197a62 | 13822 | fi |
ad6254c5 | 13823 | |
33f732c5 | 13824 | |
7a197a62 | 13825 | |
68f2de6d AK |
13826 | # Check whether --with-usrlibdir was given. |
13827 | if test "${with_usrlibdir+set}" = set; then | |
13828 | withval=$with_usrlibdir; usrlibdir="$withval" | |
13829 | else | |
13830 | usrlibdir='${prefix}/lib' | |
13831 | fi | |
13832 | ||
13833 | ||
13834 | ||
13835 | # Check whether --with-usrsbindir was given. | |
13836 | if test "${with_usrsbindir+set}" = set; then | |
13837 | withval=$with_usrsbindir; usrsbindir="$withval" | |
13838 | else | |
13839 | usrsbindir='${prefix}/sbin' | |
13840 | fi | |
13841 | ||
13842 | ||
a5f46f6a AK |
13843 | ################################################################################ |
13844 | ||
13845 | # Check whether --with-udev_prefix was given. | |
13846 | if test "${with_udev_prefix+set}" = set; then | |
13847 | withval=$with_udev_prefix; udev_prefix="$withval" | |
13848 | else | |
13849 | udev_prefix='${exec_prefix}' | |
13850 | fi | |
13851 | ||
13852 | ||
78ce7acc AK |
13853 | |
13854 | # Check whether --with-udevdir was given. | |
13855 | if test "${with_udevdir+set}" = set; then | |
13856 | withval=$with_udevdir; udevdir="$withval" | |
13857 | else | |
13858 | udevdir='${udev_prefix}/lib/udev/rules.d' | |
13859 | fi | |
13860 | ||
a5f46f6a | 13861 | |
ad6254c5 AK |
13862 | ################################################################################ |
13863 | if test x$READLINE = xyes; then | |
13864 | ||
13865 | ||
13866 | for ac_header in readline/readline.h readline/history.h | |
13867 | do | |
ec6a6fbe | 13868 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 13869 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
13870 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13871 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13872 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13873 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13874 | fi |
ec6a6fbe AK |
13875 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13876 | $as_echo "$as_val"'` | |
13877 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13878 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13879 | else |
13880 | # Is the header compilable? | |
ec6a6fbe AK |
13881 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13882 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 13883 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13884 | /* confdefs.h. */ |
13885 | _ACEOF | |
13886 | cat confdefs.h >>conftest.$ac_ext | |
13887 | cat >>conftest.$ac_ext <<_ACEOF | |
13888 | /* end confdefs.h. */ | |
13889 | $ac_includes_default | |
13890 | #include <$ac_header> | |
13891 | _ACEOF | |
13892 | rm -f conftest.$ac_objext | |
7a197a62 AK |
13893 | if { (ac_try="$ac_compile" |
13894 | case "(($ac_try" in | |
13895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13896 | *) ac_try_echo=$ac_try;; | |
13897 | esac | |
ec6a6fbe AK |
13898 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13899 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13900 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 13901 | ac_status=$? |
8a2fc586 AK |
13902 | grep -v '^ *+' conftest.er1 >conftest.err |
13903 | rm -f conftest.er1 | |
13904 | cat conftest.err >&5 | |
ec6a6fbe | 13905 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13906 | (exit $ac_status); } && { |
13907 | test -z "$ac_c_werror_flag" || | |
13908 | test ! -s conftest.err | |
13909 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
13910 | ac_header_compiler=yes |
13911 | else | |
ec6a6fbe | 13912 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13913 | sed 's/^/| /' conftest.$ac_ext >&5 |
13914 | ||
7a197a62 | 13915 | ac_header_compiler=no |
ad6254c5 | 13916 | fi |
7a197a62 AK |
13917 | |
13918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
13919 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13920 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
13921 | |
13922 | # Is the header present? | |
ec6a6fbe AK |
13923 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13924 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 13925 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
13926 | /* confdefs.h. */ |
13927 | _ACEOF | |
13928 | cat confdefs.h >>conftest.$ac_ext | |
13929 | cat >>conftest.$ac_ext <<_ACEOF | |
13930 | /* end confdefs.h. */ | |
13931 | #include <$ac_header> | |
13932 | _ACEOF | |
7a197a62 AK |
13933 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13934 | case "(($ac_try" in | |
13935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13936 | *) ac_try_echo=$ac_try;; | |
13937 | esac | |
ec6a6fbe AK |
13938 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
13939 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 13940 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
13941 | ac_status=$? |
13942 | grep -v '^ *+' conftest.er1 >conftest.err | |
13943 | rm -f conftest.er1 | |
13944 | cat conftest.err >&5 | |
ec6a6fbe | 13945 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
13946 | (exit $ac_status); } >/dev/null && { |
13947 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13948 | test ! -s conftest.err | |
13949 | }; then | |
ad6254c5 AK |
13950 | ac_header_preproc=yes |
13951 | else | |
ec6a6fbe | 13952 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
13953 | sed 's/^/| /' conftest.$ac_ext >&5 |
13954 | ||
13955 | ac_header_preproc=no | |
13956 | fi | |
7a197a62 | 13957 | |
ad6254c5 | 13958 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
13959 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13960 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
13961 | |
13962 | # So? What about this header? | |
8a2fc586 AK |
13963 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13964 | yes:no: ) | |
ec6a6fbe AK |
13965 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13966 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13967 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13968 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 13969 | ac_header_preproc=yes |
ad6254c5 | 13970 | ;; |
8a2fc586 | 13971 | no:yes:* ) |
ec6a6fbe AK |
13972 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13973 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13974 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13975 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13976 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13977 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13978 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13979 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13980 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13981 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13982 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13983 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 13984 | |
ad6254c5 AK |
13985 | ;; |
13986 | esac | |
ec6a6fbe AK |
13987 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13988 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 13989 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 13990 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 13991 | else |
8a2fc586 | 13992 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 13993 | fi |
ec6a6fbe AK |
13994 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
13995 | $as_echo "$as_val"'` | |
13996 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13997 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
13998 | |
13999 | fi | |
ec6a6fbe AK |
14000 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14001 | $as_echo "$as_val"'` | |
14002 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14003 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14004 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
14005 | _ACEOF |
14006 | ||
14007 | else | |
ec6a6fbe AK |
14008 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14009 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
14010 | { (exit 1); exit 1; }; } |
14011 | fi | |
14012 | ||
14013 | done | |
14014 | ||
14015 | fi | |
14016 | ||
5c7fc7c4 | 14017 | if test x$CLVMD != xnone; then |
ad6254c5 AK |
14018 | |
14019 | ||
14020 | ||
14021 | ||
14022 | ||
14023 | ||
14024 | ||
14025 | ||
14026 | ||
14027 | ||
14028 | 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 | |
14029 | do | |
ec6a6fbe | 14030 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14031 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14032 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14033 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14034 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14035 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14036 | fi |
ec6a6fbe AK |
14037 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14038 | $as_echo "$as_val"'` | |
14039 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14040 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14041 | else |
14042 | # Is the header compilable? | |
ec6a6fbe AK |
14043 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14044 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14045 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14046 | /* confdefs.h. */ |
14047 | _ACEOF | |
14048 | cat confdefs.h >>conftest.$ac_ext | |
14049 | cat >>conftest.$ac_ext <<_ACEOF | |
14050 | /* end confdefs.h. */ | |
14051 | $ac_includes_default | |
14052 | #include <$ac_header> | |
14053 | _ACEOF | |
14054 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14055 | if { (ac_try="$ac_compile" |
14056 | case "(($ac_try" in | |
14057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14058 | *) ac_try_echo=$ac_try;; | |
14059 | esac | |
ec6a6fbe AK |
14060 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14061 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14062 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14063 | ac_status=$? |
8a2fc586 AK |
14064 | grep -v '^ *+' conftest.er1 >conftest.err |
14065 | rm -f conftest.er1 | |
14066 | cat conftest.err >&5 | |
ec6a6fbe | 14067 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14068 | (exit $ac_status); } && { |
14069 | test -z "$ac_c_werror_flag" || | |
14070 | test ! -s conftest.err | |
14071 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14072 | ac_header_compiler=yes |
14073 | else | |
ec6a6fbe | 14074 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14075 | sed 's/^/| /' conftest.$ac_ext >&5 |
14076 | ||
7a197a62 | 14077 | ac_header_compiler=no |
ad6254c5 | 14078 | fi |
7a197a62 AK |
14079 | |
14080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14081 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14082 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14083 | |
14084 | # Is the header present? | |
ec6a6fbe AK |
14085 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14086 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14087 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14088 | /* confdefs.h. */ |
14089 | _ACEOF | |
14090 | cat confdefs.h >>conftest.$ac_ext | |
14091 | cat >>conftest.$ac_ext <<_ACEOF | |
14092 | /* end confdefs.h. */ | |
14093 | #include <$ac_header> | |
14094 | _ACEOF | |
7a197a62 AK |
14095 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14096 | case "(($ac_try" in | |
14097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14098 | *) ac_try_echo=$ac_try;; | |
14099 | esac | |
ec6a6fbe AK |
14100 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14101 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14102 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14103 | ac_status=$? |
14104 | grep -v '^ *+' conftest.er1 >conftest.err | |
14105 | rm -f conftest.er1 | |
14106 | cat conftest.err >&5 | |
ec6a6fbe | 14107 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14108 | (exit $ac_status); } >/dev/null && { |
14109 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14110 | test ! -s conftest.err | |
14111 | }; then | |
ad6254c5 AK |
14112 | ac_header_preproc=yes |
14113 | else | |
ec6a6fbe | 14114 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14115 | sed 's/^/| /' conftest.$ac_ext >&5 |
14116 | ||
14117 | ac_header_preproc=no | |
14118 | fi | |
7a197a62 | 14119 | |
ad6254c5 | 14120 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14121 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14122 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14123 | |
14124 | # So? What about this header? | |
8a2fc586 AK |
14125 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14126 | yes:no: ) | |
ec6a6fbe AK |
14127 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14128 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14129 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14130 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14131 | ac_header_preproc=yes |
ad6254c5 | 14132 | ;; |
8a2fc586 | 14133 | no:yes:* ) |
ec6a6fbe AK |
14134 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14135 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14136 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14137 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14138 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14139 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14140 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14141 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14142 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14143 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14144 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14145 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14146 | |
ad6254c5 AK |
14147 | ;; |
14148 | esac | |
ec6a6fbe AK |
14149 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14150 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14151 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14152 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14153 | else |
8a2fc586 | 14154 | eval "$as_ac_Header=\$ac_header_preproc" |
ad6254c5 | 14155 | fi |
ec6a6fbe AK |
14156 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14157 | $as_echo "$as_val"'` | |
14158 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14159 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14160 | |
14161 | fi | |
ec6a6fbe AK |
14162 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14163 | $as_echo "$as_val"'` | |
14164 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14165 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14166 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
14167 | _ACEOF |
14168 | ||
14169 | else | |
ec6a6fbe AK |
14170 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14171 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14172 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
14173 | fi |
14174 | ||
ad6254c5 AK |
14175 | done |
14176 | ||
14177 | ||
795ca3e5 | 14178 | |
8106cdd5 | 14179 | |
ad6254c5 AK |
14180 | |
14181 | ||
14182 | for ac_func in dup2 getmntent memmove select socket | |
14183 | do | |
ec6a6fbe AK |
14184 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14185 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14186 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 14187 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14188 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 14189 | else |
ad6254c5 | 14190 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14191 | /* confdefs.h. */ |
14192 | _ACEOF | |
14193 | cat confdefs.h >>conftest.$ac_ext | |
14194 | cat >>conftest.$ac_ext <<_ACEOF | |
14195 | /* end confdefs.h. */ | |
8a2fc586 AK |
14196 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14197 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14198 | #define $ac_func innocuous_$ac_func | |
14199 | ||
795ca3e5 | 14200 | /* System header to define __stub macros and hopefully few prototypes, |
ad6254c5 AK |
14201 | which can conflict with char $ac_func (); below. |
14202 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14203 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 14204 | |
ad6254c5 AK |
14205 | #ifdef __STDC__ |
14206 | # include <limits.h> | |
14207 | #else | |
14208 | # include <assert.h> | |
14209 | #endif | |
8a2fc586 AK |
14210 | |
14211 | #undef $ac_func | |
14212 | ||
7a197a62 AK |
14213 | /* Override any GCC internal prototype to avoid an error. |
14214 | Use char because int might match the return type of a GCC | |
14215 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
14216 | #ifdef __cplusplus |
14217 | extern "C" | |
ad6254c5 | 14218 | #endif |
ad6254c5 | 14219 | char $ac_func (); |
795ca3e5 AK |
14220 | /* The GNU C library defines this for functions which it implements |
14221 | to always fail with ENOSYS. Some functions are actually named | |
14222 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 14223 | #if defined __stub_$ac_func || defined __stub___$ac_func |
795ca3e5 | 14224 | choke me |
795ca3e5 AK |
14225 | #endif |
14226 | ||
ad6254c5 AK |
14227 | int |
14228 | main () | |
14229 | { | |
7a197a62 | 14230 | return $ac_func (); |
ad6254c5 AK |
14231 | ; |
14232 | return 0; | |
14233 | } | |
14234 | _ACEOF | |
14235 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14236 | if { (ac_try="$ac_link" |
14237 | case "(($ac_try" in | |
14238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14239 | *) ac_try_echo=$ac_try;; | |
14240 | esac | |
ec6a6fbe AK |
14241 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14242 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14243 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14244 | ac_status=$? |
8a2fc586 AK |
14245 | grep -v '^ *+' conftest.er1 >conftest.err |
14246 | rm -f conftest.er1 | |
14247 | cat conftest.err >&5 | |
ec6a6fbe | 14248 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14249 | (exit $ac_status); } && { |
14250 | test -z "$ac_c_werror_flag" || | |
14251 | test ! -s conftest.err | |
ec6a6fbe AK |
14252 | } && test -s conftest$ac_exeext && { |
14253 | test "$cross_compiling" = yes || | |
14254 | $as_test_x conftest$ac_exeext | |
14255 | }; then | |
ad6254c5 | 14256 | eval "$as_ac_var=yes" |
795ca3e5 | 14257 | else |
ec6a6fbe | 14258 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14259 | sed 's/^/| /' conftest.$ac_ext >&5 |
14260 | ||
7a197a62 | 14261 | eval "$as_ac_var=no" |
80992638 | 14262 | fi |
7a197a62 | 14263 | |
ec6a6fbe | 14264 | rm -rf conftest.dSYM |
25fbec5b | 14265 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 14266 | conftest$ac_exeext conftest.$ac_ext |
795ca3e5 | 14267 | fi |
ec6a6fbe AK |
14268 | ac_res=`eval 'as_val=${'$as_ac_var'} |
14269 | $as_echo "$as_val"'` | |
14270 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14271 | $as_echo "$ac_res" >&6; } | |
14272 | as_val=`eval 'as_val=${'$as_ac_var'} | |
14273 | $as_echo "$as_val"'` | |
14274 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14275 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14276 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 | 14277 | _ACEOF |
80992638 AK |
14278 | |
14279 | else | |
ec6a6fbe AK |
14280 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14281 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14282 | { (exit 1); exit 1; }; } |
8106cdd5 | 14283 | fi |
ad6254c5 | 14284 | done |
795ca3e5 | 14285 | |
25fbec5b AK |
14286 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
14287 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
ec6a6fbe AK |
14288 | { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
14289 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
25fbec5b | 14290 | if test "${ac_cv_search_getmntent+set}" = set; then |
ec6a6fbe | 14291 | $as_echo_n "(cached) " >&6 |
25fbec5b AK |
14292 | else |
14293 | ac_func_search_save_LIBS=$LIBS | |
14294 | cat >conftest.$ac_ext <<_ACEOF | |
14295 | /* confdefs.h. */ | |
14296 | _ACEOF | |
14297 | cat confdefs.h >>conftest.$ac_ext | |
14298 | cat >>conftest.$ac_ext <<_ACEOF | |
14299 | /* end confdefs.h. */ | |
80992638 | 14300 | |
7a197a62 AK |
14301 | /* Override any GCC internal prototype to avoid an error. |
14302 | Use char because int might match the return type of a GCC | |
ad6254c5 | 14303 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
14304 | #ifdef __cplusplus |
14305 | extern "C" | |
14306 | #endif | |
25fbec5b | 14307 | char getmntent (); |
ad6254c5 AK |
14308 | int |
14309 | main () | |
14310 | { | |
25fbec5b | 14311 | return getmntent (); |
ad6254c5 AK |
14312 | ; |
14313 | return 0; | |
14314 | } | |
14315 | _ACEOF | |
25fbec5b AK |
14316 | for ac_lib in '' sun seq gen; do |
14317 | if test -z "$ac_lib"; then | |
14318 | ac_res="none required" | |
14319 | else | |
14320 | ac_res=-l$ac_lib | |
14321 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14322 | fi | |
14323 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14324 | if { (ac_try="$ac_link" |
14325 | case "(($ac_try" in | |
14326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14327 | *) ac_try_echo=$ac_try;; | |
14328 | esac | |
ec6a6fbe AK |
14329 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14330 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14331 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14332 | ac_status=$? |
8a2fc586 AK |
14333 | grep -v '^ *+' conftest.er1 >conftest.err |
14334 | rm -f conftest.er1 | |
14335 | cat conftest.err >&5 | |
ec6a6fbe | 14336 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14337 | (exit $ac_status); } && { |
14338 | test -z "$ac_c_werror_flag" || | |
14339 | test ! -s conftest.err | |
ec6a6fbe AK |
14340 | } && test -s conftest$ac_exeext && { |
14341 | test "$cross_compiling" = yes || | |
14342 | $as_test_x conftest$ac_exeext | |
14343 | }; then | |
25fbec5b | 14344 | ac_cv_search_getmntent=$ac_res |
80992638 | 14345 | else |
ec6a6fbe | 14346 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14347 | sed 's/^/| /' conftest.$ac_ext >&5 |
14348 | ||
25fbec5b | 14349 | |
795ca3e5 AK |
14350 | fi |
14351 | ||
ec6a6fbe | 14352 | rm -rf conftest.dSYM |
25fbec5b AK |
14353 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14354 | conftest$ac_exeext | |
14355 | if test "${ac_cv_search_getmntent+set}" = set; then | |
14356 | break | |
795ca3e5 | 14357 | fi |
25fbec5b AK |
14358 | done |
14359 | if test "${ac_cv_search_getmntent+set}" = set; then | |
14360 | : | |
14361 | else | |
14362 | ac_cv_search_getmntent=no | |
14363 | fi | |
14364 | rm conftest.$ac_ext | |
14365 | LIBS=$ac_func_search_save_LIBS | |
14366 | fi | |
ec6a6fbe AK |
14367 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
14368 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
25fbec5b AK |
14369 | ac_res=$ac_cv_search_getmntent |
14370 | if test "$ac_res" != no; then | |
14371 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
14372 | ac_cv_func_getmntent=yes | |
14373 | ||
14374 | cat >>confdefs.h <<\_ACEOF | |
9c961554 | 14375 | #define HAVE_GETMNTENT 1 |
ad6254c5 | 14376 | _ACEOF |
795ca3e5 | 14377 | |
25fbec5b AK |
14378 | else |
14379 | ac_cv_func_getmntent=no | |
795ca3e5 | 14380 | fi |
795ca3e5 AK |
14381 | |
14382 | ||
ad6254c5 AK |
14383 | # AC_FUNC_REALLOC |
14384 | ||
14385 | ||
14386 | for ac_header in sys/select.h sys/socket.h | |
14387 | do | |
ec6a6fbe | 14388 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14389 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14390 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14391 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14392 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14393 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14394 | fi |
ec6a6fbe AK |
14395 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14396 | $as_echo "$as_val"'` | |
14397 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14398 | $as_echo "$ac_res" >&6; } | |
795ca3e5 | 14399 | else |
ad6254c5 | 14400 | # Is the header compilable? |
ec6a6fbe AK |
14401 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14402 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14403 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14404 | /* confdefs.h. */ |
14405 | _ACEOF | |
14406 | cat confdefs.h >>conftest.$ac_ext | |
14407 | cat >>conftest.$ac_ext <<_ACEOF | |
14408 | /* end confdefs.h. */ | |
14409 | $ac_includes_default | |
14410 | #include <$ac_header> | |
14411 | _ACEOF | |
14412 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14413 | if { (ac_try="$ac_compile" |
14414 | case "(($ac_try" in | |
14415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14416 | *) ac_try_echo=$ac_try;; | |
14417 | esac | |
ec6a6fbe AK |
14418 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14419 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14420 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14421 | ac_status=$? |
8a2fc586 AK |
14422 | grep -v '^ *+' conftest.er1 >conftest.err |
14423 | rm -f conftest.er1 | |
14424 | cat conftest.err >&5 | |
ec6a6fbe | 14425 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14426 | (exit $ac_status); } && { |
14427 | test -z "$ac_c_werror_flag" || | |
14428 | test ! -s conftest.err | |
14429 | } && test -s conftest.$ac_objext; then | |
ad6254c5 | 14430 | ac_header_compiler=yes |
80992638 | 14431 | else |
ec6a6fbe | 14432 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14433 | sed 's/^/| /' conftest.$ac_ext >&5 |
14434 | ||
7a197a62 | 14435 | ac_header_compiler=no |
ad6254c5 | 14436 | fi |
7a197a62 AK |
14437 | |
14438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14439 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14440 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14441 | |
14442 | # Is the header present? | |
ec6a6fbe AK |
14443 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14444 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14445 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14446 | /* confdefs.h. */ |
14447 | _ACEOF | |
14448 | cat confdefs.h >>conftest.$ac_ext | |
14449 | cat >>conftest.$ac_ext <<_ACEOF | |
14450 | /* end confdefs.h. */ | |
14451 | #include <$ac_header> | |
14452 | _ACEOF | |
7a197a62 AK |
14453 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14454 | case "(($ac_try" in | |
14455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14456 | *) ac_try_echo=$ac_try;; | |
14457 | esac | |
ec6a6fbe AK |
14458 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14459 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14460 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14461 | ac_status=$? |
14462 | grep -v '^ *+' conftest.er1 >conftest.err | |
14463 | rm -f conftest.er1 | |
14464 | cat conftest.err >&5 | |
ec6a6fbe | 14465 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14466 | (exit $ac_status); } >/dev/null && { |
14467 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14468 | test ! -s conftest.err | |
14469 | }; then | |
ad6254c5 AK |
14470 | ac_header_preproc=yes |
14471 | else | |
ec6a6fbe | 14472 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14473 | sed 's/^/| /' conftest.$ac_ext >&5 |
14474 | ||
14475 | ac_header_preproc=no | |
14476 | fi | |
7a197a62 | 14477 | |
ad6254c5 | 14478 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14479 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14480 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14481 | |
14482 | # So? What about this header? | |
8a2fc586 AK |
14483 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14484 | yes:no: ) | |
ec6a6fbe AK |
14485 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14486 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14487 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14488 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14489 | ac_header_preproc=yes |
ad6254c5 | 14490 | ;; |
8a2fc586 | 14491 | no:yes:* ) |
ec6a6fbe AK |
14492 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14493 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14494 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14495 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14496 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14497 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14498 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14499 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14500 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14501 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14502 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14503 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14504 | |
ad6254c5 AK |
14505 | ;; |
14506 | esac | |
ec6a6fbe AK |
14507 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14508 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14509 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14510 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14511 | else |
8a2fc586 | 14512 | eval "$as_ac_Header=\$ac_header_preproc" |
8106cdd5 | 14513 | fi |
ec6a6fbe AK |
14514 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14515 | $as_echo "$as_val"'` | |
14516 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14517 | $as_echo "$ac_res" >&6; } | |
8106cdd5 | 14518 | |
795ca3e5 | 14519 | fi |
ec6a6fbe AK |
14520 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14521 | $as_echo "$as_val"'` | |
14522 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14523 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14524 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
14525 | _ACEOF |
14526 | ||
795ca3e5 AK |
14527 | fi |
14528 | ||
ad6254c5 AK |
14529 | done |
14530 | ||
ec6a6fbe AK |
14531 | { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
14532 | $as_echo_n "checking types of arguments for select... " >&6; } | |
ad6254c5 | 14533 | if test "${ac_cv_func_select_args+set}" = set; then |
ec6a6fbe | 14534 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 14535 | else |
ad6254c5 | 14536 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7a197a62 | 14537 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
ad6254c5 AK |
14538 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
14539 | cat >conftest.$ac_ext <<_ACEOF | |
ad6254c5 AK |
14540 | /* confdefs.h. */ |
14541 | _ACEOF | |
14542 | cat confdefs.h >>conftest.$ac_ext | |
14543 | cat >>conftest.$ac_ext <<_ACEOF | |
14544 | /* end confdefs.h. */ | |
14545 | $ac_includes_default | |
25fbec5b | 14546 | #ifdef HAVE_SYS_SELECT_H |
ad6254c5 AK |
14547 | # include <sys/select.h> |
14548 | #endif | |
25fbec5b | 14549 | #ifdef HAVE_SYS_SOCKET_H |
ad6254c5 AK |
14550 | # include <sys/socket.h> |
14551 | #endif | |
14552 | ||
14553 | int | |
14554 | main () | |
14555 | { | |
14556 | extern int select ($ac_arg1, | |
8a2fc586 AK |
14557 | $ac_arg234, $ac_arg234, $ac_arg234, |
14558 | $ac_arg5); | |
ad6254c5 AK |
14559 | ; |
14560 | return 0; | |
14561 | } | |
14562 | _ACEOF | |
14563 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14564 | if { (ac_try="$ac_compile" |
14565 | case "(($ac_try" in | |
14566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14567 | *) ac_try_echo=$ac_try;; | |
14568 | esac | |
ec6a6fbe AK |
14569 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14570 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14571 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14572 | ac_status=$? |
8a2fc586 AK |
14573 | grep -v '^ *+' conftest.er1 >conftest.err |
14574 | rm -f conftest.er1 | |
14575 | cat conftest.err >&5 | |
ec6a6fbe | 14576 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14577 | (exit $ac_status); } && { |
14578 | test -z "$ac_c_werror_flag" || | |
14579 | test ! -s conftest.err | |
14580 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14581 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
14582 | else | |
ec6a6fbe | 14583 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14584 | sed 's/^/| /' conftest.$ac_ext >&5 |
14585 | ||
7a197a62 | 14586 | |
ad6254c5 | 14587 | fi |
7a197a62 AK |
14588 | |
14589 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 AK |
14590 | done |
14591 | done | |
14592 | done | |
14593 | # Provide a safe default value. | |
14594 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
14595 | ||
26e7f2e0 | 14596 | fi |
ec6a6fbe AK |
14597 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
14598 | $as_echo "$ac_cv_func_select_args" >&6; } | |
ad6254c5 AK |
14599 | ac_save_IFS=$IFS; IFS=',' |
14600 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
14601 | IFS=$ac_save_IFS | |
14602 | shift | |
14603 | ||
14604 | cat >>confdefs.h <<_ACEOF | |
14605 | #define SELECT_TYPE_ARG1 $1 | |
14606 | _ACEOF | |
14607 | ||
14608 | ||
14609 | cat >>confdefs.h <<_ACEOF | |
14610 | #define SELECT_TYPE_ARG234 ($2) | |
14611 | _ACEOF | |
14612 | ||
14613 | ||
14614 | cat >>confdefs.h <<_ACEOF | |
14615 | #define SELECT_TYPE_ARG5 ($3) | |
14616 | _ACEOF | |
14617 | ||
80992638 | 14618 | rm -f conftest* |
80992638 | 14619 | |
8106cdd5 | 14620 | fi |
ad6254c5 | 14621 | |
ad6254c5 AK |
14622 | if test x$CLUSTER != xnone; then |
14623 | ||
14624 | ||
14625 | for ac_header in sys/socket.h sys/un.h | |
b896caa1 | 14626 | do |
ec6a6fbe | 14627 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14628 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14629 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14630 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14631 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14632 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14633 | fi |
ec6a6fbe AK |
14634 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14635 | $as_echo "$as_val"'` | |
14636 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14637 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14638 | else |
14639 | # Is the header compilable? | |
ec6a6fbe AK |
14640 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14641 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14642 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14643 | /* confdefs.h. */ |
14644 | _ACEOF | |
14645 | cat confdefs.h >>conftest.$ac_ext | |
14646 | cat >>conftest.$ac_ext <<_ACEOF | |
14647 | /* end confdefs.h. */ | |
14648 | $ac_includes_default | |
14649 | #include <$ac_header> | |
14650 | _ACEOF | |
14651 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14652 | if { (ac_try="$ac_compile" |
14653 | case "(($ac_try" in | |
14654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14655 | *) ac_try_echo=$ac_try;; | |
14656 | esac | |
ec6a6fbe AK |
14657 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14658 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14659 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14660 | ac_status=$? |
8a2fc586 AK |
14661 | grep -v '^ *+' conftest.er1 >conftest.err |
14662 | rm -f conftest.er1 | |
14663 | cat conftest.err >&5 | |
ec6a6fbe | 14664 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14665 | (exit $ac_status); } && { |
14666 | test -z "$ac_c_werror_flag" || | |
14667 | test ! -s conftest.err | |
14668 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14669 | ac_header_compiler=yes |
14670 | else | |
ec6a6fbe | 14671 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14672 | sed 's/^/| /' conftest.$ac_ext >&5 |
14673 | ||
7a197a62 | 14674 | ac_header_compiler=no |
ad6254c5 | 14675 | fi |
7a197a62 AK |
14676 | |
14677 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14678 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14679 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14680 | |
14681 | # Is the header present? | |
ec6a6fbe AK |
14682 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14683 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14684 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14685 | /* confdefs.h. */ |
14686 | _ACEOF | |
14687 | cat confdefs.h >>conftest.$ac_ext | |
14688 | cat >>conftest.$ac_ext <<_ACEOF | |
14689 | /* end confdefs.h. */ | |
14690 | #include <$ac_header> | |
14691 | _ACEOF | |
7a197a62 AK |
14692 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14693 | case "(($ac_try" in | |
14694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14695 | *) ac_try_echo=$ac_try;; | |
14696 | esac | |
ec6a6fbe AK |
14697 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14698 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14699 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14700 | ac_status=$? |
14701 | grep -v '^ *+' conftest.er1 >conftest.err | |
14702 | rm -f conftest.er1 | |
14703 | cat conftest.err >&5 | |
ec6a6fbe | 14704 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14705 | (exit $ac_status); } >/dev/null && { |
14706 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14707 | test ! -s conftest.err | |
14708 | }; then | |
ad6254c5 AK |
14709 | ac_header_preproc=yes |
14710 | else | |
ec6a6fbe | 14711 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14712 | sed 's/^/| /' conftest.$ac_ext >&5 |
14713 | ||
14714 | ac_header_preproc=no | |
14715 | fi | |
7a197a62 | 14716 | |
ad6254c5 | 14717 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14718 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14719 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14720 | |
14721 | # So? What about this header? | |
8a2fc586 AK |
14722 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14723 | yes:no: ) | |
ec6a6fbe AK |
14724 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14725 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14726 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14727 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14728 | ac_header_preproc=yes |
ad6254c5 | 14729 | ;; |
8a2fc586 | 14730 | no:yes:* ) |
ec6a6fbe AK |
14731 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14732 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14733 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14734 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14735 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14736 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14737 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14738 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14739 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14740 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14741 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14742 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 14743 | |
ad6254c5 AK |
14744 | ;; |
14745 | esac | |
ec6a6fbe AK |
14746 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14747 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14748 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14749 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14750 | else |
8a2fc586 | 14751 | eval "$as_ac_Header=\$ac_header_preproc" |
b896caa1 | 14752 | fi |
ec6a6fbe AK |
14753 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14754 | $as_echo "$as_val"'` | |
14755 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14756 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14757 | |
14758 | fi | |
ec6a6fbe AK |
14759 | as_val=`eval 'as_val=${'$as_ac_Header'} |
14760 | $as_echo "$as_val"'` | |
14761 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14762 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14763 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 AK |
14764 | _ACEOF |
14765 | ||
80992638 | 14766 | else |
ec6a6fbe AK |
14767 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14768 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 14769 | { (exit 1); exit 1; }; } |
b896caa1 | 14770 | fi |
ad6254c5 | 14771 | |
b896caa1 AK |
14772 | done |
14773 | ||
14774 | ||
ad6254c5 AK |
14775 | for ac_func in socket |
14776 | do | |
ec6a6fbe AK |
14777 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14778 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14779 | $as_echo_n "checking for $ac_func... " >&6; } | |
7a197a62 | 14780 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14781 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 14782 | else |
ad6254c5 | 14783 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14784 | /* confdefs.h. */ |
14785 | _ACEOF | |
14786 | cat confdefs.h >>conftest.$ac_ext | |
14787 | cat >>conftest.$ac_ext <<_ACEOF | |
14788 | /* end confdefs.h. */ | |
8a2fc586 AK |
14789 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14790 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14791 | #define $ac_func innocuous_$ac_func | |
14792 | ||
ad6254c5 AK |
14793 | /* System header to define __stub macros and hopefully few prototypes, |
14794 | which can conflict with char $ac_func (); below. | |
14795 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14796 | <limits.h> exists even on freestanding compilers. */ | |
8a2fc586 | 14797 | |
ad6254c5 AK |
14798 | #ifdef __STDC__ |
14799 | # include <limits.h> | |
14800 | #else | |
14801 | # include <assert.h> | |
14802 | #endif | |
8a2fc586 AK |
14803 | |
14804 | #undef $ac_func | |
14805 | ||
7a197a62 AK |
14806 | /* Override any GCC internal prototype to avoid an error. |
14807 | Use char because int might match the return type of a GCC | |
14808 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
14809 | #ifdef __cplusplus |
14810 | extern "C" | |
ad6254c5 | 14811 | #endif |
ad6254c5 AK |
14812 | char $ac_func (); |
14813 | /* The GNU C library defines this for functions which it implements | |
14814 | to always fail with ENOSYS. Some functions are actually named | |
14815 | something starting with __ and the normal name is an alias. */ | |
7a197a62 | 14816 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ad6254c5 | 14817 | choke me |
ad6254c5 AK |
14818 | #endif |
14819 | ||
14820 | int | |
14821 | main () | |
14822 | { | |
7a197a62 | 14823 | return $ac_func (); |
ad6254c5 AK |
14824 | ; |
14825 | return 0; | |
14826 | } | |
14827 | _ACEOF | |
14828 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7a197a62 AK |
14829 | if { (ac_try="$ac_link" |
14830 | case "(($ac_try" in | |
14831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14832 | *) ac_try_echo=$ac_try;; | |
14833 | esac | |
ec6a6fbe AK |
14834 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14835 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14836 | (eval "$ac_link") 2>conftest.er1 |
ad6254c5 | 14837 | ac_status=$? |
8a2fc586 AK |
14838 | grep -v '^ *+' conftest.er1 >conftest.err |
14839 | rm -f conftest.er1 | |
14840 | cat conftest.err >&5 | |
ec6a6fbe | 14841 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14842 | (exit $ac_status); } && { |
14843 | test -z "$ac_c_werror_flag" || | |
14844 | test ! -s conftest.err | |
ec6a6fbe AK |
14845 | } && test -s conftest$ac_exeext && { |
14846 | test "$cross_compiling" = yes || | |
14847 | $as_test_x conftest$ac_exeext | |
14848 | }; then | |
ad6254c5 AK |
14849 | eval "$as_ac_var=yes" |
14850 | else | |
ec6a6fbe | 14851 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14852 | sed 's/^/| /' conftest.$ac_ext >&5 |
14853 | ||
7a197a62 | 14854 | eval "$as_ac_var=no" |
ad6254c5 | 14855 | fi |
7a197a62 | 14856 | |
ec6a6fbe | 14857 | rm -rf conftest.dSYM |
25fbec5b | 14858 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8a2fc586 | 14859 | conftest$ac_exeext conftest.$ac_ext |
ad6254c5 | 14860 | fi |
ec6a6fbe AK |
14861 | ac_res=`eval 'as_val=${'$as_ac_var'} |
14862 | $as_echo "$as_val"'` | |
14863 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14864 | $as_echo "$ac_res" >&6; } | |
14865 | as_val=`eval 'as_val=${'$as_ac_var'} | |
14866 | $as_echo "$as_val"'` | |
14867 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 14868 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 14869 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ad6254c5 AK |
14870 | _ACEOF |
14871 | ||
14872 | else | |
ec6a6fbe AK |
14873 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
14874 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 AK |
14875 | { (exit 1); exit 1; }; } |
14876 | fi | |
14877 | done | |
14878 | ||
14879 | fi | |
14880 | ||
14881 | if test x$HAVE_LIBDL = xyes; then | |
14882 | ||
14883 | for ac_header in dlfcn.h | |
14884 | do | |
ec6a6fbe | 14885 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 14886 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
14887 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14888 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 14889 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 14890 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 14891 | fi |
ec6a6fbe AK |
14892 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
14893 | $as_echo "$as_val"'` | |
14894 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14895 | $as_echo "$ac_res" >&6; } | |
ad6254c5 AK |
14896 | else |
14897 | # Is the header compilable? | |
ec6a6fbe AK |
14898 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
14899 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 14900 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14901 | /* confdefs.h. */ |
14902 | _ACEOF | |
14903 | cat confdefs.h >>conftest.$ac_ext | |
14904 | cat >>conftest.$ac_ext <<_ACEOF | |
14905 | /* end confdefs.h. */ | |
14906 | $ac_includes_default | |
14907 | #include <$ac_header> | |
14908 | _ACEOF | |
14909 | rm -f conftest.$ac_objext | |
7a197a62 AK |
14910 | if { (ac_try="$ac_compile" |
14911 | case "(($ac_try" in | |
14912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14913 | *) ac_try_echo=$ac_try;; | |
14914 | esac | |
ec6a6fbe AK |
14915 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14916 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14917 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 14918 | ac_status=$? |
8a2fc586 AK |
14919 | grep -v '^ *+' conftest.er1 >conftest.err |
14920 | rm -f conftest.er1 | |
14921 | cat conftest.err >&5 | |
ec6a6fbe | 14922 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14923 | (exit $ac_status); } && { |
14924 | test -z "$ac_c_werror_flag" || | |
14925 | test ! -s conftest.err | |
14926 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
14927 | ac_header_compiler=yes |
14928 | else | |
ec6a6fbe | 14929 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14930 | sed 's/^/| /' conftest.$ac_ext >&5 |
14931 | ||
7a197a62 | 14932 | ac_header_compiler=no |
ad6254c5 | 14933 | fi |
7a197a62 AK |
14934 | |
14935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
14936 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14937 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
14938 | |
14939 | # Is the header present? | |
ec6a6fbe AK |
14940 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
14941 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 14942 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
14943 | /* confdefs.h. */ |
14944 | _ACEOF | |
14945 | cat confdefs.h >>conftest.$ac_ext | |
14946 | cat >>conftest.$ac_ext <<_ACEOF | |
14947 | /* end confdefs.h. */ | |
14948 | #include <$ac_header> | |
14949 | _ACEOF | |
7a197a62 AK |
14950 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14951 | case "(($ac_try" in | |
14952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14953 | *) ac_try_echo=$ac_try;; | |
14954 | esac | |
ec6a6fbe AK |
14955 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
14956 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 14957 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
14958 | ac_status=$? |
14959 | grep -v '^ *+' conftest.er1 >conftest.err | |
14960 | rm -f conftest.er1 | |
14961 | cat conftest.err >&5 | |
ec6a6fbe | 14962 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
14963 | (exit $ac_status); } >/dev/null && { |
14964 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14965 | test ! -s conftest.err | |
14966 | }; then | |
ad6254c5 AK |
14967 | ac_header_preproc=yes |
14968 | else | |
ec6a6fbe | 14969 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
14970 | sed 's/^/| /' conftest.$ac_ext >&5 |
14971 | ||
14972 | ac_header_preproc=no | |
14973 | fi | |
7a197a62 | 14974 | |
ad6254c5 | 14975 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
14976 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14977 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
14978 | |
14979 | # So? What about this header? | |
8a2fc586 AK |
14980 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14981 | yes:no: ) | |
ec6a6fbe AK |
14982 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14983 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14984 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14985 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 14986 | ac_header_preproc=yes |
ad6254c5 | 14987 | ;; |
8a2fc586 | 14988 | no:yes:* ) |
ec6a6fbe AK |
14989 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14990 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14991 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14992 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14993 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14994 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14995 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14996 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14997 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14998 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14999 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15000 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 15001 | |
ad6254c5 AK |
15002 | ;; |
15003 | esac | |
ec6a6fbe AK |
15004 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15005 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15006 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15007 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15008 | else |
8a2fc586 | 15009 | eval "$as_ac_Header=\$ac_header_preproc" |
795ca3e5 | 15010 | fi |
ec6a6fbe AK |
15011 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15012 | $as_echo "$as_val"'` | |
15013 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15014 | $as_echo "$ac_res" >&6; } | |
80992638 | 15015 | |
8106cdd5 | 15016 | fi |
ec6a6fbe AK |
15017 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15018 | $as_echo "$as_val"'` | |
15019 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 15020 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 15021 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 15022 | _ACEOF |
795ca3e5 AK |
15023 | |
15024 | else | |
ec6a6fbe AK |
15025 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
15026 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 15027 | { (exit 1); exit 1; }; } |
795ca3e5 AK |
15028 | fi |
15029 | ||
ad6254c5 | 15030 | done |
80992638 | 15031 | |
ad6254c5 | 15032 | fi |
80992638 | 15033 | |
ad6254c5 | 15034 | if test x$INTL = xyes; then |
83912faa | 15035 | |
ad6254c5 AK |
15036 | for ac_header in libintl.h |
15037 | do | |
ec6a6fbe | 15038 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7a197a62 | 15039 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe AK |
15040 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15041 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15042 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15043 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 15044 | fi |
ec6a6fbe AK |
15045 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15046 | $as_echo "$as_val"'` | |
15047 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15048 | $as_echo "$ac_res" >&6; } | |
83912faa | 15049 | else |
ad6254c5 | 15050 | # Is the header compilable? |
ec6a6fbe AK |
15051 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15052 | $as_echo_n "checking $ac_header usability... " >&6; } | |
ad6254c5 | 15053 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15054 | /* confdefs.h. */ |
15055 | _ACEOF | |
15056 | cat confdefs.h >>conftest.$ac_ext | |
15057 | cat >>conftest.$ac_ext <<_ACEOF | |
15058 | /* end confdefs.h. */ | |
15059 | $ac_includes_default | |
15060 | #include <$ac_header> | |
15061 | _ACEOF | |
15062 | rm -f conftest.$ac_objext | |
7a197a62 AK |
15063 | if { (ac_try="$ac_compile" |
15064 | case "(($ac_try" in | |
15065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15066 | *) ac_try_echo=$ac_try;; | |
15067 | esac | |
ec6a6fbe AK |
15068 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15069 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15070 | (eval "$ac_compile") 2>conftest.er1 |
ad6254c5 | 15071 | ac_status=$? |
8a2fc586 AK |
15072 | grep -v '^ *+' conftest.er1 >conftest.err |
15073 | rm -f conftest.er1 | |
15074 | cat conftest.err >&5 | |
ec6a6fbe | 15075 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15076 | (exit $ac_status); } && { |
15077 | test -z "$ac_c_werror_flag" || | |
15078 | test ! -s conftest.err | |
15079 | } && test -s conftest.$ac_objext; then | |
ad6254c5 AK |
15080 | ac_header_compiler=yes |
15081 | else | |
ec6a6fbe | 15082 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15083 | sed 's/^/| /' conftest.$ac_ext >&5 |
15084 | ||
7a197a62 | 15085 | ac_header_compiler=no |
ad6254c5 | 15086 | fi |
7a197a62 AK |
15087 | |
15088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ec6a6fbe AK |
15089 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15090 | $as_echo "$ac_header_compiler" >&6; } | |
ad6254c5 AK |
15091 | |
15092 | # Is the header present? | |
ec6a6fbe AK |
15093 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15094 | $as_echo_n "checking $ac_header presence... " >&6; } | |
ad6254c5 | 15095 | cat >conftest.$ac_ext <<_ACEOF |
ad6254c5 AK |
15096 | /* confdefs.h. */ |
15097 | _ACEOF | |
15098 | cat confdefs.h >>conftest.$ac_ext | |
15099 | cat >>conftest.$ac_ext <<_ACEOF | |
15100 | /* end confdefs.h. */ | |
15101 | #include <$ac_header> | |
15102 | _ACEOF | |
7a197a62 AK |
15103 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15104 | case "(($ac_try" in | |
15105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15106 | *) ac_try_echo=$ac_try;; | |
15107 | esac | |
ec6a6fbe AK |
15108 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
15109 | $as_echo "$ac_try_echo") >&5 | |
7a197a62 | 15110 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
ad6254c5 AK |
15111 | ac_status=$? |
15112 | grep -v '^ *+' conftest.er1 >conftest.err | |
15113 | rm -f conftest.er1 | |
15114 | cat conftest.err >&5 | |
ec6a6fbe | 15115 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25fbec5b AK |
15116 | (exit $ac_status); } >/dev/null && { |
15117 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15118 | test ! -s conftest.err | |
15119 | }; then | |
ad6254c5 AK |
15120 | ac_header_preproc=yes |
15121 | else | |
ec6a6fbe | 15122 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
15123 | sed 's/^/| /' conftest.$ac_ext >&5 |
15124 | ||
15125 | ac_header_preproc=no | |
15126 | fi | |
7a197a62 | 15127 | |
ad6254c5 | 15128 | rm -f conftest.err conftest.$ac_ext |
ec6a6fbe AK |
15129 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15130 | $as_echo "$ac_header_preproc" >&6; } | |
ad6254c5 AK |
15131 | |
15132 | # So? What about this header? | |
8a2fc586 AK |
15133 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15134 | yes:no: ) | |
ec6a6fbe AK |
15135 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15136 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15137 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15138 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8a2fc586 | 15139 | ac_header_preproc=yes |
ad6254c5 | 15140 | ;; |
8a2fc586 | 15141 | no:yes:* ) |
ec6a6fbe AK |
15142 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15143 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15144 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15145 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15146 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15147 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15148 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15149 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15150 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15151 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15152 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15153 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7a197a62 | 15154 | |
ad6254c5 AK |
15155 | ;; |
15156 | esac | |
ec6a6fbe AK |
15157 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15158 | $as_echo_n "checking for $ac_header... " >&6; } | |
7a197a62 | 15159 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
ec6a6fbe | 15160 | $as_echo_n "(cached) " >&6 |
80992638 | 15161 | else |
8a2fc586 | 15162 | eval "$as_ac_Header=\$ac_header_preproc" |
83912faa | 15163 | fi |
ec6a6fbe AK |
15164 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
15165 | $as_echo "$as_val"'` | |
15166 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15167 | $as_echo "$ac_res" >&6; } | |
83912faa | 15168 | |
69792976 | 15169 | fi |
ec6a6fbe AK |
15170 | as_val=`eval 'as_val=${'$as_ac_Header'} |
15171 | $as_echo "$as_val"'` | |
15172 | if test "x$as_val" = x""yes; then | |
ad6254c5 | 15173 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 15174 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 15175 | _ACEOF |
69792976 | 15176 | |
69792976 | 15177 | else |
ec6a6fbe AK |
15178 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 |
15179 | $as_echo "$as_me: error: bailing out" >&2;} | |
ad6254c5 | 15180 | { (exit 1); exit 1; }; } |
80992638 AK |
15181 | fi |
15182 | ||
ad6254c5 | 15183 | done |
69792976 | 15184 | |
ad6254c5 AK |
15185 | fi |
15186 | ||
a5f46f6a AK |
15187 | if test x$UDEV_SYNC = xyes; then |
15188 | ||
15189 | ||
15190 | for ac_header in sys/ipc.h sys/sem.h | |
15191 | do | |
15192 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15193 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15194 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15195 | $as_echo_n "checking for $ac_header... " >&6; } | |
15196 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15197 | $as_echo_n "(cached) " >&6 | |
15198 | fi | |
15199 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15200 | $as_echo "$as_val"'` | |
15201 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15202 | $as_echo "$ac_res" >&6; } | |
15203 | else | |
15204 | # Is the header compilable? | |
15205 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15206 | $as_echo_n "checking $ac_header usability... " >&6; } | |
15207 | cat >conftest.$ac_ext <<_ACEOF | |
15208 | /* confdefs.h. */ | |
15209 | _ACEOF | |
15210 | cat confdefs.h >>conftest.$ac_ext | |
15211 | cat >>conftest.$ac_ext <<_ACEOF | |
15212 | /* end confdefs.h. */ | |
15213 | $ac_includes_default | |
15214 | #include <$ac_header> | |
15215 | _ACEOF | |
15216 | rm -f conftest.$ac_objext | |
15217 | if { (ac_try="$ac_compile" | |
15218 | case "(($ac_try" in | |
15219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15220 | *) ac_try_echo=$ac_try;; | |
15221 | esac | |
15222 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15223 | $as_echo "$ac_try_echo") >&5 | |
15224 | (eval "$ac_compile") 2>conftest.er1 | |
15225 | ac_status=$? | |
15226 | grep -v '^ *+' conftest.er1 >conftest.err | |
15227 | rm -f conftest.er1 | |
15228 | cat conftest.err >&5 | |
15229 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15230 | (exit $ac_status); } && { | |
15231 | test -z "$ac_c_werror_flag" || | |
15232 | test ! -s conftest.err | |
15233 | } && test -s conftest.$ac_objext; then | |
15234 | ac_header_compiler=yes | |
15235 | else | |
15236 | $as_echo "$as_me: failed program was:" >&5 | |
15237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15238 | ||
15239 | ac_header_compiler=no | |
15240 | fi | |
15241 | ||
15242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15243 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15244 | $as_echo "$ac_header_compiler" >&6; } | |
15245 | ||
15246 | # Is the header present? | |
15247 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15248 | $as_echo_n "checking $ac_header presence... " >&6; } | |
15249 | cat >conftest.$ac_ext <<_ACEOF | |
15250 | /* confdefs.h. */ | |
15251 | _ACEOF | |
15252 | cat confdefs.h >>conftest.$ac_ext | |
15253 | cat >>conftest.$ac_ext <<_ACEOF | |
15254 | /* end confdefs.h. */ | |
15255 | #include <$ac_header> | |
15256 | _ACEOF | |
15257 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15258 | case "(($ac_try" in | |
15259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15260 | *) ac_try_echo=$ac_try;; | |
15261 | esac | |
15262 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
15263 | $as_echo "$ac_try_echo") >&5 | |
15264 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15265 | ac_status=$? | |
15266 | grep -v '^ *+' conftest.er1 >conftest.err | |
15267 | rm -f conftest.er1 | |
15268 | cat conftest.err >&5 | |
15269 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15270 | (exit $ac_status); } >/dev/null && { | |
15271 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15272 | test ! -s conftest.err | |
15273 | }; then | |
15274 | ac_header_preproc=yes | |
15275 | else | |
15276 | $as_echo "$as_me: failed program was:" >&5 | |
15277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15278 | ||
15279 | ac_header_preproc=no | |
15280 | fi | |
15281 | ||
15282 | rm -f conftest.err conftest.$ac_ext | |
15283 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15284 | $as_echo "$ac_header_preproc" >&6; } | |
15285 | ||
15286 | # So? What about this header? | |
15287 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15288 | yes:no: ) | |
15289 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15290 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15291 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15292 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15293 | ac_header_preproc=yes | |
15294 | ;; | |
15295 | no:yes:* ) | |
15296 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15297 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15298 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15299 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15300 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15301 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15302 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15303 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15304 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15305 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15306 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15307 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
15308 | ||
15309 | ;; | |
15310 | esac | |
15311 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15312 | $as_echo_n "checking for $ac_header... " >&6; } | |
15313 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15314 | $as_echo_n "(cached) " >&6 | |
15315 | else | |
15316 | eval "$as_ac_Header=\$ac_header_preproc" | |
15317 | fi | |
15318 | ac_res=`eval 'as_val=${'$as_ac_Header'} | |
15319 | $as_echo "$as_val"'` | |
15320 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15321 | $as_echo "$ac_res" >&6; } | |
15322 | ||
15323 | fi | |
15324 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
15325 | $as_echo "$as_val"'` | |
15326 | if test "x$as_val" = x""yes; then | |
15327 | cat >>confdefs.h <<_ACEOF | |
15328 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15329 | _ACEOF | |
15330 | ||
15331 | else | |
15332 | { { $as_echo "$as_me:$LINENO: error: bailing out" >&5 | |
15333 | $as_echo "$as_me: error: bailing out" >&2;} | |
15334 | { (exit 1); exit 1; }; } | |
15335 | fi | |
15336 | ||
15337 | done | |
15338 | ||
15339 | fi | |
15340 | ||
a653923f AK |
15341 | ################################################################################ |
15342 | # Extract the first word of "modprobe", so it can be a program name with args. | |
15343 | set dummy modprobe; ac_word=$2 | |
ec6a6fbe AK |
15344 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
15345 | $as_echo_n "checking for $ac_word... " >&6; } | |
72b2cb61 | 15346 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then |
ec6a6fbe | 15347 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
15348 | else |
15349 | case $MODPROBE_CMD in | |
15350 | [\\/]* | ?:[\\/]*) | |
15351 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
15352 | ;; | |
15353 | *) | |
15354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15355 | for as_dir in $PATH | |
15356 | do | |
15357 | IFS=$as_save_IFS | |
15358 | test -z "$as_dir" && as_dir=. | |
15359 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25fbec5b | 15360 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 15361 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
ec6a6fbe | 15362 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
15363 | break 2 |
15364 | fi | |
15365 | done | |
15366 | done | |
7a197a62 | 15367 | IFS=$as_save_IFS |
72b2cb61 AK |
15368 | |
15369 | ;; | |
15370 | esac | |
15371 | fi | |
15372 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 15373 | if test -n "$MODPROBE_CMD"; then |
ec6a6fbe AK |
15374 | { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5 |
15375 | $as_echo "$MODPROBE_CMD" >&6; } | |
72b2cb61 | 15376 | else |
ec6a6fbe AK |
15377 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
15378 | $as_echo "no" >&6; } | |
72b2cb61 AK |
15379 | fi |
15380 | ||
a653923f | 15381 | |
7a197a62 | 15382 | |
a653923f | 15383 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
15384 | |
15385 | cat >>confdefs.h <<_ACEOF | |
15386 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
15387 | _ACEOF | |
15388 | ||
a653923f AK |
15389 | fi |
15390 | ||
80992638 | 15391 | ################################################################################ |
93bd259b AK |
15392 | |
15393 | ||
15394 | if test "$BUILD_DMEVENTD" = yes; then | |
15395 | ||
15396 | # Check whether --with-dmeventd-pidfile was given. | |
15397 | if test "${with_dmeventd_pidfile+set}" = set; then | |
15398 | withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF | |
15399 | #define DMEVENTD_PIDFILE "$withval" | |
15400 | _ACEOF | |
15401 | ||
15402 | else | |
15403 | cat >>confdefs.h <<_ACEOF | |
15404 | #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid" | |
15405 | _ACEOF | |
15406 | ||
15407 | fi | |
15408 | ||
15409 | fi | |
15410 | ||
15411 | ||
15412 | ||
15413 | if test "$BUILD_DMEVENTD" = yes; then | |
15414 | dmeventd_prefix="$exec_prefix" | |
15415 | if test "x$dmeventd_prefix" = "xNONE"; then | |
15416 | dmeventd_prefix="$prefix" | |
15417 | fi | |
15418 | if test "x$dmeventd_prefix" = "xNONE"; then | |
15419 | dmeventd_prefix="" | |
15420 | fi | |
15421 | ||
15422 | # Check whether --with-dmeventd-path was given. | |
15423 | if test "${with_dmeventd_path+set}" = set; then | |
15424 | withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF | |
15425 | #define DMEVENTD_PATH "$withval" | |
15426 | _ACEOF | |
15427 | ||
15428 | else | |
15429 | cat >>confdefs.h <<_ACEOF | |
15430 | #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd" | |
15431 | _ACEOF | |
15432 | ||
15433 | fi | |
15434 | ||
15435 | fi | |
15436 | ||
15437 | ################################################################################ | |
ec6a6fbe AK |
15438 | { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5 |
15439 | $as_echo_n "checking for kernel interface choice... " >&6; } | |
93bd259b AK |
15440 | |
15441 | # Check whether --with-interface was given. | |
15442 | if test "${with_interface+set}" = set; then | |
15443 | withval=$with_interface; interface="$withval" | |
15444 | else | |
15445 | interface=ioctl | |
15446 | fi | |
15447 | ||
15448 | if [ "x$interface" != xioctl ]; | |
15449 | then | |
ec6a6fbe AK |
15450 | { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5 |
15451 | $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;} | |
93bd259b AK |
15452 | { (exit 1); exit 1; }; } |
15453 | fi | |
ec6a6fbe AK |
15454 | { $as_echo "$as_me:$LINENO: result: $interface" >&5 |
15455 | $as_echo "$interface" >&6; } | |
93bd259b AK |
15456 | |
15457 | ################################################################################ | |
db8b5af9 | 15458 | DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
15459 | |
15460 | cat >>confdefs.h <<_ACEOF | |
15461 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
15462 | _ACEOF | |
15463 | ||
15464 | ||
db8b5af9 | 15465 | DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 15466 | |
db8b5af9 | 15467 | LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 15468 | |
db8b5af9 | 15469 | VER=`cat "$srcdir"/VERSION` |
bf456146 | 15470 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
15471 | VER=`echo "$VER" | $AWK '{print $1}'` |
15472 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
15473 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
15474 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
15475 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
15476 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
15477 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 15478 | |
80992638 | 15479 | ################################################################################ |
fae0c576 | 15480 | |
83912faa | 15481 | |
795ca3e5 AK |
15482 | |
15483 | ||
15484 | ||
15485 | ||
15486 | ||
15487 | ||
5a52dca9 | 15488 | |
8ef2b021 | 15489 | |
199e490e | 15490 | |
69792976 AK |
15491 | |
15492 | ||
15493 | ||
d0191583 | 15494 | |
69792976 | 15495 | |
8106cdd5 AK |
15496 | |
15497 | ||
15498 | ||
15499 | ||
15500 | ||
d68a82ec | 15501 | |
036f273a | 15502 | |
7d1552c9 | 15503 | |
8106cdd5 | 15504 | |
0a62c911 | 15505 | |
8106cdd5 | 15506 | |
4a7f3eb2 | 15507 | |
4922197a AK |
15508 | |
15509 | ||
d8ac0fbc | 15510 | |
1a9ea74d | 15511 | |
8a2fc586 AK |
15512 | |
15513 | ||
d0191583 | 15514 | |
93bd259b AK |
15515 | |
15516 | ||
15517 | ||
15518 | ||
15519 | ||
d0191583 JM |
15520 | |
15521 | ||
15522 | ||
15523 | ||
15524 | ||
8a2fc586 | 15525 | |
19a2c6e0 | 15526 | |
db724a44 | 15527 | |
8ce0cbda | 15528 | |
8b1a3214 | 15529 | |
ec6a6fbe AK |
15530 | |
15531 | ||
15532 | ||
15533 | ||
e2997b73 AK |
15534 | |
15535 | ||
15536 | ||
15537 | ||
15538 | ||
15539 | ||
a946372e AK |
15540 | |
15541 | ||
15542 | ||
15543 | ||
15544 | ||
15545 | ||
15546 | ||
15547 | ||
15548 | ||
15549 | ||
15550 | ||
ec6a6fbe | 15551 | |
33f732c5 | 15552 | |
66e941e8 | 15553 | |
d3c8211f | 15554 | |
7e3fe830 | 15555 | |
a5f46f6a AK |
15556 | |
15557 | ||
15558 | ||
572fefeb | 15559 | |
90c80887 AK |
15560 | |
15561 | ||
bf456146 | 15562 | |
e1b8a236 | 15563 | |
0878503f | 15564 | |
68f2de6d AK |
15565 | |
15566 | ||
80992638 | 15567 | ################################################################################ |
d3d98fdc | 15568 | 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 include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile" |
7a197a62 | 15569 | |
ad6254c5 | 15570 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
15571 | # This file is a shell script that caches the results of configure |
15572 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
15573 | # scripts and configure runs, see configure's option --config-cache. |
15574 | # It is not useful on other systems. If it contains results you don't | |
15575 | # want to keep, you may remove or edit it. | |
795ca3e5 | 15576 | # |
ad6254c5 AK |
15577 | # config.status only pays attention to the cache file if you give it |
15578 | # the --recheck option to rerun configure. | |
795ca3e5 | 15579 | # |
ad6254c5 AK |
15580 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
15581 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15582 | # following values. | |
15583 | ||
15584 | _ACEOF | |
15585 | ||
795ca3e5 AK |
15586 | # The following way of writing the cache mishandles newlines in values, |
15587 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 15588 | # So, we kill variables containing newlines. |
795ca3e5 AK |
15589 | # Ultrix sh set writes to stderr and can't be redirected directly, |
15590 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
15591 | ( |
15592 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
15593 | eval ac_val=\$$ac_var | |
15594 | case $ac_val in #( | |
15595 | *${as_nl}*) | |
15596 | case $ac_var in #( | |
ec6a6fbe AK |
15597 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
15598 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
15599 | esac |
15600 | case $ac_var in #( | |
15601 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 15602 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7a197a62 AK |
15603 | *) $as_unset $ac_var ;; |
15604 | esac ;; | |
15605 | esac | |
15606 | done | |
15607 | ||
ad6254c5 | 15608 | (set) 2>&1 | |
7a197a62 AK |
15609 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
15610 | *${as_nl}ac_space=\ *) | |
ad6254c5 AK |
15611 | # `set' does not quote correctly, so add quotes (double-quote |
15612 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
15613 | sed -n \ | |
8a2fc586 AK |
15614 | "s/'/'\\\\''/g; |
15615 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 15616 | ;; #( |
ad6254c5 AK |
15617 | *) |
15618 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 15619 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 15620 | ;; |
7a197a62 AK |
15621 | esac | |
15622 | sort | |
15623 | ) | | |
ad6254c5 | 15624 | sed ' |
7a197a62 | 15625 | /^ac_cv_env_/b end |
ad6254c5 | 15626 | t clear |
7a197a62 | 15627 | :clear |
ad6254c5 AK |
15628 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
15629 | t end | |
7a197a62 AK |
15630 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
15631 | :end' >>confcache | |
15632 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15633 | if test -w "$cache_file"; then | |
15634 | test "x$cache_file" != "x/dev/null" && | |
ec6a6fbe AK |
15635 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
15636 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
ad6254c5 | 15637 | cat confcache >$cache_file |
795ca3e5 | 15638 | else |
ec6a6fbe AK |
15639 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
15640 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
15641 | fi |
15642 | fi | |
15643 | rm -f confcache | |
15644 | ||
795ca3e5 AK |
15645 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
15646 | # Let make expand exec_prefix. | |
15647 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
15648 | ||
72b2cb61 | 15649 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
15650 | |
15651 | ac_libobjs= | |
15652 | ac_ltlibobjs= | |
15653 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
15654 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 15655 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 15656 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
15657 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
15658 | # will be set to the directory where LIBOBJS objects are built. | |
15659 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15660 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
15661 | done |
15662 | LIBOBJS=$ac_libobjs | |
80992638 | 15663 | |
ad6254c5 AK |
15664 | LTLIBOBJS=$ac_ltlibobjs |
15665 | ||
15666 | ||
15667 | ||
15668 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 15669 | ac_write_fail=0 |
ad6254c5 AK |
15670 | ac_clean_files_save=$ac_clean_files |
15671 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
ec6a6fbe AK |
15672 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
15673 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15674 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 AK |
15675 | #! $SHELL |
15676 | # Generated by $as_me. | |
795ca3e5 | 15677 | # Run this file to recreate the current configuration. |
795ca3e5 | 15678 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
15679 | # configure, is in config.log if it exists. |
15680 | ||
15681 | debug=false | |
15682 | ac_cs_recheck=false | |
15683 | ac_cs_silent=false | |
15684 | SHELL=\${CONFIG_SHELL-$SHELL} | |
15685 | _ACEOF | |
15686 | ||
ec6a6fbe | 15687 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
15688 | ## --------------------- ## |
15689 | ## M4sh Initialization. ## | |
15690 | ## --------------------- ## | |
15691 | ||
25fbec5b AK |
15692 | # Be more Bourne compatible |
15693 | DUALCASE=1; export DUALCASE # for MKS sh | |
ad6254c5 AK |
15694 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
15695 | emulate sh | |
15696 | NULLCMD=: | |
ec6a6fbe | 15697 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
15698 | # is contrary to our usage. Disable this feature. |
15699 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
15700 | setopt NO_GLOB_SUBST |
15701 | else | |
25fbec5b AK |
15702 | case `(set -o) 2>/dev/null` in |
15703 | *posix*) set -o posix ;; | |
15704 | esac | |
15705 | ||
7a197a62 | 15706 | fi |
25fbec5b AK |
15707 | |
15708 | ||
7a197a62 AK |
15709 | |
15710 | ||
15711 | # PATH needs CR | |
15712 | # Avoid depending upon Character Ranges. | |
15713 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15714 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15715 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15716 | as_cr_digits='0123456789' | |
15717 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15718 | ||
ec6a6fbe AK |
15719 | as_nl=' |
15720 | ' | |
15721 | export as_nl | |
15722 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15723 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15724 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15725 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15726 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15727 | as_echo='printf %s\n' | |
15728 | as_echo_n='printf %s' | |
15729 | else | |
15730 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15731 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15732 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 15733 | else |
ec6a6fbe AK |
15734 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
15735 | as_echo_n_body='eval | |
15736 | arg=$1; | |
15737 | case $arg in | |
15738 | *"$as_nl"*) | |
15739 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15740 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15741 | esac; | |
15742 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15743 | ' | |
15744 | export as_echo_n_body | |
15745 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 15746 | fi |
ec6a6fbe AK |
15747 | export as_echo_body |
15748 | as_echo='sh -c $as_echo_body as_echo' | |
15749 | fi | |
15750 | ||
15751 | # The user is always right. | |
15752 | if test "${PATH_SEPARATOR+set}" != set; then | |
15753 | PATH_SEPARATOR=: | |
15754 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15755 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15756 | PATH_SEPARATOR=';' | |
15757 | } | |
ad6254c5 AK |
15758 | fi |
15759 | ||
15760 | # Support unset when possible. | |
8a2fc586 | 15761 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ad6254c5 AK |
15762 | as_unset=unset |
15763 | else | |
15764 | as_unset=false | |
15765 | fi | |
8106cdd5 | 15766 | |
ad6254c5 | 15767 | |
7a197a62 AK |
15768 | # IFS |
15769 | # We need space, tab and new line, in precisely that order. Quoting is | |
15770 | # there to prevent editors from complaining about space-tab. | |
15771 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15772 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
15773 | IFS=" "" $as_nl" |
15774 | ||
15775 | # Find who we are. Look in the path if we contain no directory separator. | |
15776 | case $0 in | |
15777 | *[\\/]* ) as_myself=$0 ;; | |
15778 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15779 | for as_dir in $PATH | |
15780 | do | |
15781 | IFS=$as_save_IFS | |
15782 | test -z "$as_dir" && as_dir=. | |
15783 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15784 | done | |
15785 | IFS=$as_save_IFS | |
15786 | ||
15787 | ;; | |
15788 | esac | |
15789 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15790 | # in which case we are not to be found in the path. | |
15791 | if test "x$as_myself" = x; then | |
15792 | as_myself=$0 | |
15793 | fi | |
15794 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 15795 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7a197a62 AK |
15796 | { (exit 1); exit 1; } |
15797 | fi | |
15798 | ||
ad6254c5 | 15799 | # Work around bugs in pre-3.0 UWIN ksh. |
7a197a62 AK |
15800 | for as_var in ENV MAIL MAILPATH |
15801 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
15802 | done | |
ad6254c5 AK |
15803 | PS1='$ ' |
15804 | PS2='> ' | |
15805 | PS4='+ ' | |
15806 | ||
15807 | # NLS nuisances. | |
ec6a6fbe AK |
15808 | LC_ALL=C |
15809 | export LC_ALL | |
15810 | LANGUAGE=C | |
15811 | export LANGUAGE | |
8106cdd5 | 15812 | |
ad6254c5 | 15813 | # Required to use basename. |
7a197a62 AK |
15814 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15815 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
15816 | as_expr=expr |
15817 | else | |
15818 | as_expr=false | |
15819 | fi | |
8106cdd5 | 15820 | |
7a197a62 | 15821 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
15822 | as_basename=basename |
15823 | else | |
15824 | as_basename=false | |
15825 | fi | |
15826 | ||
15827 | ||
15828 | # Name of the executable. | |
7a197a62 | 15829 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
15830 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15831 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 15832 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 15833 | $as_echo X/"$0" | |
7a197a62 AK |
15834 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
15835 | s//\1/ | |
15836 | q | |
15837 | } | |
15838 | /^X\/\(\/\/\)$/{ | |
15839 | s//\1/ | |
15840 | q | |
15841 | } | |
15842 | /^X\/\(\/\).*/{ | |
15843 | s//\1/ | |
15844 | q | |
15845 | } | |
15846 | s/.*/./; q'` | |
ad6254c5 | 15847 | |
7a197a62 AK |
15848 | # CDPATH. |
15849 | $as_unset CDPATH | |
ad6254c5 AK |
15850 | |
15851 | ||
ad6254c5 | 15852 | |
ad6254c5 AK |
15853 | as_lineno_1=$LINENO |
15854 | as_lineno_2=$LINENO | |
ad6254c5 | 15855 | test "x$as_lineno_1" != "x$as_lineno_2" && |
7a197a62 | 15856 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
795ca3e5 | 15857 | |
ad6254c5 AK |
15858 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
15859 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7a197a62 AK |
15860 | # line-number line after each line using $LINENO; the second 'sed' |
15861 | # does the real work. The second script uses 'N' to pair each | |
15862 | # line-number line with the line containing $LINENO, and appends | |
15863 | # trailing '-' during substitution so that $LINENO is not a special | |
15864 | # case at line end. | |
ad6254c5 | 15865 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
7a197a62 AK |
15866 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
15867 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
15868 | sed -n ' | |
15869 | p | |
15870 | /[$]LINENO/= | |
15871 | ' <$as_myself | | |
ad6254c5 | 15872 | sed ' |
7a197a62 AK |
15873 | s/[$]LINENO.*/&-/ |
15874 | t lineno | |
15875 | b | |
15876 | :lineno | |
ad6254c5 | 15877 | N |
7a197a62 AK |
15878 | :loop |
15879 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
ad6254c5 | 15880 | t loop |
7a197a62 | 15881 | s/-\n.*// |
ad6254c5 | 15882 | ' >$as_me.lineno && |
7a197a62 | 15883 | chmod +x "$as_me.lineno" || |
ec6a6fbe | 15884 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
ad6254c5 AK |
15885 | { (exit 1); exit 1; }; } |
15886 | ||
15887 | # Don't try to exec as it changes $[0], causing all sort of problems | |
15888 | # (the dirname of $[0] is not the place where we might find the | |
7a197a62 AK |
15889 | # original and so on. Autoconf is especially sensitive to this). |
15890 | . "./$as_me.lineno" | |
ad6254c5 AK |
15891 | # Exit status is that of the last command. |
15892 | exit | |
15893 | } | |
15894 | ||
15895 | ||
7a197a62 AK |
15896 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15897 | as_dirname=dirname | |
15898 | else | |
15899 | as_dirname=false | |
15900 | fi | |
15901 | ||
15902 | ECHO_C= ECHO_N= ECHO_T= | |
15903 | case `echo -n x` in | |
15904 | -n*) | |
15905 | case `echo 'x\c'` in | |
15906 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15907 | *) ECHO_C='\c';; | |
15908 | esac;; | |
15909 | *) | |
15910 | ECHO_N='-n';; | |
ad6254c5 | 15911 | esac |
7a197a62 AK |
15912 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15913 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
15914 | as_expr=expr |
15915 | else | |
15916 | as_expr=false | |
15917 | fi | |
80992638 | 15918 | |
ad6254c5 | 15919 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
15920 | if test -d conf$$.dir; then |
15921 | rm -f conf$$.dir/conf$$.file | |
15922 | else | |
15923 | rm -f conf$$.dir | |
ec6a6fbe AK |
15924 | mkdir conf$$.dir 2>/dev/null |
15925 | fi | |
15926 | if (echo >conf$$.file) 2>/dev/null; then | |
15927 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
15928 | as_ln_s='ln -s' | |
15929 | # ... but there are two gotchas: | |
15930 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15931 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
15932 | # In both cases, we have to default to `cp -p'. | |
15933 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
15934 | as_ln_s='cp -p' | |
15935 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
15936 | as_ln_s=ln | |
15937 | else | |
ad6254c5 | 15938 | as_ln_s='cp -p' |
ec6a6fbe | 15939 | fi |
ad6254c5 AK |
15940 | else |
15941 | as_ln_s='cp -p' | |
15942 | fi | |
7a197a62 AK |
15943 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15944 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 15945 | |
ad6254c5 AK |
15946 | if mkdir -p . 2>/dev/null; then |
15947 | as_mkdir_p=: | |
15948 | else | |
8a2fc586 | 15949 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
15950 | as_mkdir_p=false |
15951 | fi | |
15952 | ||
25fbec5b AK |
15953 | if test -x / >/dev/null 2>&1; then |
15954 | as_test_x='test -x' | |
7a197a62 | 15955 | else |
25fbec5b AK |
15956 | if ls -dL / >/dev/null 2>&1; then |
15957 | as_ls_L_option=L | |
15958 | else | |
15959 | as_ls_L_option= | |
15960 | fi | |
15961 | as_test_x=' | |
15962 | eval sh -c '\'' | |
15963 | if test -d "$1"; then | |
ec6a6fbe | 15964 | test -d "$1/."; |
25fbec5b AK |
15965 | else |
15966 | case $1 in | |
ec6a6fbe | 15967 | -*)set "./$1";; |
25fbec5b AK |
15968 | esac; |
15969 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
15970 | ???[sx]*):;;*)false;;esac;fi | |
15971 | '\'' sh | |
15972 | ' | |
7a197a62 | 15973 | fi |
25fbec5b | 15974 | as_executable_p=$as_test_x |
ad6254c5 AK |
15975 | |
15976 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 15977 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
15978 | |
15979 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 15980 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
15981 | |
15982 | ||
ad6254c5 AK |
15983 | exec 6>&1 |
15984 | ||
7a197a62 | 15985 | # Save the log message, to keep $[0] and so on meaningful, and to |
ad6254c5 | 15986 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
15987 | # values after options handling. |
15988 | ac_log=" | |
ad6254c5 | 15989 | This file was extended by $as_me, which was |
ec6a6fbe | 15990 | generated by GNU Autoconf 2.63. Invocation command line was |
ad6254c5 AK |
15991 | |
15992 | CONFIG_FILES = $CONFIG_FILES | |
15993 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15994 | CONFIG_LINKS = $CONFIG_LINKS | |
15995 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15996 | $ $0 $@ | |
15997 | ||
7a197a62 AK |
15998 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15999 | " | |
16000 | ||
ad6254c5 AK |
16001 | _ACEOF |
16002 | ||
ec6a6fbe AK |
16003 | case $ac_config_files in *" |
16004 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
16005 | esac | |
16006 | ||
16007 | case $ac_config_headers in *" | |
16008 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
16009 | esac | |
16010 | ||
16011 | ||
16012 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 16013 | # Files that config.status was made for. |
68f2de6d AK |
16014 | config_files="$ac_config_files" |
16015 | config_headers="$ac_config_headers" | |
ad6254c5 | 16016 | |
7a197a62 | 16017 | _ACEOF |
ad6254c5 | 16018 | |
ec6a6fbe | 16019 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
16020 | ac_cs_usage="\ |
16021 | \`$as_me' instantiates files from templates according to the | |
16022 | current configuration. | |
16023 | ||
ec6a6fbe | 16024 | Usage: $0 [OPTION]... [FILE]... |
ad6254c5 AK |
16025 | |
16026 | -h, --help print this help, then exit | |
25fbec5b | 16027 | -V, --version print version number and configuration settings, then exit |
ec6a6fbe AK |
16028 | -q, --quiet, --silent |
16029 | do not print progress messages | |
ad6254c5 AK |
16030 | -d, --debug don't remove temporary files |
16031 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
16032 | --file=FILE[:TEMPLATE] |
16033 | instantiate the configuration file FILE | |
16034 | --header=FILE[:TEMPLATE] | |
16035 | instantiate the configuration header FILE | |
ad6254c5 AK |
16036 | |
16037 | Configuration files: | |
16038 | $config_files | |
16039 | ||
72b2cb61 AK |
16040 | Configuration headers: |
16041 | $config_headers | |
16042 | ||
ad6254c5 | 16043 | Report bugs to <bug-autoconf@gnu.org>." |
ad6254c5 | 16044 | |
7a197a62 | 16045 | _ACEOF |
ec6a6fbe | 16046 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
16047 | ac_cs_version="\\ |
16048 | config.status | |
ec6a6fbe AK |
16049 | configured by $0, generated by GNU Autoconf 2.63, |
16050 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
ad6254c5 | 16051 | |
ec6a6fbe | 16052 | Copyright (C) 2008 Free Software Foundation, Inc. |
ad6254c5 AK |
16053 | This config.status script is free software; the Free Software Foundation |
16054 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
16055 | |
16056 | ac_pwd='$ac_pwd' | |
16057 | srcdir='$srcdir' | |
16058 | INSTALL='$INSTALL' | |
fddafd51 | 16059 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
16060 | AWK='$AWK' |
16061 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
16062 | _ACEOF |
16063 | ||
ec6a6fbe AK |
16064 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16065 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
16066 | ac_need_defaults=: |
16067 | while test $# != 0 | |
16068 | do | |
16069 | case $1 in | |
16070 | --*=*) | |
7a197a62 AK |
16071 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
16072 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
16073 | ac_shift=: |
16074 | ;; | |
7a197a62 | 16075 | *) |
ad6254c5 AK |
16076 | ac_option=$1 |
16077 | ac_optarg=$2 | |
16078 | ac_shift=shift | |
16079 | ;; | |
ad6254c5 AK |
16080 | esac |
16081 | ||
16082 | case $ac_option in | |
16083 | # Handling of the options. | |
ad6254c5 AK |
16084 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
16085 | ac_cs_recheck=: ;; | |
7a197a62 | 16086 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 16087 | $as_echo "$ac_cs_version"; exit ;; |
7a197a62 | 16088 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
16089 | debug=: ;; |
16090 | --file | --fil | --fi | --f ) | |
16091 | $ac_shift | |
ec6a6fbe AK |
16092 | case $ac_optarg in |
16093 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
16094 | esac | |
16095 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
ad6254c5 AK |
16096 | ac_need_defaults=false;; |
16097 | --header | --heade | --head | --hea ) | |
16098 | $ac_shift | |
ec6a6fbe AK |
16099 | case $ac_optarg in |
16100 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
16101 | esac | |
16102 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
ad6254c5 | 16103 | ac_need_defaults=false;; |
7a197a62 AK |
16104 | --he | --h) |
16105 | # Conflict between --help and --header | |
ec6a6fbe | 16106 | { $as_echo "$as_me: error: ambiguous option: $1 |
7a197a62 AK |
16107 | Try \`$0 --help' for more information." >&2 |
16108 | { (exit 1); exit 1; }; };; | |
16109 | --help | --hel | -h ) | |
ec6a6fbe | 16110 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
16111 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
16112 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
16113 | ac_cs_silent=: ;; | |
16114 | ||
16115 | # This is an error. | |
ec6a6fbe | 16116 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
7a197a62 | 16117 | Try \`$0 --help' for more information." >&2 |
ad6254c5 AK |
16118 | { (exit 1); exit 1; }; } ;; |
16119 | ||
7a197a62 AK |
16120 | *) ac_config_targets="$ac_config_targets $1" |
16121 | ac_need_defaults=false ;; | |
ad6254c5 AK |
16122 | |
16123 | esac | |
16124 | shift | |
16125 | done | |
16126 | ||
16127 | ac_configure_extra_args= | |
16128 | ||
16129 | if $ac_cs_silent; then | |
16130 | exec 6>/dev/null | |
16131 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16132 | fi | |
16133 | ||
16134 | _ACEOF | |
ec6a6fbe | 16135 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 16136 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
16137 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
16138 | shift | |
16139 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
16140 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 16141 | export CONFIG_SHELL |
ec6a6fbe | 16142 | exec "\$@" |
ad6254c5 AK |
16143 | fi |
16144 | ||
16145 | _ACEOF | |
ec6a6fbe | 16146 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16147 | exec 5>>config.log |
16148 | { | |
16149 | echo | |
16150 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
16151 | ## Running $as_me. ## | |
16152 | _ASBOX | |
ec6a6fbe | 16153 | $as_echo "$ac_log" |
7a197a62 | 16154 | } >&5 |
ad6254c5 | 16155 | |
7a197a62 | 16156 | _ACEOF |
ec6a6fbe | 16157 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 16158 | _ACEOF |
ad6254c5 | 16159 | |
ec6a6fbe | 16160 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16161 | |
16162 | # Handling of arguments. | |
ad6254c5 AK |
16163 | for ac_config_target in $ac_config_targets |
16164 | do | |
7a197a62 AK |
16165 | case $ac_config_target in |
16166 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
16167 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
16168 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
16169 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
16170 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
5d311afb | 16171 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; |
93bd259b AK |
16172 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
16173 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 16174 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
d3d98fdc | 16175 | "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;; |
93bd259b AK |
16176 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
16177 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 16178 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
db8b5af9 | 16179 | "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;; |
93bd259b AK |
16180 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
16181 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
16182 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
16183 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
16184 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
16185 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
ec6a6fbe | 16186 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
7a197a62 | 16187 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
93bd259b AK |
16188 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
16189 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 16190 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 16191 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
16192 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
16193 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 16194 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
81410c8f | 16195 | "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;; |
595eaf92 | 16196 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; |
7a197a62 | 16197 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 16198 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 16199 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 16200 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 16201 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
7a197a62 | 16202 | |
ec6a6fbe AK |
16203 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
16204 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
ad6254c5 | 16205 | { (exit 1); exit 1; }; };; |
80992638 | 16206 | esac |
ad6254c5 AK |
16207 | done |
16208 | ||
7a197a62 | 16209 | |
ad6254c5 AK |
16210 | # If the user did not use the arguments to specify the items to instantiate, |
16211 | # then the envvar interface is used. Set only those that are not. | |
16212 | # We use the long form for the default assignment because of an extremely | |
16213 | # bizarre bug on SunOS 4.1.3. | |
16214 | if $ac_need_defaults; then | |
16215 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 16216 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
16217 | fi |
16218 | ||
16219 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 16220 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 16221 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
16222 | # Hook for its removal unless debugging. |
16223 | # Note that there is a small window in which the directory will not be cleaned: | |
16224 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
16225 | $debug || |
16226 | { | |
7a197a62 AK |
16227 | tmp= |
16228 | trap 'exit_status=$? | |
16229 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
16230 | ' 0 | |
ad6254c5 AK |
16231 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
16232 | } | |
ad6254c5 AK |
16233 | # Create a (secure) tmp directory for tmp files. |
16234 | ||
16235 | { | |
7a197a62 | 16236 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
16237 | test -n "$tmp" && test -d "$tmp" |
16238 | } || | |
16239 | { | |
7a197a62 AK |
16240 | tmp=./conf$$-$RANDOM |
16241 | (umask 077 && mkdir "$tmp") | |
ad6254c5 AK |
16242 | } || |
16243 | { | |
ec6a6fbe | 16244 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
ad6254c5 AK |
16245 | { (exit 1); exit 1; } |
16246 | } | |
16247 | ||
ec6a6fbe AK |
16248 | # Set up the scripts for CONFIG_FILES section. |
16249 | # No need to generate them if there are no CONFIG_FILES. | |
16250 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 16251 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 16252 | |
68f2de6d | 16253 | |
ec6a6fbe AK |
16254 | ac_cr='\r' |
16255 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
16256 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
16257 | ac_cs_awk_cr='\\r' | |
16258 | else | |
16259 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 16260 | fi |
7a197a62 | 16261 | |
ec6a6fbe | 16262 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 16263 | _ACEOF |
7a197a62 | 16264 | |
8106cdd5 | 16265 | |
ec6a6fbe AK |
16266 | { |
16267 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
16268 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
16269 | echo "_ACEOF" | |
16270 | } >conf$$subs.sh || | |
16271 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
16272 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
16273 | { (exit 1); exit 1; }; } | |
16274 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
1995c9ff AK |
16275 | ac_delim='%!_!# ' |
16276 | for ac_last_try in false false false false false :; do | |
ec6a6fbe AK |
16277 | . ./conf$$subs.sh || |
16278 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
16279 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
16280 | { (exit 1); exit 1; }; } | |
16281 | ||
16282 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
16283 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
16284 | break |
16285 | elif $ac_last_try; then | |
ec6a6fbe AK |
16286 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
16287 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
1995c9ff AK |
16288 | { (exit 1); exit 1; }; } |
16289 | else | |
16290 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16291 | fi | |
16292 | done | |
ec6a6fbe AK |
16293 | rm -f conf$$subs.sh |
16294 | ||
16295 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16296 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
16297 | _ACEOF | |
16298 | sed -n ' | |
16299 | h | |
16300 | s/^/S["/; s/!.*/"]=/ | |
16301 | p | |
16302 | g | |
16303 | s/^[^!]*!// | |
16304 | :repl | |
16305 | t repl | |
16306 | s/'"$ac_delim"'$// | |
16307 | t delim | |
16308 | :nl | |
16309 | h | |
16310 | s/\(.\{148\}\).*/\1/ | |
16311 | t more1 | |
16312 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
16313 | p | |
16314 | n | |
16315 | b repl | |
16316 | :more1 | |
16317 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16318 | p | |
16319 | g | |
16320 | s/.\{148\}// | |
16321 | t nl | |
16322 | :delim | |
16323 | h | |
16324 | s/\(.\{148\}\).*/\1/ | |
16325 | t more2 | |
16326 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
16327 | p | |
16328 | b | |
16329 | :more2 | |
16330 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16331 | p | |
16332 | g | |
16333 | s/.\{148\}// | |
16334 | t delim | |
16335 | ' <conf$$subs.awk | sed ' | |
16336 | /^[^""]/{ | |
16337 | N | |
16338 | s/\n// | |
16339 | } | |
16340 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
16341 | rm -f conf$$subs.awk | |
16342 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16343 | _ACAWK | |
16344 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
16345 | for (key in S) S_is_set[key] = 1 | |
16346 | FS = "\a" | |
7a197a62 | 16347 | |
ec6a6fbe AK |
16348 | } |
16349 | { | |
16350 | line = $ 0 | |
16351 | nfields = split(line, field, "@") | |
16352 | substed = 0 | |
16353 | len = length(field[1]) | |
16354 | for (i = 2; i < nfields; i++) { | |
16355 | key = field[i] | |
16356 | keylen = length(key) | |
16357 | if (S_is_set[key]) { | |
16358 | value = S[key] | |
16359 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
16360 | len += length(value) + length(field[++i]) | |
16361 | substed = 1 | |
16362 | } else | |
16363 | len += 1 + keylen | |
16364 | } | |
16365 | ||
16366 | print line | |
16367 | } | |
fddafd51 | 16368 | |
ec6a6fbe | 16369 | _ACAWK |
1995c9ff | 16370 | _ACEOF |
ec6a6fbe AK |
16371 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16372 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
16373 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
16374 | else | |
16375 | cat | |
16376 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
16377 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
16378 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
16379 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
16380 | _ACEOF |
16381 | ||
7a197a62 AK |
16382 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
16383 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
16384 | # trailing colons and then remove the whole line if VPATH becomes empty | |
16385 | # (actually we leave an empty line to preserve line numbers). | |
16386 | if test "x$srcdir" = x.; then | |
16387 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
16388 | s/:*\$(srcdir):*/:/ | |
16389 | s/:*\${srcdir}:*/:/ | |
16390 | s/:*@srcdir@:*/:/ | |
16391 | s/^\([^=]*=[ ]*\):*/\1/ | |
16392 | s/:*$// | |
16393 | s/^[^=]*=[ ]*$// | |
16394 | }' | |
16395 | fi | |
16396 | ||
ec6a6fbe | 16397 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16398 | fi # test -n "$CONFIG_FILES" |
16399 | ||
ec6a6fbe AK |
16400 | # Set up the scripts for CONFIG_HEADERS section. |
16401 | # No need to generate them if there are no CONFIG_HEADERS. | |
16402 | # This happens for instance with `./config.status Makefile'. | |
16403 | if test -n "$CONFIG_HEADERS"; then | |
16404 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
16405 | BEGIN { | |
16406 | _ACEOF | |
16407 | ||
16408 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
16409 | # here-document in config.status, that substitutes the proper values into | |
16410 | # config.h.in to produce config.h. | |
16411 | ||
16412 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
16413 | # handling of long lines. | |
16414 | ac_delim='%!_!# ' | |
16415 | for ac_last_try in false false :; do | |
16416 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
16417 | if test -z "$ac_t"; then | |
16418 | break | |
16419 | elif $ac_last_try; then | |
16420 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
16421 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
16422 | { (exit 1); exit 1; }; } | |
16423 | else | |
16424 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16425 | fi | |
16426 | done | |
16427 | ||
16428 | # For the awk script, D is an array of macro values keyed by name, | |
16429 | # likewise P contains macro parameters if any. Preserve backslash | |
16430 | # newline sequences. | |
16431 | ||
16432 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
16433 | sed -n ' | |
16434 | s/.\{148\}/&'"$ac_delim"'/g | |
16435 | t rset | |
16436 | :rset | |
16437 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
16438 | t def | |
16439 | d | |
16440 | :def | |
16441 | s/\\$// | |
16442 | t bsnl | |
16443 | s/["\\]/\\&/g | |
16444 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16445 | D["\1"]=" \3"/p | |
16446 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
16447 | d | |
16448 | :bsnl | |
16449 | s/["\\]/\\&/g | |
16450 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16451 | D["\1"]=" \3\\\\\\n"\\/p | |
16452 | t cont | |
16453 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
16454 | t cont | |
16455 | d | |
16456 | :cont | |
16457 | n | |
16458 | s/.\{148\}/&'"$ac_delim"'/g | |
16459 | t clear | |
16460 | :clear | |
16461 | s/\\$// | |
16462 | t bsnlc | |
16463 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
16464 | d | |
16465 | :bsnlc | |
16466 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
16467 | b cont | |
16468 | ' <confdefs.h | sed ' | |
16469 | s/'"$ac_delim"'/"\\\ | |
16470 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
16471 | ||
16472 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16473 | for (key in D) D_is_set[key] = 1 | |
16474 | FS = "\a" | |
16475 | } | |
16476 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
16477 | line = \$ 0 | |
16478 | split(line, arg, " ") | |
16479 | if (arg[1] == "#") { | |
16480 | defundef = arg[2] | |
16481 | mac1 = arg[3] | |
16482 | } else { | |
16483 | defundef = substr(arg[1], 2) | |
16484 | mac1 = arg[2] | |
16485 | } | |
16486 | split(mac1, mac2, "(") #) | |
16487 | macro = mac2[1] | |
16488 | prefix = substr(line, 1, index(line, defundef) - 1) | |
16489 | if (D_is_set[macro]) { | |
16490 | # Preserve the white space surrounding the "#". | |
16491 | print prefix "define", macro P[macro] D[macro] | |
16492 | next | |
16493 | } else { | |
16494 | # Replace #undef with comments. This is necessary, for example, | |
16495 | # in the case of _POSIX_SOURCE, which is predefined and required | |
16496 | # on some systems where configure will not decide to define it. | |
16497 | if (defundef == "undef") { | |
16498 | print "/*", prefix defundef, macro, "*/" | |
16499 | next | |
16500 | } | |
16501 | } | |
16502 | } | |
16503 | { print } | |
16504 | _ACAWK | |
16505 | _ACEOF | |
16506 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16507 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
16508 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
16509 | { (exit 1); exit 1; }; } | |
16510 | fi # test -n "$CONFIG_HEADERS" | |
16511 | ||
7a197a62 | 16512 | |
ec6a6fbe AK |
16513 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
16514 | shift | |
16515 | for ac_tag | |
7a197a62 AK |
16516 | do |
16517 | case $ac_tag in | |
16518 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
16519 | esac | |
16520 | case $ac_mode$ac_tag in | |
16521 | :[FHL]*:*);; | |
ec6a6fbe AK |
16522 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
16523 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
7a197a62 AK |
16524 | { (exit 1); exit 1; }; };; |
16525 | :[FH]-) ac_tag=-:-;; | |
16526 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
16527 | esac | |
16528 | ac_save_IFS=$IFS | |
16529 | IFS=: | |
16530 | set x $ac_tag | |
16531 | IFS=$ac_save_IFS | |
16532 | shift | |
16533 | ac_file=$1 | |
16534 | shift | |
16535 | ||
16536 | case $ac_mode in | |
16537 | :L) ac_source=$1;; | |
16538 | :[FH]) | |
16539 | ac_file_inputs= | |
16540 | for ac_f | |
16541 | do | |
16542 | case $ac_f in | |
16543 | -) ac_f="$tmp/stdin";; | |
16544 | *) # Look for the file first in the build tree, then in the source tree | |
16545 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
16546 | # because $ac_f cannot contain `:'. | |
16547 | test -f "$ac_f" || | |
16548 | case $ac_f in | |
16549 | [\\/$]*) false;; | |
16550 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
16551 | esac || | |
ec6a6fbe AK |
16552 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
16553 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
7a197a62 AK |
16554 | { (exit 1); exit 1; }; };; |
16555 | esac | |
ec6a6fbe AK |
16556 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
16557 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
7a197a62 AK |
16558 | done |
16559 | ||
16560 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
16561 | # use $as_me), people would be surprised to read: | |
16562 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
16563 | configure_input='Generated from '` |
16564 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
16565 | `' by configure.' | |
7a197a62 AK |
16566 | if test x"$ac_file" != x-; then |
16567 | configure_input="$ac_file. $configure_input" | |
ec6a6fbe AK |
16568 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
16569 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7a197a62 | 16570 | fi |
ec6a6fbe AK |
16571 | # Neutralize special characters interpreted by sed in replacement strings. |
16572 | case $configure_input in #( | |
16573 | *\&* | *\|* | *\\* ) | |
16574 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
16575 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
16576 | *) ac_sed_conf_input=$configure_input;; | |
16577 | esac | |
7a197a62 AK |
16578 | |
16579 | case $ac_tag in | |
ec6a6fbe AK |
16580 | *:-:* | *:-) cat >"$tmp/stdin" \ |
16581 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16582 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16583 | { (exit 1); exit 1; }; } ;; | |
7a197a62 AK |
16584 | esac |
16585 | ;; | |
80992638 | 16586 | esac |
8106cdd5 | 16587 | |
7a197a62 | 16588 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 16589 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
16590 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
16591 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 16592 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 16593 | $as_echo X"$ac_file" | |
7a197a62 AK |
16594 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16595 | s//\1/ | |
16596 | q | |
16597 | } | |
16598 | /^X\(\/\/\)[^/].*/{ | |
16599 | s//\1/ | |
16600 | q | |
16601 | } | |
16602 | /^X\(\/\/\)$/{ | |
16603 | s//\1/ | |
16604 | q | |
16605 | } | |
16606 | /^X\(\/\).*/{ | |
16607 | s//\1/ | |
16608 | q | |
16609 | } | |
16610 | s/.*/./; q'` | |
16611 | { as_dir="$ac_dir" | |
16612 | case $as_dir in #( | |
16613 | -*) as_dir=./$as_dir;; | |
16614 | esac | |
16615 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
ad6254c5 | 16616 | as_dirs= |
7a197a62 AK |
16617 | while :; do |
16618 | case $as_dir in #( | |
ec6a6fbe | 16619 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7a197a62 AK |
16620 | *) as_qdir=$as_dir;; |
16621 | esac | |
16622 | as_dirs="'$as_qdir' $as_dirs" | |
16623 | as_dir=`$as_dirname -- "$as_dir" || | |
ad6254c5 | 16624 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
16625 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
16626 | X"$as_dir" : 'X\(//\)$' \| \ | |
7a197a62 | 16627 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 16628 | $as_echo X"$as_dir" | |
7a197a62 AK |
16629 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16630 | s//\1/ | |
16631 | q | |
16632 | } | |
16633 | /^X\(\/\/\)[^/].*/{ | |
16634 | s//\1/ | |
16635 | q | |
16636 | } | |
16637 | /^X\(\/\/\)$/{ | |
16638 | s//\1/ | |
16639 | q | |
16640 | } | |
16641 | /^X\(\/\).*/{ | |
16642 | s//\1/ | |
16643 | q | |
16644 | } | |
16645 | s/.*/./; q'` | |
16646 | test -d "$as_dir" && break | |
ad6254c5 | 16647 | done |
7a197a62 | 16648 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
ec6a6fbe AK |
16649 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
16650 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
ad6254c5 | 16651 | { (exit 1); exit 1; }; }; } |
ad6254c5 AK |
16652 | ac_builddir=. |
16653 | ||
7a197a62 AK |
16654 | case "$ac_dir" in |
16655 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16656 | *) | |
ec6a6fbe | 16657 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 16658 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 16659 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
16660 | case $ac_top_builddir_sub in |
16661 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16662 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16663 | esac ;; | |
16664 | esac | |
16665 | ac_abs_top_builddir=$ac_pwd | |
16666 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16667 | # for backward compatibility: | |
16668 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
16669 | |
16670 | case $srcdir in | |
7a197a62 | 16671 | .) # We are building in place. |
ad6254c5 | 16672 | ac_srcdir=. |
7a197a62 AK |
16673 | ac_top_srcdir=$ac_top_builddir_sub |
16674 | ac_abs_top_srcdir=$ac_pwd ;; | |
16675 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 16676 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
16677 | ac_top_srcdir=$srcdir |
16678 | ac_abs_top_srcdir=$srcdir ;; | |
16679 | *) # Relative name. | |
16680 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16681 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16682 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 16683 | esac |
7a197a62 | 16684 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 16685 | |
ad6254c5 | 16686 | |
7a197a62 AK |
16687 | case $ac_mode in |
16688 | :F) | |
16689 | # | |
16690 | # CONFIG_FILE | |
16691 | # | |
ad6254c5 AK |
16692 | |
16693 | case $INSTALL in | |
16694 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 16695 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 16696 | esac |
fddafd51 ZK |
16697 | ac_MKDIR_P=$MKDIR_P |
16698 | case $MKDIR_P in | |
16699 | [\\/$]* | ?:[\\/]* ) ;; | |
16700 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
16701 | esac | |
7a197a62 | 16702 | _ACEOF |
795ca3e5 | 16703 | |
ec6a6fbe | 16704 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16705 | # If the template does not know about datarootdir, expand it. |
16706 | # FIXME: This hack should be removed a few years after 2.60. | |
16707 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
16708 | ||
ec6a6fbe AK |
16709 | ac_sed_dataroot=' |
16710 | /datarootdir/ { | |
7a197a62 AK |
16711 | p |
16712 | q | |
16713 | } | |
16714 | /@datadir@/p | |
16715 | /@docdir@/p | |
16716 | /@infodir@/p | |
16717 | /@localedir@/p | |
16718 | /@mandir@/p | |
ec6a6fbe AK |
16719 | ' |
16720 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7a197a62 AK |
16721 | *datarootdir*) ac_datarootdir_seen=yes;; |
16722 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
ec6a6fbe AK |
16723 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
16724 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 16725 | _ACEOF |
ec6a6fbe | 16726 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
16727 | ac_datarootdir_hack=' |
16728 | s&@datadir@&$datadir&g | |
16729 | s&@docdir@&$docdir&g | |
16730 | s&@infodir@&$infodir&g | |
16731 | s&@localedir@&$localedir&g | |
16732 | s&@mandir@&$mandir&g | |
16733 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16734 | esac | |
16735 | _ACEOF | |
16736 | ||
16737 | # Neutralize VPATH when `$srcdir' = `.'. | |
16738 | # Shell code in configure.ac might set extrasub. | |
16739 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
16740 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16741 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
16742 | $extrasub |
16743 | _ACEOF | |
ec6a6fbe | 16744 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
16745 | :t |
16746 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 16747 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 16748 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 16749 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
16750 | s&@srcdir@&$ac_srcdir&;t t |
16751 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16752 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16753 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16754 | s&@builddir@&$ac_builddir&;t t | |
16755 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16756 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16757 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 16758 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 16759 | $ac_datarootdir_hack |
ec6a6fbe AK |
16760 | " |
16761 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
16762 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16763 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16764 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
16765 | |
16766 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
16767 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
16768 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
ec6a6fbe | 16769 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 | 16770 | which seems to be undefined. Please make sure it is defined." >&5 |
ec6a6fbe | 16771 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
7a197a62 AK |
16772 | which seems to be undefined. Please make sure it is defined." >&2;} |
16773 | ||
16774 | rm -f "$tmp/stdin" | |
72b2cb61 | 16775 | case $ac_file in |
ec6a6fbe AK |
16776 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
16777 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
16778 | esac \ | |
16779 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16780 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16781 | { (exit 1); exit 1; }; } | |
7a197a62 AK |
16782 | ;; |
16783 | :H) | |
16784 | # | |
16785 | # CONFIG_HEADER | |
16786 | # | |
72b2cb61 | 16787 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
16788 | { |
16789 | $as_echo "/* $configure_input */" \ | |
16790 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
16791 | } >"$tmp/config.h" \ | |
16792 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16793 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16794 | { (exit 1); exit 1; }; } | |
16795 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
16796 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
16797 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 16798 | else |
ec6a6fbe AK |
16799 | rm -f "$ac_file" |
16800 | mv "$tmp/config.h" "$ac_file" \ | |
16801 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
16802 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
16803 | { (exit 1); exit 1; }; } | |
72b2cb61 AK |
16804 | fi |
16805 | else | |
ec6a6fbe AK |
16806 | $as_echo "/* $configure_input */" \ |
16807 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
16808 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
16809 | $as_echo "$as_me: error: could not create -" >&2;} | |
16810 | { (exit 1); exit 1; }; } | |
72b2cb61 | 16811 | fi |
7a197a62 AK |
16812 | ;; |
16813 | ||
16814 | ||
16815 | esac | |
16816 | ||
16817 | done # for ac_tag | |
795ca3e5 | 16818 | |
795ca3e5 | 16819 | |
ad6254c5 AK |
16820 | { (exit 0); exit 0; } |
16821 | _ACEOF | |
795ca3e5 | 16822 | chmod +x $CONFIG_STATUS |
ad6254c5 AK |
16823 | ac_clean_files=$ac_clean_files_save |
16824 | ||
ec6a6fbe AK |
16825 | test $ac_write_fail = 0 || |
16826 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
16827 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
16828 | { (exit 1); exit 1; }; } | |
16829 | ||
ad6254c5 AK |
16830 | |
16831 | # configure is writing to config.log, and then calls config.status. | |
16832 | # config.status does its own redirection, appending to config.log. | |
16833 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16834 | # by configure, so config.status won't be able to write to it; its | |
16835 | # output is simply discarded. So we exec the FD to /dev/null, | |
16836 | # effectively closing config.log, so it can be properly (re)opened and | |
16837 | # appended to by config.status. When coming back to configure, we | |
16838 | # need to make the FD available again. | |
16839 | if test "$no_create" != yes; then | |
16840 | ac_cs_success=: | |
16841 | ac_config_status_args= | |
16842 | test "$silent" = yes && | |
16843 | ac_config_status_args="$ac_config_status_args --quiet" | |
16844 | exec 5>/dev/null | |
16845 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16846 | exec 5>>config.log | |
16847 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16848 | # would make configure fail if this is the last instruction. | |
16849 | $ac_cs_success || { (exit 1); exit 1; } | |
16850 | fi | |
ec6a6fbe AK |
16851 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
16852 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16853 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
16854 | fi | |
795ca3e5 | 16855 | |
2dc95e1c AK |
16856 | |
16857 | if test x$ODIRECT != xyes; then | |
ec6a6fbe AK |
16858 | { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
16859 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
2dc95e1c | 16860 | fi |